_miscellaneous.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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: 700;
  43. padding: 10px 4px;
  44. }
  45. .list-seperator {
  46. background-color: $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-color: $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-color: rgba($white, .7);
  218. display: flex;
  219. justify-content: center;
  220. z-index: 50;
  221. /* stylelint-disable selector-class-pattern */
  222. > .fa,
  223. > .fas,
  224. > .far,
  225. > .fab,
  226. > .fal,
  227. > .fad,
  228. > .svg-inline--fa,
  229. > .ion {
  230. color: $gray-800;
  231. }
  232. /* stylelint-enable selector-class-pattern */
  233. &.dark {
  234. background-color: rgba($black, .5);
  235. /* stylelint-disable selector-class-pattern */
  236. > .fa,
  237. > .fas,
  238. > .far,
  239. > .fab,
  240. > .fal,
  241. > .fad,
  242. > .svg-inline--fa,
  243. > .ion {
  244. color: $gray-400;
  245. }
  246. /* stylelint-enable selector-class-pattern */
  247. }
  248. }
  249. }
  250. .tab-pane {
  251. // Box overlay for LOADING STATE effect on Tab Panels
  252. > .overlay-wrapper {
  253. position: relative;
  254. > .overlay {
  255. border-top-left-radius: 0;
  256. border-top-right-radius: 0;
  257. flex-direction: column;
  258. margin-top: -$card-spacer-x;
  259. margin-left: -$card-spacer-x;
  260. height: calc(100% + 2 * #{$card-spacer-x});
  261. width: calc(100% + 2 * #{$card-spacer-x});
  262. &.dark {
  263. color: $white;
  264. }
  265. }
  266. }
  267. }
  268. // Ribbon
  269. .ribbon-wrapper {
  270. height: $ribbon-wrapper-size;
  271. overflow: hidden;
  272. position: absolute;
  273. right: -2px;
  274. top: -2px;
  275. width: $ribbon-wrapper-size;
  276. z-index: 10;
  277. &.ribbon-lg {
  278. height: $ribbon-lg-wrapper-size;
  279. width: $ribbon-lg-wrapper-size;
  280. .ribbon {
  281. right: $ribbon-lg-right;
  282. top: $ribbon-lg-top;
  283. width: $ribbon-lg-width;
  284. }
  285. }
  286. &.ribbon-xl {
  287. height: $ribbon-xl-wrapper-size;
  288. width: $ribbon-xl-wrapper-size;
  289. .ribbon {
  290. right: $ribbon-xl-right;
  291. top: $ribbon-xl-top;
  292. width: $ribbon-xl-width;
  293. }
  294. }
  295. .ribbon {
  296. box-shadow: 0 0 $ribbon-border-size rgba($black, .3);
  297. font-size: $ribbon-font-size;
  298. line-height: $ribbon-line-height;
  299. padding: $ribbon-padding;
  300. position: relative;
  301. right: $ribbon-right;
  302. text-align: center;
  303. text-shadow: 0 -1px 0 rgba($black, .4);
  304. text-transform: uppercase;
  305. top: $ribbon-top;
  306. transform: rotate(45deg);
  307. width: $ribbon-width;
  308. &::before,
  309. &::after {
  310. border-left: $ribbon-border-size solid transparent;
  311. border-right: $ribbon-border-size solid transparent;
  312. border-top: $ribbon-border-size solid #9e9e9e;
  313. bottom: -$ribbon-border-size;
  314. content: "";
  315. position: absolute;
  316. }
  317. &::before {
  318. left: 0;
  319. }
  320. &::after {
  321. right: 0;
  322. }
  323. }
  324. }
  325. // Scroll To Top
  326. .back-to-top {
  327. bottom: 1.25rem;
  328. position: fixed;
  329. right: 1.25rem;
  330. z-index: $zindex-control-sidebar + 1;
  331. &:focus {
  332. box-shadow: none;
  333. }
  334. }
  335. // Pre
  336. pre {
  337. padding: .75rem;
  338. }
  339. // Blockquotes styles
  340. blockquote {
  341. background-color: $white;
  342. border-left: .7rem solid $primary;
  343. margin: 1.5em .7rem;
  344. padding: .5em .7rem;
  345. .box & {
  346. background-color: $gray-200;
  347. }
  348. p:last-child {
  349. margin-bottom: 0;
  350. }
  351. h1,
  352. h2,
  353. h3,
  354. h4,
  355. h5,
  356. h6 {
  357. color: $primary;
  358. font-size: 1.25rem;
  359. font-weight: 600;
  360. }
  361. @each $color, $value in $theme-colors {
  362. &.quote-#{$color} {
  363. border-color: $value;
  364. h1,
  365. h2,
  366. h3,
  367. h4,
  368. h5,
  369. h6 {
  370. color: $value;
  371. }
  372. }
  373. }
  374. @each $color, $value in $colors {
  375. &.quote-#{$color} {
  376. border-color: $value;
  377. h1,
  378. h2,
  379. h3,
  380. h4,
  381. h5,
  382. h6 {
  383. color: $value;
  384. }
  385. }
  386. }
  387. }
  388. // Tab Custom Content
  389. .tab-custom-content {
  390. border-top: $nav-tabs-border-width solid $nav-tabs-border-color;
  391. margin-top: .5rem;
  392. padding-top: .5rem;
  393. }
  394. .nav + .tab-custom-content {
  395. border-top: none;
  396. border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
  397. margin-top: 0;
  398. margin-bottom: .5rem;
  399. padding-bottom: .5rem;
  400. }
  401. // Badge BTN Style
  402. .badge-btn {
  403. border-radius: $button-border-radius-xs;
  404. font-size: $button-font-size-xs;
  405. font-weight: 400;
  406. padding: $button-padding-y-xs * 2 $button-padding-x-xs * 2;
  407. }
  408. .badge-btn.badge-pill {
  409. padding: .375rem .6rem;
  410. }
  411. @include dark-mode () {
  412. a:not(.btn):hover {
  413. color: lighten($link-color, 10%);
  414. }
  415. .attachment-block {
  416. background-color: lighten($dark, 3.75%);
  417. .attachment-text {
  418. color: $gray-400;
  419. }
  420. }
  421. blockquote {
  422. background-color: lighten($dark, 5%);
  423. @each $color, $value in $theme-colors {
  424. &.quote-#{$color} {
  425. border-color: $value;
  426. h1,
  427. h2,
  428. h3,
  429. h4,
  430. h5,
  431. h6 {
  432. color: $value;
  433. }
  434. }
  435. }
  436. @each $color, $value in $colors {
  437. &.quote-#{$color} {
  438. border-color: $value;
  439. h1,
  440. h2,
  441. h3,
  442. h4,
  443. h5,
  444. h6 {
  445. color: $value;
  446. }
  447. }
  448. }
  449. }
  450. .close,
  451. .mailbox-attachment-close {
  452. color: $gray-500;
  453. text-shadow: 0 1px 0 $gray-700;
  454. }
  455. .tab-custom-content {
  456. border-color: $gray-600;
  457. }
  458. .list-group-item {
  459. background-color: $dark;
  460. border-color: $gray-600;
  461. }
  462. }