jekyll -> zola
This commit is contained in:
5
sass/style/_colours.scss
Normal file
5
sass/style/_colours.scss
Normal file
@ -0,0 +1,5 @@
|
||||
$background-color: rgb(12, 17, 20);
|
||||
$body-color: rgb(252, 252, 252);
|
||||
$heading-color: rgb(255, 182, 193);
|
||||
$link-color: rgb(252, 169, 184);
|
||||
$inl-code-color: rgb(165, 214, 255);
|
79
sass/style/article.scss
Normal file
79
sass/style/article.scss
Normal file
@ -0,0 +1,79 @@
|
||||
@import "_colours";
|
||||
|
||||
.article {
|
||||
p,
|
||||
li {
|
||||
a {
|
||||
font-weight: normal;
|
||||
text-decoration: underline;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
code {
|
||||
color: #a5d6ff;
|
||||
}
|
||||
}
|
||||
|
||||
picture img,
|
||||
p img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
code,
|
||||
pre {
|
||||
font-family: "Source Code Pro";
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 10px;
|
||||
overflow: auto;
|
||||
|
||||
mark {
|
||||
display: block;
|
||||
background-color: rgba(254, 252, 232, 0.9);
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
|
||||
td {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
td:nth-of-type(2) {
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
td:nth-of-type(1) {
|
||||
text-align: right;
|
||||
user-select: none;
|
||||
padding-right: 10px;
|
||||
border-right: 3px solid #c0c5ce;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.header-link {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
h1 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
@media screen and (max-width: 450px) {
|
||||
display: block;
|
||||
|
||||
.home-link {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.home-link {
|
||||
font-size: 0.5em;
|
||||
color: $body-color;
|
||||
}
|
||||
}
|
||||
}
|
93
sass/style/main.scss
Normal file
93
sass/style/main.scss
Normal file
@ -0,0 +1,93 @@
|
||||
@import "_colours";
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local(''),
|
||||
url('/fonts/source-code-pro-v22-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url('/fonts/source-code-pro-v22-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local(''),
|
||||
url('/fonts/source-code-pro-v22-latin-ext_latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url('/fonts/source-code-pro-v22-latin-ext_latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local(''),
|
||||
url('/fonts/source-code-pro-v22-latin-ext_latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url('/fonts/source-code-pro-v22-latin-ext_latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local(''),
|
||||
url('/fonts/source-code-pro-v22-latin-ext_latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url('/fonts/source-code-pro-v22-latin-ext_latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: $background-color;
|
||||
color: $body-color;
|
||||
padding-left: 5vw;
|
||||
padding-right: 5vw;
|
||||
padding-top: 5vh;
|
||||
font-family: 'Source Code Pro';
|
||||
font-size: 1.5rem;
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: $heading-color;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $link-color;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
li {
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
a.header-link {
|
||||
display: none;
|
||||
|
||||
img {
|
||||
height: 1.25rem;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
a.header-link, a.atom-link {
|
||||
padding-left: 10px;
|
||||
font-weight: normal;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
60
sass/style/sensor-watch.scss
Normal file
60
sass/style/sensor-watch.scss
Normal file
@ -0,0 +1,60 @@
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 30rem auto;
|
||||
grid-template-rows: auto;
|
||||
gap: 0;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.article {
|
||||
padding: 5rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.side {
|
||||
background-image: url(/images/sensor-watch/f91w-strap.svg);
|
||||
background-repeat: repeat-y;
|
||||
}
|
||||
|
||||
.side>svg {
|
||||
width: 30rem;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1500px) {
|
||||
.wrapper {
|
||||
grid-template-columns: 10rem auto;
|
||||
grid-template-rows: auto;
|
||||
}
|
||||
|
||||
.side>svg {
|
||||
width: 10rem;
|
||||
}
|
||||
|
||||
.article {
|
||||
padding-left: 3rem;
|
||||
padding-right: 1rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 800px) {
|
||||
.side {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
grid-template-columns: auto;
|
||||
grid-template-rows: auto;
|
||||
}
|
||||
|
||||
.article {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user