hufflepuff.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. // .grw-navbar {
  14. // border-bottom: $accentcolor 4px solid;
  15. // }
  16. //== Light Mode
  17. //
  18. html[light] {
  19. // Theme colors
  20. $themecolor: #eaab20;
  21. $themelight: #efe2cf;
  22. $subthemecolor: #231e1d;
  23. $accentcolor: #993439;
  24. $primary: $themecolor;
  25. $secondary: $subthemecolor;
  26. // Background colors
  27. $bgcolor-global: lighten($themelight, 10%);
  28. $bgcolor-inline-code: $gray-100; //optional
  29. // ↓spring's copy↓
  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: $accentcolor;
  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: #f0c05a;
  50. $bgcolor-search-top-dropdown: $themecolor;
  51. $border-image-navbar: linear-gradient(to right, #90a555 0%, #a84be6 50%, #eaab20 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: $accentcolor;
  64. $bgcolor-sidebar-context: $themelight;
  65. // Sidebar list group
  66. $bgcolor-sidebar-list-group: $themelight;
  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: $primary;
  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 btn-page-editor-mode-manager(darken($primary, 50%), darken($primary, 50%), lighten($primary, 10%));
  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. .card-timeline > .card-header {
  124. //for now
  125. background-color: $themecolor;
  126. }
  127. h1,
  128. h2 {
  129. svg {
  130. fill: $subthemecolor;
  131. }
  132. }
  133. .nav.nav-tabs {
  134. > .nav-item {
  135. > .nav-link.active {
  136. color: $subthemecolor;
  137. }
  138. }
  139. }
  140. }
  141. html[dark] {
  142. // Theme colors
  143. $themecolor: #eaab20;
  144. $themedark: rgb(36, 36, 0);
  145. $subthemecolor: #231e1d;
  146. $accentcolor: #993439;
  147. $primary: $themecolor;
  148. $secondary: $subthemecolor;
  149. $dark: #031018;
  150. // Background colors
  151. $bgcolor-global: $themedark;
  152. // ↓mono-blue's copy↓
  153. $bgcolor-navbar: #27343b;
  154. $bgcolor-inline-code: $subthemecolor;
  155. $bgcolor-card: darken($themedark, 5%);
  156. $bgcolor-highlighted: rgba($primary, 0.5);
  157. // Font colors
  158. $color-global: #d3d4d4;
  159. $color-reversal: $gray-100;
  160. $color-link: #f0e397;
  161. $color-link-hover: darken($color-link, 12%);
  162. $color-link-wiki: lighten($primary, 20%);
  163. $color-link-wiki-hover: lighten($color-link-wiki, 20%);
  164. $color-link-nabvar: $color-reversal;
  165. $color-inline-code: $themecolor;
  166. // $color-inline-code: #c7254e; // optional
  167. $color-search: #000102;
  168. // List Group colors
  169. // $color-list: $color-global;
  170. $bgcolor-list: transparent;
  171. $color-list-hover: $accentcolor;
  172. // $bgcolor-list-hover: lighten($bgcolor-global, 3%);
  173. // $color-list-active: $color-reversal;
  174. // $bgcolor-list-active: $primary;
  175. // Navbar
  176. $bgcolor-navbar: #967224;
  177. $bgcolor-search-top-dropdown: $themecolor;
  178. $border-image-navbar: linear-gradient(to right, #90a555 0%, #3d98a3 50%, #eaab20 100%);
  179. // Logo colors
  180. $bgcolor-logo: #13191c;
  181. $fillcolor-logo-mark: white;
  182. // Sidebar
  183. $bgcolor-sidebar: $themecolor;
  184. // $bgcolor-sidebar-nav-item-active: rgba(#, 0.3); // optional
  185. $text-shadow-sidebar-nav-item-active: 0px 0px 10px #0099ff; // optional
  186. // Sidebar resize button
  187. $color-resize-button: $color-global;
  188. $bgcolor-resize-button: $subthemecolor;
  189. $color-resize-button-hover: $color-global;
  190. $bgcolor-resize-button-hover: darken($bgcolor-resize-button, 5%);
  191. // Sidebar contents
  192. // $bgcolor-sidebar-context: $subthemecolor;
  193. $bgcolor-sidebar-context: lighten($themedark, 5%);
  194. $color-sidebar-context: $color-global;
  195. // Sidebar list group
  196. // $bgcolor-sidebar-list-group: #; // optional
  197. // Icon colors
  198. $color-editor-icons: $color-global;
  199. // Border colors
  200. $border-color-theme: #146aa0;
  201. $bordercolor-inline-code: #4d4d4d; // optional
  202. // Dropdown colors
  203. $bgcolor-dropdown-link-active: $primary;
  204. $color-dropdown-link-active: $color-global;
  205. $color-dropdown-link-hover: $color-reversal;
  206. // admin theme box
  207. $color-theme-color-box: $primary;
  208. @import 'apply-colors';
  209. @import 'apply-colors-dark';
  210. // Navs
  211. .nav-tabs {
  212. border-bottom: $border-color-theme 1px solid;
  213. .nav-link {
  214. &:hover {
  215. border-color: lighten($border-color-theme, 10%);
  216. border-bottom: none;
  217. }
  218. &.active {
  219. color: $color-link;
  220. background-color: transparent;
  221. border-color: $border-color-theme;
  222. }
  223. }
  224. }
  225. // Table
  226. .table {
  227. color: white;
  228. }
  229. // Button
  230. .btn-group.grw-page-editor-mode-manager {
  231. .btn.btn-outline-primary {
  232. @include btn-page-editor-mode-manager(lighten($primary, 30%), $primary, darken($primary, 10%), darken($primary, 20%));
  233. }
  234. }
  235. }