ThemeChristmas.module.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. $themecolor: #b3000c;
  15. $themelight: white;
  16. $subthemecolor: #30882c;
  17. $bgcolor-global: $themelight;
  18. $linktext: $subthemecolor;
  19. $linktext-hover: lighten($subthemecolor, 15%);
  20. $sidebar-text: white;
  21. $fillcolor-logo-mark: lighten(desaturate($themecolor, 50%), 50%);
  22. $color-link-wiki: lighten($subthemecolor, 5%);
  23. $color-link-wiki-hover: lighten($color-link-wiki, 15%);
  24. .growi:not(.login-page) {
  25. // add background-image
  26. .page-editor-preview-container {
  27. background-image: url('/images/themes/christmas/christmas.jpg');
  28. background-attachment: fixed;
  29. background-position: center center;
  30. background-size: cover;
  31. }
  32. }
  33. .theme :global {
  34. .grw-bg-image-wrapper {
  35. position: fixed;
  36. width: 100%;
  37. height: 100%;
  38. }
  39. .grw-bg-image {
  40. object-fit: cover;
  41. }
  42. }
  43. //== Light Mode
  44. //
  45. .theme :global {
  46. $primary: #d3c665;
  47. // Background colors
  48. $bgcolor-card: $gray-50;
  49. $bgcolor-inline-code: $gray-100; //optional
  50. $bgcolor-blinked-section: rgba($primary, 0.5);
  51. //$bgcolor-keyword-highlighted: $grw-marker-yellow;
  52. // Font colors
  53. $color-global: #112744;
  54. $color-reversal: $gray-100;
  55. $color-link: $subthemecolor;
  56. $color-link-hover: lighten($color-link, 10%);
  57. $color-link-nabvar: $color-reversal;
  58. $color-inline-code: #c7254e; // optional
  59. $color-modal-header: $themelight;
  60. // Table colors
  61. $border-color-table: $gray-400; // optional
  62. // List Group colors
  63. // $color-list: $color-global;
  64. $bgcolor-list: transparent;
  65. // $color-list-hover: $color-reversal;
  66. $color-list-active: $themelight;
  67. $bgcolor-list-active: $themecolor;
  68. // Navbar
  69. $bgcolor-navbar: $themecolor;
  70. $bgcolor-search-top-dropdown: $primary;
  71. $border-color-navbar-gradient-left: #545fff;
  72. $border-color-navbar-gradient-right: #00a6e5;
  73. $border-image-navbar: linear-gradient(to right, $primary 0%, $subthemecolor 100%);
  74. // Logo colors
  75. $bgcolor-logo: $themecolor;
  76. // Sidebar
  77. $bgcolor-sidebar: $subthemecolor;
  78. $bgcolor-sidebar-nav-item-active: rgba(black, 0.37); // optional
  79. $text-shadow-sidebar-nav-item-active: 0px 0px 10px $primary; // optional
  80. // Sidebar resize button
  81. $color-resize-button: $color-reversal;
  82. $bgcolor-resize-button: $primary;
  83. $color-resize-button-hover: $color-reversal;
  84. $bgcolor-resize-button-hover: lighten($bgcolor-resize-button, 5%);
  85. $color-sidebar-context: $linktext;
  86. $bgcolor-sidebar-context: #f4fcf6;
  87. // Sidebar list group
  88. $bgcolor-sidebar-list-group: #fafbff; // optional
  89. // Icon colors
  90. $color-editor-icons: $color-global;
  91. // Border colors
  92. $border-color-theme: $gray-300; // former: `$navbar-border: $gray-300;`
  93. $bordercolor-inline-code: #ccc8c8; // optional
  94. // Dropdown colors
  95. $bgcolor-dropdown-link-active: $themecolor;
  96. // admin theme box
  97. $color-theme-color-box: lighten($themecolor, 20%);
  98. @import '../../styles/theme/apply-colors';
  99. @import '../../styles/theme/apply-colors-light';
  100. // change color of highlighted header in wiki (default: orange)
  101. .sidebar {
  102. background: $themecolor;
  103. }
  104. .rbt-menu {
  105. background: $themelight;
  106. }
  107. #wrapper > #page-wrapper,
  108. .page-editor-preview-container {
  109. background-image: url('/images/themes/christmas/christmas.jpg');
  110. background-attachment: fixed;
  111. background-size: cover;
  112. }
  113. // login page
  114. .nologin {
  115. .input-group {
  116. .input-group-text {
  117. color: $gray-700;
  118. background-color: rgba(darken(white, 20%), 0.6);
  119. }
  120. .form-control {
  121. color: $gray-700;
  122. background-color: rgba(white, 0.6);
  123. }
  124. }
  125. .login-header,
  126. .login-dialog {
  127. background-color: rgba(#ccc, 0.5);
  128. }
  129. .link-switch {
  130. color: #bd3425;
  131. }
  132. .grw-external-auth-form {
  133. border-color: #aaa !important;
  134. }
  135. }
  136. /*
  137. * Modal
  138. */
  139. .modal-dialog .modal-header.bg-primary {
  140. background-image: url('/images/themes/christmas/christmas-navbar.jpg');
  141. border-bottom: 2px solid $subthemecolor;
  142. }
  143. /*
  144. * Card
  145. */
  146. .card {
  147. &.border-primary {
  148. border-color: $themecolor !important;
  149. }
  150. .card-header.bg-primary {
  151. color: white;
  152. background-image: url('/images/themes/christmas/christmas-navbar.jpg') !important;
  153. }
  154. }
  155. .grw-navbar {
  156. background-image: url('/images/themes/christmas/christmas-navbar.jpg');
  157. }
  158. // Button
  159. .grw-page-editor-mode-manager {
  160. .btn.btn-outline-primary {
  161. @include page-editor-mode-manager.btn-page-editor-mode-manager(darken($subthemecolor, 15%), lighten($subthemecolor, 35%), lighten($subthemecolor, 45%));
  162. }
  163. }
  164. }