spring.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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-highlighted: rgba($primary, 0.5);
  32. // Font colors
  33. $color-global: black;
  34. $color-reversal: white;
  35. $color-link: $subthemecolor;
  36. $color-link-hover: lighten($subthemecolor, 10%);
  37. $color-link-wiki: $subthemecolor;
  38. $color-link-wiki-hover: lighten($color-link-wiki, 10%);
  39. $color-link-nabvar: $bgcolor-global;
  40. $color-inline-code: #c7254e; // optional
  41. // List Group colors
  42. // $color-list: $color-global;
  43. $bgcolor-list: $themelight;
  44. $color-list-hover: lighten($accentcolor, 20%);
  45. $bgcolor-list-hover: darken($bgcolor-list, 2%);
  46. $color-list-active: $bgcolor-global;
  47. $bgcolor-list-active: $accentcolor;
  48. // Navbar
  49. $bgcolor-navbar: #d3687c;
  50. $bgcolor-search-top-dropdown: $themecolor;
  51. $border-image-navbar: linear-gradient(to right, #cbe682 0%, #4ad6e8 50%, #ea42f0 100%);
  52. // Logo colors
  53. $bgcolor-logo: $bgcolor-navbar;
  54. $fillcolor-logo-mark: lighten(desaturate($bgcolor-inline-code, 10%), 15%);
  55. // Sidebar
  56. $bgcolor-sidebar: $themecolor;
  57. // Sidebar resize button
  58. $color-resize-button: $color-reversal;
  59. $bgcolor-resize-button: $subthemecolor;
  60. $color-resize-button-hover: $color-reversal;
  61. $bgcolor-resize-button-hover: lighten($bgcolor-resize-button, 5%);
  62. // Sidebar contents
  63. $color-sidebar-context: $subthemecolor;
  64. $bgcolor-sidebar-context: #f4f6fc;
  65. // Sidebar list group
  66. $bgcolor-sidebar-list-group: #fafbff; // optional
  67. // Icon colors
  68. $color-editor-icons: $color-global;
  69. // Border colors
  70. $border-color-theme: $gray-300; // former: `$navbar-border: $gray-300;`
  71. $bordercolor-inline-code: #ccc8c8; // optional
  72. // Dropdown colors
  73. $bgcolor-dropdown-link-active: $growi-blue;
  74. $color-dropdown-link-active: $color-reversal;
  75. $color-dropdown-link-hover: $color-global;
  76. // admin theme box
  77. $color-theme-color-box: darken($primary, 20%);
  78. @import 'apply-colors';
  79. @import '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 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 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. }