2020-03-21 23:04:01 +08:00
|
|
|
@require 'variables.styl'
|
2020-04-01 12:09:06 +08:00
|
|
|
@require 'animated.styl'
|
2020-11-24 10:55:24 +08:00
|
|
|
@require '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-29 15:24:19 +08:00
|
|
|
width 6px
|
|
|
|
height 6px
|
|
|
|
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)
|
|
|
|
border-radius 1px
|
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
|
|
|
// ======================================================================
|
2020-03-21 23:04:01 +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)
|
|
|
|
background var(--background-color)
|
|
|
|
font-family $default-font-family
|
|
|
|
font-weight $default-font-weight
|
|
|
|
font-size $default-font-size
|
|
|
|
line-height $default-font-line-height
|
2020-09-03 12:28:24 +08:00
|
|
|
|
2021-01-08 16:07:54 +08:00
|
|
|
&::-webkit-scrollbar {
|
2022-09-29 15:24:19 +08:00
|
|
|
width 8px
|
|
|
|
height 8px
|
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
|
|
|
background var(--selection-color)
|
|
|
|
color #fff
|
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
|
|
|
// ======================================================================
|
2020-09-03 12:28:24 +08:00
|
|
|
ul, ol, li {
|
2022-09-29 15:24:19 +08:00
|
|
|
padding 0
|
|
|
|
margin 0
|
|
|
|
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
|
|
|
text-decoration none
|
|
|
|
color var(--default-text-color)
|
2020-03-21 23:04:01 +08:00
|
|
|
|
2021-01-21 18:23:22 +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
|
|
|
}
|
|
|
|
|
2020-09-03 12:28:24 +08:00
|
|
|
&:hover, &:active {
|
2022-09-29 15:24:19 +08:00
|
|
|
text-decoration none !important
|
|
|
|
color var(--primary-color)
|
2021-01-21 17:43:15 +08:00
|
|
|
|
2021-01-21 18:23:22 +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-29 15:24:19 +08:00
|
|
|
padding 10px
|
|
|
|
margin 20px auto !important
|
|
|
|
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
|
|
|
padding 0
|
|
|
|
margin 0
|
|
|
|
border 0
|
|
|
|
outline none
|
|
|
|
cursor pointer
|
|
|
|
background transparent
|
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
|
|
|
display inline-block
|
|
|
|
position relative
|
|
|
|
text-align center
|
|
|
|
cursor pointer
|
|
|
|
white-space nowrap
|
|
|
|
border-radius 5px
|
|
|
|
padding 8px 16px
|
|
|
|
background var(--background-color)
|
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
|
|
|
|
justify-content center
|
|
|
|
align-items 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 {
|
|
|
|
content ''
|
|
|
|
display block
|
|
|
|
clear both
|
|
|
|
visibility hidden
|
|
|
|
overflow hidden
|
|
|
|
height 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ======================================================================
|
|
|
|
// 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 16:42:09 +08:00
|
|
|
top -140%
|
2022-09-29 15:24:19 +08:00
|
|
|
left 50%
|
|
|
|
transform translateX(-50%)
|
|
|
|
font-size 0.8rem
|
|
|
|
padding 0.2rem 0.6rem
|
|
|
|
background var(--first-text-color)
|
|
|
|
color var(--fourth-text-color)
|
|
|
|
border-radius 0.3rem
|
2022-09-29 16:42:09 +08:00
|
|
|
display none
|
|
|
|
z-index $z-index-9
|
2022-09-29 15:24:19 +08:00
|
|
|
white-space nowrap
|
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
|
|
|
}
|