mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
add ui
This commit is contained in:
1 parent
777a4bc927
commit
9c45527522
396 files changed
+13772
No files matched your search
@@ -0,0 +1,125 @@
|
||||
$upvote-color = green
|
||||
$downvote-color = red
|
||||
|
||||
.dczcomments__item .is-editing
|
||||
[name="dczcomments__dummy-box"]
|
||||
display: none
|
||||
> .typo
|
||||
display: none
|
||||
|
||||
.dczcomments__box .textbox
|
||||
height: rem(180px)
|
||||
resize: vertical
|
||||
|
||||
.textbox[name="dczcomments__dummy-box"]
|
||||
height: rem(60px)
|
||||
resize: none
|
||||
font-size: rem($font-size-title)
|
||||
color: $comment-placeholder-color
|
||||
padding: rem(10px)
|
||||
|
||||
.dczcomments__item,
|
||||
.dczcomments__reply
|
||||
border-top: 1px solid $table-border-color
|
||||
|
||||
>.media
|
||||
padding: rem(20px 0)
|
||||
|
||||
&:first-child
|
||||
border-top: 0
|
||||
|
||||
.dczcomments__reply
|
||||
&:last-child
|
||||
>.media
|
||||
padding-bottom: 0
|
||||
|
||||
.dczcomments__supplementary
|
||||
float: left
|
||||
margin-bottom: rem(5px)
|
||||
|
||||
.dczcomments__operations
|
||||
font-size: rem($font-size)
|
||||
float: right
|
||||
vertical-align: top
|
||||
color: $comment-op-color
|
||||
|
||||
a, a:visited
|
||||
color: $comment-op-link-color
|
||||
margin-left: rem(3px)
|
||||
a:hover
|
||||
color: $primary-color
|
||||
text-decoration: none
|
||||
|
||||
.view--solution .dczcomments__replies
|
||||
margin-left: rem(50px)
|
||||
|
||||
.dczcomments__item
|
||||
.vote-number
|
||||
width: rem(82px)
|
||||
text-align: center
|
||||
font-size: rem(25px)
|
||||
font-weight: 300
|
||||
margin-bottom: rem(10px)
|
||||
|
||||
.vote-op
|
||||
position: relative
|
||||
border: 1px solid transparent
|
||||
border-radius: rem(14px)
|
||||
transition: border-color .2s linear, opacity .2s linear
|
||||
opacity: 0.5
|
||||
|
||||
&>form
|
||||
width: rem(40px)
|
||||
float: left
|
||||
position: relative
|
||||
|
||||
&:hover .vote-op
|
||||
opacity: 1
|
||||
border-color: $supplementary-border-color
|
||||
|
||||
.vote-button
|
||||
appearance: none
|
||||
border: 0
|
||||
background: none
|
||||
width: 100%
|
||||
outline: 0
|
||||
font-size: rem($font-size-icon)
|
||||
line-height: rem(26px)
|
||||
color: #AAA
|
||||
transition: color .2s linear, background-color .2s linear, box-shadow .2s linear
|
||||
|
||||
&.upvote
|
||||
border-radius: rem(13px 0 0 13px)
|
||||
padding-left: rem(7px)
|
||||
|
||||
&:hover
|
||||
background: $upvote-color
|
||||
color: #FFF
|
||||
box-shadow: 0 2px 10px rgba($upvote-color, 0.4)
|
||||
|
||||
&.active
|
||||
color: $upvote-color
|
||||
|
||||
|
||||
&.downvote
|
||||
border-radius: rem(0 13px 13px 0)
|
||||
padding-right: rem(7px)
|
||||
|
||||
&:hover
|
||||
background: $downvote-color
|
||||
color: #FFF
|
||||
box-shadow: 0 2px 10px rgba($downvote-color, 0.4)
|
||||
|
||||
&.active
|
||||
color: $downvote-color
|
||||
|
||||
&.active
|
||||
background: transparent !important
|
||||
box-shadow: none !important
|
||||
cursor: default
|
||||
|
||||
|
||||
+mobile()
|
||||
.dczcomments__item
|
||||
.media__left
|
||||
display: none
|
||||
Reference in new issue
Block a user