When you embed the Workable job widget on your website, it will automatically inherit the CSS (i.e. things like font and color choices) you use on your site. There's no need to do any further editing if you want to keep a consistent style on your careers page.
However, if you want to make further changes to the CSS for the job widget we‘ve added some special classes as ‘hooks’ on the HTML elements so that you can use them to apply CSS without affecting the rest of your website styling.
1. List of jobs
The embedded jobs are displayed in an unordered list:
Each job is a list item in this list:
Each job has 3 parts: An h3 header with its title (and a link to the job opening on your company’s mini-site on Workable), an unordered list with its meta information (code, location, department, creation date) and a div with its full description, if you have chosen to include that (by selecting “Show full descriptions” in the Workable widget).
The .whr-info list has some more special classes of its own:
<li class=”whr-code”><span>Code:</span> ...</li>
<li class=”whr-dept”><span>Department:</span> ...</li>
<li class=”whr-location”><span>Location:</span> ...</li>
<li class=”whr-date”><span>Creation date:</span> ...</li>
Each .whr-info item uses a label wrapped label in a <span>…</span> so you can style them differently or even hide them with CSS.
If you select to group by location or department, then the .whr-items list described at the beginning of this section will be broken down in separate lists (the groups), each preceded by a group heading, displayed as an h2:
Note that when you select a group by location/department or if you select “list of locations” or list of departments” in the Workable widget, the location or department item respectively is not shown in the section .whr-info since it is already mentioned in the headline above it.
2. List of locations & list of departments
In these two cases, the embedded jobs are grouped and initially hidden. Only the list of locations or departments is shown. For each individual location or department, you get a header like this:
It’s just like the one you get when simply grouping the jobs, only this time the headings are links, and when clicked they reveal the corresponding list of items below them, marked up as explained in the previous section. When a heading is clicked and expands the list of jobs that correspond to it, it also gets a .whr-active class so you can style it accordingly.
3. No jobs?
If no jobs are available, a message appears in the following markup:
<p class=”whr-empty-text”>No positions available</p>
Again, this has special hook class so that it can easily be styled.
4. Sample CSS
In the scrolling box below, you can find a simple stylesheet to get you started styling your own job listings:
If you choose to apply the above style this is how it will look: