[opt] style

This commit is contained in:
xaoxuu 2024-02-09 00:47:03 +08:00
parent a7f4eee1b8
commit 25ebde1d7c
6 changed files with 18 additions and 17 deletions

View File

@ -84,6 +84,8 @@ $border-button = 4px
// iPad // iPad
@media screen and (max-width: $device-tablet) @media screen and (max-width: $device-tablet)
--side-content-width: 188px --side-content-width: 188px
@media screen and (max-width: $device-mobile-max)
--side-content-width: 224px
// //
:root :root

View File

@ -20,6 +20,7 @@
.l_body .l_right .l_body .l_right
justify-self: left justify-self: left
--gap-margin: 0px --gap-margin: 0px
max-height: calc(100% - 8px * 2)
.widgets .widgets
height: 100% height: 100%
overflow visible overflow visible
@ -34,7 +35,7 @@
.l_right .l_right
top: 8px top: 8px
position: fixed position: fixed
height: calc(100% - 8px * 2) max-height: calc(100% - 8px * 2)
transform: translateX(320px) transform: translateX(320px)
transition: transform .38s ease-out transition: transform .38s ease-out
margin: 0 margin: 0
@ -44,7 +45,8 @@
background: var(--site-bg) background: var(--site-bg)
overflow: auto overflow: auto
scrollbar(0, 0) scrollbar(0, 0)
--blur-bg: var(--alpha75) --blur-bg: var(--alpha60)
--blur-px: 50px
.l_body[rightbar] .l_body[rightbar]
.l_right .l_right
transform: translateX(0px) transform: translateX(0px)

View File

@ -7,7 +7,7 @@
.l_main .post-list .l_main .post-list
.post-title .post-title
font-weight: 500 font-weight: 500
margin: 1.25rem 0 .75rem 0 margin: 1.25rem auto .75rem 0
line-height: 1.2 line-height: 1.2
font-size: $fsh4 font-size: $fsh4
border-bottom: none border-bottom: none

View File

@ -118,9 +118,9 @@
margin: auto margin: auto
display: block display: block
.md-text li:not([class]) a:not([class]) li:not([class]) a:not([class])
.md-text p:not([class]) a:not([class]) p:not([class]) a:not([class])
.md-text table a:not([class]) table a:not([class])
position: relative position: relative
text-decoration: none text-decoration: none
trans1 all trans1 all

View File

@ -3,15 +3,19 @@
color: var(--text-p2) color: var(--text-p2)
a a
color: var(--text-p2) color: var(--text-p2)
border-radius: 2px
&:hover &:hover
color: $color-hover color: var(--text)
background: var(--block-hover)
.page-footer .sitemap .page-footer .sitemap
margin: .5rem 0 2rem margin: .5rem -4px 2rem
display: grid display: grid
scrollbar-width: none scrollbar-width: none
grid-gap: 1rem 1rem grid-gap: 1rem 1rem
grid-auto-flow: column dense grid-auto-flow: column dense
// grid-template-columns: repeat(auto-fill, minmax(80px, 1fr))
grid-template-columns: repeat(4, 1fr)
overflow: scroll overflow: scroll
scrollbar(0, 0) scrollbar(0, 0)
@ -23,12 +27,11 @@
>span,>a >span,>a
text-decoration: none text-decoration: none
txt-ellipsis() txt-ellipsis()
padding: 4px
>span >span
margin: .5rem 0
font-weight: 500 font-weight: 500
color: var(--text-p1) color: var(--text-p1)
>a margin: 4px 0
margin: .2rem 0
.page-footer .text .page-footer .text
@ -36,5 +39,4 @@
margin: 4px 0 margin: 4px 0
line-height: 1.5 line-height: 1.5
a:not([class]) a:not([class])
text-decoration: underline
font-weight: 500 font-weight: 500

View File

@ -4,13 +4,8 @@
.body .body
a a
trans1 all trans1 all
border-bottom: 1px solid var(--text)
word-break: break-all word-break: break-all
color: var(--text-p1)
--fsp: $fsp2 --fsp: $fsp2
&:hover
color: $color-hover
border-bottom: 1px solid $color-hover
.tag-plugin.timeline .timenode .tag-plugin.timeline .timenode
.header .header
margin: 0.5rem var(--gap-padding) margin: 0.5rem var(--gap-padding)