_miscellaneous.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. //
  2. // Misc: Miscellaneous
  3. //
  4. .border-transparent {
  5. border-color: transparent !important;
  6. }
  7. // Description Blocks
  8. .description-block {
  9. display: block;
  10. margin: 10px 0;
  11. text-align: center;
  12. &.margin-bottom {
  13. margin-bottom: 25px;
  14. }
  15. > .description-header {
  16. font-size: 16px;
  17. font-weight: 600;
  18. margin: 0;
  19. padding: 0;
  20. }
  21. > .description-text {
  22. text-transform: uppercase;
  23. }
  24. // Description Block Extension
  25. .description-icon {
  26. font-size: 16px;
  27. }
  28. }
  29. // List utility classes
  30. .list-group-unbordered {
  31. > .list-group-item {
  32. border-left: 0;
  33. border-radius: 0;
  34. border-right: 0;
  35. padding-left: 0;
  36. padding-right: 0;
  37. }
  38. }
  39. .list-header {
  40. color: $gray-600;
  41. font-size: 15px;
  42. font-weight: bold;
  43. padding: 10px 4px;
  44. }
  45. .list-seperator {
  46. background: $card-border-color;
  47. height: 1px;
  48. margin: 15px 0 9px;
  49. }
  50. .list-link {
  51. > a {
  52. color: $gray-600;
  53. padding: 4px;
  54. &:hover {
  55. color: $gray-900;
  56. }
  57. }
  58. }
  59. // User block
  60. .user-block {
  61. float: left;
  62. img {
  63. float: left;
  64. height: 40px;
  65. width: 40px;
  66. }
  67. .username,
  68. .description,
  69. .comment {
  70. display: block;
  71. margin-left: 50px;
  72. }
  73. .username {
  74. font-size: 16px;
  75. font-weight: 600;
  76. margin-top: -1px;
  77. }
  78. .description {
  79. color: $gray-600;
  80. font-size: 13px;
  81. margin-top: -3px;
  82. }
  83. &.user-block-sm {
  84. img {
  85. width: $img-size-sm;
  86. height: $img-size-sm;
  87. }
  88. .username,
  89. .description,
  90. .comment {
  91. margin-left: 40px;
  92. }
  93. .username {
  94. font-size: 14px;
  95. }
  96. }
  97. }
  98. // Image sizes
  99. .img-sm,
  100. .img-md,
  101. .img-lg {
  102. float: left;
  103. }
  104. .img-sm {
  105. height: $img-size-sm;
  106. width: $img-size-sm;
  107. + .img-push {
  108. margin-left: $img-size-sm + $img-size-push;
  109. }
  110. }
  111. .img-md {
  112. width: $img-size-md;
  113. height: $img-size-md;
  114. + .img-push {
  115. margin-left: $img-size-md + $img-size-push;
  116. }
  117. }
  118. .img-lg {
  119. width: $img-size-lg;
  120. height: $img-size-lg;
  121. + .img-push {
  122. margin-left: $img-size-lg + $img-size-push;
  123. }
  124. }
  125. // Image bordered
  126. .img-bordered {
  127. border: 3px solid $gray-500;
  128. padding: 3px;
  129. }
  130. .img-bordered-sm {
  131. border: 2px solid $gray-500;
  132. padding: 2px;
  133. }
  134. // Rounded and Circle Images
  135. .img-rounded {
  136. @include border-radius($border-radius)
  137. }
  138. .img-circle {
  139. @include border-radius(50%);
  140. }
  141. // Image sizes
  142. .img-size-64,
  143. .img-size-50,
  144. .img-size-32 {
  145. height: auto;
  146. }
  147. .img-size-64 {
  148. width: 64px;
  149. }
  150. .img-size-50 {
  151. width: 50px;
  152. }
  153. .img-size-32 {
  154. width: 32px;
  155. }
  156. // Block sizes
  157. .size-32,
  158. .size-40,
  159. .size-50 {
  160. display: block;
  161. text-align: center;
  162. }
  163. .size-32 {
  164. height: 32px;
  165. line-height: 32px;
  166. width: 32px;
  167. }
  168. .size-40 {
  169. height: 40px;
  170. line-height: 40px;
  171. width: 40px;
  172. }
  173. .size-50 {
  174. height: 50px;
  175. line-height: 50px;
  176. width: 50px;
  177. }
  178. // General attachemnt block
  179. .attachment-block {
  180. background: $gray-100;
  181. border: 1px solid $card-border-color;
  182. margin-bottom: 10px;
  183. padding: 5px;
  184. .attachment-img {
  185. float: left;
  186. height: auto;
  187. max-height: 100px;
  188. max-width: 100px;
  189. }
  190. .attachment-pushed {
  191. margin-left: 110px;
  192. }
  193. .attachment-heading {
  194. margin: 0;
  195. }
  196. .attachment-text {
  197. color: $gray-700;
  198. }
  199. }
  200. // Overlays for Card, InfoBox & SmallBox
  201. .card,
  202. .overlay-wrapper,
  203. .info-box,
  204. .small-box {
  205. // Box overlay for LOADING STATE effect
  206. > .overlay,
  207. > .loading-img {
  208. height: 100%;
  209. left: 0;
  210. position: absolute;
  211. top: 0;
  212. width: 100%;
  213. }
  214. .overlay {
  215. @include border-radius($border-radius);
  216. align-items: center;
  217. background: rgba($white, 0.7);
  218. display: flex;
  219. justify-content: center;
  220. z-index: 50;
  221. > .fa,
  222. > .fas,
  223. > .far,
  224. > .fab,
  225. > .glyphicon,
  226. > .ion {
  227. color: $gray-800;
  228. }
  229. &.dark {
  230. background: rgba($black, 0.5);
  231. > .fa,
  232. > .fas,
  233. > .far,
  234. > .fab,
  235. > .glyphicon,
  236. > .ion {
  237. color: $gray-400;
  238. }
  239. }
  240. }
  241. }
  242. .tab-pane {
  243. // Box overlay for LOADING STATE effect on Tab Panels
  244. > .overlay-wrapper {
  245. position: relative;
  246. > .overlay {
  247. border-top-left-radius: 0;
  248. border-top-right-radius: 0;
  249. flex-direction: column;
  250. margin-top: -$card-spacer-x;
  251. margin-left: -$card-spacer-x;
  252. height: calc(100% + 2 * #{$card-spacer-x});
  253. width: calc(100% + 2 * #{$card-spacer-x});
  254. &.dark {
  255. color: $white;
  256. }
  257. }
  258. }
  259. }
  260. // Ribbon
  261. .ribbon-wrapper {
  262. height: $ribbon-wrapper-size;
  263. overflow: hidden;
  264. position: absolute;
  265. right: -2px;
  266. top: -2px;
  267. width: $ribbon-wrapper-size;
  268. z-index: 10;
  269. &.ribbon-lg {
  270. height: $ribbon-lg-wrapper-size;
  271. width: $ribbon-lg-wrapper-size;
  272. .ribbon {
  273. right: $ribbon-lg-right;
  274. top: $ribbon-lg-top;
  275. width: $ribbon-lg-width;
  276. }
  277. }
  278. &.ribbon-xl {
  279. height: $ribbon-xl-wrapper-size;
  280. width: $ribbon-xl-wrapper-size;
  281. .ribbon {
  282. right: $ribbon-xl-right;
  283. top: $ribbon-xl-top;
  284. width: $ribbon-xl-width;
  285. }
  286. }
  287. .ribbon {
  288. box-shadow: 0 0 $ribbon-border-size rgba($black, .3);
  289. font-size: $ribbon-font-size;
  290. line-height: $ribbon-line-height;
  291. padding: $ribbon-padding;
  292. position: relative;
  293. right: $ribbon-right;
  294. text-align: center;
  295. text-shadow: 0 -1px 0 rgba($black, .4);
  296. text-transform: uppercase;
  297. top: $ribbon-top;
  298. transform: rotate(45deg);
  299. width: $ribbon-width;
  300. &::before,
  301. &::after {
  302. border-left: $ribbon-border-size solid transparent;
  303. border-right: $ribbon-border-size solid transparent;
  304. border-top: $ribbon-border-size solid #9e9e9e;
  305. bottom: -$ribbon-border-size;
  306. content: '';
  307. position: absolute;
  308. }
  309. &::before {
  310. left: 0;
  311. }
  312. &::after {
  313. right: 0;
  314. }
  315. }
  316. }
  317. // Scroll To Top
  318. .back-to-top {
  319. bottom: 1.25rem;
  320. position: fixed;
  321. right: 1.25rem;
  322. z-index: $zindex-control-sidebar + 1;
  323. &:focus {
  324. box-shadow: none;
  325. }
  326. }
  327. // Pre
  328. pre {
  329. padding: .75rem;
  330. }
  331. // Blockquotes styles
  332. blockquote {
  333. background: $white;
  334. border-left: .7rem solid $primary;
  335. margin: 1.5em .7rem;
  336. padding: 0.5em .7rem;
  337. .box & {
  338. background: $gray-200;
  339. }
  340. p:last-child {
  341. margin-bottom: 0;
  342. }
  343. h1,
  344. h2,
  345. h3,
  346. h4,
  347. h5,
  348. h6 {
  349. color: $primary;
  350. font-size: 1.25rem;
  351. font-weight: 600;
  352. }
  353. @each $color, $value in $theme-colors {
  354. &.quote-#{$color} {
  355. border-color: $value;
  356. h1,
  357. h2,
  358. h3,
  359. h4,
  360. h5,
  361. h6 {
  362. color: $value;
  363. }
  364. }
  365. }
  366. @each $color, $value in $colors {
  367. &.quote-#{$color} {
  368. border-color: $value;
  369. h1,
  370. h2,
  371. h3,
  372. h4,
  373. h5,
  374. h6 {
  375. color: $value;
  376. }
  377. }
  378. }
  379. }
  380. // Tab Custom Content
  381. .tab-custom-content {
  382. border-top: $nav-tabs-border-width solid $nav-tabs-border-color;
  383. margin-top: .5rem;
  384. padding-top: .5rem;
  385. }
  386. .nav + .tab-custom-content {
  387. border-top: none;
  388. border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
  389. margin-top: 0;
  390. margin-bottom: .5rem;
  391. padding-bottom: .5rem;
  392. }
  393. // Badge BTN Style
  394. .badge-btn {
  395. border-radius: $button-border-radius-xs;
  396. font-size: $button-font-size-xs;
  397. font-weight: 400;
  398. padding: $button-padding-y-xs*2 $button-padding-x-xs*2;
  399. }
  400. .badge-btn.badge-pill {
  401. padding: .375rem .6rem;
  402. }