nova-web/web/static/css/base.sass

127 lines
2.2 KiB
Sass
Raw Permalink Normal View History

2023-07-21 23:50:17 +02:00
@import '_vars'
html
scroll-behavior: smooth
body
background-color: $background
nav, main, footer
max-width: $main-width
margin: 0 auto
*, *::before, *::after
box-sizing: border-box
border: none
color: $text
font-family: 'Inter', sans-serif
a
text-decoration: none
h1, h2, h3
&, *
font-weight: 700
2023-07-23 02:07:22 +02:00
line-height: 3rem
2023-07-21 23:50:17 +02:00
font-family: 'Syne', sans-serif
2023-07-25 03:38:53 +02:00
h2
&, *
line-height: 2.2rem
h3
&, *
line-height: 1.5rem
2023-07-23 02:07:22 +02:00
main a
text-decoration: underline
text-decoration-color: $primary
text-underline-offset: 2px
text-decoration-thickness: 5px
transition: 0.2s
&:hover
2023-07-24 00:59:48 +02:00
text-decoration-thickness: 0
background: $primary-glow
2023-07-23 02:07:22 +02:00
main p
opacity: 0.9
2023-07-21 23:50:17 +02:00
img
display: block
max-width: 100%
mark
color: $text
2023-07-23 02:07:22 +02:00
background: $primary
2023-07-21 23:50:17 +02:00
padding: 5px 7px
border-radius: 5px
2023-07-25 03:38:53 +02:00
kbd
font-family: 'Courier New', Courier, monospace
font-weight: 600
background: $secondary
border-radius: $edge
padding: 0.2rem 0.4rem
border-bottom: 3px solid $secondary-dark
blockquote
margin-left: 0
2023-07-25 03:38:53 +02:00
padding: 1rem 1rem
border-left: 5px solid $accent
opacity: 0.8
background: $secondary
2023-07-25 03:38:53 +02:00
width: 100%
border-radius: $edge
2023-07-25 03:38:53 +02:00
&.error
border-left-color: $error
&.warning
border-left-color: $warn
2023-07-25 03:38:53 +02:00
&.success
border-left-color: $success
code
font-family: 'Courier New', Courier, monospace
2023-07-25 03:38:53 +02:00
font-weight: 600
background: $secondary
border-radius: $edge
padding: 0.2rem 0.4rem
pre code
*, &
font-weight: normal
2023-10-20 15:30:33 +02:00
// fix whitespace at beginning of <pre>
pre
white-space: pre-wrap
2023-07-25 03:38:53 +02:00
p, p *, ol, ul, li
line-height: 32px
2023-08-30 21:57:26 +02:00
h6
opacity: 0.7
font-weight: normal
:focus:not(:focus-visible)
outline: none
2023-07-23 02:07:22 +02:00
.special-gradient
background: linear-gradient(45deg, #be89ec 7%, #2867f0 100%)
2023-07-23 02:07:22 +02:00
-webkit-background-clip: text
-webkit-text-fill-color: transparent
.box
2023-09-22 01:00:00 +02:00
margin-bottom: 1rem
background: $primary-soft
border: 2px solid $primary-soft
border-radius: $edge
2023-09-22 01:00:00 +02:00
padding: 0rem 1rem
2023-07-21 23:50:17 +02:00
@media (max-width: 900px)
body
margin: 0 2rem
2023-07-25 03:38:53 +02:00
margin-top: 2rem