homepage iniT
This commit is contained in:
Vendored
+351
@@ -0,0 +1,351 @@
|
||||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
||||
|
||||
/* Document
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Correct the line height in all browsers.
|
||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
*/
|
||||
|
||||
html {
|
||||
line-height: 1.15; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/* Sections
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the margin in all browsers.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the `main` element consistently in IE.
|
||||
*/
|
||||
|
||||
main {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the font size and margin on `h1` elements within `section` and
|
||||
* `article` contexts in Chrome, Firefox, and Safari.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in Firefox.
|
||||
* 2. Show the overflow in Edge and IE.
|
||||
*/
|
||||
|
||||
hr {
|
||||
box-sizing: content-box; /* 1 */
|
||||
height: 0; /* 1 */
|
||||
overflow: visible; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background on active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove the bottom border in Chrome 57-
|
||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: none; /* 1 */
|
||||
text-decoration: underline; /* 2 */
|
||||
text-decoration: underline dotted; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||
* all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the border on images inside links in IE 10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Change the font styles in all browsers.
|
||||
* 2. Remove the margin in Firefox and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 1 */
|
||||
line-height: 1.15; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the overflow in IE.
|
||||
* 1. Show the overflow in Edge.
|
||||
*/
|
||||
|
||||
button,
|
||||
input {
|
||||
/* 1 */
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||
* 1. Remove the inheritance of text transform in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
/* 1 */
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the inability to style clickable types in iOS and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner border and padding in Firefox.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the focus styles unset by the previous rule.
|
||||
*/
|
||||
|
||||
button:-moz-focusring,
|
||||
[type="button"]:-moz-focusring,
|
||||
[type="reset"]:-moz-focusring,
|
||||
[type="submit"]:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the padding in Firefox.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
padding: 0.35em 0.75em 0.625em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the text wrapping in Edge and IE.
|
||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||
* 3. Remove the padding so developers are not caught out when they zero out
|
||||
* `fieldset` elements in all browsers.
|
||||
*/
|
||||
|
||||
legend {
|
||||
box-sizing: border-box; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
display: table; /* 1 */
|
||||
max-width: 100%; /* 1 */
|
||||
padding: 0; /* 3 */
|
||||
white-space: normal; /* 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the default vertical scrollbar in IE 10+.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in IE 10.
|
||||
* 2. Remove the padding in IE 10.
|
||||
*/
|
||||
|
||||
[type="checkbox"],
|
||||
[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||
*/
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the odd appearance in Chrome and Safari.
|
||||
* 2. Correct the outline style in Safari.
|
||||
*/
|
||||
|
||||
[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
outline-offset: -2px; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||
* 2. Change font properties to `inherit` in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/* Interactive
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||
*/
|
||||
|
||||
details {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the correct display in all browsers.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Misc
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10+.
|
||||
*/
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
@mixin max-xs() {
|
||||
@media screen and (max-width: 400px) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin max-sm() {
|
||||
@media screen and (max-width: 600px) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin max-md() {
|
||||
@media screen and (max-width: 800px) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin max-lg() {
|
||||
@media screen and (max-width: 1000px) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin max-xl() {
|
||||
@media screen and (max-width: 1200px) {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// Colours
|
||||
//
|
||||
$color-bg: #efebe0;
|
||||
|
||||
$color-text: #2e2b26;
|
||||
$color-heading: #2e2b26;
|
||||
|
||||
$color-link: #8b4513;
|
||||
$color-link-active: #cd4416;
|
||||
|
||||
$color-code-text: #223244;
|
||||
$color-code-bg: #dadada;
|
||||
|
||||
$color-quote: #666;
|
||||
|
||||
//
|
||||
// Widths
|
||||
//
|
||||
$container-max-width: 120rem;
|
||||
$blogpost-width: 80rem;
|
||||
@@ -0,0 +1,84 @@
|
||||
@use "_vars.scss";
|
||||
@use "_responsive.scss";
|
||||
|
||||
*,
|
||||
*:after,
|
||||
*:before {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
font-size: 62.5%; // Set base to 10px
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
color: vars.$color-text;
|
||||
background-color: vars.$color-bg;
|
||||
|
||||
font-family: "Noto Sans Mono", monospace;
|
||||
font-size: 1.8em;
|
||||
font-weight: 400;
|
||||
|
||||
letter-spacing: 0.032em;
|
||||
line-height: 1.8em;
|
||||
|
||||
@include responsive.max-md() {
|
||||
font-size: 1.4em;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 0 auto;
|
||||
max-width: vars.$container-max-width;
|
||||
width: 100%;
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
margin-top: 1.6rem;
|
||||
margin-bottom: 2.4rem;
|
||||
}
|
||||
|
||||
.centered {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
//
|
||||
// Print
|
||||
//
|
||||
@media print {
|
||||
@page {
|
||||
size: auto;
|
||||
margin: 0;
|
||||
}
|
||||
nav,
|
||||
footer {
|
||||
display: none !important;
|
||||
}
|
||||
html {
|
||||
font-size: 36%;
|
||||
padding: 32px;
|
||||
}
|
||||
.content {
|
||||
margin-top: -24px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
@use "_vars.scss";
|
||||
@use "_responsive.scss";
|
||||
|
||||
.list {
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 4rem 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-direction: row-reverse;
|
||||
padding: 0.4rem 0;
|
||||
border-bottom: 1px solid #bbb;
|
||||
|
||||
span {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 20rem;
|
||||
margin-left: 3rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: vars.$color-text;
|
||||
line-height: 1.1;
|
||||
}
|
||||
}
|
||||
|
||||
@include responsive.max-md() {
|
||||
li {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
border-bottom: none;
|
||||
padding: 0.6rem 0;
|
||||
|
||||
span {
|
||||
margin-left: 0;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
@use "_vars.scss";
|
||||
@use "_responsive.scss";
|
||||
|
||||
.block-experience {
|
||||
h4 {
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 2.4rem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
@use "_vars.scss";
|
||||
@use "_responsive.scss";
|
||||
|
||||
//
|
||||
// Menu base
|
||||
//
|
||||
|
||||
.topnav {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.topnav-title {
|
||||
color: vars.$color-text;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.topnav-list {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
.topnav-link {
|
||||
color: vars.$color-text;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
//
|
||||
// Mobile menu
|
||||
//
|
||||
|
||||
.mobilemenu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@include responsive.max-md() {
|
||||
.mobilemenu {
|
||||
display: initial;
|
||||
color: vars.$color-text;
|
||||
}
|
||||
.topnav-list {
|
||||
display: none;
|
||||
gap: 0;
|
||||
}
|
||||
.topnav-list.navopen {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 60px;
|
||||
right: 20px;
|
||||
padding-left: 0 !important;
|
||||
|
||||
height: auto;
|
||||
text-align: right;
|
||||
background-color: #ddd;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.topnav-item {
|
||||
display: inline-block;
|
||||
border-top: solid 1px #999;
|
||||
min-width: 200px;
|
||||
padding: 12px 24px;
|
||||
}
|
||||
.topnav-item:first-of-type {
|
||||
border-top: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
@use "_vars.scss";
|
||||
@use "_responsive.scss";
|
||||
|
||||
article.blogpost {
|
||||
max-width: vars.$blogpost-width;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased !important;
|
||||
-moz-font-smoothing: antialiased !important;
|
||||
text-rendering: optimizelegibility !important;
|
||||
}
|
||||
|
||||
.post-content {
|
||||
margin-top: 64px;
|
||||
|
||||
img {
|
||||
width: 80%;
|
||||
margin-left: 10%;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@include responsive.max-md() {
|
||||
.post-content {
|
||||
margin-top: 36px;
|
||||
}
|
||||
.highlight {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.endofpost {
|
||||
max-width: 400px;
|
||||
margin: 3em auto 3.4em;
|
||||
display: block;
|
||||
height: 1px;
|
||||
border: 0;
|
||||
border-top: 1px solid #888;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
a[href^="#fn:"]:before {
|
||||
content: "[";
|
||||
}
|
||||
a[href^="#fn:"]:after {
|
||||
content: "]";
|
||||
}
|
||||
|
||||
.footnotes hr {
|
||||
height: 1px;
|
||||
border: 0;
|
||||
border-top: 1px solid #888;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
@use "_vars.scss";
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
td,
|
||||
th {
|
||||
text-align: left;
|
||||
border: 1px solid vars.$color-quote;
|
||||
padding: 0.8rem 1rem;
|
||||
font-size: 1.6rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
tr {
|
||||
&:first-child th {
|
||||
border-top: 0;
|
||||
}
|
||||
&:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
td:first-child,
|
||||
th:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
td:last-child,
|
||||
th:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
@use "sass:color";
|
||||
|
||||
@use "_vars.scss";
|
||||
@use "_responsive.scss";
|
||||
|
||||
//
|
||||
// Headings
|
||||
//
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
color: vars.$color-heading;
|
||||
font-weight: 600;
|
||||
margin: 3.2rem 0 1.4rem 0;
|
||||
letter-spacing: 0.024em;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.4em;
|
||||
font-weight: 700;
|
||||
}
|
||||
h2 {
|
||||
font-size: 2em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
h5 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
h6 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
@include responsive.max-md() {
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.8em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.4em;
|
||||
}
|
||||
h5 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
h6 {
|
||||
font-size: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Body text
|
||||
//
|
||||
|
||||
a {
|
||||
font-weight: 600;
|
||||
color: vars.$color-link;
|
||||
text-decoration: none;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
color: vars.$color-link-active;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 1.8rem 0;
|
||||
text-shadow: 0.5px 0.5px 0px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
blockquote:not(.alert) {
|
||||
border-left: 2px solid vars.$color-quote;
|
||||
padding-left: 1.6rem;
|
||||
font-style: italic;
|
||||
|
||||
p {
|
||||
color: vars.$color-quote;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// ALERT BLOCKQUOTES
|
||||
//
|
||||
|
||||
blockquote.alert {
|
||||
padding: 0;
|
||||
border: 2px solid vars.$color-quote;
|
||||
background: vars.$color-code-bg;
|
||||
border-radius: 1.4rem;
|
||||
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
|
||||
|
||||
margin: 1rem -3.2rem;
|
||||
|
||||
.alert-heading {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin: 0;
|
||||
background-color: vars.$color-quote;
|
||||
border-radius: 1.2rem 1.2rem 0 0;
|
||||
}
|
||||
|
||||
.alert-heading-emoji {
|
||||
margin: 0.4rem 0;
|
||||
width: 3.2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.alert-heading-text {
|
||||
margin: 0.4rem 0;
|
||||
}
|
||||
|
||||
> p {
|
||||
padding: 1.6rem 3.2rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@include responsive.max-md {
|
||||
margin: 1rem -1.6rem;
|
||||
.alert-heading-emoji {
|
||||
width: 2.8rem;
|
||||
}
|
||||
> p {
|
||||
padding: 1.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$alert-accents: (
|
||||
tip: #388e3c,
|
||||
note: #1976d2,
|
||||
info: #244c91,
|
||||
warning: #ffb700,
|
||||
caution: #ff7b00,
|
||||
danger: #d32f2f,
|
||||
);
|
||||
@each $name, $accent in $alert-accents {
|
||||
blockquote.alert-#{$name} {
|
||||
border: 2px solid color.mix(white, $accent, 70%);
|
||||
background: color.mix(white, $accent, 90%);
|
||||
|
||||
.alert-heading {
|
||||
background: color.mix(white, $accent, 70%);
|
||||
color: #222;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Code
|
||||
//
|
||||
|
||||
pre {
|
||||
padding: 2.4rem 2rem;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
margin: 2.4rem -2rem;
|
||||
|
||||
@include responsive.max-md() {
|
||||
margin: 2.4rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
color: vars.$color-code-text;
|
||||
background-color: vars.$color-code-bg;
|
||||
font-family: "Anonymous Pro", monospace;
|
||||
font-weight: 500;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
line-height: 1.6;
|
||||
|
||||
code {
|
||||
color: unset;
|
||||
background-color: unset;
|
||||
padding: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Start new code
|
||||
@use "normalize.scss";
|
||||
|
||||
@use "src/_vars.scss"; // Variables
|
||||
@use "src/base.scss"; // Base styles, including layout etc.
|
||||
@use "src/typography.scss"; // Typography setup
|
||||
|
||||
@use "src/navigation.scss"; // Navbar styling
|
||||
@use "src/table.scss"; // Tables styling
|
||||
@use "src/list.scss"; // Styles for list page
|
||||
@use "src/post.scss"; // Blogpost specific code
|
||||
|
||||
@use "src/misc.scss"; // Misc styling for specific blocks etc
|
||||
// End new code
|
||||
Reference in New Issue
Block a user