_miscellaneous.scss 5.6 KB

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