theme-c.scss 4.6 KB

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