Skip to main content

Styling

All MindKey Recruiting Web Components do not use Shadow DOM making them adapting to your page's style. This way, you can define the visual appearance of the components by overriding their styles via CSS. The markup cannot be changed. If you want to build experiences with different markup, you are advised to use the Recruiting API or the Recruiting API Client directly.

Predefined styles

If you wish, you can use our predefined styles by including one or more of our stylesheets. They help you to start the implementation by providing useful defaults. You are not required to use the styles and can completely implement your own styling.

Stylesheets

All stylesheets have the base URL https://recruiting.mindkey.com/.

StylesheetComponentDescription
structure.cssAllDefines a basic structure, without any colors.
vacancy-list.cssVacancy ListStyles the Vacancy List component as a list.
vacancy-list-cards.cssVacancy ListStyles the Vacancy List component as cards.
vacancy-list-responsive.cssVacancy ListCombines the list and cards style. For small viewports (e.g. mobile devices) cards will be used. Otherwise the list.
vacancy-details.cssVacancy DetailsStyles the Vacancy Details component.
application-form.cssApplication FormStyles the Application Form component.
job-agent.cssJob AgentStyles the Job Agent component.
structure.css

All our CSS stylings are optional, however we recommend to use the structure.css because it will add the common required asterisk symbol (*) to all required fields.

Example usage

<!-- To include the structure.css and vacancy-list-responsive.css -->
<link
rel="stylesheet"
href="https://recruiting.mindkey.com/structure.css"
/>
<link
rel="stylesheet"
href="https://recruiting.mindkey.com/vacancy-list-responsive.css"
/>

Visual Demonstration

A visual demonstration of the implementation of different stylesheets is shown below.

No stylesheet

No stylesheet

structure.css

structure.css

structure.css + vacancy-list.css

structure.css + vacancy-list.css

structure.css + vacancy-list-cards.css

structure.css + vacancy-list-cards.css

Vacancy Details Stylesheet

No stylesheet

No stylesheet

structure.css

structure.css

structure.css + vacancy-details.css

structure.css + vacancy-details.css

Application Form

No stylesheet

No stylesheet

structure.css

structure.css

structure.css + application-form.css

structure.css + application-form.css

CSS Variables

Some stylesheets make use of CSS variables to allow easy adaption to your site's colors. To overwrite them, add the following snippet to your side after loading one or more of our predefines styles:

<style>
:root {
/* Overwrites go here */
}
</style>
CSS-VariableDefaultDescription
--mk-text-colorinheritColor for texts
--mk-link-colorinheritColor for links (e.g. Apply Link)
--mk-link-color-hoverinheritHover color for links
--mk-heading-colorinheritColor for headings
--mk-error-color#f8353fColor when an error is being displayed (e.g. user types in e-mail in wrong format)
--mk-background-oddtransparentBackground color for odd table rows (e.g. vacancy list)
--mk-background-eventransparentBackground color for even table rows (e.g. vacancy list)
--mk-card-background-odd#ffffffBackground color for odd cards (e.g. vacancy list with cards)
--mk-card-background-even#ffffffBackground color for even cards (e.g. vacancy list with cards)
--mk-line-color#dfdfdfColor for separator lines (e.g. vacancy details)
--mk-border-color#525252Color for borders (e.g. around buttons)
--mk-input-colorinheritColor for text of input fields
--mk-input-backgroundtransparentBackground color for input fields
--mk-input-arrow-background#ffffffBackground color for the arrow in select fields
--mk-input-arrow-color#000000Color for the arrow in select fields
--mk-required-markerinheritColor of the required marker (e.g. the * in application form)
--mk-checked-color#000000Color of the circle/checkmark in radio buttons and checkboxes
--mk-button-textinheritColor for buttons
--mk-button-text-hoverinheritHover color for buttons
--mk-button-backgroundtransparentBackground color for buttons
--mk-button-background-hoverrgba(0, 0, 0, 0.10)Hover background color for buttons
--mk-br4pxBorder radius for various elements
--mk-shadowrgba(100, 100, 111, 0.2) 0px 7px 29px 0pxShadow for filters and cards

Examples

Overwrite the neutral color
<style>
:root {
--mk-text-color: green;
}
</style>