wood.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. @import '../variables';
  2. @import '../override-bootstrap-variables';
  3. // == Define Bootstrap theme colors
  4. //
  5. // colors for overriding bootstrap $theme-colors
  6. // $secondary: #;
  7. // $success: #;
  8. // $warning: #;
  9. // $danger: #;
  10. // $light: #;
  11. // $dark: #;
  12. .growi:not(.login-page) {
  13. // add background-image
  14. #page-wrapper,
  15. .page-editor-preview-container {
  16. background-image: url('/images/themes/wood/wood.jpg');
  17. background-attachment: fixed;
  18. background-position: center center;
  19. background-size: cover;
  20. }
  21. }
  22. .growi.login-page {
  23. #page-wrapper {
  24. background-image: url('/images/themes/wood/wood.jpg');
  25. background-attachment: fixed;
  26. background-position: center center;
  27. background-size: cover;
  28. }
  29. }
  30. $themecolor: #b9b177;
  31. $themelight: #f5f3ee;
  32. //== Light Mode
  33. //
  34. html[light],
  35. html[dark] {
  36. $primary: #aaa45f;
  37. // Background colors
  38. $bgcolor-global: white;
  39. $bgcolor-card: #ece8de;
  40. // Font colors
  41. // $color-global: black;
  42. $color-global: #433005;
  43. $color-reversal: #fffffc;
  44. $color-link: #9d7406;
  45. $color-link-hover: lighten($color-link, 10%);
  46. $color-link-wiki: $color-link;
  47. $color-link-wiki-hover: lighten($color-link-wiki, 10%);
  48. $color-link-nabvar: #a7a7a7;
  49. $color-search: white;
  50. // Inline code
  51. $bgcolor-inline-code: $themelight; //optional
  52. // $color-inline-code: # !default;
  53. $bordercolor-inline-code: $themecolor; //optional
  54. // List Group colors
  55. // $color-list: $color-global;
  56. $bgcolor-list: transparent;
  57. $color-list-hover: $gray-100;
  58. $bgcolor-list-hover: darken($bgcolor-global, 3%);
  59. // $color-list-active: $color-reversal;
  60. // $bgcolor-list-active: $primary;
  61. // Table colors
  62. // $color-table: #; // optional
  63. // $bgcolor-table: #; // optional
  64. $border-color-table: $gray-400; // optional
  65. // $color-table-hover: #; // optional
  66. // $bgcolor-table-hover: #; // optional
  67. // Navbar
  68. $bgcolor-navbar: #2a2929;
  69. $bgcolor-search-top-dropdown: $themecolor;
  70. $border-image-navbar: linear-gradient(to right, $themecolor 0%, darken($themecolor, 20%) 100%);
  71. // Logo colors
  72. $bgcolor-logo: darken($themecolor, 10%);
  73. $fillcolor-logo-mark: lighten(desaturate($themecolor, 50%), 50%); // Icon colors
  74. $color-editor-icons: $color-global;
  75. // Sidebar
  76. $bgcolor-sidebar: transparent;
  77. // Sidebar contents
  78. $color-sidebar-context: #9d7406;
  79. $bgcolor-sidebar-context: transparent;
  80. // Sidebar list group
  81. $bgcolor-sidebar-list-group: rgba(#f7f5f1, 0.5);
  82. // Sidebar resize button
  83. $color-resize-button: white;
  84. $bgcolor-resize-button: $themecolor;
  85. // Border colors
  86. $border-color-theme: $gray-300; // former: `$navbar-border: $gray-300;`
  87. $bordercolor-inline-code: #ccc8c8; // optional
  88. // Dropdown colors
  89. $bgcolor-dropdown-link-active: $growi-blue;
  90. $color-dropdown-link-active: $color-reversal;
  91. $color-dropdown-link-hover: $color-global;
  92. // admin theme box
  93. $color-theme-color-box: lighten($primary, 20%);
  94. // alert
  95. $color-alert: $color-reversal;
  96. // portal
  97. $info: lighten($themecolor, 10%);
  98. @import 'apply-colors';
  99. @import 'apply-colors-light';
  100. /*
  101. * Modal
  102. */
  103. .modal-dialog .modal-header.bg-primary {
  104. background-image: url('/images/themes/wood/wood-navbar.jpg');
  105. }
  106. // Sidebar
  107. .grw-sidebar {
  108. div[data-testid='GlobalNavigation'] {
  109. background-image: url('/images/themes/wood/wood-navbar.jpg');
  110. button,
  111. .btn {
  112. border: none;
  113. }
  114. }
  115. div[data-testid='ContextualNavigation'] {
  116. > div {
  117. background-color: rgba(white, 0.6);
  118. background-image: url('/images/themes/wood/wood-navbar.jpg');
  119. background-blend-mode: lighten;
  120. }
  121. }
  122. }
  123. // login and register
  124. .nologin {
  125. background: white;
  126. .login-header,
  127. .login-dialog {
  128. background-color: rgba(black, 0.1);
  129. }
  130. .link-switch {
  131. color: rgba(black, 0.5);
  132. }
  133. .grw-external-auth-form {
  134. border-color: #aaa !important;
  135. }
  136. }
  137. // Button
  138. .grw-three-stranded-button {
  139. .btn.btn-outline-primary {
  140. @include three-stranded-button(darken($primary, 30%), lighten($primary, 15%), lighten($primary, 25%));
  141. }
  142. }
  143. // Dropdown icon
  144. .grw-three-dots-btn:hover,
  145. .grw-three-dots-btn:focus {
  146. // Wrote !important to override bg-transparent styles
  147. background-color: rgba($color-link, 0.15) !important;
  148. }
  149. }