ThemeSpring.module.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. //== Light Mode
  24. //
  25. .theme :global {
  26. $primary: $themecolor;
  27. $secondary: $accentcolor;
  28. // Background colors
  29. $bgcolor-global: white;
  30. $bgcolor-inline-code: $gray-100; //optional
  31. $bgcolor-card: $gray-50;
  32. $bgcolor-blinked-section: rgba($primary, 0.5);
  33. $bgcolor-keyword-highlighted: $grw-marker-cyan;
  34. // Font colors
  35. $color-global: black;
  36. $color-reversal: white;
  37. $color-link: $subthemecolor;
  38. $color-link-hover: lighten($subthemecolor, 10%);
  39. $color-link-wiki: $subthemecolor;
  40. $color-link-wiki-hover: lighten($color-link-wiki, 10%);
  41. $color-link-nabvar: $bgcolor-global;
  42. $color-inline-code: #c7254e; // optional
  43. // List Group colors
  44. // $color-list: $color-global;
  45. $bgcolor-list: $themelight;
  46. $color-list-hover: lighten($accentcolor, 20%);
  47. $bgcolor-list-hover: darken($bgcolor-list, 2%);
  48. $color-list-active: $bgcolor-global;
  49. $bgcolor-list-active: $accentcolor;
  50. // Navbar
  51. $bgcolor-navbar: #d3687c;
  52. $bgcolor-search-top-dropdown: $themecolor;
  53. $border-image-navbar: linear-gradient(to right, #cbe682 0%, #4ad6e8 50%, #ea42f0 100%);
  54. // Logo colors
  55. $bgcolor-logo: $bgcolor-navbar;
  56. $fillcolor-logo-mark: lighten(desaturate($bgcolor-inline-code, 10%), 15%);
  57. // Sidebar
  58. $bgcolor-sidebar: $themecolor;
  59. // Sidebar resize button
  60. $color-resize-button: $color-reversal;
  61. $bgcolor-resize-button: $subthemecolor;
  62. $color-resize-button-hover: $color-reversal;
  63. $bgcolor-resize-button-hover: lighten($bgcolor-resize-button, 5%);
  64. // Sidebar contents
  65. $color-sidebar-context: $subthemecolor;
  66. $bgcolor-sidebar-context: #fdfffe;
  67. // Sidebar list group
  68. $bgcolor-sidebar-list-group: #fafbff; // optional
  69. // Icon colors
  70. $color-editor-icons: $color-global;
  71. // Border colors
  72. $border-color-theme: $gray-300; // former: `$navbar-border: $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, 20%);
  78. @import '../../styles/theme/apply-colors';
  79. @import '../../styles/theme/apply-colors-light';
  80. //Button
  81. // 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.
  82. .btn.btn-outline-primary {
  83. @include bs.button-outline-variant($accentcolor, $accentcolor, lighten($accentcolor, 20%), $accentcolor);
  84. }
  85. .btn-group.grw-page-editor-mode-manager {
  86. .btn.btn-outline-primary {
  87. @include page-editor-mode-manager.btn-page-editor-mode-manager(darken($primary, 50%), lighten($primary, 5%), lighten($primary, 10%));
  88. }
  89. }
  90. .growi:not(.login-page) {
  91. // add background-image
  92. #page-wrapper,
  93. .page-editor-preview-container {
  94. background-image: url('/images/themes/spring/spring02.svg');
  95. background-attachment: fixed;
  96. background-position: bottom;
  97. background-size: cover;
  98. }
  99. }
  100. // login and register
  101. .nologin {
  102. #page-wrapper {
  103. background-color: $themelight;
  104. background-image: url('/images/themes/spring/spring.svg');
  105. background-attachment: fixed;
  106. background-position: bottom;
  107. background-size: cover;
  108. }
  109. .login-header,
  110. .login-dialog {
  111. background-color: rgba(black, 0.1);
  112. }
  113. .link-switch {
  114. color: $color-global;
  115. }
  116. .grw-external-auth-form {
  117. border-color: $accentcolor !important;
  118. }
  119. }
  120. .table {
  121. background-color: $bgcolor-global;
  122. }
  123. /*
  124. Cards
  125. */
  126. .card-timeline > .card-header {
  127. background-color: $third-main-color;
  128. }
  129. .admin-bot-card {
  130. .grw-botcard-title-active {
  131. color: $color-reversal;
  132. }
  133. }
  134. h1,
  135. h2 {
  136. color: $subthemecolor;
  137. svg {
  138. fill: $subthemecolor;
  139. }
  140. }
  141. .nav.nav-tabs {
  142. > .nav-item {
  143. > .nav-link.active {
  144. color: $subthemecolor;
  145. }
  146. }
  147. }
  148. }