rorschach
This commit is contained in:
@@ -0,0 +1,185 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE.
|
||||
* See the following change record for more information,
|
||||
* https://www.drupal.org/node/3084859
|
||||
* @preserve
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Generic base elements.
|
||||
*/
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: metropolis, sans-serif;
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
line-height: 1.6875rem;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
color: #313637;
|
||||
background-color: #f7f9fa;
|
||||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='50' height='84' viewBox='0 0 50 84'%3e %3cpath opacity='0.05' fill='%230e6ba6' d='M25,61.7C25,68.5,19.4,74,12.5,74S0,68.5,0,61.7c0-5.7,3.9-9.6,7.4-12.9c2.3-2.2,4.5-4.4,5.1-6.8c0.7,2.4,2.8,4.6,5.1,6.8C21.1,52.2,25,56,25,61.7z M42.6,6.8c-2.3-2.2-4.5-4.4-5.1-6.8c-0.7,2.4-2.9,4.6-5.1,6.8C28.9,10.2,25,14,25,19.7C25,26.5,30.6,32,37.5,32S50,26.5,50,19.7C50,14,46.1,10.2,42.6,6.8z'/%3e%3c/svg%3e");
|
||||
background-position: top left; /* LTR */
|
||||
}
|
||||
|
||||
body.is-fixed {
|
||||
position: fixed;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
[dir="rtl"] body {
|
||||
background-position: top right;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0d77b5;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #2494db;
|
||||
}
|
||||
|
||||
a:focus {
|
||||
outline: solid 2px currentColor;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
button {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
img,
|
||||
video {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
audio {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
letter-spacing: -0.01em;
|
||||
font-size: 1.75rem;
|
||||
line-height: 2.25rem;
|
||||
}
|
||||
|
||||
@media (min-width: 43.75rem) {
|
||||
|
||||
h1 {
|
||||
font-size: 3.75rem;
|
||||
line-height: 4.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
letter-spacing: -0.01em;
|
||||
font-size: 1.5rem;
|
||||
line-height: 2.25rem;
|
||||
}
|
||||
|
||||
@media (min-width: 43.75rem) {
|
||||
|
||||
h2 {
|
||||
font-size: 2.25rem;
|
||||
line-height: 3.375rem;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.6875rem;
|
||||
}
|
||||
|
||||
@media (min-width: 43.75rem) {
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.6875rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1rem;
|
||||
line-height: 1.6875rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.125rem;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin-top: 1.125rem;
|
||||
margin-bottom: 1.125rem;
|
||||
color: #0d1214;
|
||||
font-family: metropolis, sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@media (min-width: 43.75rem) {
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin-top: 2.25rem;
|
||||
margin-bottom: 2.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
[dir="ltr"] ul {
|
||||
margin-left: 1.5em;
|
||||
}
|
||||
|
||||
[dir="rtl"] ul {
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
[dir="ltr"] ul {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
[dir="rtl"] ul {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
[dir="ltr"] ul {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
[dir="rtl"] ul {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-top: 0.25em;
|
||||
margin-bottom: 0.25em;
|
||||
list-style-type: disc;
|
||||
list-style-image: none;
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
/**
|
||||
* @file
|
||||
* Generic base elements.
|
||||
*/
|
||||
|
||||
@import "variables.pcss.css";
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 100%;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
line-height: var(--line-height-base);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
color: var(--color--gray-10);
|
||||
background-color: var(--color--gray-95);
|
||||
background-image: url("../../images/background.svg");
|
||||
background-position: top left; /* LTR */
|
||||
|
||||
&.is-fixed {
|
||||
position: fixed;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
[dir="rtl"] body {
|
||||
background-position: top right;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color--blue-20);
|
||||
|
||||
&:hover {
|
||||
color: var(--color--blue-50);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: solid 2px currentColor;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
img,
|
||||
video {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
audio {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
letter-spacing: -0.01em;
|
||||
font-size: 28px;
|
||||
line-height: var(--sp2);
|
||||
|
||||
@media (--md) {
|
||||
font-size: 60px;
|
||||
line-height: var(--sp4);
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
letter-spacing: -0.01em;
|
||||
font-size: 24px;
|
||||
line-height: var(--sp2);
|
||||
|
||||
@media (--md) {
|
||||
font-size: 36px;
|
||||
line-height: var(--sp3);
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 20px;
|
||||
line-height: var(--sp1-5);
|
||||
|
||||
@media (--md) {
|
||||
font-size: 24px;
|
||||
line-height: var(--sp2);
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 18px;
|
||||
line-height: var(--sp1-5);
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 16px;
|
||||
line-height: var(--sp1-5);
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 14px;
|
||||
line-height: var(--sp);
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin-block: var(--sp);
|
||||
color: var(--color--gray-0);
|
||||
font-family: var(--font-sans);
|
||||
font-weight: bold;
|
||||
|
||||
@media (--md) {
|
||||
margin-block: var(--sp2);
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-block-start: 0.25em;
|
||||
margin-block-end: 0.25em;
|
||||
margin-inline-start: 1.5em;
|
||||
margin-inline-end: 0;
|
||||
padding-inline-start: 0;
|
||||
list-style-type: disc;
|
||||
list-style-image: none;
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE.
|
||||
* See the following change record for more information,
|
||||
* https://www.drupal.org/node/3084859
|
||||
* @preserve
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Base Fonts.
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: metropolis;
|
||||
src:
|
||||
url("../../fonts/metropolis/Metropolis-Regular.woff2") format("woff2"),
|
||||
url("../../fonts/metropolis/Metropolis-Regular.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: metropolis;
|
||||
src:
|
||||
url("../../fonts/metropolis/Metropolis-Bold.woff2") format("woff2"),
|
||||
url("../../fonts/metropolis/Metropolis-Bold.woff") format("woff");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: metropolis;
|
||||
src:
|
||||
url("../../fonts/metropolis/Metropolis-SemiBold.woff2") format("woff2"),
|
||||
url("../../fonts/metropolis/Metropolis-SemiBold.woff") format("woff");
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* lora-regular - latin */
|
||||
|
||||
@font-face {
|
||||
font-family: Lora;
|
||||
src:
|
||||
local("Lora Regular"),
|
||||
local("Lora-Regular"),
|
||||
url("../../fonts/lora/lora-v14-latin-regular.woff2") format("woff2"),
|
||||
url("../../fonts/lora/lora-v14-latin-regular.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* lora-italic - latin */
|
||||
|
||||
@font-face {
|
||||
font-family: Lora;
|
||||
src:
|
||||
local("Lora Italic"),
|
||||
local("Lora-Italic"),
|
||||
url("../../fonts/lora/lora-v14-latin-italic.woff2") format("woff2"),
|
||||
url("../../fonts/lora/lora-v14-latin-italic.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* lora-700 - latin */
|
||||
|
||||
@font-face {
|
||||
font-family: Lora;
|
||||
src:
|
||||
local("Lora Bold"),
|
||||
local("Lora-Bold"),
|
||||
url("../../fonts/lora/lora-v14-latin-700.woff2") format("woff2"),
|
||||
url("../../fonts/lora/lora-v14-latin-700.woff") format("woff");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* @file
|
||||
* Base Fonts.
|
||||
*/
|
||||
|
||||
@import "variables.pcss.css";
|
||||
|
||||
@font-face {
|
||||
font-family: metropolis;
|
||||
src:
|
||||
url("../../fonts/metropolis/Metropolis-Regular.woff2") format("woff2"),
|
||||
url("../../fonts/metropolis/Metropolis-Regular.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: metropolis;
|
||||
src:
|
||||
url("../../fonts/metropolis/Metropolis-Bold.woff2") format("woff2"),
|
||||
url("../../fonts/metropolis/Metropolis-Bold.woff") format("woff");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: metropolis;
|
||||
src:
|
||||
url("../../fonts/metropolis/Metropolis-SemiBold.woff2") format("woff2"),
|
||||
url("../../fonts/metropolis/Metropolis-SemiBold.woff") format("woff");
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* lora-regular - latin */
|
||||
@font-face {
|
||||
font-family: Lora;
|
||||
src:
|
||||
local("Lora Regular"),
|
||||
local("Lora-Regular"),
|
||||
url("../../fonts/lora/lora-v14-latin-regular.woff2") format("woff2"),
|
||||
url("../../fonts/lora/lora-v14-latin-regular.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
/* lora-italic - latin */
|
||||
@font-face {
|
||||
font-family: Lora;
|
||||
src:
|
||||
local("Lora Italic"),
|
||||
local("Lora-Italic"),
|
||||
url("../../fonts/lora/lora-v14-latin-italic.woff2") format("woff2"),
|
||||
url("../../fonts/lora/lora-v14-latin-italic.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
/* lora-700 - latin */
|
||||
@font-face {
|
||||
font-family: Lora;
|
||||
src:
|
||||
local("Lora Bold"),
|
||||
local("Lora-Bold"),
|
||||
url("../../fonts/lora/lora-v14-latin-700.woff2") format("woff2"),
|
||||
url("../../fonts/lora/lora-v14-latin-700.woff") format("woff");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE.
|
||||
* See the following change record for more information,
|
||||
* https://www.drupal.org/node/3084859
|
||||
* @preserve
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Utility classes.
|
||||
*/
|
||||
|
||||
/*
|
||||
ie11-autorow
|
||||
|
||||
IE11 does not automatically place new rows, which leads to overlapping
|
||||
content. We can work around this (when we know that each grid item is
|
||||
going to span the full width) by setting each child to a new row.
|
||||
*/
|
||||
|
||||
.ie11-autorow > *:nth-child(1) {
|
||||
-ms-grid-row: 1;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(2) {
|
||||
-ms-grid-row: 2;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(3) {
|
||||
-ms-grid-row: 3;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(4) {
|
||||
-ms-grid-row: 4;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(5) {
|
||||
-ms-grid-row: 5;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(6) {
|
||||
-ms-grid-row: 6;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(7) {
|
||||
-ms-grid-row: 7;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(8) {
|
||||
-ms-grid-row: 8;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(9) {
|
||||
-ms-grid-row: 9;
|
||||
}
|
||||
|
||||
.ie11-autorow > *:nth-child(10) {
|
||||
-ms-grid-row: 10;
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* @file
|
||||
* Utility classes.
|
||||
*/
|
||||
|
||||
@import "../base/variables.pcss.css";
|
||||
|
||||
/*
|
||||
ie11-autorow
|
||||
|
||||
IE11 does not automatically place new rows, which leads to overlapping
|
||||
content. We can work around this (when we know that each grid item is
|
||||
going to span the full width) by setting each child to a new row.
|
||||
*/
|
||||
.ie11-autorow > * {
|
||||
&:nth-child(1) {
|
||||
-ms-grid-row: 1;
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
-ms-grid-row: 2;
|
||||
}
|
||||
|
||||
&:nth-child(3) {
|
||||
-ms-grid-row: 3;
|
||||
}
|
||||
|
||||
&:nth-child(4) {
|
||||
-ms-grid-row: 4;
|
||||
}
|
||||
|
||||
&:nth-child(5) {
|
||||
-ms-grid-row: 5;
|
||||
}
|
||||
|
||||
&:nth-child(6) {
|
||||
-ms-grid-row: 6;
|
||||
}
|
||||
|
||||
&:nth-child(7) {
|
||||
-ms-grid-row: 7;
|
||||
}
|
||||
|
||||
&:nth-child(8) {
|
||||
-ms-grid-row: 8;
|
||||
}
|
||||
|
||||
&:nth-child(9) {
|
||||
-ms-grid-row: 9;
|
||||
}
|
||||
|
||||
&:nth-child(10) {
|
||||
-ms-grid-row: 10;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* DO NOT EDIT THIS FILE.
|
||||
* See the following change record for more information,
|
||||
* https://www.drupal.org/node/3084859
|
||||
* @preserve
|
||||
*/
|
||||
|
||||
/*
|
||||
Media query breakpoints.
|
||||
Processed by postcss/postcss-custom-media.
|
||||
*/
|
||||
|
||||
/* Navigation related breakpoints */
|
||||
|
||||
/* Grid related breakpoints */
|
||||
|
||||
/* Grid shifts from 6 to 14 columns. */
|
||||
|
||||
/* Width of the entire grid maxes out. */
|
||||
|
||||
/*
|
||||
Custom CSS properties.
|
||||
|
||||
These are "compiled" by postcss/postcss-custom-properties for IE11 compatibility.
|
||||
*/
|
||||
|
||||
:root {
|
||||
|
||||
/* Typography */
|
||||
|
||||
/* Layout */
|
||||
|
||||
/* Drupal administrative toolbar heights and width. */
|
||||
|
||||
/*
|
||||
Grid helpers.
|
||||
|
||||
These variables help authors apply widths and negative margins to break items out of
|
||||
the grid, while still conforming to the larger grid system.
|
||||
|
||||
Note we cannot change the values of these custom properties within media queries,
|
||||
as they are processed by postcss/postcss-custom-properties (for IE11 compatibility),
|
||||
which does not support that functionality. Therefore, we need a separate custom
|
||||
property for each breakpoint. 😭
|
||||
*/
|
||||
|
||||
/* Approximate width of a scrollbar. Doesn't have to be perfect. */
|
||||
|
||||
/* Grid gap across various breakpoints. */
|
||||
|
||||
/* Column counts at various breakpoints. */
|
||||
|
||||
/* Count of grid-gaps at various breakpoints. */
|
||||
|
||||
/* Width of the entire grid at various breakpoints. */
|
||||
|
||||
/* Width of a grid column at various breakpoints */
|
||||
|
||||
/* Layout helpers */
|
||||
|
||||
/* Black */
|
||||
|
||||
/* Black 1 */
|
||||
|
||||
/* Black 2 */
|
||||
|
||||
/* Black 3 */
|
||||
|
||||
/* Gray Dark */
|
||||
|
||||
/* Gray Dark 2 */
|
||||
|
||||
/* Gray medium */
|
||||
|
||||
/* Gray medium 1 */
|
||||
|
||||
/* Gray medium 2 */
|
||||
|
||||
/* Black 4 */
|
||||
|
||||
/* Gray light */
|
||||
|
||||
/* Gray light 1 */
|
||||
|
||||
/* Gray light 2 */
|
||||
|
||||
/* Blue dark */
|
||||
|
||||
/* Blue dark 2 */
|
||||
|
||||
/* Blue medium */
|
||||
|
||||
/* Blue bright */
|
||||
|
||||
/* Blue bright 5 */
|
||||
|
||||
/* White */
|
||||
|
||||
/* Red */
|
||||
|
||||
/* Gold */
|
||||
|
||||
/* Green */
|
||||
|
||||
/* Header */
|
||||
|
||||
/* Width of slide out navigation */
|
||||
|
||||
/* Border radius */
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
Media query breakpoints.
|
||||
Processed by postcss/postcss-custom-media.
|
||||
*/
|
||||
|
||||
@custom-media --sm (min-width: 500px);
|
||||
@custom-media --md (min-width: 700px);
|
||||
@custom-media --lg (min-width: 1000px);
|
||||
@custom-media --xl (min-width: 1300px);
|
||||
|
||||
/* Navigation related breakpoints */
|
||||
@custom-media --nav-md (min-width: 500px);
|
||||
@custom-media --nav (min-width: 1200px);
|
||||
@custom-media --max-nav (max-width: 1200px);
|
||||
|
||||
/* Grid related breakpoints */
|
||||
@custom-media --grid-md (min-width: 700px); /* Grid shifts from 6 to 14 columns. */
|
||||
@custom-media --grid-max (min-width: 1440px); /* Width of the entire grid maxes out. */
|
||||
|
||||
/*
|
||||
Custom CSS properties.
|
||||
|
||||
These are "compiled" by postcss/postcss-custom-properties for IE11 compatibility.
|
||||
*/
|
||||
:root {
|
||||
--font-sans: "metropolis", sans-serif;
|
||||
--font-serif: "Lora", "georgia", serif;
|
||||
|
||||
/* Typography */
|
||||
--font-size-base: 16px;
|
||||
--font-size-l: 18px;
|
||||
--font-size-s: 14px;
|
||||
--font-size-xs: 13px;
|
||||
--font-size-xxs: 12px;
|
||||
--line-height-base: 27px;
|
||||
--line-height-s: 18px;
|
||||
|
||||
/* Layout */
|
||||
--max-width: 1350px;
|
||||
--max-bg-color: 1570px;
|
||||
--sp: 18px;
|
||||
--content-left: 90px;
|
||||
--container-padding: var(--sp);
|
||||
--container-padding-nav: var(--sp2);
|
||||
--site-header-height-wide: var(--sp10);
|
||||
|
||||
/* Drupal administrative toolbar heights and width. */
|
||||
--toolbar-height: 39px;
|
||||
--toolbar-tray-height: 40px;
|
||||
--toolbar-tray-vertical-width: 239px;
|
||||
|
||||
/*
|
||||
Grid helpers.
|
||||
|
||||
These variables help authors apply widths and negative margins to break items out of
|
||||
the grid, while still conforming to the larger grid system.
|
||||
|
||||
Note we cannot change the values of these custom properties within media queries,
|
||||
as they are processed by postcss/postcss-custom-properties (for IE11 compatibility),
|
||||
which does not support that functionality. Therefore, we need a separate custom
|
||||
property for each breakpoint. 😭
|
||||
*/
|
||||
|
||||
--scrollbar-width: 15px; /* Approximate width of a scrollbar. Doesn't have to be perfect. */
|
||||
|
||||
/* Grid gap across various breakpoints. */
|
||||
--grid-gap: var(--sp);
|
||||
--grid-gap--md: var(--sp2);
|
||||
--grid-gap--lg: var(--grid-gap--md);
|
||||
--grid-gap--nav: var(--grid-gap--md);
|
||||
--grid-gap--max: var(--grid-gap--md);
|
||||
|
||||
/* Column counts at various breakpoints. */
|
||||
--grid-col-count: 6;
|
||||
--grid-col-count--md: 14;
|
||||
--grid-col-count--lg: var(--grid-col-count--md);
|
||||
--grid-col-count--nav: var(--grid-col-count--md);
|
||||
--grid-col-count--max: var(--grid-col-count--md);
|
||||
|
||||
/* Count of grid-gaps at various breakpoints. */
|
||||
--grid-gap-count: calc(var(--grid-col-count) - 1);
|
||||
--grid-gap-count--md: calc(var(--grid-col-count--md) - 1);
|
||||
--grid-gap-count--lg: var(--grid-gap-count--md);
|
||||
--grid-gap-count--nav: var(--grid-gap-count--md);
|
||||
--grid-gap-count--max: var(--grid-gap-count--md);
|
||||
|
||||
/* Width of the entire grid at various breakpoints. */
|
||||
--grid-full-width: calc(100vw - var(--sp2));
|
||||
--grid-full-width--md: var(--grid-full-width);
|
||||
--grid-full-width--lg: calc(var(--grid-full-width) - var(--scrollbar-width));
|
||||
--grid-full-width--nav: calc(100vw - var(--scrollbar-width) - var(--content-left) - var(--sp4));
|
||||
--grid-full-width--max: calc(var(--max-width) - var(--sp4));
|
||||
|
||||
/* Width of a grid column at various breakpoints */
|
||||
--grid-col-width: calc((var(--grid-full-width) - (var(--grid-gap-count) * var(--grid-gap))) / var(--grid-col-count));
|
||||
--grid-col-width--md: calc((var(--grid-full-width--md) - (var(--grid-gap-count--md) * var(--grid-gap--md))) / var(--grid-col-count--md));
|
||||
--grid-col-width--lg: calc((var(--grid-full-width--lg) - (var(--grid-gap-count--lg) * var(--grid-gap--lg))) / var(--grid-col-count--lg));
|
||||
--grid-col-width--nav: calc((var(--grid-full-width--nav) - (var(--grid-gap-count--nav) * var(--grid-gap--nav))) / var(--grid-col-count--nav));
|
||||
--grid-col-width--max: calc((var(--grid-full-width--max) - (var(--grid-gap-count--max) * var(--grid-gap--max))) / var(--grid-col-count--max));
|
||||
|
||||
/* Layout helpers */
|
||||
--sp0-25: calc(0.25 * var(--sp));
|
||||
--sp0-5: calc(0.5 * var(--sp));
|
||||
--sp0-75: calc(0.75 * var(--sp));
|
||||
--sp1: calc(1 * var(--sp));
|
||||
--sp1-5: calc(1.5 * var(--sp));
|
||||
--sp2: calc(2 * var(--sp));
|
||||
--sp2-5: calc(2.5 * var(--sp));
|
||||
--sp3: calc(3 * var(--sp));
|
||||
--sp4: calc(4 * var(--sp));
|
||||
--sp5: calc(5 * var(--sp));
|
||||
--sp6: calc(6 * var(--sp));
|
||||
--sp7: calc(7 * var(--sp));
|
||||
--sp8: calc(8 * var(--sp));
|
||||
--sp9: calc(9 * var(--sp));
|
||||
--sp10: calc(10 * var(--sp));
|
||||
--sp11: calc(11 * var(--sp));
|
||||
--sp12: calc(12 * var(--sp));
|
||||
--color--black: #000; /* Black */
|
||||
--color--gray-0: #0d1214; /* Black 1 */
|
||||
--color--gray-5: #0c0d0e;
|
||||
--color--gray-8: #171e23;
|
||||
--color--gray-10: #313637; /* Black 2 */
|
||||
--color--gray-20: #6e7172; /* Black 3 */
|
||||
--color--gray-25: #5d7585; /* Gray Dark */
|
||||
--color--gray-28: #7d919d; /* Gray Dark 2 */
|
||||
--color--gray-30: #7e96a7; /* Gray medium */
|
||||
--color--gray-40: #98abb9; /* Gray medium 1 */
|
||||
--color--gray-45: #afb8be; /* Gray medium 2 */
|
||||
--color--gray-50: #9ea0a1; /* Black 4 */
|
||||
--color--gray-70: #d7e1e8; /* Gray light */
|
||||
--color--gray-75: #e3e3e5;
|
||||
--color--gray-80: #e7edf1; /* Gray light 1 */
|
||||
--color--gray-90: #f1f4f7;
|
||||
--color--gray-95: #f7f9fa; /* Gray light 2 */
|
||||
--color--blue-10: #0f6292;
|
||||
--color--blue-20: #0d77b5; /* Blue dark */
|
||||
--color--blue-30: #3d92c4; /* Blue dark 2 */
|
||||
--color--blue-50: #2494db; /* Blue medium */
|
||||
--color--blue-70: #53b0eb; /* Blue bright */
|
||||
--color--blue-90: #ddeffb; /* Blue bright 5 */
|
||||
--color--white: #fff; /* White */
|
||||
--color--red: #e33f1e; /* Red */
|
||||
--color--gold: #fdca40; /* Gold */
|
||||
--color--green: #3fa21c; /* Green */
|
||||
|
||||
/* Header */
|
||||
--header-height-wide-when-fixed: calc(6 * var(--sp));
|
||||
|
||||
/* Width of slide out navigation */
|
||||
--mobile-nav-width: 500px;
|
||||
|
||||
/* Border radius */
|
||||
--border-radius: 3px;
|
||||
}
|
||||
Reference in New Issue
Block a user