Introduction
[CSS naming convention similar to Semantic UI. Not clearly defined yet, and our code ia not currently very consistent. We use the atomic design terminology. In addition we have modifier classes, utility classes (i.e. spacing classes), and theme classes (global on the html element, or only parts of a page).]
[[Principles (brand values, purposes, objectives). Identity (from design department). Style Guide (is just a coded version of the identity / design language) and Pattern library (and/or component library) (everything between base styles up to templates). <- technical and functional documentation.] [guidelines for language and overall communications style and policies, including social media.] <- here we overstep the boundaries of a design system.]
Browser support
Chrome | Edge | Firefox | Safari for macOS | Safari for iOS |
---|---|---|---|---|
49 (early 2016) | 15 (early 2017) | 62 (early 2020) | 11 (late 2017) | 11 (late 2017) |
Minimum browser support is dictated by the use of CSS variables, the ::selection
pseudo-element without prefixes, and the JavaScript keyword let
. Other features, like CSS filters, may be tested for, and so degrades well in browsers that don’t support them. Internet Explorer ceased development in 2013 and will never be supported.
Starter template
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="nb-NO" class="">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Vecora</title>
<base href="">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header id="header">
</header>
<main id="content" role="main">
</main>
<footer id="footer">
<!-- Sticks to the bottom automagically. -->
</footer>
<div class="cookie-message">
<button class="primary float-right">That's okey!</button>
<p>By using this website you accept that we use information capsules. Read more about how we handle your personal information in our <a href="#">privacy statement</a>.</p>
</div>
<script src="scripts.js"></script>
<script async defer src="//maps.googleapis.com/maps/api/js?key=AIzaSyDAC2otWTUAVKGqsOyNNOgztuH64LFBNQs&callback=Maps.init"></script>
</body>
</html>
BEM
8 point grid
We use the variable $unit
to set sizes and margins, etc. 1 unit = 8px. Half units may be used for UI design, and in other places where increments of 8px simply are too large.