theme-a.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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: $info;
  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,.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. &, &:hover, &:focus {
  48. box-shadow: 0 -3px 0 darken($nav-top-bg, 6%) inset;
  49. }
  50. }
  51. }
  52. .navbar-nav > .nav-item > .navbar-text {
  53. color: $nav-top-item;
  54. }
  55. .navbar-nav > .nav-item > .nav-link,
  56. .navbar-nav > .nav-item.show > .nav-link {
  57. color: $nav-top-item;
  58. &:hover, &:focus {
  59. color: $nav-top-item-active;
  60. }
  61. }
  62. .dropdown-item.active, .dropdown-item:active {
  63. background-color: $nav-top-bg;
  64. }
  65. }
  66. /* ========================================================================
  67. Component: sidebar
  68. ========================================================================== */
  69. .sidebar {
  70. background-color: $sidebar-bg;
  71. .nav-heading {
  72. color: $sidebar-heading-color;
  73. }
  74. }
  75. // Items
  76. .sidebar-nav {
  77. > li {
  78. > a, > .nav-item {
  79. color: $sidebar-item-color;
  80. &:focus, &:hover {
  81. color: $sidebar-item-color-active;
  82. }
  83. // Item icon
  84. > em {
  85. color: $sidebar-icon-color;
  86. }
  87. }
  88. // Active item state
  89. &.active, &.open {
  90. &, > a, > .nav-item, .sidebar-nav {
  91. background-color: $sidebar-item-bg-active;
  92. color: $sidebar-item-color-active;
  93. }
  94. > .nav-item > em, > a > em {
  95. color: $sidebar-icon-color-active;
  96. }
  97. }
  98. &.active {
  99. border-left-color: $sidebar-item-color-active;
  100. }
  101. }
  102. }
  103. .sidebar-subnav {
  104. background-color: $sidebar-bg;
  105. > .sidebar-subnav-header {
  106. color: $sidebar-item-color;
  107. }
  108. > li {
  109. > a, > .nav-item {
  110. color: $sidebar-item-color;
  111. &:focus, &:hover {
  112. color: $sidebar-item-color-active;
  113. }
  114. }
  115. &.active {
  116. > a, > .nav-item {
  117. color: $sidebar-icon-color-active;
  118. &:after {
  119. border-color: $sidebar-bullet-color-active;
  120. background-color: $sidebar-bullet-color-active;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. /* ========================================================================
  127. Component: offsidebar
  128. ========================================================================== */
  129. .offsidebar {
  130. border-left: 1px solid $offsidebar-border-color;
  131. background-color: $offsidebar-bg;
  132. color: $offsidebar-color;
  133. }
  134. }