hexo-theme-stellar/source/css/_layout/widgets/widgets.styl

82 lines
1.7 KiB
Stylus

.widgets
.loading-wrap
margin: 0.5rem 0
background: var(--alpha50)
.widgets
overflow: scroll
flex-grow: 1
scrollbar-width: none
scrollbar(0, 0)
z-index: 1
line-height: 1.2
.widget-wrapper
.widget-header
padding-left: var(--gap-padding)
padding-right: var(--gap-padding)
display: flex
justify-content: space-between
align-items: baseline
line-height: 28px
font-weight: 500
font-size: $fs-13
color: var(--text-p1)
.item
display: block
>span
text-align: left
opacity 0.6
&:empty
display: none
.cap-action
line-height: 0
color: inherit
opacity 0.6
trans2: opacity background
border-radius: 4px
padding: 6px
margin-right: -6px
svg
height: 1em
width: auto
transform: scale(1.2)
fill: var(--text-p2)
&:hover
color: $color-hover
background: var(--alpha100)
opacity 1
svg
fill: $color-hover
.widget-body
color: var(--text-p1)
p
margin-top: .5em
margin-bottom: .5em
line-height: 1.5
.widget-wrapper
display: block
.l_left .widgets
margin: 0 var(--gap-margin)
.widget-wrapper
margin: 32px 0
.l_right .widgets
.widget-wrapper
margin-top: 8px
.widget-header
padding-left: var(--gap-max)
padding-right: var(--gap-max)
&:not(.toc)
margin-left: var(--gap-margin)
margin-right: var(--gap-margin)
.widget-wrapper+.widget-wrapper
margin-top: 32px
@media screen and (max-width: $device-laptop)
.widget-wrapper
margin-top: var(--gap-margin)
border-radius: $border-card