theme-e.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. // Bootstrap
  2. @import "../bootstrap/functions";
  3. @import "../bootstrap/variables";
  4. @import "../bootstrap/mixins";
  5. @import "../app/common/variables";
  6. // LAYOUT
  7. $content-bg: #f5f7fa;
  8. $aside-bg: $gray-dark;
  9. // NAVBAR TOP
  10. $nav-top-bg: #6fb9de;
  11. $nav-top-bg-start: $nav-top-bg;
  12. $nav-top-bg-end: $info-light;
  13. $nav-header-bg: transparent;
  14. $nav-top-item: #fff;
  15. $nav-top-item-active: darken($nav-top-bg, 20%);
  16. // SIDEBAR
  17. $sidebar-bg: $aside-bg;
  18. $sidebar-item-color: #e1e2e3;
  19. $sidebar-item-color-active: $nav-top-bg;
  20. $sidebar-item-bg-active: darken($sidebar-bg, 1%);
  21. $sidebar-icon-color: inherits;
  22. $sidebar-icon-color-active: $nav-top-bg;
  23. $sidebar-bullet-color: rgba(0, 0, 0, 0.25);
  24. $sidebar-bullet-color-active: $sidebar-icon-color-active;
  25. $sidebar-heading-color: #919da8;
  26. $sidebar-label-color: $sidebar-item-color;
  27. // OFFSIDEBAR
  28. $offsidebar-bg: #fff;
  29. $offsidebar-border-color: greyscale(darken($offsidebar-bg, 20%));
  30. $offsidebar-color: $body-color;
  31. .theme-e {
  32. /* ========================================================================
  33. Component: layout
  34. ========================================================================== */
  35. &.wrapper {
  36. background-color: $content-bg;
  37. }
  38. /* ========================================================================
  39. Component: top-navbar
  40. ========================================================================== */
  41. .topnavbar {
  42. background-color: $nav-top-bg;
  43. @include gradient-x($nav-top-bg-start, $nav-top-bg-end);
  44. @include media-breakpoint-up(lg) {
  45. .navbar-nav > .nav-item.show > .nav-link {
  46. &,
  47. &:hover,
  48. &:focus {
  49. box-shadow: 0 -3px 0 darken($nav-top-bg, 6%) inset;
  50. }
  51. }
  52. }
  53. .navbar-nav > .nav-item > .navbar-text {
  54. color: $nav-top-item;
  55. }
  56. .navbar-nav > .nav-item > .nav-link,
  57. .navbar-nav > .nav-item.show > .nav-link {
  58. color: $nav-top-item;
  59. &:hover,
  60. &:focus {
  61. color: $nav-top-item-active;
  62. }
  63. }
  64. .dropdown-item.active,
  65. .dropdown-item:active {
  66. background-color: $nav-top-bg;
  67. }
  68. }
  69. /* ========================================================================
  70. Component: sidebar
  71. ========================================================================== */
  72. .sidebar {
  73. background-color: $sidebar-bg;
  74. .nav-heading {
  75. color: $sidebar-heading-color;
  76. }
  77. }
  78. // Items
  79. .sidebar-nav {
  80. > li {
  81. > a,
  82. > .nav-item {
  83. color: $sidebar-item-color;
  84. &:focus,
  85. &:hover {
  86. color: $sidebar-item-color-active;
  87. }
  88. // Item icon
  89. > em {
  90. color: $sidebar-icon-color;
  91. }
  92. }
  93. // Active item state
  94. &.active,
  95. &.open {
  96. &,
  97. > a,
  98. > .nav-item,
  99. .sidebar-nav {
  100. background-color: $sidebar-item-bg-active;
  101. color: $sidebar-item-color-active;
  102. }
  103. > .nav-item > em,
  104. > a > em {
  105. color: $sidebar-icon-color-active;
  106. }
  107. }
  108. &.active {
  109. border-left-color: $sidebar-item-color-active;
  110. }
  111. }
  112. }
  113. .sidebar-subnav {
  114. background-color: $sidebar-bg;
  115. > .sidebar-subnav-header {
  116. color: $sidebar-item-color;
  117. }
  118. > li {
  119. > a,
  120. > .nav-item {
  121. color: $sidebar-item-color;
  122. &:focus,
  123. &:hover {
  124. color: $sidebar-item-color-active;
  125. }
  126. }
  127. &.active {
  128. > a,
  129. > .nav-item {
  130. color: $sidebar-icon-color-active;
  131. &:after {
  132. border-color: $sidebar-bullet-color-active;
  133. background-color: $sidebar-bullet-color-active;
  134. }
  135. }
  136. }
  137. }
  138. }
  139. /* ========================================================================
  140. Component: offsidebar
  141. ========================================================================== */
  142. .offsidebar {
  143. border-left: 1px solid $offsidebar-border-color;
  144. background-color: $offsidebar-bg;
  145. color: $offsidebar-color;
  146. }
  147. }