2022-09-30 10:51:42 +08:00
|
|
|
@import 'variables.styl'
|
|
|
|
@import 'animated.styl'
|
|
|
|
@import 'keep-theme.styl'
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
// ======================================================================
|
|
|
|
// all
|
|
|
|
// ======================================================================
|
|
|
|
* {
|
|
|
|
// ====================================
|
|
|
|
// transition
|
|
|
|
// ====================================
|
2022-09-29 15:24:19 +08:00
|
|
|
transition-g()
|
2021-01-21 16:47:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
// ====================================
|
|
|
|
// scrollbar
|
|
|
|
// ====================================
|
2022-09-29 15:24:19 +08:00
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
&::-webkit-scrollbar {
|
2022-09-30 10:51:42 +08:00
|
|
|
width 0.4rem
|
|
|
|
height 0.4rem
|
2022-09-29 15:24:19 +08:00
|
|
|
transition all 0.2s ease
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
2022-09-29 15:24:19 +08:00
|
|
|
background var(--scrollbar-color)
|
2022-09-30 10:51:42 +08:00
|
|
|
border-radius 0.1rem
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
2022-10-14 17:56:32 +08:00
|
|
|
background var(--scrollbar-background-color)
|
2021-01-21 16:47:13 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-09-03 12:28:24 +08:00
|
|
|
// html, body
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2022-09-30 10:51:42 +08:00
|
|
|
html
|
|
|
|
body {
|
2022-09-29 15:24:19 +08:00
|
|
|
position relative
|
|
|
|
width 100%
|
|
|
|
height 100%
|
|
|
|
margin 0
|
|
|
|
padding 0
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-3)
|
2022-09-29 15:24:19 +08:00
|
|
|
font-weight $default-font-weight
|
|
|
|
font-size $default-font-size
|
2022-09-30 10:51:42 +08:00
|
|
|
font-family $default-font-family
|
2022-09-29 15:24:19 +08:00
|
|
|
line-height $default-font-line-height
|
2022-10-16 00:44:40 +08:00
|
|
|
letter-spacing 0.2px
|
2022-10-14 17:56:32 +08:00
|
|
|
background var(--background-color-1)
|
2020-09-03 12:28:24 +08:00
|
|
|
|
2021-01-08 16:07:54 +08:00
|
|
|
&::-webkit-scrollbar {
|
2022-10-08 20:56:08 +08:00
|
|
|
width 0.6rem
|
|
|
|
height 0.6rem
|
2021-01-08 16:07:54 +08:00
|
|
|
}
|
|
|
|
|
2022-10-09 17:17:28 +08:00
|
|
|
+keep-tablet() {
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width 0.5rem
|
|
|
|
height 0.5rem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+keep-mobile() {
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width 0.4rem
|
|
|
|
height 0.4rem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-tablet() {
|
2022-09-29 15:24:19 +08:00
|
|
|
font-size $default-font-size * 0.96
|
|
|
|
line-height $default-font-line-height * 0.96
|
2020-09-03 12:28:24 +08:00
|
|
|
}
|
|
|
|
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2020-11-20 12:02:22 +08:00
|
|
|
+keep-mobile() {
|
2022-09-29 15:24:19 +08:00
|
|
|
font-size $default-font-size * 0.9
|
|
|
|
line-height $default-font-line-height * 0.9
|
2020-09-03 12:28:24 +08:00
|
|
|
}
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
|
|
|
|
2020-09-01 19:21:28 +08:00
|
|
|
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-09-03 12:28:24 +08:00
|
|
|
// selection
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-04-07 11:57:53 +08:00
|
|
|
::selection {
|
2022-09-29 15:24:19 +08:00
|
|
|
color #fff
|
2022-09-30 10:51:42 +08:00
|
|
|
background var(--selection-color)
|
2020-04-07 11:57:53 +08:00
|
|
|
}
|
|
|
|
|
2020-09-01 19:21:28 +08:00
|
|
|
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-09-03 12:28:24 +08:00
|
|
|
// ul, ol, li
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2022-09-30 10:51:42 +08:00
|
|
|
ul
|
|
|
|
ol
|
|
|
|
li {
|
2022-09-29 15:24:19 +08:00
|
|
|
margin 0
|
2022-09-30 10:51:42 +08:00
|
|
|
padding 0
|
2022-09-29 15:24:19 +08:00
|
|
|
list-style none
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-09-03 12:28:24 +08:00
|
|
|
// a
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-03-21 23:04:01 +08:00
|
|
|
a {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-3)
|
2022-09-30 10:51:42 +08:00
|
|
|
text-decoration none
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2022-09-30 10:51:42 +08:00
|
|
|
i
|
|
|
|
span {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-3)
|
2021-01-21 17:43:15 +08:00
|
|
|
}
|
|
|
|
|
2022-09-30 10:51:42 +08:00
|
|
|
&:hover
|
|
|
|
&:active {
|
2022-09-29 15:24:19 +08:00
|
|
|
color var(--primary-color)
|
2022-09-30 10:51:42 +08:00
|
|
|
text-decoration none !important
|
2021-01-21 17:43:15 +08:00
|
|
|
|
2022-09-30 10:51:42 +08:00
|
|
|
i
|
|
|
|
span {
|
2022-09-29 15:24:19 +08:00
|
|
|
color var(--primary-color)
|
2021-01-21 17:43:15 +08:00
|
|
|
}
|
2020-09-03 12:28:24 +08:00
|
|
|
}
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
|
|
|
// img
|
|
|
|
// ======================================================================
|
|
|
|
img {
|
|
|
|
&[lazyload] {
|
2022-10-04 23:52:46 +08:00
|
|
|
position relative
|
|
|
|
box-sizing border-box
|
|
|
|
width 8rem
|
|
|
|
height 8rem
|
|
|
|
box-shadow none !important
|
2022-09-29 15:24:19 +08:00
|
|
|
cursor not-allowed
|
|
|
|
pointer-events none
|
2022-10-04 23:52:46 +08:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
position absolute
|
|
|
|
top 0
|
|
|
|
left 0
|
|
|
|
display block
|
|
|
|
width 100%
|
|
|
|
height 100%
|
2022-10-14 17:56:32 +08:00
|
|
|
background var(--background-color-1)
|
2022-10-04 23:52:46 +08:00
|
|
|
content ''
|
|
|
|
transition-t("background", "0", "0.2", "ease")
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
position absolute
|
|
|
|
top 0
|
|
|
|
right 0
|
|
|
|
bottom 0
|
|
|
|
left 0
|
|
|
|
display block
|
|
|
|
width 2rem
|
|
|
|
height 2rem
|
|
|
|
margin auto
|
2022-10-14 17:56:32 +08:00
|
|
|
border 2px solid var(--text-color-6)
|
2022-10-04 23:52:46 +08:00
|
|
|
border-top-color var(--selection-color)
|
|
|
|
border-left-color var(--selection-color)
|
|
|
|
border-radius 50%
|
|
|
|
animation img-loading-animation 750ms infinite linear
|
|
|
|
content ''
|
|
|
|
transition-t("border", "0", "0.2", "ease")
|
|
|
|
}
|
2021-01-07 15:15:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ======================================================================
|
2020-09-03 12:28:24 +08:00
|
|
|
// button
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-04-07 11:57:53 +08:00
|
|
|
button {
|
2022-09-29 15:24:19 +08:00
|
|
|
margin 0
|
2022-09-30 10:51:42 +08:00
|
|
|
padding 0
|
|
|
|
background transparent
|
2022-09-29 15:24:19 +08:00
|
|
|
border 0
|
|
|
|
outline none
|
|
|
|
cursor pointer
|
2020-04-07 11:57:53 +08:00
|
|
|
}
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
|
|
.btn {
|
2022-09-29 15:24:19 +08:00
|
|
|
position relative
|
2022-09-30 10:51:42 +08:00
|
|
|
display inline-block
|
|
|
|
padding 0.4rem 1rem
|
2022-09-29 15:24:19 +08:00
|
|
|
white-space nowrap
|
2022-09-30 10:51:42 +08:00
|
|
|
text-align center
|
2022-10-14 17:56:32 +08:00
|
|
|
background var(--background-color-1)
|
2022-09-30 10:51:42 +08:00
|
|
|
border-radius 5px
|
|
|
|
cursor pointer
|
2021-01-21 16:47:13 +08:00
|
|
|
|
2022-09-29 15:24:19 +08:00
|
|
|
hover-style(true, 1.06, 1.06)
|
2020-03-21 23:04:01 +08:00
|
|
|
|
|
|
|
&:hover {
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--background-color-1)
|
2022-09-29 15:24:19 +08:00
|
|
|
background var(--primary-color)
|
2020-03-21 23:04:01 +08:00
|
|
|
}
|
2020-09-01 19:21:28 +08:00
|
|
|
}
|
2020-11-19 11:58:54 +08:00
|
|
|
|
|
|
|
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-11-19 11:58:54 +08:00
|
|
|
// flex center
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-11-19 11:58:54 +08:00
|
|
|
.flex-center {
|
2022-09-29 15:24:19 +08:00
|
|
|
display flex
|
|
|
|
align-items center
|
2022-09-30 10:51:42 +08:00
|
|
|
justify-content center
|
2020-11-19 11:58:54 +08:00
|
|
|
}
|
2020-11-26 16:09:09 +08:00
|
|
|
|
2020-12-01 16:51:38 +08:00
|
|
|
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-11-26 16:09:09 +08:00
|
|
|
// clear float
|
2021-01-07 15:15:39 +08:00
|
|
|
// ======================================================================
|
2020-11-26 16:09:09 +08:00
|
|
|
.clear {
|
2022-09-29 15:24:19 +08:00
|
|
|
&::after {
|
|
|
|
display block
|
|
|
|
clear both
|
|
|
|
height 0
|
2022-09-30 10:51:42 +08:00
|
|
|
overflow hidden
|
|
|
|
visibility hidden
|
|
|
|
content ''
|
2022-09-29 15:24:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ======================================================================
|
|
|
|
// tooltip
|
|
|
|
// ======================================================================
|
|
|
|
.tooltip {
|
|
|
|
position relative
|
|
|
|
box-sizing border-box
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.tooltip-content {
|
2022-09-29 16:42:09 +08:00
|
|
|
display inline-block
|
2022-09-29 15:24:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-02 00:17:32 +08:00
|
|
|
&.show-img {
|
|
|
|
.tooltip-content {
|
|
|
|
display none !important
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-29 15:24:19 +08:00
|
|
|
.tooltip-content {
|
|
|
|
position absolute
|
2022-10-02 00:17:32 +08:00
|
|
|
top -0.4rem
|
2022-09-29 15:24:19 +08:00
|
|
|
left 50%
|
2022-09-30 10:51:42 +08:00
|
|
|
z-index $z-index-9
|
|
|
|
display none
|
2022-10-02 14:00:54 +08:00
|
|
|
box-sizing border-box
|
2022-09-29 15:24:19 +08:00
|
|
|
padding 0.2rem 0.6rem
|
2022-10-14 17:56:32 +08:00
|
|
|
color var(--text-color-6)
|
2022-09-30 10:51:42 +08:00
|
|
|
font-size 0.8rem
|
2022-09-29 15:24:19 +08:00
|
|
|
white-space nowrap
|
2022-10-14 17:56:32 +08:00
|
|
|
background var(--text-color-1)
|
2022-09-30 10:51:42 +08:00
|
|
|
border-radius 0.3rem
|
2022-10-02 00:17:32 +08:00
|
|
|
transform translateX(-50%) translateY(-100%)
|
2022-09-29 16:42:09 +08:00
|
|
|
transition-t("display", "0", "0.2", "ease")
|
2022-10-02 00:17:32 +08:00
|
|
|
disable-user-select()
|
2022-09-29 15:24:19 +08:00
|
|
|
}
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|
2022-10-02 00:17:32 +08:00
|
|
|
|
|
|
|
|
|
|
|
.tooltip-img {
|
|
|
|
position relative
|
|
|
|
box-sizing border-box
|
|
|
|
|
|
|
|
&.show-img {
|
|
|
|
.tooltip-img-box {
|
|
|
|
display flex
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip-img-box {
|
|
|
|
position absolute
|
|
|
|
top -0.4rem
|
|
|
|
left 50%
|
|
|
|
z-index $z-index-8
|
|
|
|
display none
|
|
|
|
align-items center
|
2022-10-02 14:00:54 +08:00
|
|
|
justify-content center
|
|
|
|
box-sizing border-box
|
|
|
|
min-height 6rem
|
2022-10-14 17:56:32 +08:00
|
|
|
background var(--text-color-6)
|
|
|
|
border 0.2rem solid var(--text-color-3)
|
2022-10-02 00:17:32 +08:00
|
|
|
border-radius 0.3rem
|
|
|
|
transform translateX(-50%) translateY(-100%)
|
|
|
|
transition-t("display", "0", "0.2", "ease")
|
|
|
|
disable-user-select()
|
|
|
|
|
|
|
|
img {
|
|
|
|
display block
|
|
|
|
max-height 10rem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|