resilien/assets/styles/main.sass

279 lines
6.2 KiB
Sass
Raw Normal View History

2022-01-18 09:30:56 +01:00
$line-height: 1.15
2021-10-22 17:05:23 +02:00
$size-small: 600px
2021-10-22 16:43:20 +02:00
2022-01-18 09:30:56 +01:00
html
font-size: 1.25rem
line-height: $line-height
p, li
line-height: 1.4
2021-10-21 22:34:05 +02:00
2022-02-04 15:59:24 +01:00
// COLOR
$color-darkest: #001e1d
$color-darken: #0f3433
$color-dark: #004643
$color-main: #abd1c6
$color-light: #e8e4e6
$color-lightest: #fffffe
$color-secondary: #f9bc60
2022-02-04 18:14:17 +01:00
$color-tertiary: #A91804
2022-02-04 15:59:24 +01:00
@mixin theme
// https://www.happyhues.co/palettes/10
--color-stroke: #{$color-darkest}
--color-main: #{$color-light}
--color-highlight: #{$color-secondary}
--color-secondary: #{$color-main}
--color-tertiary: #{$color-tertiary}
--color-background: #{$color-dark}
--color-headline: #{$color-lightest}
--color-paragraph: var(--color-secondary)
--color-link: var(--color-highlight)
--color-button: var(--color-highlight)
--color-button-text: var(--color-stroke)
--color-card-background: var(--color-main)
--color-card-headline: var(--color-stroke)
--color-card-paragraph: #{$color-darken}
--color-card-link: var(--color-background)
--color-card-button: var(--color-background)
--color-card-button-text: var(--color-headline)
--color-secondary-background: var(--color-secondary)
2022-02-04 18:14:17 +01:00
--color-secondary-headline: var(--color-stroke)
2022-02-04 15:59:24 +01:00
--color-secondary-paragraph: #{$color-darken}
2022-02-04 18:14:17 +01:00
--color-secondary-link: var(--color-tertiary)
2022-02-04 15:59:24 +01:00
--color-secondary-button: var(--color-highlight)
--color-secondary-button-text: var(--color-stroke)
--color-secondary-card-background: var(--color-background)
--color-secondary-card-headline: var(--color-headline)
--color-secondary-card-paragraph: var(--color-paragraph)
--color-secondary-card-link: var(--color-link)
--color-secondary-card-button: var(--color-button)
--color-secondary-card-button-text: var(--color-button-text)
@mixin theme-primary
color: var(--color-paragraph)
background: var(--color-background)
h1, h2, h3, h4, h5, h6
color: var(--color-headline)
button, .button
background: var(--color-button)
color: var(--color-button-text)
a
color: var(--color-link)
.card, .cards > *
color: var(--color-card-paragraph)
background: var(--color-card-background)
h1, h2, h3, h4, h5, h6
color: var(--color-card-headline)
button, .button
background: var(--color-card-button)
color: var(--color-card-button-text)
a
color: var(--color-card-link)
2022-02-04 18:14:17 +01:00
.quote
color: var(--color-paragraph)
h1, h2, h3, h4, h5, h6
color: var(--color-paragraph)
strong
color: var(--color-link)
2022-02-04 15:59:24 +01:00
@mixin theme-secondary
color: var(--color-secondary-paragraph)
background: var(--color-secondary-background)
h1, h2, h3, h4, h5, h6
color: var(--color-secondary-headline)
button, .button
background: var(--color-secondary-button)
color: var(--color-secondary-button-text)
a
color: var(--color-secondary-link)
2022-02-04 18:14:17 +01:00
.card, .cards > *
2022-02-04 15:59:24 +01:00
color: var(--color-secondary-card-paragraph)
background: var(--color-secondary-card-background)
h1, h2, h3, h4, h5, h6
color: var(--color-secondary-card-headline)
button, .button
background: var(--color-secondary-card-button)
color: var(--color-secondary-card-button-text)
a
color: var(--color-secondary-card-link)
2022-02-04 18:14:17 +01:00
svg
height: 120px
.st0
fill: var(--color-paragraph)
.st1
fill: var(--color-link)
2021-10-21 22:34:05 +02:00
body
2022-02-04 15:59:24 +01:00
@include theme
@include theme-primary
.theme-secondary
@include theme-secondary
.card, .cards > *
padding: 1rem
margin: 1rem
2021-10-22 16:43:20 +02:00
2022-02-04 15:59:24 +01:00
body
2021-10-22 16:43:20 +02:00
--border-style: dashed
--border-size: 4px
--link-style: dotted
--tile: 2rem
2022-01-18 09:30:56 +01:00
font-size: 1.125rem
font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"
2022-02-04 15:59:24 +01:00
2022-02-04 18:14:17 +01:00
margin: 0
padding: 0
overflow-y: scroll
2021-10-22 16:43:20 +02:00
2021-10-21 22:34:05 +02:00
@media screen and (max-width: $size-small)
2021-10-22 16:43:20 +02:00
--border-size: 2px
--tile: 1rem
2022-01-18 09:30:56 +01:00
font-size: .9rem
2021-10-22 16:43:20 +02:00
2022-02-04 18:14:17 +01:00
.content
max-width: 800px
padding: var(--tile)
margin: 0 auto
2022-02-01 12:12:58 +01:00
img
max-width: 100%
@media screen and (max-width: $size-small)
max-width: calc(100% + 1rem)
margin-left: -.5rem
2021-10-21 22:34:05 +02:00
hr
border: 0
2021-10-22 16:43:20 +02:00
border-bottom: var(--border-size) var(--border-style) var(--color-highlight)
margin: var(--tile) auto
@media screen and (max-width: $size-small)
margin: calc(var(--tile)*2) calc(var(--tile)*-1)
2021-10-21 22:34:05 +02:00
2022-01-14 18:13:46 +01:00
.center
text-align: center
2022-01-18 09:30:56 +01:00
p + ol, p + ul
2021-10-21 22:34:05 +02:00
margin: 0
2022-01-18 09:30:56 +01:00
> li:first-child
padding-top: 0
2021-10-21 22:34:05 +02:00
2022-01-14 18:29:08 +01:00
ol, ul
2022-01-18 09:30:56 +01:00
padding-left: 1.2rem
2022-01-14 18:29:08 +01:00
2022-01-14 18:14:06 +01:00
li
padding: .3rem 0
2022-01-18 09:30:56 +01:00
ul.no-style
margin: 0
padding: 0
list-style-type: none
li
padding: 0
line-height: $line-height
2021-10-22 16:43:20 +02:00
a
text-decoration: underline var(--link-style)
&:hover
text-decoration: underline
.header .title
font-size: 2.25rem
font-weight: 700
margin: 1.5rem 0
2021-10-22 16:43:20 +02:00
h2
margin: calc(var(--tile)*1.5) auto
h3
// display: inline-block
margin: calc(var(--tile)*1.5) auto var(--tile)
2022-01-14 18:29:38 +01:00
.frame
border: var(--border-size) var(--border-style) var(--color-highlight)
2021-10-22 16:43:20 +02:00
padding: var(--tile)
2021-10-21 22:34:05 +02:00
.footer
font-size: 0.8rem
2021-10-22 17:05:23 +02:00
padding-bottom: calc(var(--tile)/2)
2021-10-21 22:34:05 +02:00
2021-10-22 16:43:20 +02:00
@media screen and (max-width: $size-small)
.cell, .cell.-right
text-align: center
flex: 0 0 100%
2021-10-22 17:05:23 +02:00
padding-bottom: calc(var(--tile)/2)
2021-10-22 16:43:20 +02:00
.flex
--margin-tile: calc(var(--tile)/2)
margin: calc(var(--margin-tile) * -1)
2021-10-21 22:34:05 +02:00
padding: 0
list-style-type: none
2021-10-22 16:43:20 +02:00
width: calc(100% + 2 * var(--margin-tile))
2021-10-21 22:34:05 +02:00
display: flex
flex-wrap: wrap
li
text-align: center
2021-10-22 16:43:20 +02:00
padding: var(--margin-tile)
flex: 0 0 50%
2021-10-21 22:34:05 +02:00
box-sizing: border-box
img
max-width: 100%
width: 40%
2021-10-22 16:43:20 +02:00
@media screen and (max-width: $size-small)
margin: 0
width: 100%
li
flex: 0 0 100%
.quote
border: var(--border-size) var(--border-style) var(--color-highlight)
padding: var(--tile)
margin: calc(1.5 * var(--tile)) 0
position: relative
text-align: center
h2
margin: 0
strong
font-size: 130%
2021-10-21 22:34:05 +02:00
2022-01-19 10:20:49 +01:00
.blogDate
font-style: italic
font-size: 0.9rem
display: block
margin-top: 1.5rem
2022-02-01 10:56:05 +01:00
.footnotes
font-size: .8rem
p
margin: 0
2021-10-21 22:34:05 +02:00
// Grid
.grid { display: flex; flex-wrap: wrap; }
.grid.\-middle { align-items: center; }
2021-10-22 16:43:20 +02:00
.grid.\-bottom { align-items: end; }
2021-10-21 22:34:05 +02:00
.cell { flex: 1; box-sizing: border-box; }
.cell.\-left { text-align: left ;}
.cell.\-right { text-align: right; }
@import "../../themes/hugo-theme-lowtech/assets/styles/obfuscates"