[opt] twikoo fllow $color-theme (#421)
This commit is contained in:
parent
0eec1cefaf
commit
af9f2ebcf7
|
@ -1,118 +1,167 @@
|
||||||
.cmt-body.twikoo
|
.cmt-body.twikoo
|
||||||
--twikoo-lighttext: $color-theme;
|
--twikoo-theme: $color-theme
|
||||||
--twikoo-secondtext: #909094;
|
|
||||||
--twikoo-emoji-background: #f8f8f8;
|
|
||||||
--twikoo-theme: $color-theme;
|
|
||||||
margin-top: 1.5rem
|
margin-top: 1.5rem
|
||||||
|
|
||||||
.tk-content
|
.tk-content
|
||||||
.vemoji, .tk-owo-emotion
|
.vemoji, .tk-owo-emotion
|
||||||
width: unset;
|
width: unset
|
||||||
border-radius: $border-image;
|
border-radius: $border-image
|
||||||
max-height: 24px;
|
max-height: 24px
|
||||||
max-width: 100px;
|
max-width: 100px
|
||||||
display: inline;
|
display: inline
|
||||||
margin: 0 0.25em;
|
margin: 0 0.25em
|
||||||
img
|
img
|
||||||
max-width: 400px;
|
max-width: 400px
|
||||||
max-height: 400px;
|
max-height: 400px
|
||||||
border-radius: $border-image;
|
border-radius: $border-image
|
||||||
|
|
||||||
.OwO
|
.OwO
|
||||||
.OwO-body
|
.OwO-body
|
||||||
background: var(--twikoo-emoji-background) !important;
|
background-color: var(--block) !important
|
||||||
color: var(--text-p1) !important;
|
color: var(--text-p1) !important
|
||||||
|
|
||||||
.OwO-items
|
.OwO-items
|
||||||
.OwO-item
|
.OwO-item
|
||||||
img
|
img
|
||||||
max-height: 26px;
|
max-height: 26px
|
||||||
width: unset;
|
width: unset
|
||||||
|
|
||||||
.twikoo
|
.twikoo
|
||||||
.el-input-group__append, .el-input-group__prepend,
|
.el-input-group__append, .el-input-group__prepend,
|
||||||
.el-input__inner, .el-textarea__inner,
|
.el-input__inner, .el-textarea__inner,
|
||||||
.el-button:not(.el-button--primary):not(.el-button--text),
|
|
||||||
.tk-comments-count,
|
|
||||||
.tk-content,
|
|
||||||
.tk-preview-container
|
.tk-preview-container
|
||||||
color: var(--text-p1) !important;
|
border-color: var(--block-border)
|
||||||
|
.el-input__inner:focus,
|
||||||
|
.el-textarea__inner:focus
|
||||||
|
border-color: var(--twikoo-theme) !important
|
||||||
.el-button:not(.el-button--primary):not(.el-button--text):active,
|
.el-button:not(.el-button--primary):not(.el-button--text):active,
|
||||||
.el-button:not(.el-button--primary):not(.el-button--text):focus,
|
.el-button:not(.el-button--primary):not(.el-button--text):focus,
|
||||||
.el-button:not(.el-button--primary):not(.el-button--text):hover
|
.el-button:not(.el-button--primary):not(.el-button--text):hover
|
||||||
color: var(--twikoo-theme) !important;
|
color: var(--twikoo-theme) !important
|
||||||
|
border-color: var(--theme-link-opa) !important
|
||||||
|
background-color: var(--block) !important
|
||||||
|
.el-button--primary.is-disabled:active,
|
||||||
|
.el-button--primary.is-disabled:focus,
|
||||||
|
.el-button--primary.is-disabled:hover
|
||||||
|
background-color: var(--theme-link-opa) !important
|
||||||
|
|
||||||
|
.el-button:focus,.el-button:hover
|
||||||
|
border-color: var(--theme-link-opa)
|
||||||
|
.el-button:active
|
||||||
|
color: var(--twikoo-theme)
|
||||||
|
border-color: var(--twikoo-theme)
|
||||||
|
.el-button.is-active,.el-button.is-plain:active
|
||||||
|
color: var(--twikoo-theme)
|
||||||
|
border-color: var(--twikoo-theme)
|
||||||
|
|
||||||
|
.el-button--primary
|
||||||
|
background-color: var(--twikoo-theme)
|
||||||
|
border-color: var(--twikoo-theme) !important
|
||||||
|
.el-button--primary:focus,.el-button--primary:hover
|
||||||
|
background: $color-hover
|
||||||
|
border-color: $color-hover !important
|
||||||
|
.el-button--primary:active
|
||||||
|
background: var(--twikoo-theme)
|
||||||
|
border-color: var(--twikoo-theme)
|
||||||
|
.el-button--primary.is-active
|
||||||
|
background: var(--twikoo-theme)
|
||||||
|
border-color: var(--twikoo-theme)
|
||||||
|
.el-button--primary.is-disabled,
|
||||||
|
.el-button--primary.is-disabled:active,
|
||||||
|
.el-button--primary.is-disabled:focus,
|
||||||
|
.el-button--primary.is-disabled:hover
|
||||||
|
background-color: var(--theme-link-opa) !important
|
||||||
|
border-color: var(--theme-link-opa) !important
|
||||||
|
.el-button--primary.is-plain
|
||||||
|
color: var(--twikoo-theme) !important
|
||||||
|
border-color: var(--theme-link-opa)
|
||||||
|
.el-button--primary.is-plain:focus,
|
||||||
|
.el-button--primary.is-plain:hover
|
||||||
|
background: var(--twikoo-theme) !important
|
||||||
|
border-color: var(--twikoo-theme)
|
||||||
|
.el-button--primary.is-plain:active
|
||||||
|
background: var(--twikoo-theme) !important
|
||||||
|
border-color: var(--twikoo-theme)
|
||||||
|
|
||||||
.tk-action-icon svg
|
.tk-action-icon svg
|
||||||
color: var(--text-p1) !important;
|
color: var(--text-p2)
|
||||||
|
|
||||||
|
.tk-action-link
|
||||||
|
color: var(--text-p1)
|
||||||
|
&:hover
|
||||||
|
color: var(--twikoo-theme)
|
||||||
|
|
||||||
|
.el-loading-spinner .path
|
||||||
|
stroke: var(--twikoo-theme)
|
||||||
|
|
||||||
|
.tk-icon.__comments
|
||||||
|
color: var(--twikoo-theme)
|
||||||
|
|
||||||
b, strong
|
b, strong
|
||||||
color: var(--twikoo-lighttext);
|
color: var(--text-p1)
|
||||||
|
|
||||||
a
|
a
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
.tk-time, .tk-extras
|
.tk-time, .tk-extras
|
||||||
color: var(--twikoo-secondtext);
|
color: var(--text-p3)
|
||||||
|
|
||||||
.tk-expand
|
.tk-expand
|
||||||
width: auto
|
width: auto
|
||||||
border: none
|
border: none
|
||||||
padding: 6px 2rem
|
padding: 6px 2rem
|
||||||
border-radius: $border-card
|
border-radius: $border-card
|
||||||
background: var(--block)
|
background: var(--block-hover)
|
||||||
color: var(--text-p1)
|
color: var(--text-p1)
|
||||||
line-height: 2
|
line-height: 2
|
||||||
font-size: 14px
|
font-size: 14px
|
||||||
font-weight: 500
|
font-weight: 500
|
||||||
trans()
|
trans1 background
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
background: var(--block-hover)
|
background: var(--card)
|
||||||
|
|
||||||
.tk-comment
|
.tk-comment
|
||||||
margin-top: 0 !important;
|
margin-top: 0
|
||||||
margin-bottom: 1rem
|
margin-bottom: 1rem
|
||||||
border: 1px dashed var(--block-border);
|
border: 1px dashed var(--block-border)
|
||||||
padding: 1rem;
|
padding: 1rem
|
||||||
border-radius: $border-card;
|
border-radius: $border-card
|
||||||
background: var(--card);
|
background: var(--block)
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
border-color: var(--twikoo-theme);
|
border-color: var(--twikoo-theme)
|
||||||
|
|
||||||
.tk-main .tk-comment
|
.tk-main .tk-comment
|
||||||
margin-top: 1rem !important;
|
margin-top: 1rem
|
||||||
margin-bottom: 0;
|
margin-bottom: 0
|
||||||
|
|
||||||
.tk-submit
|
.tk-submit
|
||||||
padding: 1rem 1rem 0 1rem;
|
padding: 1rem 1rem 0 1rem
|
||||||
border-radius: $border-card;
|
border-radius: $border-card
|
||||||
background: var(--card);
|
background: var(--block)
|
||||||
|
|
||||||
.tk-tag
|
.tk-tag
|
||||||
vertical-align: 0.1em !important;
|
vertical-align: 0.1em
|
||||||
|
|
||||||
|
.tk-tag-green
|
||||||
|
border: none
|
||||||
|
background-color: var(--theme-link-opa)
|
||||||
|
color: var(--twikoo-theme)
|
||||||
|
|
||||||
.tk-comments-title .tk-comments-count
|
.tk-comments-title .tk-comments-count
|
||||||
margin-top: 15px;
|
margin-top: 15px
|
||||||
color: var(--text-p1);
|
color: var(--text-p1)
|
||||||
|
|
||||||
span:nth-child(1)
|
span:nth-child(1)
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem
|
||||||
font-weight: 700;
|
font-weight: 700
|
||||||
|
|
||||||
span:nth-child(2)
|
span:nth-child(2)
|
||||||
font-size: 1rem;
|
font-size: 1rem
|
||||||
|
|
||||||
.tk-comments-no
|
.tk-comments-no
|
||||||
color: var(--text-p1);
|
color: var(--text-p1)
|
||||||
|
|
||||||
_dark_comments()
|
|
||||||
.cmt-body.twikoo
|
|
||||||
--twikoo-lighttext: $color-link;
|
|
||||||
--twikoo-secondtext: var(--text-p2);
|
|
||||||
--twikoo-theme: $color-theme;
|
|
||||||
|
|
||||||
|
|
||||||
if theme(dark)
|
if theme(dark)
|
||||||
_dark_comments()
|
_dark_comments()
|
||||||
|
|
Loading…
Reference in New Issue