ThemeIsland.module.scss 3.6 KB

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