ThemeSpring.module.scss 4.1 KB

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