AquaDX/AquaNet/src/app.sass

189 lines
2.9 KiB
Sass
Raw Normal View History

2024-02-10 13:40:56 +08:00
@import "vars"
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap')
2024-02-12 14:48:08 +08:00
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap')
2024-02-10 13:40:56 +08:00
2024-02-10 14:20:10 +08:00
html
height: 100%
2024-02-08 09:13:53 +08:00
body
2024-02-10 13:40:56 +08:00
font-family: $font
2024-02-08 09:13:53 +08:00
line-height: 1.5
font-weight: 400
2024-02-10 14:20:10 +08:00
width: 100%
height: 100%
margin: 0
overflow-x: hidden
2024-02-08 09:13:53 +08:00
2024-02-10 14:30:19 +08:00
color-scheme: dark
2024-02-08 09:13:53 +08:00
color: rgba(255, 255, 255, 0.87)
2024-02-10 13:40:56 +08:00
background-color: $c-bg
2024-02-08 09:13:53 +08:00
font-synthesis: none
text-rendering: optimizeLegibility
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
a
font-weight: 500
2024-02-22 02:37:01 +08:00
color: $c-main
2024-02-08 09:13:53 +08:00
text-decoration: inherit
a:hover
2024-02-10 13:40:56 +08:00
color: $c-main
2024-02-08 09:13:53 +08:00
h1
font-size: 3.2em
line-height: 1.1
.card
2024-02-22 23:00:28 +08:00
display: flex
flex-direction: column
border-radius: 5px
padding: 12px 16px
background: $ov-light
2024-02-08 09:13:53 +08:00
#app
2024-02-10 14:20:10 +08:00
width: 100%
height: 100%
main:not(.no-margin)
2024-02-08 09:13:53 +08:00
max-width: 1280px
2024-02-10 16:10:21 +08:00
margin: 0 auto
padding-bottom: 100px
2024-02-08 09:13:53 +08:00
button
border-radius: 8px
border: 1px solid transparent
padding: 0.6em 1.2em
font-size: 1em
font-weight: 500
font-family: inherit
2024-02-22 03:26:12 +08:00
background-color: $ov-lighter
2024-02-10 14:20:10 +08:00
opacity: 0.9
2024-02-08 09:13:53 +08:00
cursor: pointer
2024-02-22 23:30:28 +08:00
transition: $transition
2024-02-08 09:13:53 +08:00
button:hover
2024-02-22 23:30:28 +08:00
border-color: $c-main
2024-02-08 09:13:53 +08:00
button:focus, button:focus-visible
2024-02-10 14:30:19 +08:00
color: $c-main
outline: none
2024-02-21 07:32:25 +08:00
2024-02-22 23:30:28 +08:00
button.error
color: unset
&:hover
border-color: $c-error
color: $c-error
//background: $c-error
//border-color: transparent
2024-02-22 23:30:28 +08:00
2024-02-23 07:31:59 +08:00
button.icon
padding: 0.6em
font-size: 1.2em
border-radius: 50px
@extend .flex-center
2024-02-21 07:32:25 +08:00
.level-0
--lv-color: $c-lv0
.level-1
--lv-color: $c-lv1
.level-2
--lv-color: $c-lv2
.level-3
--lv-color: $c-lv3
.error
color: $c-error
2024-02-21 07:43:56 +08:00
input
border-radius: 8px
border: 1px solid transparent
padding: 0.6em 1.2em
font-size: 1em
font-weight: 500
font-family: inherit
2024-02-22 03:26:12 +08:00
background-color: $ov-lighter
2024-02-22 23:30:28 +08:00
transition: $transition
2024-02-22 02:37:01 +08:00
box-sizing: border-box
2024-02-21 07:43:56 +08:00
input:focus, input:focus-visible
border: 1px solid $c-main
outline: none
2024-02-22 02:37:01 +08:00
input.error
border: 1px solid $c-error
2024-02-21 07:43:56 +08:00
.flex-center
display: flex
justify-content: center
align-items: center
2024-02-22 02:59:40 +08:00
.inline-flex-center
display: inline-flex
justify-content: center
align-items: center
2024-02-21 07:43:56 +08:00
.clickable
cursor: pointer
2024-02-21 13:15:31 +08:00
user-select: none
main.content
display: flex
flex-direction: column
gap: 20px
margin: 100px auto 0
2024-02-23 08:11:25 +08:00
padding: 0 32px 128px
2024-02-21 13:15:31 +08:00
min-height: 100%
max-width: $w-max
background-color: rgba(black, 0.2)
border-radius: 16px 16px 0 0
@media (max-width: #{$w-max + (64px) * 2})
margin: 100px 32px 0
@media (max-width: $w-mobile)
margin: 100px 0 0
2024-02-22 23:00:28 +08:00
// Overlay
.overlay
position: fixed
inset: 0
background-color: rgba(0, 0, 0, 0.5)
display: flex
justify-content: center
align-items: center
z-index: 1000
h2, p
user-select: none
margin: 0
> div
background-color: $c-bg
padding: 2rem
border-radius: 10px
display: flex
flex-direction: column
gap: 1rem
max-width: 400px