_global.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. body {
  2. background: $gray-100;
  3. }
  4. hr.custom {
  5. border-top: 0.25rem solid darken($gray-100, 3%);
  6. }
  7. p.large {
  8. font-size: 1.15rem;
  9. margin-bottom: 1rem;
  10. line-height: 1.55;
  11. }
  12. // New badge
  13. .badge-new {
  14. background-color: $yellow;
  15. height: 2.5rem;
  16. width: 2.5rem;
  17. font-size: $small-font-size;
  18. color: $white;
  19. transform: rotate(15deg);
  20. border-radius: 100%;
  21. position: absolute;
  22. display: inline-flex;
  23. justify-content: center;
  24. align-items: center;
  25. }
  26. // Hide Overflow Utility
  27. .o-hidden {
  28. overflow: hidden !important;
  29. }
  30. // Override Bootstrap's .rounded helper class
  31. .rounded {
  32. border-radius: $border-radius-lg !important;
  33. }
  34. // XL Button
  35. .btn-xl {
  36. font-size: 0.7rem;
  37. padding: 1.25rem 1.5rem;
  38. font-weight: 800;
  39. text-transform: uppercase;
  40. letter-spacing: 0.1rem;
  41. }
  42. // Nav Tabs
  43. .sb-nav-tabs-wrapper {
  44. border-bottom: 0.25rem solid darken($gray-100, 3%);
  45. .sb-nav-tabs {
  46. .nav-item {
  47. margin-bottom: -0.25rem;
  48. .nav-link {
  49. color: $gray-900;
  50. border: none;
  51. border-bottom: 0.25rem solid transparent;
  52. &.active {
  53. font-weight: 700;
  54. background-color: transparent;
  55. border: none;
  56. &.nav-link-theme {
  57. border-bottom: 0.25rem solid $red;
  58. }
  59. &.nav-link-template {
  60. border-bottom: 0.25rem solid $blue;
  61. }
  62. &.nav-link-snippet {
  63. border-bottom: 0.25rem solid $yellow;
  64. }
  65. &:hover {
  66. color: $gray-900;
  67. }
  68. }
  69. &:hover {
  70. color: fade-out($gray-900, 0.4);
  71. border: none;
  72. }
  73. }
  74. }
  75. }
  76. }
  77. // Loop Sidebar
  78. .sidebar-image {
  79. position: -webkit-sticky;
  80. top: 0;
  81. color: lighten($gray-900, 20%);
  82. .blob {
  83. position: absolute;
  84. height: calc(100% - 6rem);
  85. width: calc(100% - 1rem);
  86. background-color: darken($gray-100, 3%);
  87. top: 3.5rem;
  88. left: 0.5rem;
  89. z-index: -2;
  90. border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  91. }
  92. .title {
  93. margin-bottom: 1rem;
  94. text-align: center;
  95. font-weight: 700;
  96. line-height: 1;
  97. .upper {
  98. font-size: 1.5rem;
  99. margin-bottom: 0.25rem;
  100. }
  101. .lower {
  102. font-size: 1.1rem;
  103. color: lighten($gray-900, 50%);
  104. }
  105. }
  106. }
  107. // Pagination
  108. .pagination {
  109. .page-item {
  110. margin: 0 0.5rem;
  111. .page-link {
  112. height: 3rem;
  113. width: 3rem;
  114. padding: 0;
  115. border-radius: 100%;
  116. border: none;
  117. display: flex;
  118. align-items: center;
  119. justify-content: center;
  120. @extend .shadow-sm;
  121. }
  122. }
  123. }
  124. // Loop Footer
  125. .after-loop {
  126. padding: 3rem 0 5rem;
  127. a.after-loop-item {
  128. color: $white;
  129. position: relative;
  130. padding-top: 1.5rem;
  131. padding-bottom: 1.5rem;
  132. transition: 0.15s box-shadow ease, 0.15s transform ease;
  133. -moz-transition: 0.15s box-shadow ease, 0.15s transform ease;
  134. .card-body {
  135. i {
  136. position: absolute;
  137. top: 50%;
  138. transform: translateY(-50%);
  139. font-size: 4rem;
  140. left: 1rem;
  141. color: fade-out($white, 0.8);
  142. transition: 0.15s all ease;
  143. }
  144. h4 {
  145. font-weight: 700;
  146. }
  147. p {
  148. color: fade-out($white, 0.3);
  149. font-weight: 600;
  150. }
  151. }
  152. &:hover {
  153. text-decoration: none;
  154. }
  155. }
  156. .card-themes {
  157. background-color: $red;
  158. }
  159. .card-templates {
  160. background-color: $blue;
  161. }
  162. .card-snippets {
  163. background-color: $yellow;
  164. }
  165. .card-guides {
  166. background-color: $green;
  167. }
  168. @include media-breakpoint-up(lg) {
  169. a.after-loop-item:hover {
  170. transform: translateY(-0.25rem);
  171. box-shadow: $box-shadow-lg-hover !important;
  172. .card-body {
  173. i {
  174. left: 1.5rem;
  175. font-size: 3rem;
  176. }
  177. }
  178. }
  179. a.after-loop-item:active {
  180. transform: none;
  181. box-shadow: $box-shadow-lg !important;
  182. }
  183. }
  184. }