_miscellaneous.scss 7.1 KB

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