brainbaking/themes/brainbaking-minimal/assets/sass/_brainbaking.sass

288 lines
4.7 KiB
Sass
Raw Normal View History

2020-05-27 21:20:01 +02:00
html body
2020-05-28 09:16:04 +02:00
font-family: $font-stack
html, body
2020-05-29 17:39:33 +02:00
scroll-behavior: smooth
font-size: 1.0rem
@media (min-width: 768px)
font-size: 1.05rem
@media (min-width: 960px)
font-size: 1.1rem
2022-10-22 16:06:25 +02:00
#logopath
fill: $accent
fill-opacity: 1
stroke: $accent
stroke-width: 2px
#logobounds
fill: lighten($accent, 50%)
fill-opacity: 0
stroke: $accent
stroke-width: 5
stroke-opacity: 1
2020-05-29 17:39:33 +02:00
pre
code
font-size: 0.9rem
2020-05-27 21:20:01 +02:00
2020-05-28 09:16:04 +02:00
body
2020-05-29 17:39:33 +02:00
margin: 0
min-height: calc(100vh - 55px)
2020-05-29 17:39:33 +02:00
color: #333
padding-top: 55px
display: flex
text-align: center
flex-direction: column
nav, footer
font-size: 0.85rem
z-index: 9
2020-05-29 17:39:33 +02:00
2020-12-30 09:31:53 +01:00
.support
font-size: 1rem
2020-12-30 15:23:14 +01:00
noscript
border-left: 5px solid darkred
padding: 0.5rem
2020-12-30 09:31:53 +01:00
.avatar
float: right
margin-top: 0rem
margin-left: 1.5rem
img
border-radius: 50%
2020-05-27 21:20:01 +02:00
2020-05-28 09:16:04 +02:00
.copyright
margin: 15px 0
2020-05-27 21:20:01 +02:00
ul
list-style: circle
.flexgrid
display: flex
flex-direction: column
justify-content: space-between
align-items: baseline
&-8020
*:nth-child(2)
opacity: 0.7
@media (min-width: 600px)
flex-direction: row
*:nth-child(1)
flex: 3 1 15rem
margin: 0.1em
*:nth-child(2)
flex: 1 2 1rem
text-align: right
ul.small
padding: 0
list-style: none
2020-05-27 21:20:01 +02:00
div.highlight
padding-top: 1.5rem
padding-bottom: 1.5rem
2021-03-02 10:41:08 +01:00
a, a:visited, .link
cursor: pointer
2022-10-22 16:06:25 +02:00
color: $accent
text-decoration: none
2020-05-27 21:20:01 +02:00
&:hover
color: $grey
2020-05-27 21:20:01 +02:00
h4 a
font-weight: normal
pre
2020-05-29 17:39:33 +02:00
font-size: 1rem !important
2020-05-27 21:20:01 +02:00
2021-01-28 10:16:00 +01:00
// fix FF letter float - https://stackoverflow.com/questions/6737175/firefox-specific-margin
@-moz-document url-prefix()
2021-03-12 18:48:49 +01:00
article
2021-02-28 11:06:55 +01:00
&.post .content > p:first-of-type::first-letter
2021-01-28 10:16:00 +01:00
margin-top: 10px
2020-05-27 21:20:01 +02:00
article, main.notes, .txtblock
2020-05-28 09:16:04 +02:00
margin: auto
flex: 1 0 auto
2021-03-12 18:48:49 +01:00
display: block
line-height: 1.7
2020-05-28 09:16:04 +02:00
max-width: 750px
2020-05-27 21:20:01 +02:00
2020-05-28 09:16:04 +02:00
@media (min-width: 1600px)
max-width: 930px !important
2020-05-27 21:20:01 +02:00
2021-03-12 18:48:49 +01:00
article
2021-03-13 19:45:23 +01:00
padding-left: 1rem
padding-right: 1rem
padding-bottom: 1rem
2021-03-12 18:48:49 +01:00
text-align: left
2021-02-28 11:06:55 +01:00
&.post .content > p:first-of-type::first-letter
font-size: 3.05em
font-weight: bold
line-height: 1.1em
float: left
margin-right: 10px
2021-03-12 18:48:49 +01:00
p
margin: 0 0 20px !important
2022-11-07 11:09:13 +01:00
word-break: break-word
2021-02-28 11:06:55 +01:00
2021-03-12 18:48:49 +01:00
blockquote p
margin: 0 !important
2020-05-27 21:20:01 +02:00
2021-03-12 18:48:49 +01:00
a, .link
2022-10-22 16:06:25 +02:00
border-bottom: 1px solid $accent
2020-05-27 21:20:01 +02:00
2021-03-12 18:48:49 +01:00
&:hover, &:visited:hover
border-bottom: 1px solid white
border-radius: 1px
color: white
2022-10-22 16:06:25 +02:00
background-color: $accent
.inmargin
display: none
border-bottom: none
@media (min-width: 1200px)
display: block
right: calc(-600px + 50vw)
position: absolute
@media (min-width: 1600px)
right: calc(-700px + 50vw)
2021-03-12 18:48:49 +01:00
.belowsingle
background-color: $belowsingle
2022-10-22 16:06:25 +02:00
border-top: 3px solid $accent
padding-bottom: 2rem
2021-03-12 18:48:49 +01:00
.page-header
border-bottom: 1px solid darken($lightgrey, 20%)
2021-03-12 18:48:49 +01:00
article hr
2021-03-12 18:48:49 +01:00
margin-top: 60px
margin-bottom: 60px
.list-tags
a
text-decoration: none !important
header
2021-02-28 11:06:55 +01:00
text-align: center
margin: auto
padding-top: 1rem
2021-02-28 11:06:55 +01:00
padding-bottom: 3rem
.p-author
display: none
h1
2022-10-22 16:06:25 +02:00
color: $accent
h2
margin-top: -1rem
h2, h3
font-weight: normal
h3
font-size: 1.3rem
color: grey
h1, h2, h3
color: $grey
2021-03-12 18:48:49 +01:00
main
min-height: calc(100vh - 200px)
padding-top: 3rem
padding-bottom: 2rem
2021-03-12 18:48:49 +01:00
footer
padding-top: 2rem
padding-bottom: 2rem
2020-05-29 17:39:33 +02:00
kbd
2022-10-22 16:06:25 +02:00
color: $accent
border: 1px solid $accent
font-size: 0.9em
2020-05-29 17:39:33 +02:00
padding: 2px 4px
border-radius: 3px
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25)
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25)
white-space: nowrap
&:hover
2021-02-28 15:51:44 +01:00
color: white
2022-10-22 16:06:25 +02:00
background-color: $accent
#skiptocontent
z-index: 100
a
padding: 6px
position: absolute
top: 100px
left: -200px
color: white
border 1px solid white
border-top-right-radius: 8px
border-bottom-right-radius: 8px
background: black
-webkit-transition: left 1s ease-out
transition: left 1s ease-out
&:focus
position: absolute
left: 0px
top: 100px
outline-color: transparent
-webkit-transition: left .1s ease-in
transition: left .1s ease-in
2020-06-09 12:16:37 +02:00
.sl-wrapper
.sl-counter
font-weight: bold
font-size: 1.2rem !important
.sl-caption
text-align: center
background: rgba(0,0,0,0.65) !important
2021-03-12 18:48:49 +01:00
.nowrap
2022-07-29 16:10:30 +02:00
white-space: nowrap
table
width: 100%
margin-top: 1rem
margin-bottom: 1rem
2022-07-29 16:10:30 +02:00
border-collapse: collapse
tbody
border-top: 1px solid darkgrey
tr
&:nth-child(odd)
background: #EEEEEE
.tagindex
.taggrid
display: grid
grid-template-columns: repeat(auto-fill, minmax(10em, 1fr))
column-gap: 1em
row-gap: 1.2em
h3
border-bottom: 1px solid darkgrey
ul
padding-left: 1em