wood.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. $bgcolor-highlighted: rgba($primary, 0.3);
  41. // Font colors
  42. // $color-global: black;
  43. $color-global: #433005;
  44. $color-reversal: #fffffc;
  45. $color-link: #9d7406;
  46. $color-link-hover: lighten($color-link, 10%);
  47. $color-link-wiki: $color-link;
  48. $color-link-wiki-hover: lighten($color-link-wiki, 10%);
  49. $color-link-nabvar: #a7a7a7;
  50. $color-search: white;
  51. // Inline code
  52. $bgcolor-inline-code: $themelight; //optional
  53. // $color-inline-code: # !default;
  54. $bordercolor-inline-code: $themecolor; //optional
  55. // List Group colors
  56. // $color-list: $color-global;
  57. $bgcolor-list: transparent;
  58. $color-list-hover: $gray-100;
  59. $bgcolor-list-hover: darken($bgcolor-global, 3%);
  60. // $color-list-active: $color-reversal;
  61. // $bgcolor-list-active: $primary;
  62. // Table colors
  63. // $color-table: #; // optional
  64. // $bgcolor-table: #; // optional
  65. $border-color-table: $gray-400; // optional
  66. // $color-table-hover: #; // optional
  67. // $bgcolor-table-hover: #; // optional
  68. // Navbar
  69. $bgcolor-navbar: #2a2929;
  70. $bgcolor-search-top-dropdown: $themecolor;
  71. $border-image-navbar: linear-gradient(to right, $themecolor 0%, darken($themecolor, 20%) 100%);
  72. // Logo colors
  73. $bgcolor-logo: darken($themecolor, 10%);
  74. $fillcolor-logo-mark: lighten(desaturate($themecolor, 50%), 50%); // Icon colors
  75. $color-editor-icons: $color-global;
  76. // Sidebar
  77. $bgcolor-sidebar: transparent;
  78. // Sidebar contents
  79. $color-sidebar-context: #9d7406;
  80. $bgcolor-sidebar-context: transparent;
  81. // Sidebar list group
  82. $bgcolor-sidebar-list-group: rgba(#f7f5f1, 0.5);
  83. // Sidebar resize button
  84. $color-resize-button: white;
  85. $bgcolor-resize-button: $themecolor;
  86. // Border colors
  87. $border-color-theme: $gray-300; // former: `$navbar-border: $gray-300;`
  88. $bordercolor-inline-code: #ccc8c8; // optional
  89. // Dropdown colors
  90. $bgcolor-dropdown-link-active: $growi-blue;
  91. $color-dropdown-link-active: $color-reversal;
  92. $color-dropdown-link-hover: $color-global;
  93. // admin theme box
  94. $color-theme-color-box: lighten($primary, 20%);
  95. // alert
  96. $color-alert: $color-reversal;
  97. // portal
  98. $info: lighten($themecolor, 10%);
  99. @import 'apply-colors';
  100. @import 'apply-colors-light';
  101. /*
  102. * Modal
  103. */
  104. .modal-dialog .modal-header.bg-primary {
  105. background-image: url('/images/themes/wood/wood-navbar.jpg');
  106. }
  107. // Sidebar
  108. .grw-sidebar {
  109. div[data-testid='GlobalNavigation'] {
  110. background-image: url('/images/themes/wood/wood-navbar.jpg');
  111. button,
  112. .btn {
  113. border: none;
  114. }
  115. }
  116. div[data-testid='ContextualNavigation'] {
  117. > div {
  118. background-color: rgba(white, 0.6);
  119. background-image: url('/images/themes/wood/wood-navbar.jpg');
  120. background-blend-mode: lighten;
  121. }
  122. }
  123. }
  124. // login and register
  125. .nologin {
  126. background: white;
  127. .login-header,
  128. .login-dialog {
  129. background-color: rgba(black, 0.1);
  130. }
  131. .link-switch {
  132. color: rgba(black, 0.5);
  133. }
  134. .grw-external-auth-form {
  135. border-color: #aaa !important;
  136. }
  137. }
  138. // Button
  139. .btn-group.grw-page-editor-mode-manager {
  140. .btn.btn-outline-primary {
  141. @include btn-page-editor-mode-manager(darken($primary, 30%), lighten($primary, 15%), lighten($primary, 25%));
  142. }
  143. }
  144. }