diff options
author | crupest <crupest@outlook.com> | 2021-03-18 21:41:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-03-18 21:41:11 +0800 |
commit | 13beccf6154a99c95df8c5d01ccfc67c62f27b5a (patch) | |
tree | bba5482069be68abba7563f7950859e65aff2969 /FrontEnd/src/app/index.sass | |
parent | f9133bcac71a4e3f46830083df0f27e20d65b058 (diff) | |
download | timeline-13beccf6154a99c95df8c5d01ccfc67c62f27b5a.tar.gz timeline-13beccf6154a99c95df8c5d01ccfc67c62f27b5a.tar.bz2 timeline-13beccf6154a99c95df8c5d01ccfc67c62f27b5a.zip |
feat: Prevent send empty.
Diffstat (limited to 'FrontEnd/src/app/index.sass')
-rw-r--r-- | FrontEnd/src/app/index.sass | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/FrontEnd/src/app/index.sass b/FrontEnd/src/app/index.sass index 60f274c2..2079cad8 100644 --- a/FrontEnd/src/app/index.sass +++ b/FrontEnd/src/app/index.sass @@ -45,8 +45,15 @@ small cursor: pointer
padding: 0.2em 0.5em
border-radius: 0.2em
- &:hover
+ &:hover:not(.disabled)
background-color: $gray-200
+ &.disabled
+ cursor: default
+ @each $color, $value in $theme-colors
+ &.#{$color}
+ color: $value
+ &.disabled
+ color: adjust-color($value, $lightness: +15%)
.cursor-pointer
cursor: pointer
@@ -81,10 +88,10 @@ textarea .text-yellow
color: $yellow
-@each $color, $value in $theme-colors
- .text-button
- background: transparent
- border: none
+.text-button
+ background: transparent
+ border: none
+ @each $color, $value in $theme-colors
&.#{$color}
color: $value
&:hover
|