b3c3efcec9
* re #389, update styling in sidebar and editor for icon consistency * re #389, remove link to unused icon
264 lines
6.2 KiB
SCSS
264 lines
6.2 KiB
SCSS
%toolbar-button {
|
|
@include themify() {
|
|
display: inline-block;
|
|
height: #{44 / $base-font-size}rem;
|
|
width: #{44 / $base-font-size}rem;
|
|
text-align: center;
|
|
border-radius: 100%;
|
|
line-height: #{49 / $base-font-size}rem;
|
|
cursor: pointer;
|
|
border: none;
|
|
outline: none;
|
|
background-color: getThemifyVariable('toolbar-button-background-color');
|
|
color: getThemifyVariable('toolbar-button-color');
|
|
& g {
|
|
fill: getThemifyVariable('toolbar-button-color');
|
|
}
|
|
&:hover {
|
|
background-color: getThemifyVariable('button-background-hover-color');
|
|
color: getThemifyVariable('button-hover-color');
|
|
|
|
& g {
|
|
fill: getThemifyVariable('button-hover-color');
|
|
}
|
|
}
|
|
&--selected {
|
|
background-color: getThemifyVariable('button-background-hover-color');
|
|
& g {
|
|
fill: getThemifyVariable('button-hover-color');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
%icon-toast{
|
|
@include themify() {
|
|
color: $toast-text-color
|
|
& g {
|
|
fill: $toast-text-color
|
|
}
|
|
&:hover {
|
|
color: getThemifyVariable('icon-toast-hover-color');
|
|
& g {
|
|
opacity: 1;
|
|
fill: getThemifyVariable('icon-toast-hover-color');
|
|
}
|
|
}
|
|
}
|
|
background-color: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
%none-themify-icon {
|
|
background-color: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
%none-themify-icon-with-hover {
|
|
color: $icon-color;
|
|
& g {
|
|
fill: $icon-color;
|
|
}
|
|
&:hover {
|
|
color: $icon-hover-color;
|
|
& g {
|
|
opacity: 1;
|
|
fill: $icon-hover-color;
|
|
}
|
|
}
|
|
background-color: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
%button {
|
|
@include themify() {
|
|
background-color: getThemifyVariable('button-background-color');
|
|
color: getThemifyVariable('button-color');
|
|
cursor: pointer;
|
|
border: 2px solid getThemifyVariable('button-border-color');
|
|
border-radius: 2px;
|
|
padding: #{10 / $base-font-size}rem #{30 / $base-font-size}rem;
|
|
&:enabled:hover {
|
|
border-color: getThemifyVariable('button-background-hover-color');
|
|
background-color: getThemifyVariable('button-background-hover-color');
|
|
color: getThemifyVariable('button-hover-color');
|
|
& g {
|
|
fill: getThemifyVariable('button-hover-color');
|
|
}
|
|
}
|
|
&:enabled:active {
|
|
border-color: getThemifyVariable('button-background-active-color');
|
|
background-color: getThemifyVariable('button-background-active-color');
|
|
color: getThemifyVariable('button-active-color');
|
|
& g {
|
|
fill: getThemifyVariable('button-active-color');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
%forms-button {
|
|
background-color: $form-button-background-color;
|
|
color: $form-button-color;
|
|
cursor: pointer;
|
|
border: 2px solid $form-button-color;
|
|
border-radius: 2px;
|
|
padding: #{8 / $base-font-size}rem #{25 / $base-font-size}rem;
|
|
line-height: 1;
|
|
margin: #{39 / $base-font-size}rem 0 #{24 / $base-font-size}rem 0;
|
|
&:enabled:hover {
|
|
border-color: $form-button-background-hover-color;
|
|
background-color: $form-button-background-hover-color;
|
|
color: $form-button-hover-color;
|
|
}
|
|
&:enabled:active {
|
|
border-color: $form-button-background-active-color;
|
|
background-color: $form-button-background-active-color;
|
|
color: $form-button-active-color;
|
|
}
|
|
}
|
|
|
|
%preferences-button {
|
|
@extend %toolbar-button;
|
|
@include themify() {
|
|
color: getThemifyVariable('primary-text-color');
|
|
background-color: getThemifyVariable('modal-button-background-color');
|
|
padding: 0;
|
|
margin-bottom: #{28 / $base-font-size}rem;
|
|
line-height: #{50 / $base-font-size}rem;
|
|
& g {
|
|
fill: getThemifyVariable('modal-button-color');
|
|
}
|
|
&:enabled:hover {
|
|
background-color: getThemifyVariable('button-background-hover-color');
|
|
color: getThemifyVariable('button-hover-color');
|
|
& g {
|
|
fill: getThemifyVariable('button-hover-color');
|
|
}
|
|
}
|
|
&:disabled:hover {
|
|
cursor: not-allowed;
|
|
background-color: getThemifyVariable('modal-button-background-color');
|
|
}
|
|
}
|
|
}
|
|
|
|
%preference-option {
|
|
@include themify() {
|
|
background-color: transparent;
|
|
color: getThemifyVariable('inactive-text-color');
|
|
&:hover {
|
|
color: getThemifyVariable('primary-text-color');
|
|
}
|
|
}
|
|
font-size: #{12 / $base-font-size}rem;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
padding: 0;
|
|
margin-bottom: #{5 / $base-font-size}rem;
|
|
padding-right: #{5 / $base-font-size}rem;
|
|
border: 0;
|
|
list-style-type: none;
|
|
}
|
|
|
|
%modal {
|
|
@include themify() {
|
|
background-color: getThemifyVariable('modal-background-color');
|
|
border: 1px solid getThemifyVariable('modal-border-color');
|
|
box-shadow: 0 12px 12px getThemifyVariable('shadow-color');
|
|
}
|
|
border-radius: 2px;
|
|
z-index: 20;
|
|
}
|
|
|
|
%hidden-element {
|
|
position:absolute;
|
|
left:-10000px;
|
|
top:auto;
|
|
width:1px;
|
|
height:1px;
|
|
overflow:hidden;
|
|
}
|
|
|
|
|
|
%link {
|
|
@include themify() {
|
|
text-decoration: none;
|
|
color: getThemifyVariable('inactive-text-color');
|
|
cursor: pointer;
|
|
&:hover {
|
|
text-decoration: none;
|
|
color: getThemifyVariable('primary-text-color');
|
|
}
|
|
}
|
|
}
|
|
|
|
%dropdown-open {
|
|
@include themify() {
|
|
background-color: map-get($theme-map, 'modal-background-color');
|
|
border: 1px solid map-get($theme-map, 'modal-border-color');
|
|
box-shadow: 0 0 18px 0 getThemifyVariable('shadow-color');
|
|
color: getThemifyVariable('dropdown-color');
|
|
}
|
|
text-align: left;
|
|
width: #{180 / $base-font-size}rem;
|
|
display: flex;
|
|
position: absolute;
|
|
flex-direction: column;
|
|
top: 95%;
|
|
height: auto;
|
|
z-index: 9999;
|
|
border-radius: #{6 / $base-font-size}rem;
|
|
& li:last-child {
|
|
border-radius: 0 0 #{5 / $base-font-size}rem #{5 / $base-font-size}rem;
|
|
}
|
|
& li {
|
|
& button,
|
|
& a {
|
|
@include themify() {
|
|
color: getThemifyVariable('dropdown-color');
|
|
}
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: #{8 / $base-font-size}rem #{16 / $base-font-size}rem;
|
|
}
|
|
height: #{35 / $base-font-size}rem;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
& li:hover {
|
|
@include themify() {
|
|
background-color: getThemifyVariable('button-background-hover-color');
|
|
color: getThemifyVariable('button-hover-color')
|
|
}
|
|
& button, & a {
|
|
@include themify() {
|
|
color: getThemifyVariable('button-hover-color');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
%dropdown-open-left {
|
|
@extend %dropdown-open;
|
|
left: 0;
|
|
border-top-left-radius: 0px;
|
|
& li:first-child {
|
|
border-radius: 0 #{5 / $base-font-size}rem 0 0;
|
|
}
|
|
}
|
|
|
|
%dropdown-open-right {
|
|
@extend %dropdown-open;
|
|
right: 0;
|
|
border-top-right-radius: 0px;
|
|
& li:first-child {
|
|
border-radius: #{5 / $base-font-size}rem 0 0 0;
|
|
}
|
|
}
|