ThemeHufflepuff.module.scss 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. @use '../../styles/variables' as *;
  2. @use '../../styles/bootstrap/variables' as *;
  3. @use '../../styles/theme/mixins/page-editor-mode-manager';
  4. // == Define Bootstrap theme colors
  5. //
  6. // colors for overriding bootstrap $theme-colors
  7. // $secondary: #;
  8. // $info: #;
  9. // $success: #;
  10. // $warning: #;
  11. // $danger: #;
  12. // $light: #;
  13. // $dark: #;
  14. // .grw-navbar {
  15. // border-bottom: $accentcolor 4px solid;
  16. // }
  17. .theme :global {
  18. .grw-bg-image-wrapper {
  19. position: fixed;
  20. width: 100%;
  21. height: 100%;
  22. }
  23. .grw-bg-image {
  24. object-fit: cover;
  25. object-position: bottom;
  26. }
  27. }
  28. //== Light Mode
  29. //
  30. .theme[data-color-scheme='light'] :global {
  31. // Theme colors
  32. $themecolor: #eaab20;
  33. $themelight: #efe2cf;
  34. $subthemecolor: #231e1d;
  35. $third-main-color: #f0c05a;
  36. $accentcolor: #993439;
  37. $primary: $themecolor;
  38. // $secondary: $subthemecolor;
  39. $secondary: $third-main-color;
  40. // Background colors
  41. $bgcolor-global: lighten($themelight, 10%);
  42. $bgcolor-inline-code: $gray-100; //optional
  43. $bgcolor-card: $gray-100;
  44. $bgcolor-blinked-section: rgba($primary, 0.5);
  45. $bgcolor-keyword-highlighted: $grw-marker-green;
  46. // Font colors
  47. $color-global: $subthemecolor;
  48. $color-reversal: white;
  49. $color-link: $accentcolor;
  50. $color-link-hover: lighten($accentcolor, 10%);
  51. $color-link-wiki: $accentcolor;
  52. $color-link-wiki-hover: lighten($color-link-wiki, 10%);
  53. $color-link-nabvar: $color-reversal;
  54. $color-inline-code: #c7254e; // optional
  55. // List Group colors
  56. // $color-list: $color-global;
  57. $bgcolor-list: transparent;
  58. $color-list-hover: lighten($themecolor, 10%);
  59. // $bgcolor-list-hover: darken($bgcolor-list, 2%);
  60. // $color-list-active: $bgcolor-global;
  61. // $bgcolor-list-active: $accentcolor;
  62. // Navbar
  63. $bgcolor-navbar: $third-main-color;
  64. $bgcolor-search-top-dropdown: $themecolor;
  65. $border-image-navbar: linear-gradient(to right, #90a555 0%, #a84be6 50%, #eaab20 100%);
  66. // Logo colors
  67. $bgcolor-logo: $bgcolor-navbar;
  68. $fillcolor-logo-mark: lighten(desaturate($bgcolor-inline-code, 10%), 15%);
  69. // Sidebar
  70. $bgcolor-sidebar: $themecolor;
  71. // Sidebar resize button
  72. $color-resize-button: $color-reversal;
  73. $bgcolor-resize-button: $subthemecolor;
  74. $color-resize-button-hover: $color-reversal;
  75. $bgcolor-resize-button-hover: lighten($bgcolor-resize-button, 10%);
  76. // Sidebar contents
  77. $color-sidebar-context: $accentcolor;
  78. $bgcolor-sidebar-context: lighten($themelight, 8%);
  79. // Sidebar list group
  80. $bgcolor-sidebar-list-group: lighten($themelight, 10%);
  81. // Icon colors
  82. $color-editor-icons: $accentcolor;
  83. // Border colors
  84. $border-color-theme: lighten($subthemecolor, 40%);
  85. $bordercolor-inline-code: #ccc8c8; // optional
  86. // Dropdown colors
  87. $bgcolor-dropdown-link-active: $growi-blue;
  88. // admin theme box
  89. $color-theme-color-box: darken($primary, 5%);
  90. @import '../../styles/theme/apply-colors';
  91. @import '../../styles/theme/apply-colors-light';
  92. //Button
  93. .btn.btn-outline-primary {
  94. @include page-editor-mode-manager.btn-page-editor-mode-manager(darken($primary, 50%), darken($primary, 50%), lighten($primary, 20%));
  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, 70%), lighten($primary, 5%), lighten($primary, 20%));
  99. }
  100. }
  101. .growi:not(.login-page) {
  102. // add background-image
  103. .page-editor-preview-container {
  104. background-image: url('/images/themes/hufflepuff/badger-light3.png');
  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/hufflepuff/badger-light.png');
  115. background-attachment: fixed;
  116. background-position: bottom;
  117. background-size: cover;
  118. }
  119. .login-header,
  120. .login-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. .card-timeline > .card-header {
  134. background-color: $third-main-color;
  135. }
  136. .nav.nav-tabs {
  137. > .nav-item {
  138. > .nav-link.active {
  139. color: $subthemecolor;
  140. }
  141. }
  142. }
  143. }
  144. .theme[data-color-scheme='dark'] :global {
  145. // Theme colors
  146. $themecolor: #eaab20;
  147. $themedark: #3d3f38;
  148. $subthemecolor: #231e1d;
  149. $third-main-color: #967224;
  150. $accentcolor: #993439;
  151. $primary: darken($themecolor, 10%);
  152. $secondary: $third-main-color;
  153. $dark: #031018;
  154. // Background colors
  155. $bgcolor-global: $themedark;
  156. // $bgcolor-navbar: #27343b;
  157. $bgcolor-inline-code: $subthemecolor;
  158. $bgcolor-card: darken($themedark, 5%);
  159. $bgcolor-blinked-section: rgba($primary, 0.5);
  160. $bgcolor-keyword-highlighted: darken($grw-marker-cyan, 40%);
  161. // Font colors
  162. $color-global: #efe2cf;
  163. $color-reversal: $gray-100;
  164. $color-link: lighten($themecolor, 20%);
  165. $color-link-hover: lighten($color-link, 10%);
  166. $color-link-wiki: lighten($primary, 20%);
  167. $color-link-wiki-hover: lighten($color-link-wiki, 20%);
  168. $color-link-nabvar: $color-reversal;
  169. $color-inline-code: $themecolor;
  170. // $color-inline-code: #c7254e; // optional
  171. // $color-search: #000102;
  172. // List Group colors
  173. // $color-list: $color-global;
  174. $bgcolor-list: transparent;
  175. $color-list-hover: $accentcolor;
  176. // $bgcolor-list-hover: lighten($bgcolor-global, 3%);
  177. // $color-list-active: $color-reversal;
  178. // $bgcolor-list-active: $primary;
  179. // Navbar
  180. $bgcolor-navbar: $third-main-color;
  181. $bgcolor-search-top-dropdown: $themecolor;
  182. $border-image-navbar: linear-gradient(to right, #90a555 0%, #3d98a3 50%, #eaab20 100%);
  183. // Logo colors
  184. $bgcolor-logo: #13191c;
  185. $fillcolor-logo-mark: white;
  186. // Sidebar
  187. $bgcolor-sidebar: $themecolor;
  188. // $bgcolor-sidebar-nav-item-active: rgba(#, 0.3); // optional
  189. $text-shadow-sidebar-nav-item-active: 0px 0px 10px #cc951e; // optional
  190. // Sidebar resize button
  191. $color-resize-button: $color-global;
  192. $bgcolor-resize-button: $accentcolor;
  193. $color-resize-button-hover: $color-global;
  194. $bgcolor-resize-button-hover: darken($bgcolor-resize-button, 7%);
  195. // Sidebar contents
  196. $color-sidebar-context: $color-global;
  197. $bgcolor-sidebar-context: lighten($themedark, 5%);
  198. // Sidebar list group
  199. $bgcolor-sidebar-list-group: lighten($subthemecolor, 5%);
  200. // Icon colors
  201. $color-editor-icons: $themecolor;
  202. // Border colors
  203. $border-color-theme: darken($themecolor, 25%);
  204. $bordercolor-inline-code: #4d4d4d; // optional
  205. // Dropdown colors
  206. $color-dropdown-link-active: $color-reversal;
  207. $color-dropdown-link-hover: $color-global;
  208. // admin theme box
  209. $color-theme-color-box: $primary;
  210. @import '../../styles/theme/apply-colors';
  211. @import '../../styles/theme/apply-colors-dark';
  212. // Navs
  213. .nav-tabs {
  214. border-bottom: $border-color-theme 1px solid;
  215. .nav-link {
  216. &:hover {
  217. border-color: lighten($border-color-theme, 10%);
  218. border-bottom: none;
  219. }
  220. &.active {
  221. color: $color-link;
  222. background-color: transparent;
  223. border-color: $border-color-theme;
  224. }
  225. }
  226. }
  227. // Table
  228. .table {
  229. color: white;
  230. }
  231. // Button
  232. .btn.btn-outline-primary {
  233. @include page-editor-mode-manager.btn-page-editor-mode-manager(lighten($primary, 40%), lighten($primary, 15%), darken($primary, 10%), darken($primary, 30%));
  234. }
  235. .btn-group.grw-page-editor-mode-manager {
  236. .btn.btn-outline-primary {
  237. @include page-editor-mode-manager.btn-page-editor-mode-manager(lighten($primary, 40%), lighten($primary, 15%), darken($primary, 0%), darken($primary, 30%));
  238. }
  239. }
  240. .card-timeline > .card-header {
  241. background-color: $accentcolor;
  242. }
  243. .growi:not(.login-page) {
  244. // add background-image
  245. .page-editor-preview-container {
  246. background-image: url('/images/themes/hufflepuff/badger-dark.jpg');
  247. background-attachment: fixed;
  248. background-position: bottom;
  249. background-size: cover;
  250. }
  251. }
  252. // login and register
  253. .nologin {
  254. #page-wrapper {
  255. background-color: $themedark;
  256. background-image: url('/images/themes/hufflepuff/badger-light.png');
  257. background-attachment: fixed;
  258. background-position: bottom;
  259. background-size: cover;
  260. }
  261. .login-header,
  262. .login-dialog {
  263. background-color: rgba(black, 0.1);
  264. }
  265. .link-switch {
  266. color: $color-global;
  267. }
  268. .grw-external-auth-form {
  269. border-color: $accentcolor !important;
  270. }
  271. }
  272. }