ThemeIsland.module.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. @use '../../styles/variables' as *;
  2. @use '../../styles/bootstrap/variables' as *;
  3. @use '../../styles/theme/mixins/page-editor-mode-manager';
  4. @use '../../styles/mixins';
  5. $color-primary: #97cbc3;
  6. $color-themelight: rgba(183, 226, 219, 1);
  7. .theme :global {
  8. $primary: $color-primary;
  9. // Background colors
  10. $bgcolor-card: $gray-50;
  11. $bgcolor-global: lighten($color-themelight, 10%);
  12. $bgcolor-inline-code: $gray-100; //optional
  13. $bgcolor-blinked-section: rgba($primary, 0.3);
  14. //$bgcolor-keyword-highlighted: $grw-marker-yellow;
  15. // Font colors
  16. $color-global: #112744;
  17. $color-reversal: #eeeeee;
  18. // $color-header: #2b2b2b;
  19. $color-link: #3c6d72;
  20. $color-link-hover: lighten($color-link, 20%);
  21. $color-link-wiki: $color-link;
  22. $color-link-wiki-hover: lighten($color-link-wiki, 20%);
  23. $color-link-nabvar: $color-reversal;
  24. $color-inline-code: #c7254e; // optional
  25. // List Group colors
  26. // $color-list: $color-global;
  27. // $bgcolor-list: lighten($color-themelight, 10%);
  28. // $color-list-hover: ;
  29. $bgcolor-list-hover: $color-themelight;
  30. $color-list-active: $color-global;
  31. $bgcolor-list-active: $primary;
  32. // Table colors
  33. // $color-table: #; // optional
  34. // $bgcolor-table: #; // optional
  35. $border-color-table: $primary; // optional
  36. // $color-table-hover: #; // optional
  37. // $bgcolor-table-hover: #; // optional
  38. // Navbar
  39. $bgcolor-navbar: #302e2e;
  40. $bgcolor-search-top-dropdown: $color-primary;
  41. $border-image-navbar: linear-gradient(to right, #5ce4ef 0%, #5953eb 100%);
  42. // Logo colors
  43. $bgcolor-logo: #0d3955;
  44. $fillcolor-logo-mark: lighten(desaturate($bgcolor-inline-code, 10%), 15%);
  45. // Sidebar
  46. $bgcolor-sidebar: #0d3955;
  47. $bgcolor-sidebar-nav-item-active: rgba(black, 0.37);
  48. // $bgcolor-sidebar-nav-item-active: rgba(#969494, 0.3); // optional
  49. $text-shadow-sidebar-nav-item-active: 0px 0px 10px #0099ff; // optional
  50. // Sidebar resize button
  51. $color-resize-button: white;
  52. $bgcolor-resize-button: $primary;
  53. $color-resize-button-hover: white;
  54. $bgcolor-resize-button-hover: darken($bgcolor-resize-button, 5%);
  55. // Sidebar contents
  56. $bgcolor-sidebar-context: #e2f3f1;
  57. $color-sidebar-context: $color-link;
  58. // Sidebar list group
  59. $bgcolor-sidebar-list-group: #eff8f7; // optional
  60. // Tabs
  61. $bordercolor-nav-tabs: $gray-300; // optional
  62. // Icon colors
  63. $color-editor-icons: $color-global;
  64. // Border colors
  65. $border-color-theme: $gray-300;
  66. $bordercolor-inline-code: #ccc8c8; // optional
  67. // Dropdown colors
  68. $bgcolor-dropdown-link-active: $growi-blue;
  69. // admin theme box
  70. $color-theme-color-box: darken($primary, 15%);
  71. @import '../../styles/theme/apply-colors';
  72. @import '../../styles/theme/apply-colors-light';
  73. .rbt-menu {
  74. background: lighten($color-themelight, 5%);
  75. }
  76. #wrapper > #page-wrapper,
  77. .page-editor-preview-container {
  78. background-image: url('/images/themes/island/island.png');
  79. background-attachment: fixed;
  80. }
  81. // login page
  82. .nologin {
  83. &.login-page {
  84. > #wrapper > #page-wrapper {
  85. background-image: unset;
  86. }
  87. }
  88. }
  89. // Button
  90. .btn-group.grw-page-editor-mode-manager {
  91. .btn.btn-outline-primary {
  92. @include page-editor-mode-manager.btn-page-editor-mode-manager(darken($primary, 50%), lighten($primary, 5%), darken($primary, 5%));
  93. }
  94. }
  95. // Cards
  96. .admin-bot-card {
  97. .grw-botcard-title-active {
  98. color: $color-reversal;
  99. }
  100. }
  101. /*
  102. * GROWI Sidebar
  103. */
  104. .grw-sidebar {
  105. // Pagetree
  106. .grw-pagetree {
  107. .grw-pagetree-triangle-btn {
  108. @include mixins.button-outline-svg-icon-variant($gray-400, $bgcolor-sidebar);
  109. }
  110. }
  111. }
  112. }