Skip to content

Commit

Permalink
feat(options): update options svg styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Sisha0 committed Mar 4, 2022
1 parent 8b805af commit e4686ba
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 13 deletions.
40 changes: 34 additions & 6 deletions src/plugins/options/option/option.less
Original file line number Diff line number Diff line change
@@ -1,14 +1,42 @@
uip-option {
display: block;
cursor: pointer;
width: 1.5rem;
height: 1.5rem;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
margin: 0 0.5rem;
color: #5F5F5F;
cursor: pointer;
fill-opacity: 0.25;

&[attribute="settings-collapsed"],
&[attribute="editor-collapsed"],
&[attribute="rtl-direction"] {
stroke-width: 0.1;

&[active] {
stroke-width: 0.7;
fill-opacity: 1;
}
}

&[attribute="dark-theme"] {
svg {
stroke: none;
}

&[active] {
color: @light-text;
}
}

esl-image {
display: block;
height: 100%;
width: 100%;
pointer-events: none;

svg {
width: 100%;
vertical-align: middle;
fill: currentColor;
stroke: currentColor;
}
}
}
8 changes: 8 additions & 0 deletions src/plugins/options/option/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
}
}
}

.uip-option {
&[attribute="settings-collapsed"],
&[attribute="editor-collapsed"],
&[attribute="rtl-direction"] {
color: @light-text;
}
}
}
}
}
2 changes: 1 addition & 1 deletion static/icons/editor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/icons/moon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/icons/rtl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions static/icons/settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/icons/sun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e4686ba

Please sign in to comment.