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-09-29 15:24:19 +08:00
|
|
|
background var(--scroll-bar-bg-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
|
|
|
|
color var(--default-text-color)
|
|
|
|
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-09-30 10:51:42 +08:00
|
|
|
background var(--background-color)
|
2020-09-03 12:28:24 +08:00
|
|
|
|
2021-01-08 16:07:54 +08:00
|
|
|
&::-webkit-scrollbar {
|
2022-09-30 10:51:42 +08:00
|
|
|
width 0.4rem
|
|
|
|
height 0.4rem
|
2021-01-08 16:07:54 +08:00
|
|
|
}
|
|
|
|
|
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-09-29 15:24:19 +08:00
|
|
|
color var(--default-text-color)
|
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-09-29 15:24:19 +08:00
|
|
|
color var(--default-text-color)
|
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-09-30 10:51:42 +08:00
|
|
|
margin 1.4rem auto !important
|
|
|
|
padding 0.8rem
|
2022-09-29 15:24:19 +08:00
|
|
|
cursor not-allowed
|
|
|
|
pointer-events none
|
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-09-29 15:24:19 +08:00
|
|
|
background var(--background-color)
|
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-09-29 15:24:19 +08:00
|
|
|
color var(--background-color)
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip-content {
|
|
|
|
position absolute
|
2022-09-29 22:38:34 +08:00
|
|
|
top 0
|
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-09-29 15:24:19 +08:00
|
|
|
padding 0.2rem 0.6rem
|
|
|
|
color var(--fourth-text-color)
|
2022-09-30 10:51:42 +08:00
|
|
|
font-size 0.8rem
|
2022-09-29 15:24:19 +08:00
|
|
|
white-space nowrap
|
2022-09-30 10:51:42 +08:00
|
|
|
background var(--first-text-color)
|
|
|
|
border-radius 0.3rem
|
|
|
|
transform translateX(-50%) translateY(-108%)
|
2022-09-29 16:42:09 +08:00
|
|
|
transition-t("display", "0", "0.2", "ease")
|
2022-09-29 15:24:19 +08:00
|
|
|
}
|
2020-11-26 16:09:09 +08:00
|
|
|
}
|