SlackNotification.module.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. .grw-slack-switch :global {
  3. .input-group-text {
  4. background-color: inherit;
  5. }
  6. .form-check-input {
  7. cursor: pointer;
  8. background-repeat: no-repeat;
  9. background-attachment:scroll;
  10. background-clip: border-box;
  11. background-origin: padding-box;
  12. background-size: 30%, 45%;
  13. box-shadow: none;
  14. transition: all 0.4s ease-out;
  15. }
  16. .form-control::placeholder {
  17. color: bs.$gray-500
  18. }
  19. }
  20. :root[data-bs-theme='light'] {
  21. .grw-slack-switch :global {
  22. .form-check-input:not(:checked) {
  23. background-color: bs.$gray-200;
  24. background-image:
  25. url('/images/icons/slack/slack-logo-off.svg'),
  26. url('/images/icons/slack/slack-logo-background.svg');
  27. background-position: 15%, 5%, 50%, 50%;
  28. }
  29. .form-check-input:checked {
  30. background-color: #E7A9E8;
  31. background-image:
  32. url('/images/icons/slack/slack-logo-on.svg'),
  33. url('/images/icons/slack/slack-logo-background.svg');
  34. background-position: 85%, 95%, 50%, 50%;
  35. }
  36. }
  37. }
  38. :root[data-bs-theme='dark'] {
  39. .grw-slack-switch :global {
  40. .form-check-input:not(:checked) {
  41. background-color: bs.$gray-200;
  42. background-image:
  43. url('/images/icons/slack/slack-logo-dark-off.svg'),
  44. url('/images/icons/slack/slack-logo-dark-background.svg');
  45. background-position: 14%, 4%, 50%, 50%;
  46. }
  47. .form-check-input:checked {
  48. background-color: #731f74;
  49. background-image:
  50. url('/images/icons/slack/slack-logo-dark-on.svg'),
  51. url('/images/icons/slack/slack-logo-dark-background.svg');
  52. background-position: 86%, 95%, 50%, 50%;
  53. }
  54. }
  55. }