ThemeSpring.module.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. @use '../../styles/variables' as *;
  2. @use '../../styles/bootstrap/variables' as *;
  3. @use '../../styles/theme/mixins/page-editor-mode-manager';
  4. @use '../../styles/bootstrap/init' as bs;
  5. // == Define Bootstrap theme colors
  6. //
  7. // colors for overriding bootstrap $theme-colors
  8. // $secondary: #;
  9. // $info: #;
  10. // $success: #;
  11. // $warning: #;
  12. // $danger: #;
  13. // $light: #;
  14. // $dark: #;
  15. $themecolor: #ffb8c6;
  16. $themelight: #fff0f5;
  17. $subthemecolor: #67a856;
  18. $third-main-color: antiquewhite;
  19. $accentcolor: #e08dbc;
  20. .grw-navbar {
  21. border-bottom: $accentcolor 4px solid;
  22. }
  23. .theme :global {
  24. .grw-bg-image-wrapper {
  25. position: fixed;
  26. width: 100%;
  27. height: 100%;
  28. }
  29. .grw-bg-image {
  30. object-fit: cover;
  31. object-position: bottom;
  32. }
  33. }
  34. //== Light Mode
  35. //
  36. .theme :global {
  37. $primary: $themecolor;
  38. $secondary: $accentcolor;
  39. // Background colors
  40. $bgcolor-global: white;
  41. $bgcolor-inline-code: $gray-100; //optional
  42. $bgcolor-card: $gray-50;
  43. $bgcolor-blinked-section: rgba($primary, 0.5);
  44. $bgcolor-keyword-highlighted: $grw-marker-cyan;
  45. // Font colors
  46. $color-global: black;
  47. $color-reversal: white;
  48. $color-link: $subthemecolor;
  49. $color-link-hover: lighten($subthemecolor, 10%);
  50. $color-link-wiki: $subthemecolor;
  51. $color-link-wiki-hover: lighten($color-link-wiki, 10%);
  52. $color-link-nabvar: $bgcolor-global;
  53. $color-inline-code: #c7254e; // optional
  54. // List Group colors
  55. // $color-list: $color-global;
  56. $bgcolor-list: $themelight;
  57. $color-list-hover: lighten($accentcolor, 20%);
  58. $bgcolor-list-hover: darken($bgcolor-list, 2%);
  59. $color-list-active: $bgcolor-global;
  60. $bgcolor-list-active: $accentcolor;
  61. // Navbar
  62. $bgcolor-navbar: #d3687c;
  63. $bgcolor-search-top-dropdown: $themecolor;
  64. $border-image-navbar: linear-gradient(to right, #cbe682 0%, #4ad6e8 50%, #ea42f0 100%);
  65. // Logo colors
  66. $bgcolor-logo: $bgcolor-navbar;
  67. $fillcolor-logo-mark: lighten(desaturate($bgcolor-inline-code, 10%), 15%);
  68. // Sidebar
  69. $bgcolor-sidebar: $themecolor;
  70. // Sidebar resize button
  71. $color-resize-button: $color-reversal;
  72. $bgcolor-resize-button: $subthemecolor;
  73. $color-resize-button-hover: $color-reversal;
  74. $bgcolor-resize-button-hover: lighten($bgcolor-resize-button, 5%);
  75. // Sidebar contents
  76. $color-sidebar-context: $subthemecolor;
  77. $bgcolor-sidebar-context: #fdfffe;
  78. // Sidebar list group
  79. $bgcolor-sidebar-list-group: #fafbff; // optional
  80. // Icon colors
  81. $color-editor-icons: $color-global;
  82. // Border colors
  83. $border-color-theme: $gray-300; // former: `$navbar-border: $gray-300;`
  84. $bordercolor-inline-code: #ccc8c8; // optional
  85. // Dropdown colors
  86. $bgcolor-dropdown-link-active: $growi-blue;
  87. // admin theme box
  88. $color-theme-color-box: darken($primary, 20%);
  89. @import '../../styles/theme/apply-colors';
  90. @import '../../styles/theme/apply-colors-light';
  91. //Button
  92. // Outline buttons are applyed the accent color to this spring theme cuz the primary is too light and it looks like unable to click them.
  93. .btn.btn-outline-primary {
  94. @include bs.button-outline-variant($accentcolor, $accentcolor, lighten($accentcolor, 20%), $accentcolor);
  95. }
  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%), lighten($primary, 10%));
  99. }
  100. }
  101. .growi:not(.login-page) {
  102. // add background-image
  103. .page-editor-preview-container {
  104. background-image: url('/images/themes/spring/spring02.svg');
  105. background-attachment: fixed;
  106. background-position: bottom;
  107. background-size: cover;
  108. }
  109. }
  110. // login and register
  111. .nologin {
  112. #page-wrapper {
  113. background-color: $themelight;
  114. background-image: url('/images/themes/spring/spring.svg');
  115. background-attachment: fixed;
  116. background-position: bottom;
  117. background-size: cover;
  118. }
  119. .noLogin-header,
  120. .noLogin-dialog {
  121. background-color: rgba(black, 0.1);
  122. }
  123. .link-switch {
  124. color: $color-global;
  125. }
  126. .grw-external-auth-form {
  127. border-color: $accentcolor !important;
  128. }
  129. }
  130. .table {
  131. background-color: $bgcolor-global;
  132. }
  133. /*
  134. Cards
  135. */
  136. .card-timeline > .card-header {
  137. background-color: $third-main-color;
  138. }
  139. .admin-bot-card {
  140. .grw-botcard-title-active {
  141. color: $color-reversal;
  142. }
  143. }
  144. h1,
  145. h2 {
  146. color: $subthemecolor;
  147. svg {
  148. fill: $subthemecolor;
  149. }
  150. }
  151. .nav.nav-tabs {
  152. > .nav-item {
  153. > .nav-link.active {
  154. color: $subthemecolor;
  155. }
  156. }
  157. }
  158. }