|
|
@@ -1,5 +1,10 @@
|
|
|
+@use '@growi/core/scss/bootstrap/init' as bs;
|
|
|
+
|
|
|
|
|
|
.grw-slack-switch :global {
|
|
|
+ .input-group-text {
|
|
|
+ background-color: inherit;
|
|
|
+ }
|
|
|
.form-check-input {
|
|
|
cursor: pointer;
|
|
|
background-repeat: no-repeat;
|
|
|
@@ -10,28 +15,44 @@
|
|
|
box-shadow: none;
|
|
|
transition: all 0.4s ease-out;
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
- .form-check-input:not(:checked):not(:focus) {
|
|
|
- background-color: #E4E7EA;
|
|
|
- background-image:
|
|
|
- url('/images/icons/slack/slack-logo-off.svg'),
|
|
|
- url('/images/icons/slack/slack-logo-background.svg');
|
|
|
- background-position: 15%, 5%, 50%, 50%;
|
|
|
- }
|
|
|
+:root[data-bs-theme='light'] {
|
|
|
+ .grw-slack-switch :global {
|
|
|
+ .form-check-input:not(:checked) {
|
|
|
+ background-color: bs.$gray-500;
|
|
|
+ background-image:
|
|
|
+ url('/images/icons/slack/slack-logo-off.svg'),
|
|
|
+ url('/images/icons/slack/slack-logo-background.svg');
|
|
|
+ background-position: 15%, 5%, 50%, 50%;
|
|
|
+ }
|
|
|
|
|
|
- .form-check-input:not(:checked) {
|
|
|
- background-color: #E4E7EA;
|
|
|
- background-image:
|
|
|
- url('/images/icons/slack/slack-logo-off.svg'),
|
|
|
- url('/images/icons/slack/slack-logo-background.svg');
|
|
|
- background-position: 15%, 5%, 50%, 50%;
|
|
|
+ .form-check-input:checked {
|
|
|
+ background-color: #E7A9E8;
|
|
|
+ background-image:
|
|
|
+ url('/images/icons/slack/slack-logo-on.svg'),
|
|
|
+ url('/images/icons/slack/slack-logo-background.svg');
|
|
|
+ background-position: 85%, 95%, 50%, 50%;
|
|
|
+ }
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+:root[data-bs-theme='dark'] {
|
|
|
+ .grw-slack-switch :global {
|
|
|
+ .form-check-input:not(:checked) {
|
|
|
+ background-color: bs.$gray-500;
|
|
|
+ background-image:
|
|
|
+ url('/images/icons/slack/slack-logo-dark-off.svg'),
|
|
|
+ url('/images/icons/slack/slack-logo-dark-background.svg');
|
|
|
+ background-position: 14%, 4%, 50%, 50%;
|
|
|
+ }
|
|
|
|
|
|
- .form-check-input:checked {
|
|
|
- background-color: #E7A9E8;
|
|
|
- background-image:
|
|
|
- url('/images/icons/slack/slack-logo-on.svg'),
|
|
|
- url('/images/icons/slack/slack-logo-background.svg');
|
|
|
- background-position: 85%, 95%, 50%, 50%;
|
|
|
+ .form-check-input:checked {
|
|
|
+ background-color: #731f74;
|
|
|
+ background-image:
|
|
|
+ url('/images/icons/slack/slack-logo-dark-on.svg'),
|
|
|
+ url('/images/icons/slack/slack-logo-dark-background.svg');
|
|
|
+ background-position: 86%, 95%, 50%, 50%;
|
|
|
+ }
|
|
|
}
|
|
|
}
|