2024-06-13 00:00:00 -04:00
|
|
|
/*
|
2024-07-11 21:05:34 -04:00
|
|
|
* Variables
|
2024-06-13 00:00:00 -04:00
|
|
|
*/
|
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
$font-heading: elvetica, Arial, sans-serif;
|
2024-06-13 00:00:00 -04:00
|
|
|
$font-body: Helvetica, Arial, sans-serif;
|
|
|
|
$font-size: 14pt;
|
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
$tooltip-dark-allow: false;
|
2024-06-13 00:00:00 -04:00
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
// ----------------------------------------------------------
|
2024-06-13 00:00:00 -04:00
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
@use 'sass:math';
|
2024-06-13 00:00:00 -04:00
|
|
|
|
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
// We recommend explicitly using the underscore when referring to pattern scss
|
|
|
|
// as you may have also created a version that compiles to css to display in
|
|
|
|
// your pattern.
|
2024-07-12 23:35:29 -04:00
|
|
|
@import "core";
|
2024-06-13 00:00:00 -04:00
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
@import "../pg/patterns/components/sticky-note-core/_sticky-note";
|
|
|
|
@import "../pg/patterns/components/tooltip-core/_tooltip";
|
2024-06-13 00:00:00 -04:00
|
|
|
@import "../pg/patterns/components/switch-core/_switch";
|
|
|
|
|
|
|
|
@import "../pg/patterns/layouts/breakpoints-core/_breakpoints";
|
|
|
|
@import "../pg/patterns/layouts/header-core/_header";
|
|
|
|
@import "../pg/patterns/layouts/tabs-core/_tabs";
|
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
@import "../pg/patterns/status-core/_status";
|
2024-06-13 00:00:00 -04:00
|
|
|
|
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
font-family: $font-body;
|
2024-07-11 21:05:34 -04:00
|
|
|
font-size: $font-size;
|
2024-06-13 00:00:00 -04:00
|
|
|
@include break(-md) {
|
|
|
|
font-size: calc($font-size + 2pt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-12 23:35:29 -04:00
|
|
|
@include core-colour-samples;
|
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
@include tooltip;
|
|
|
|
@include sticky-note;
|
2024-07-12 23:35:29 -04:00
|
|
|
@include status;
|
2024-06-13 00:00:00 -04:00
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
a.skip {
|
|
|
|
position: absolute;
|
|
|
|
left: -9999px;
|
|
|
|
}
|
2024-07-11 21:05:34 -04:00
|
|
|
|
2024-06-13 00:00:00 -04:00
|
|
|
.container {
|
|
|
|
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: auto repeat(2, 22rem) auto;
|
|
|
|
margin: 0 auto;
|
|
|
|
width: 100vw;
|
|
|
|
|
|
|
|
@include header;
|
|
|
|
|
|
|
|
nav {
|
2024-07-12 23:35:29 -04:00
|
|
|
background-color: var(--colour-blue);
|
2024-06-13 00:00:00 -04:00
|
|
|
grid-column: 2 / 4;
|
|
|
|
display: none;
|
2024-07-12 23:35:29 -04:00
|
|
|
|
2024-06-13 00:00:00 -04:00
|
|
|
ul {
|
|
|
|
margin: 1rem 0;
|
2024-07-12 23:35:29 -04:00
|
|
|
|
2024-06-13 00:00:00 -04:00
|
|
|
li {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
a {
|
2024-07-12 23:35:29 -04:00
|
|
|
color: var(--colour-white);
|
2024-06-13 00:00:00 -04:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
@include break(md-) {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
p.deprecated-switch {
|
|
|
|
grid-column: 2 / 4;
|
2024-07-12 23:35:29 -04:00
|
|
|
grid-row: 3;
|
2024-07-11 21:05:34 -04:00
|
|
|
text-align: right;
|
|
|
|
@include switch;
|
|
|
|
|
|
|
|
}
|
2024-06-13 00:00:00 -04:00
|
|
|
main {
|
2024-07-12 23:35:29 -04:00
|
|
|
display: block;
|
|
|
|
grid-column: 1 / -1;
|
2024-06-13 00:00:00 -04:00
|
|
|
grid-row: 4;
|
2024-07-12 23:35:29 -04:00
|
|
|
padding: 0 1rem;
|
|
|
|
|
2024-06-13 00:00:00 -04:00
|
|
|
@include break(-md) {
|
|
|
|
grid-row: 3;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2024-07-11 21:05:34 -04:00
|
|
|
|
|
|
|
@supports(grid-area: auto) {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1rem repeat(2, auto) 1rem;
|
|
|
|
@include break(md-) {
|
|
|
|
grid-template-columns: auto repeat(2, 22rem) auto;
|
|
|
|
}
|
|
|
|
}
|
2024-06-13 00:00:00 -04:00
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
grid-column: 2 / 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
article {
|
|
|
|
grid-column: 2 / 4;
|
|
|
|
margin-top: 2rem;
|
2024-07-12 23:35:29 -04:00
|
|
|
min-width: 0;
|
2024-06-13 00:00:00 -04:00
|
|
|
|
|
|
|
&.status-deprecated {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include tabs {
|
|
|
|
pre {
|
|
|
|
background-color: var(--colour-black-5);
|
|
|
|
font-size: .8rem;
|
2024-07-13 00:03:36 -04:00
|
|
|
code:not(.inline) {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2024-06-13 00:00:00 -04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
p.switch {
|
|
|
|
align-items: center;
|
|
|
|
display: grid;
|
|
|
|
grid-gap: .5rem;
|
|
|
|
grid-template-columns: max-content auto;
|
|
|
|
@include switch;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-11 21:05:34 -04:00
|
|
|
// keep your prism modules
|
2024-06-13 00:00:00 -04:00
|
|
|
@import "../../node_modules/prismjs/themes/prism";
|
|
|
|
@import "../../node_modules/prismjs/plugins/toolbar/prism-toolbar";
|
|
|
|
@import "../../node_modules/prismjs/plugins/line-numbers/prism-line-numbers";
|
|
|
|
|