* Material theme (dev) initial release * fix CSP * fix CSP (#268) * fix icon font path * 相対パスの修正 (#269) * fix CSP * fix icon font path * 相対パスの修正 (#270) * fix CSP * fix icon font path * fix font path * Revert "相対パスの修正 (#270)" (#271) This reverts commit27998a80fe. * Revert "相対パスの修正 (#269)" (#272) This reverts commitf864de23f4. * fix relative path * fix override settings * Add variation Update material theme Co-authored-by: YoheiZuho <yuuman002@gmail.com>
69 lines
1.5 KiB
SCSS
69 lines
1.5 KiB
SCSS
@charset "UTF-8";
|
|
@import 'config';
|
|
@import 'mixins';
|
|
|
|
|
|
.react-toggle {
|
|
width: 36px;
|
|
height: 16px;
|
|
border-radius: 15px;
|
|
|
|
&-track {
|
|
background-color: $toggle-track-color;
|
|
margin: 4px;
|
|
width: 36px;
|
|
height: 16px;
|
|
|
|
&-check { visibility: hidden }
|
|
&-x { visibility: hidden }
|
|
}
|
|
|
|
&-thumb {
|
|
@include shadow-1dp;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 0;
|
|
background-color: $toggle-thumb-color;
|
|
}
|
|
|
|
&--checked {
|
|
.react-toggle{
|
|
&-track { background-color: $toggle-track-active-color }
|
|
|
|
&-thumb {
|
|
background-color: $toggle-thumb-active-color;
|
|
left: 22px;
|
|
}
|
|
}
|
|
|
|
&:hover:not(.react-toggle--disabled) .react-toggle-track { background-color: $toggle-track-active-color !important }
|
|
|
|
}
|
|
|
|
&:hover:not(.react-toggle--disabled) .react-toggle-track { background-color: $toggle-track-color }
|
|
}
|
|
|
|
.radio-button {
|
|
padding: 8px 0;
|
|
|
|
&__input {
|
|
border: 2px solid $border-color;
|
|
|
|
&.checked {
|
|
border-color: $icon-button-active-color;
|
|
background: $icon-button-active-color;
|
|
padding: 3px;
|
|
background-clip: content-box;
|
|
}
|
|
}
|
|
}
|
|
|
|
.compose-form__sensitive-button .checkbox {
|
|
border: 2px solid $border-color;
|
|
border-radius: 2px;
|
|
|
|
&.active {
|
|
border-color: $primary-color;
|
|
background: $primary-color;
|
|
}
|
|
} |