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

98 lines
2.1 KiB
Stylus
Raw Normal View History

2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser
2022-10-08 16:48:13 +08:00
.widget-header+.widget-body
margin: 0.75rem 0
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body
2022-10-08 16:48:13 +08:00
text-align: center
2022-10-05 23:00:52 +08:00
background: var(--card)
border-radius: $border-card
2022-10-08 16:48:13 +08:00
padding: 1rem
2022-10-23 18:27:14 +08:00
box-shadow: $boxshadow-card
2022-10-05 23:00:52 +08:00
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .avatar
2022-10-05 23:00:52 +08:00
display: block
border-radius: 100%
2022-10-08 16:48:13 +08:00
margin: 1rem auto 1.25rem auto
max-width: 75%
overflow: hidden
img
display: block
2022-10-06 00:06:46 +08:00
@media screen and (max-width: $device-tablet)
max-width: 50%
2022-10-05 23:00:52 +08:00
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .username
2022-10-05 23:00:52 +08:00
font-weight: 900
font-size: $fs-h2
color: var(--text-p0)
2022-10-08 16:48:13 +08:00
margin: 0.5rem 0
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .bio
2022-10-08 16:48:13 +08:00
font-size: $fs-13
margin: 0.5rem 0
2022-10-05 23:00:52 +08:00
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .follow
2022-10-05 23:00:52 +08:00
font-weight: 500
border-radius: 64px
padding: 0.5rem 1rem
background: $color-theme
color: var(--card)
font-size: 1rem
align-self: stretch
text-align: center
line-height: 1.5
display: flex
align-items: center
justify-content: center
trans1: background
svg
2022-10-08 16:48:13 +08:00
margin-right: 6px
2022-10-05 23:00:52 +08:00
&:hover
background: $color-hover
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .menu
2022-10-22 13:03:47 +08:00
margin-bottom: 0
background: none
2022-10-23 14:12:44 +08:00
a:hover
box-shadow: none
background: var(--block)
2022-10-22 13:03:47 +08:00
a.active
box-shadow: none
position: relative
&:after
content: ''
position: absolute
height: 3px
bottom: 0
width: 32px
left: 'calc(50% - 0.5 * %s)' % @width
border-radius: 4px
background: $color-theme
2022-10-05 23:00:52 +08:00
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .buttons
2022-10-08 16:48:13 +08:00
margin: 1rem 0
2022-10-05 23:00:52 +08:00
align-self: stretch
display: grid
grid-gap: 2px
grid-template-columns: repeat(auto-fill, "calc((100% - 2 * %s) / 3)" % 2px)
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .btn
2022-10-05 23:00:52 +08:00
display: flex
flex-direction: column
align-items: center
color: inherit
border: 1px solid transparent
border-radius: 4px
padding: 0.25rem 0
trans1: background
&:hover
background: var(--block)
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .buttons .btn .title
2022-10-05 23:00:52 +08:00
font-size: 1rem
font-weight: 700
2022-11-23 21:54:21 +08:00
.widget-wrapper.ghuser .widget-body .buttons .btn .desc
2022-10-05 23:00:52 +08:00
font-size: $fs-12
color: var(--text-p3)
font-weight: 500