mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: fix marker
This commit is contained in:
1 parent
7151f71417
commit
d5a2db90d5
4 files changed
+9
-4
No files matched your search
@@ -33,6 +33,7 @@ class Marker {
|
||||
<div class="marker" id="${MARKER_ID}"><div class="marker__toolbar">
|
||||
<div class="marker__action" data-color="#ffff00" data-tooltip="${i18n('Mark Yellow')}"><span class="marker__icon icon-yellow"></span></div>
|
||||
<div class="marker__action" data-color="#47ff6f" data-tooltip="${i18n('Mark Green')}"><span class="marker__icon icon-green"></span></div>
|
||||
<div class="marker__action" data-color="#ff3b30" data-tooltip="${i18n('Mark Red')}"><span class="marker__icon icon-red"></span></div>
|
||||
<div class="marker__action" data-color="transparent" data-tooltip="${i18n('Clear Marks')}"><span class="icon icon-erase"></span></div>
|
||||
</div></div>
|
||||
`)
|
||||
|
||||
@@ -20,13 +20,13 @@ body > .marker
|
||||
transform: none
|
||||
pointer-events: auto
|
||||
|
||||
&__toolbar
|
||||
.marker__toolbar
|
||||
padding: 1px
|
||||
background: $toolbar-bg
|
||||
white-space: nowrap
|
||||
font-size: 0
|
||||
|
||||
&__action
|
||||
.marker__action
|
||||
display: inline-block
|
||||
text-align: center
|
||||
font-size: rem($font-size-icon)
|
||||
@@ -40,7 +40,7 @@ body > .marker
|
||||
background: $toolbar-bg-hover
|
||||
color: $toolbar-fore-hover
|
||||
|
||||
&__icon
|
||||
.marker__icon
|
||||
display: block
|
||||
margin: rem(2px)
|
||||
width: rem(12px)
|
||||
@@ -52,3 +52,6 @@ body > .marker
|
||||
|
||||
&.icon-green
|
||||
background: #54d651
|
||||
|
||||
&.icon-red
|
||||
background: #ff3b30
|
||||
Reference in new issue
Block a user