theme-a.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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: #fff;
  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: #515253;
  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-heading-color: #6fb9de;
  27. $sidebar-label-color: $sidebar-item-color;
  28. // OFFSIDEBAR
  29. $offsidebar-bg: #fff;
  30. $offsidebar-border-color: greyscale(darken($offsidebar-bg, 20%));
  31. $offsidebar-color: $body-color;
  32. .theme-a {
  33. /* ========================================================================
  34. Component: layout
  35. ========================================================================== */
  36. &.wrapper {
  37. background-color: $content-bg;
  38. }
  39. /* ========================================================================
  40. Component: top-navbar
  41. ========================================================================== */
  42. .topnavbar {
  43. background-color: $nav-top-bg;
  44. @include gradient-x($nav-top-bg-start, $nav-top-bg-end);
  45. @include media-breakpoint-up(lg) {
  46. .navbar-nav > .nav-item.show > .nav-link {
  47. &,
  48. &:hover,
  49. &:focus {
  50. box-shadow: 0 -3px 0 darken($nav-top-bg, 6%) inset;
  51. }
  52. }
  53. }
  54. .navbar-nav > .nav-item > .navbar-text {
  55. color: $nav-top-item;
  56. }
  57. .navbar-nav > .nav-item > .nav-link,
  58. .navbar-nav > .nav-item.show > .nav-link {
  59. color: $nav-top-item;
  60. &:hover,
  61. &:focus {
  62. color: $nav-top-item-active;
  63. }
  64. }
  65. .dropdown-item.active,
  66. .dropdown-item:active {
  67. background-color: $nav-top-bg;
  68. }
  69. }
  70. /* ========================================================================
  71. Component: sidebar
  72. ========================================================================== */
  73. .sidebar {
  74. background-color: $sidebar-bg;
  75. .nav-heading {
  76. color: $sidebar-heading-color;
  77. }
  78. }
  79. // Items
  80. .sidebar-nav {
  81. > li {
  82. > a,
  83. > .nav-item {
  84. color: $sidebar-item-color;
  85. &:focus,
  86. &:hover {
  87. color: $sidebar-item-color-active;
  88. }
  89. // Item icon
  90. > em {
  91. color: $sidebar-icon-color;
  92. }
  93. }
  94. // Active item state
  95. &.active,
  96. &.open {
  97. &,
  98. > a,
  99. > .nav-item,
  100. .sidebar-nav {
  101. background-color: $sidebar-item-bg-active;
  102. color: $sidebar-item-color-active;
  103. }
  104. > .nav-item > em,
  105. > a > em {
  106. color: $sidebar-icon-color-active;
  107. }
  108. }
  109. &.active {
  110. border-left-color: $sidebar-item-color-active;
  111. }
  112. }
  113. }
  114. .sidebar-subnav {
  115. background-color: $sidebar-bg;
  116. > .sidebar-subnav-header {
  117. color: $sidebar-item-color;
  118. }
  119. > li {
  120. > a,
  121. > .nav-item {
  122. color: $sidebar-item-color;
  123. &:focus,
  124. &:hover {
  125. color: $sidebar-item-color-active;
  126. }
  127. }
  128. &.active {
  129. > a,
  130. > .nav-item {
  131. color: $sidebar-icon-color-active;
  132. &:after {
  133. border-color: $sidebar-bullet-color-active;
  134. background-color: $sidebar-bullet-color-active;
  135. }
  136. }
  137. }
  138. }
  139. }
  140. /* ========================================================================
  141. Component: offsidebar
  142. ========================================================================== */
  143. .offsidebar {
  144. border-left: 1px solid $offsidebar-border-color;
  145. background-color: $offsidebar-bg;
  146. color: $offsidebar-color;
  147. }
  148. }