resilien/assets/styles/main.sass

382 lines
7.9 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
2022-02-07 16:58:34 +01:00
$layout-size: 960px
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-07 16:58:34 +01:00
$color-tertiary: #A61A07
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}
2022-02-07 16:58:34 +01:00
--color-headline: var(--color-highlight)
--color-paragraph: var(--color-main)
2022-02-04 15:59:24 +01:00
--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)
2022-02-07 16:58:34 +01:00
--color-card-button-text: #{$color-lightest}
2022-02-04 15:59:24 +01:00
--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)
2022-02-07 16:58:34 +01:00
.card, .cards > *, .footnotes
2022-02-04 15:59:24 +01:00
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
2022-02-07 16:58:34 +01:00
--color-link: var(--color-secondary-link)
--color-headline: var(--color-secondary-headline)
2022-02-04 15:59:24 +01:00
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-07 16:58:34 +01:00
.card, .cards > *, .footnotes
2022-02-04 15:59:24 +01:00
color: var(--color-secondary-card-paragraph)
background: var(--color-secondary-card-background)
2022-02-07 16:58:34 +01:00
border-radius: var(--border-radius)
2022-02-04 15:59:24 +01:00
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-07 16:58:34 +01:00
// HTML TAG
html
font-size: 1.25rem
line-height: $line-height
2022-02-04 18:14:17 +01:00
2021-10-21 22:34:05 +02:00
body
2022-02-04 15:59:24 +01:00
@include theme
@include theme-primary
2022-02-07 16:58:34 +01:00
p, li
line-height: 1.6
2022-02-04 15:59:24 +01:00
body
2022-02-07 16:58:34 +01:00
--tile: 2rem
2021-10-22 16:43:20 +02:00
--border-style: dashed
--border-size: 4px
2022-02-07 16:58:34 +01:00
--border-radius: calc(var(--tile)/2)
2021-10-22 16:43:20 +02:00
--link-style: dotted
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-07 16:58:34 +01:00
h1
margin: 0 auto calc(var(--tile)*2)
padding: calc(var(--tile)*2.5) 0 0
text-align: center
2022-02-04 18:14:17 +01:00
2022-02-07 16:58:34 +01:00
h2
margin: 0 auto calc(var(--tile)*1.5)
padding: calc(var(--tile)*2) 0 0
2022-02-01 12:12:58 +01:00
2022-02-07 16:58:34 +01:00
h3
margin: 0 auto var(--tile)
padding: calc(var(--tile)*1.5) 0 0
2021-10-21 22:34:05 +02:00
2022-02-07 16:58:34 +01:00
h1 + h2, h2 + h3, h3 + h4
padding-top: 0
2022-01-14 18:13:46 +01:00
2022-02-07 16:58:34 +01:00
a
text-decoration: none
border-bottom: 2px var(--link-style)
&:hover
border-bottom: 2px solid
&:active, &:visited
border-bottom: 2px dashed
a[href^="http"]::after
content: "\2197"
font-size: .8rem
display: inline-block
position: relative
margin-left: .2em
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
2022-02-07 16:58:34 +01:00
img
max-width: 100%
@media screen and (max-width: $size-small)
max-width: calc(100% + 1rem)
margin-left: -.5rem
2021-10-22 16:43:20 +02:00
2022-02-07 16:58:34 +01:00
hr
border: 0
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)
sup
vertical-align: top
position: relative
top: -0.3em
sub
vertical-align: bottom
position: relative
bottom: -0.3em
2022-02-07 16:58:34 +01:00
.theme-primary
@include theme-primary
2021-10-22 16:43:20 +02:00
2022-02-07 16:58:34 +01:00
.theme-secondary
@include theme-secondary
2022-01-14 18:29:38 +01:00
2022-02-07 16:58:34 +01:00
.half
max-width: 50%
margin: 0 auto
2021-10-22 16:43:20 +02:00
2022-02-07 16:58:34 +01:00
.center
text-align: center
2021-10-21 22:34:05 +02:00
2022-02-07 16:58:34 +01:00
.header
justify-content: space-between
.title
font-size: 2.25rem
font-weight: 700
margin: 0
padding: 0
a
border: none
2021-10-22 16:43:20 +02:00
text-align: center
2022-02-07 16:58:34 +01:00
img
height: 120px
max-width: 100%
margin: 0 auto
@media screen and (max-width: $size-small)
flex-direction: column
justify-content: space-around
.title
a
display: block
width: 100%
.menu
ul
margin: 0
padding: 0
list-style-type: none
2021-10-21 22:34:05 +02:00
li
2022-02-07 16:58:34 +01:00
padding: 0
margin-top: .3rem
2021-10-21 22:34:05 +02:00
2022-02-07 16:58:34 +01:00
a
padding: .3rem calc(var(--tile)/4)
2021-10-21 22:34:05 +02:00
2021-10-22 16:43:20 +02:00
@media screen and (max-width: $size-small)
2022-02-07 16:58:34 +01:00
ul
display: flex
flex-direction: row-reverse
2021-10-22 16:43:20 +02:00
li
2022-02-07 16:58:34 +01:00
display: inline
margin: var(--tile) auto
2021-10-22 16:43:20 +02:00
.quote
border: var(--border-size) var(--border-style) var(--color-highlight)
2022-02-07 16:58:34 +01:00
border-radius: var(--border-radius)
2021-10-22 16:43:20 +02:00
padding: var(--tile)
margin: calc(1.5 * var(--tile)) 0
position: relative
text-align: center
h2
margin: 0
2022-02-07 16:58:34 +01:00
padding: 0
2021-10-22 16:43:20 +02:00
strong
font-size: 130%
2021-10-21 22:34:05 +02:00
2022-02-07 16:58:34 +01:00
.content
max-width: $layout-size
padding: var(--tile)
margin: 0 auto
.blogDate:first-child + h1
padding-top: var(--tile)
h1:first-child
padding-top: 0
.quote:first-child
margin-top: 0
2022-02-10 08:59:07 +01:00
2022-02-08 22:35:10 +01:00
.cards
display: grid
grid-template-columns: 1fr 1fr
column-gap: var(--tile)
row-gap: var(--tile)
2022-02-10 08:59:07 +01:00
margin: var(--tile) 0
2022-02-08 22:35:10 +01:00
padding: 0
list-style-type: none
@media screen and (max-width: 800px)
grid-template-columns: 1fr
.cards > *, .card
padding: calc(var(--tile))
border-radius: var(--border-radius)
header
display: grid
column-gap: 1rem
grid-template-columns: 70px auto
align-items: center
margin-bottom: 1rem
p
display: inline-block
img
width: 70px
height: 70px
p, h1, h2, h3
margin: 0
padding: 0
2022-02-10 08:59:07 +01:00
text-align: left
2022-02-08 22:35:10 +01:00
@media screen and (max-width: 800px)
text-align: center
2022-01-19 10:20:49 +01:00
2022-02-01 10:56:05 +01:00
.footnotes
font-size: .8rem
2022-02-07 16:58:34 +01:00
padding: var(--tile)
2022-02-08 22:36:45 +01:00
margin-top: calc(var(--tile)*2)
2022-02-07 16:58:34 +01:00
hr
border: none
margin: 0
2022-02-01 10:56:05 +01:00
p
margin: 0
2022-02-07 16:58:34 +01:00
.footer
font-size: 0.8rem
padding-bottom: calc(var(--tile)/2)
font-family: monospace
line-height: 1.2
@media screen and (max-width: $size-small)
.cell, .cell.-right
text-align: center
flex: 0 0 100%
padding-bottom: calc(var(--tile)/2)
ul + ul
border-top: 2px dotted
padding-top: var(--tile)
margin-top: var(--tile)
.blogDate
font-style: italic
font-size: 0.9rem
display: block
margin-top: 1.5rem
text-align: center
2021-10-21 22:34:05 +02:00
// Grid
.grid { display: flex; flex-wrap: wrap; }
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"