Container
We're using Bootstrap container and it's required when using our default grid system. Our .container
is a mix between Bootstraps .container
and .container-fluid
. Our .container takes 100% of width on all breakpoints except xl and has extra padding on different breakpoints.
Breakpoint name | Container max-width |
Container padding (right and left) |
---|---|---|
SM | 480px | not yet set |
MD | 736px | not yet set |
LG | 1140px | not yet set |
Grid system
We're using Bootstrap 4 grid system and flexbox utility so check the docs.
Do not modify anything on any grid component by adding extra CSS or adding any other class than column classes provided in the grid. IE: don't add .d-flex
on a col to make the content inside vertically aligned. Add classes to column content and let the columns do the layout work.
Breakpoint name | SM | MD | LG |
---|---|---|---|
Breakpoint size | ≥ 0 | ≥ 735px | ≥ 1200px |
Class prefix | .col- |
.col-md- |
.col-lg- |
Color utilities
.text-
and for background color prefix .bg-
followed by color name displayed below.
black
white
grey-1
grey-2
grey-3
grey-4
grey-5
grey-6
grey-7
c-1
c-2
c-3
c-4
c-5
c-6
primary
primary-light
primary-lighter
Type utilities
Set font style properties and font alignment using utility classes.
Class | Example |
---|---|
Text transformation utilities | |
.tt-lower |
Lowercase text |
.tt-upper |
Uppercase text |
.tt-cap |
Capitalize text |
.tt-none |
No text transformation |
Font weight and style utilities | |
.fw-normal |
Font weight normal |
.fw-bold |
Font weight bold |
.fw-light |
Font weight light |
.fs-normal |
Font style normal |
.fs-italic |
Font style italic |
Alignment utilities (these utility classes have breakpoint modifiers, IE: .ta-md-right , .ta-lg-center , etc.) |
|
.ta-right |
Text align right |
.ta-center |
Text align center |
.ta-left |
Text align left |
Font family utilities | |
.ff-base |
Base font family |
Link Stretched
Inspired by Bootstrap Stretched link utility. To use add .link-stretched
to a link to make its ::after
pseudo element stretch. The ::after
element will stretch to fill the content's of the first parent element that has position: relative;
property set.
The example is using grid columns which have position: relative;
set by the grid framework so the "Read more" link will stretch to fill the whole column vertically and horizontally.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quis tempore laborum culpa aliquam sunt magni obcaecati, fuga corrupti facilis. Sunt vero voluptatem deserunt obcaecati eligendi nemo sapiente perferendis. Veritatis, quidem?
Read moreLorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora qui nesciunt mollitia vel aliquid sequi esse aperiam quibusdam, quis ad!
Read moreLorem ipsum dolor sit amet, consectetur adipisicing elit. Libero quo nam ad tenetur inventore odit repudiandae eius repellat, quibusdam maxime assumenda iste voluptate. Minima voluptas suscipit modi, nam vitae veritatis.
Read moreBackground Breakout
Add .bg-breakout
class to break out of the .container
.
The .bg-breakout
creates a ::before
pseudo element which has it's width stretched to 100% of the view port with width: 100vw
and is centered with negative right and left margins in vw
and adding 50%
to right
and left
properties. Because vw
doesn't include the scrollbar we have to add overflow-x: hidden;
on the parent element otherwise when the page gets a vertical scrollbar it will also get an horizontal scrollbar.
For more info on this technique check this link.
For more info on the horizontal scrollbar issue check this link.
NOTE: The utility only creates the ::before
element and set's background-color: inherit;
property but it doesn't add any color. To add a background color use one of the color utilities or add the property in your CSS.
This content is boxed by the container.
Meanwhile Captain Bildad sat earnestly and steadfastly eyeing Queequeg, and at last rising solemnly and fumbling in the huge pockets of his broad-skirted drab coat, took out a bundle of tracts, and selecting one entitled "The Latter Day Coming; or No Time to Lose,' placed it in Queequeg's hands, and then grasping them and the book with both his, looked earnestly into his eyes, and said, "Son of darkness, I must do my duty by thee; I am part owner of this ship, and feel concerned for the souls of all its crew; if thou still clingest to thy Pagan ways, which I sadly fear, I beseech thee, remain not for aye a Belial bondsman. Spurn the idol Bell, and the hideous dragon; turn from the wrath to come; mind thine eye, I say; oh! goodness gracious! steer clear of the fiery pit!'
This content breaks out of the container and has the boxed layout restored which is why the text is aligned to the other elements that are not breaking out of the container.
Something of the salt sea yet lingered in old Bildad's language, heterogeneously mixed with Scriptural and domestic phrases.
"Avast there, avast there, Bildad, avast now spoiling our harpooneer,' cried Peleg. "Pious harpooneers never make good voyagers—it takes the shark out of 'em; no harpooneer is worth a straw who aint pretty sharkish. There was young Nat Swaine, once the bravest boat-header out of all Nantucket and the Vineyard; he joined the meeting, and never came to good. He got so frightened about his plaguy soul, that he shrinked and sheered away from whales, for fear of after-claps, in case he got stove and went to Davy Jones.'
"Peleg! Peleg!' said Bildad, lifting his eyes and hands, "thou thyself, as I myself, hast seen many a perilous time; thou knowest, Peleg, what it is to have the fear of death; how, then, can'st thou prate in this ungodly guise. Thou beliest thine own heart, Peleg. Tell me, when this same Pequod here had her three masts overboard in that typhoon on Japan, that same voyage when thou went mate with Captain Ahab, did'st thou not think of Death and the Judgment then?'
"Hear him, hear him now,' cried Peleg, marching across the cabin, and thrusting his hands far down into his pockets,—"hear him, all of ye. Think of that! When every moment we thought the ship would sink! Death and the Judgment then? What? With all three masts making such an everlasting thundering against the side; and every sea breaking over us, fore and aft. Think of Death and the Judgment then? No! no time to think about Death then. Life was what Captain Ahab and I was thinking of; and how to save all hands—how to rig jury-masts—how to get into the nearest port; that was what I was thinking of.'
Type
Font levels
The scale also provides classes which you can use for type sizing. The classes are defined using utilities/headings.scss
. Check $grid-heading-setup
in common/variables.scss
for a list of classes and sizes.
Example | Class |
---|---|
Font size level 1 |
.fl-1
|
Font size level 2 |
.fl-2
|
Font size level 3 |
.fl-3
|
Font size level 4 |
.fl-4
|
Font size level 5 |
.fl-5
|
Font size level 6 |
.fl-6
|
Font size level 7 |
.fl-7
|
Titles
To use font levels in titles with bottom margin use .title--
prefix istead of .fl--
followed by the font level.
Example | Class |
---|---|
Title level 1 |
.title--1
|
Title level 2 |
.title--2
|
Title level 3 |
.title--3
|
Title level 4 |
.title--4
|
Title level 5 |
.title--5
|
Title level 6 |
.title--6
|
Title level 7 |
.title--7
|
Headings
Their sizes follow font levels but start from level 2 and down. Sizes are defined usingutilities/headings.scss
. Check $grid-heading-setup
in common/variables.scss
for a list of sizes.
Example | Heading | Font size level |
---|---|---|
Heading 1 |
<h1> |
Font size level 2 |
Heading 2 |
<h2> |
Font size level 3 |
Heading 3 |
<h3> |
Font size level 4 |
Heading 4 |
<h4> |
Font size level 5 |
Heading 5 |
<h5> |
Font size level 6 |
Heading 6 |
<h6> |
Font size level 7 |
Headings also have some margins applied to them.
This is an <h1>
tag with some trailing text
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is an <h2>
tag with some trailing text
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is an <h3>
tag with some trailing text
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is an <h4>
tag with some trailing text
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is an <h5>
tag with some trailing text
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is an <h6>
tag with some trailing text
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Body text
Lorem ipsum dolor and a link, consectetur adipisicing elit. Recusandae, rerum perferendis quos aspernatur ullam eos voluptate quo cupiditate assumenda facilis, iste animi doloremque, quasi eveniet laboriosam. Dolor perferendis debitis dolore. Repellendus laudantium, quas excepturi ducimus reiciendis, eligendi unde quia perspiciatis voluptatibus pariatur repellat quibusdam, molestiae cum quaerat ex a modi neque? Id officiis doloremque nisi, veritatis fugit fugiat eveniet placeat?
Officia, veniam. Molestias harum quasi, explicabo nesciunt fugit dicta provident natus veniam eveniet eos doloremque dolor, similique voluptates qui adipisci repudiandae iste sit nobis soluta error dolore accusamus fugiat, porro.
Links
Add classes to give links different styling.
Normal link
.link-alt
.link-underline
Group .link-alt
and .link-underline
to get custom link.
Lists
Unordered list:
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Ordered list:
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Definition list:
- Time
- The indefinite continued progress of existence and events in the past, present, and future regarded as a whole.
- Space
- A continuous area or expanse that is free, available, or unoccupied.
- The dimensions of height, depth, and width within which all things exist and move.
Lists unstyled
Use .list-unstyled
or extend %list-unstyled
to get an unstyled list. This only applies to immediate children list items, meaning you will need to add the class for any nested lists as well.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Lists styled
Use .list-styled
to add styling too lists. This only applies to immediate children list items, meaning you will need to add the class for any nested lists as well. Only <ul>
and <pl>
lists are supported.
Unordered list styled:
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
Ordered list styled:
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
Blockquote
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante."
To add a source of the quote add a <footer>
or <cite>
in the <blockquote>
.
"I am game for his crooked jaw, and for the jaws of Death too, Captain Ahab, if it fairly comes in the way of the business we follow; but I came here to hunt whales, not my commander’s vengeance. How many barrels will thy vengeance yield thee even if thou gettest it, Captain Ahab? it will not fetch thee much in our Nantucket market."
Starbuck
Horizontal rule
Use to separate content sections.
NOTE: don't use it to separate <div>
elements or some similar layout actions. Use border instead or if you have to add an element you can use .separator
class on a <div>
or <span>
or any other element.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Abbreviations
attr
HTML
Other text inline elements
<mark>
- You can use the mark tag to highlight text.
<del>
- This line of text is meant to be treated as deleted text.
<s>
- This line of text is meant to be treated as no longer accurate.
<ins>
- This line of text is meant to be treated as an addition to the document.
<u>
- This line of text will render as underlined
<small>
- This line of text is meant to be treated as fine print.
<strong>
- This line rendered as bold text.
<em>
- This line rendered as italicized text.
<b>
- This line rendered as bold text.
<i>
- This line rendered as italicized text.
.mark
and .small
classes are also available to apply the same styles as <mark>
and <small>
.
Accent
Helper to highlight text.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Buttons
Use .btn
class to reset button styling on <button>
, <input>
or <a>
and use the modifier classes to add color styling. Always use <button>
element if you are writing the markup.
When using button classes on <a>
elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should be given a role="button"
to appropriately convey their purpose to assistive technologies such as screen readers.
You can also use the .btn
class on other elements but some interaction that is based on pseudo selectors (mainly :focus
) will be different.
Pseudo selectors :focus
and :active
are styled but you also have classes (.focus
and .active
) to trigger the appearance programmatically.
Button variants
.btn--alpha
.btn--beta
.btn--gama
.btn--delta
.btn--epsilon
.btn--zeta
Button disabled
Add disabled
attribute to <button>
or .disabled
class to <a>
. All the buttons will look the same in their disabled state no mater the variant.
Button loading
You can use .loading
class on all buttons if you need to add a loading feedback after user clicks on a button.
Button large
Button with larger spacing.
Button small
Button with smaller spacing.
Button icons
Add <svg>
icons in buttons. You can add it in all button types or sizes.
NOTE: Only <button>
and <a>
can contain <svg>
elements since <input>
elements are self-closing (empty elements) which can't contain other HTML elements.
NOTE: If you want to use the icon next to the text add a modifier class btn--icon
to the button so that you get a margin on the svg element.
Button block
Use .btn--block
for full width buttons.
Alerts
Alerts with modifier classes:
.alert--success
.alert--info
.alert--warning
.alert--danger
Alerts with links
Use .alert__link for additional links in the .alert that get aligned to the right of the .alert.
Notices
Default notice
Currently there is no reviews for this provider.
Want to be first? You can if you worked with this provider!
Notice with link
Currently there is no reviews for this provider.
Want to be first? You can if you worked with this provider!
Read moreCards
Card default class
Ad magna ut tempor commodo
Incididunt et veniam excepteur
Est occaecat amet ex
We are using grid to arrange the elements in the cards
Location
Zagreb
Deadline
Location
Zagreb
Deadline
Location
Zagreb
Deadline
Card modifier class .card--alpha
Ad magna ut tempor commodo
Sponsored
Years founded
1966
Type
Single LLC
Primary service
1966
Secondary service
Single LLC
About us
With more than 900 employees, ATP architects engineers is one of the largest offices for integrated planning in Europe. Founded in Innsbruck in 1951 as a pure architecture office, ATP has been developing an interdisciplinary partnership since 1976, which accompanies building owners as...
Incididunt et veniam excepteur
Sponsored
Years founded
1966
Type
Single LLC
Primary service
1966
Secondary service
Single LLC
About us
With more than 900 employees, ATP architects engineers is one of the largest offices for integrated planning in Europe. Founded in Innsbruck in 1951 as a pure architecture office, ATP has been developing an interdisciplinary partnership since 1976, which accompanies building owners as...
Est occaecat amet ex
Sponsored
Years founded
1966
Type
Single LLC
Primary service
1966
Secondary service
Single LLC
About us
With more than 900 employees, ATP architects engineers is one of the largest offices for integrated planning in Europe. Founded in Innsbruck in 1951 as a pure architecture office, ATP has been developing an interdisciplinary partnership since 1976, which accompanies building owners as...
Navs
Add .nav
class to a <ul>
that contains a list of links to add layout and styling properties.
Use .active
and .disabled
classes to style the links in those situations. NOTE: the classes get added to the <li>
element and not the <a>
.
NOTE: This component is built to be compatible with WordPress wp_nav_menu();
function which has an opinionated markup. To get around that we're not adding any classes to the containing elements and are using element and child selector selectors to style them (IE: .nav > li
). That's also the reason why .active
and .disabled
classes are added to the <li>
element instead of the <a>
element.
Bold nav
Add .nav--bold
for bold nav.
Stacked nav
Add .nav--stacked
for vertical nav.
Primary nav
Add .nav--primary
for primary nav.
Secondary nav
Add .nav--secondary
for secondary nav.
Inverted nav
Add .nav--inv
for inverted nav.
NOTE: Combine nav--inv
with nav--stacked
because nav--inv
has no horizontal padding, only vertical.
Pagination
The pagination is built to work with WordPress paginate_links();
function (documentation) which means we had to make some exceptions from our default coding standards:
- Class names don't follow BEM.
- We wrap the output of
paginate_links();
inside a<nav>
with the class of.pagination
. - We have to use an element selector to style the
<ul>
since.page-numbers
class is applied to both<ul>
and the element in<li>
(IE:.pagination ul
). - We have to use an element selector to style the
<li>
sincepaginate_links();
doesn't add any class to<li>
(IE:.pagination ul li
). - Since
.page-numbers
gets added to.dots
&.current
which are a<span>
we are using an overqualified selector (a.page-numbers
) to give appropriate styling (IE::hover
state) to only<a>
elements.
To make the pagination more accessible:
- Wrap
paginate_links();
inside a<nav>
element. - Add a descriptive
aria-label
to the<nav>
element. - If using only icons for
.next
and.prev
pagination elements addaria-hidden="true"
to the icon and add a.sr-only
text that describes the action.
Forms
Use .form-control
to style all input elements except where otherwise noted.
File
For file, use .form-control-file
.
NOTE: this is not a modifier of .form-control
.
Disabled forms
Add the disabled
attribute on an input to prevent user interactions and change the styling or add disabled
to a <fieldset>
to disable all fields.
NOTE: type="file"
and type="range"
don't have any special styling for disabled except the browser defaults.
Adding disabled
to every input example:
Adding disabled
to a <fieldset>
example:
Readonly
Use attr readonly
to disable interactions and change the style. Also use .form-control--text
to make a readonly
field look like plain text.
Checkbox and radio
Each checkbox and radio <input>
and <label>
pairing is wrapped in .form-check
.
Browsers that support appearance
property will get the styled checkbox and the ones that don't support it will get the default browser styled checkbox. Check this section in Internet Explorer 11 to se how the default fallback looks like.
Inline checkbox and radio
Inline checkbox and radios are not supported in Internet Explorer (bug). If you need that option to work in Internet Explorer 11 use the grid and .col-auto
to achieve a similar result or add min-width
to .form-check--inline
.
Checkbox and radio with a link
Useful for adding links to terms in checkbox and similar.
Additional helper elements
- Use
.form-block
for a wrapper for each input element that adds bottom margin. <label>
for input get's styled via element selector but add.form-label
for additional styling required for form validation.- Use
.form-text
for additional text under input elements for feedback or instruction for the user. - Hide
<label>
with.sr-only
to make it accessible. - You can also use Bootstrap spacing utility classes on labels or add additional elements you need to add.
Here is some text that is just a paragraph with a smaller bottom margin than default.
Enter a valid e-mail addressHere is some text that is just a paragraph.
Form validation
Add .is-valid
or .is-invalid
class to .form-block
.
NOTE: Requires all form elements to be wrapped in .form-block
because we are changing the appearance of some of the additional form elements based on the form field validation state.
Use the buttons bellow to check all the states.
Page navigation
NOTE: If you want your navigation to be at the top of the screen(fixed on the top), add the class .page-nav--sticky
. In that case, you must also add the attribute data-scroll-offset="#page-nav"
because the scroll-to script will then measure the height of the navigation itself.
About
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Company info
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Locations
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Brands
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Pills
Pills
.pill
Pills modifiers
.pill--sm
.pill--medium
.pill--bold
.pill--alpha
.pill--beta
.pill--gama
Pills with icon on left
Note: Regular pills require 24 sized icons and pills--sm
require 16 sized icons to display correctly. Icon sizes defined when fetching icons.
Map
This table shows the county ids and their names.
County ID | County name |
---|---|
zagreb-county | Zagreb County |
krapina-zagorje-county | Krapina Zagorje County |
sisak-moslavina-county | Sisak Moslavina County |
karlovac-county | Karlovac County |
varazdin-county | Varazdin County |
koprivnica-krizevci-county | Koprivnica Krizevci County |
bjelovar-bilogora-county | Bjelovar Bilogora County |
primorje-gorski-kotar-county | Primorje-Gorski Kotar |
lika-senj-county | Lika Senj County |
virovitica-podravina-county | Virovitica Podravina County |
pozega-slavonia-county | Pozega Slavonia County |
brod-posavina-county | Brod Posavina County |
zadar-county | Zadar County |
osijek-baranja-county | Osijek Baranja County |
sibenik-knin-county | Sibenik Knin County |
vukovar-srijem-county | Vukovar Srijem County |
split-dalmatia-county | Split Dalmatia County |
istria-county | Istria |
dubrovnik-neretva-county | Dubrovnik Neretva County |
medjimurje-county | Međimurje |
city-of-zagreb-county | City of Zagreb |
To use the map, call the component map
and pass it a array with the keys and values of the desired counties.
Banner
Default banner.
We use utility classes for spacing, sizing fonts and descriptions within the banner.
We also use the Boostrap grid if we need to center or move the content of the banner from the edge.
Tabs
We're using a modified version of Bootstrap tabs. The most notable change is that class names have been changed (both in CSS and JavaScript) to use BEM. One more difference is that we're not using navs component for tab controls but a separate component .tab-control
.
Use grid classes for layout in .tab-control
. Add .no-gutters
on .row
or you'll get gaps between .control__item
elements.
The tab you want to be visible on initial view has to have .active
class on both .tab-content__item
and .tab-control__item
.
NOTE: .tab-control
looks the same as underlined navigation full but it's not related to it in any way. We had to separate those components because the Bootstrap tabs JavaScript can't handle the markup that our navs component uses.
Fashioned at last into an arrowy shape, and welded by Perth to the shank, the steel soon pointed the end of the iron; and as the blacksmith was about giving the barbs their final heat, prior to tempering them, he cried to Ahab to place the water-cask near.
"No, no – no water for that; I want it of the true death-temper. Ahoy, there! Tashtego, Queequeg, Daggoo! What say ye, pagans! Will ye give me as much blood as will cover this barb?" holding it high up. A cluster of dark nods replied, Yes. Three punctures were made in the heathen flesh, and the White Whale’s barbs were then tempered.
"Ego non baptizo te in nomine patris, sed in nomine diaboli!" deliriously howled Ahab, as the malignant iron scorchingly devoured the baptismal blood.
Oh, lonely death on lonely life! Oh, now I feel my topmost greatness lies in my topmost grief. Ho, ho! from all your furthest bounds, pour ye now in, ye bold billows of my whole foregone life, and top this one piled comber of my death! Towards thee I roll, thou all-destroying but unconquering whale; to the last I grapple with thee; from hell’s heart I stab at thee; for hate’s sake I spit my last breath at thee. Sink all coffins and all hearses to one common pool! and since neither can be mine, let me then tow to pieces, while still chasing thee, though tied to thee, thou damned whale! Thus, I give up the spear!
Who told thee that?" cried Ahab; then pausing, "Aye, Starbuck; aye, my hearties all round; it was Moby Dick that dismasted me; Moby Dick that brought me to this dead stump I stand on now. Aye, aye," he shouted with a terrific, loud, animal sob, like that of a heart-stricken moose; "Aye, aye! it was that accursed white whale that razeed me; made a poor pegging lubber of me for ever and a day!" Then tossing both arms, with measureless imprecations he shouted out: "Aye, aye! and I’ll chase him round Good Hope, and round the Horn, and round the Norway Maelstrom, and round perdition’s flames before I give him up. And this is what ye have shipped for, men! to chase that white whale on both sides of land, and over all sides of earth, till he spouts black blood and rolls fin out. What say ye, men, will ye splice hands on it, now? I think ye do look brave.
Searchbox
Add a class .searchbox
to get a box with shadow and padding.
Example select:
Example select:
Scrollbar
Wrap elements within a class .scrollbar-container
to get custom scrollbar.
Wrap elements within a class .scrollbar-container--sm
to get small custom scrollbar.