1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-24 16:37:30 +00:00
cloudtube/sass/includes/_base.sass

93 lines
1.6 KiB
Sass
Raw Normal View History

$_theme: () !default
@use "sass:map"
2020-08-22 13:17:31 +00:00
body
background-color: map.get($_theme, "bg-2")
color: map.get($_theme, "fg-main")
2020-08-22 13:17:31 +00:00
font-family: "Bariol", sans-serif
font-size: 18px
margin: 0
padding: 0
2021-04-16 03:24:48 +00:00
// for footer alignment
min-height: 100vh
display: flex
flex-direction: column
2020-08-22 13:17:31 +00:00
a
color: map.get($_theme, "link")
2020-08-22 13:17:31 +00:00
2020-08-31 13:22:16 +00:00
pre, code
font-size: 0.88em
code
background: map.get($_theme, "bg-1")
2020-08-31 13:22:16 +00:00
padding: 3px 5px
border-radius: 4px
2020-08-22 13:17:31 +00:00
input, select, button
font-family: inherit
font-size: 16px
2020-10-02 12:32:56 +00:00
min-width: 0px
2020-08-22 13:17:31 +00:00
button
cursor: pointer
::placeholder
color: map.get($_theme, "placeholder")
opacity: 1
// focus section
2020-08-24 10:43:55 +00:00
:focus
outline: none
2020-08-22 13:17:31 +00:00
:-moz-focusring
outline: none
::-moz-focus-inner
border: 0
select:-moz-focusring
color: transparent
text-shadow: 0 0 0 map.get($_theme, "fg-bright")
2020-08-22 13:17:31 +00:00
body.show-focus
a, select, button, input, video, summary
2020-08-22 13:17:31 +00:00
&:focus
outline: 2px dotted map.get($_theme, "fg-main")
2020-08-24 13:49:48 +00:00
video
background-color: black
2020-08-31 13:22:16 +00:00
details
background-color: map.get($_theme, "bg-3")
2020-08-31 13:22:16 +00:00
padding: 12px
border: 1px solid map.get($_theme, "edge-grey")
2020-08-31 13:22:16 +00:00
border-radius: 8px
summary
cursor: pointer
line-height: 1
margin-bottom: 0
user-select: none
color: map.get($_theme, "fg-main")
2020-08-31 13:22:16 +00:00
&[open] summary
padding-bottom: 12px
border-bottom: 1px solid map.get($_theme, "edge-grey")
margin-bottom: 8px
2021-04-16 04:31:54 +00:00
table
background-color: map.get($_theme, "bg-1")
2021-04-16 04:31:54 +00:00
table, td, th
border: 1px solid map.get($_theme, "edge-grey")
2021-04-16 04:31:54 +00:00
border-collapse: collapse
td, th
padding: 4px 8px
thead, tr:nth-child(even)
background-color: map.get($_theme, "bg-0")