aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/index.sass
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-03-18 22:06:18 +0800
committerGitHub <noreply@github.com>2021-03-18 22:06:18 +0800
commit20c3aff106089ad9dfe83b01f7447b676aa43021 (patch)
tree2d3bb57665686c7d95bcd1b14a6b8b82908aa55c /FrontEnd/src/app/index.sass
parentdb5fed82162c944ee2631297ed99ad4460fd0f07 (diff)
parent9389d2cdadb476310d306c5e1baabca4a6101212 (diff)
downloadtimeline-20c3aff106089ad9dfe83b01f7447b676aa43021.tar.gz
timeline-20c3aff106089ad9dfe83b01f7447b676aa43021.tar.bz2
timeline-20c3aff106089ad9dfe83b01f7447b676aa43021.zip
Merge pull request #387 from crupest/markdown-edit
Markdown edit enhancement!
Diffstat (limited to 'FrontEnd/src/app/index.sass')
-rw-r--r--FrontEnd/src/app/index.sass22
1 files changed, 17 insertions, 5 deletions
diff --git a/FrontEnd/src/app/index.sass b/FrontEnd/src/app/index.sass
index 39dce693..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
@@ -95,3 +102,8 @@ textarea
i
line-height: 1
+
+.markdown-container
+ img
+ max-height: 200px
+ max-width: 100%