_utilities.scss 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. // ================================================================================================
  2. // File Name: utilities.scss
  3. // Description: Utility classes provides color, width, position & background etc..
  4. // related customization.
  5. // ----------------------------------------------------------------------------------------------
  6. // Item Name: Vuexy - Vuejs, React, Angular, HTML & Laravel Admin Dashboard Template
  7. // Author: PIXINVENT
  8. // Author URL: http://www.themeforest.net/user/pixinvent
  9. // ================================================================================================
  10. // Sizes Variable for height and width mixins
  11. $sizes-px: (
  12. // in px
  13. 50: 50px,
  14. 100: 100px,
  15. 150: 150px,
  16. 200: 200px,
  17. 250: 250px,
  18. 300: 300px,
  19. 350: 350px,
  20. 400: 405px,
  21. 450: 455px,
  22. 500: 500px,
  23. 550: 550px,
  24. 600: 600px,
  25. 650: 650px,
  26. 700: 700px,
  27. 750: 750px,
  28. 800: 800px
  29. ) !default;
  30. $sizes-per: (
  31. // in %
  32. 5: 5%,
  33. 10: 10%,
  34. 15: 15%,
  35. 20: 20%,
  36. 25: 25%,
  37. 30: 30%,
  38. 35: 35%,
  39. 40: 40%,
  40. 45: 45%,
  41. 50: 50%,
  42. 55: 55%,
  43. 60: 60%,
  44. 65: 65%,
  45. 70: 70%,
  46. 75: 75%,
  47. 80: 80%,
  48. 85: 85%,
  49. 90: 90%,
  50. 95: 95%
  51. ) !default;
  52. //--------------- Text ---------------
  53. //------------------------------------
  54. // Font Size
  55. //----------
  56. //small
  57. .font-small-1 {
  58. font-size: 0.7rem !important;
  59. // for Feather SVG icons as we are using base size as 1rem
  60. @at-root svg#{&} {
  61. height: 0.7rem !important;
  62. width: 0.7rem !important;
  63. }
  64. }
  65. .font-small-2 {
  66. font-size: 0.8rem !important;
  67. @at-root svg#{&} {
  68. height: 0.8rem !important;
  69. width: 0.8rem !important;
  70. }
  71. }
  72. .font-small-3 {
  73. font-size: 0.9rem !important;
  74. @at-root svg#{&} {
  75. height: 0.9rem !important;
  76. width: 0.9rem !important;
  77. }
  78. }
  79. .font-small-4 {
  80. font-size: 1rem !important;
  81. @at-root svg#{&} {
  82. height: 1rem !important;
  83. width: 1rem !important;
  84. }
  85. }
  86. //medium
  87. .font-medium-1 {
  88. font-size: 1.1rem !important;
  89. @at-root svg#{&} {
  90. height: 1.1rem !important;
  91. width: 1.1rem !important;
  92. }
  93. }
  94. .font-medium-2 {
  95. font-size: 1.2rem !important;
  96. @at-root svg#{&} {
  97. height: 1.2rem !important;
  98. width: 1.2rem !important;
  99. }
  100. }
  101. .font-medium-3 {
  102. font-size: 1.3rem !important;
  103. @at-root svg#{&} {
  104. height: 1.3rem !important;
  105. width: 1.3rem !important;
  106. }
  107. }
  108. .font-medium-4 {
  109. font-size: 1.4rem !important;
  110. @at-root svg#{&} {
  111. height: 1.4rem !important;
  112. width: 1.4rem !important;
  113. }
  114. }
  115. .font-medium-5 {
  116. font-size: 1.5rem !important;
  117. @at-root svg#{&} {
  118. height: 1.5rem !important;
  119. width: 1.5rem !important;
  120. }
  121. }
  122. //large
  123. .font-large-1 {
  124. font-size: 2rem !important;
  125. @at-root svg#{&} {
  126. height: 2rem !important;
  127. width: 2rem !important;
  128. }
  129. }
  130. .font-large-2 {
  131. font-size: 3rem !important;
  132. @at-root svg#{&} {
  133. height: 3rem !important;
  134. width: 3rem !important;
  135. }
  136. }
  137. .font-large-3 {
  138. font-size: 4rem !important;
  139. @at-root svg#{&} {
  140. height: 4rem !important;
  141. width: 4rem !important;
  142. }
  143. }
  144. .font-large-4 {
  145. font-size: 5rem !important;
  146. @at-root svg#{&} {
  147. height: 5rem !important;
  148. width: 5rem !important;
  149. }
  150. }
  151. .font-large-5 {
  152. font-size: 6rem !important;
  153. @at-root svg#{&} {
  154. height: 6rem !important;
  155. width: 6rem !important;
  156. }
  157. }
  158. // Line height
  159. //----------
  160. .line-height-1 {
  161. line-height: 1 !important;
  162. }
  163. .line-height-condensed {
  164. line-height: 1.5 !important;
  165. }
  166. .line-height-inherit {
  167. line-height: inherit !important;
  168. }
  169. // Transform
  170. //----------
  171. .rotate-45 {
  172. transform: rotate(45deg);
  173. }
  174. .rotate-45-inverse {
  175. transform: rotate(-45deg);
  176. }
  177. .rotate-90 {
  178. transform: rotate(90deg);
  179. }
  180. .rotate-90-inverse {
  181. transform: rotate(-90deg);
  182. }
  183. .rotate-180 {
  184. transform: rotate(180deg);
  185. }
  186. .rotate-180-inverse {
  187. transform: rotate(-180deg);
  188. }
  189. //-------------- Borders --------------
  190. //-------------------------------------
  191. // Border width - 2px
  192. .border-2 {
  193. border-width: 2px !important;
  194. }
  195. .border-top-2 {
  196. border-top-width: 2px !important;
  197. }
  198. .border-bottom-2 {
  199. border-bottom-width: 2px !important;
  200. }
  201. .border-left-2 {
  202. border-left-width: 2px !important;
  203. }
  204. .border-right-2 {
  205. border-right-width: 2px !important;
  206. }
  207. // Border width - 3px
  208. .border-3 {
  209. border-width: 3px !important;
  210. }
  211. .border-top-3 {
  212. border-top-width: 3px !important;
  213. }
  214. .border-bottom-3 {
  215. border-bottom-width: 3px !important;
  216. }
  217. .border-left-3 {
  218. border-left-width: 3px !important;
  219. }
  220. .border-right-3 {
  221. border-right-width: 3px !important;
  222. }
  223. // Shapes radius : Round / Square
  224. .round {
  225. @include border-radius(1.5rem);
  226. }
  227. .square {
  228. @include border-radius(0);
  229. }
  230. //-------------- Sizing --------------
  231. //------------------------------------
  232. // Width && Height
  233. .fit {
  234. max-width: 100% !important;
  235. }
  236. .half-width {
  237. width: 50% !important;
  238. }
  239. .full-width {
  240. width: 100% !important;
  241. }
  242. .full-height {
  243. height: 100% !important;
  244. }
  245. // height & width in PX
  246. @each $name, $size in $sizes-px {
  247. .height-#{$name} {
  248. height: $size !important;
  249. }
  250. .width-#{$name} {
  251. width: $size !important;
  252. }
  253. }
  254. // height & width in %
  255. @each $name, $size in $sizes-per {
  256. .height-#{$name}-per {
  257. height: $size !important;
  258. }
  259. .width-#{$name}-per {
  260. width: $size !important;
  261. }
  262. }
  263. //------------- Position -------------
  264. //------------------------------------
  265. .position-top-0 {
  266. top: 0;
  267. }
  268. .position-right-0 {
  269. right: 0;
  270. }
  271. .position-bottom-0 {
  272. bottom: 0;
  273. }
  274. .position-left-0 {
  275. left: 0;
  276. }
  277. //------------- Overflow -------------
  278. //------------------------------------
  279. .overflow-visible {
  280. overflow: visible;
  281. }
  282. .overflow-scroll {
  283. overflow: scroll;
  284. }
  285. .overflow-x-scroll {
  286. overflow: scroll;
  287. }
  288. .overflow-y-scroll {
  289. overflow: scroll;
  290. }
  291. //-------------- Cursor --------------
  292. //------------------------------------
  293. .cursor-pointer {
  294. cursor: pointer;
  295. }
  296. .cursor-move {
  297. cursor: move;
  298. }
  299. .cursor-default {
  300. cursor: default;
  301. }
  302. .cursor-progress {
  303. cursor: progress;
  304. }
  305. .cursor-not-allowed {
  306. cursor: not-allowed;
  307. }
  308. //-------------- Z-index --------------
  309. //-------------------------------------
  310. .zindex-1 {
  311. z-index: 1 !important;
  312. }
  313. .zindex-2 {
  314. z-index: 2 !important;
  315. }
  316. .zindex-3 {
  317. z-index: 3 !important;
  318. }
  319. .zindex-4 {
  320. z-index: 4 !important;
  321. }
  322. .zindex-0 {
  323. z-index: 0 !important;
  324. }
  325. .zindex-minus-1 {
  326. z-index: -1 !important;
  327. }
  328. .zindex-minus-2 {
  329. z-index: -2 !important;
  330. }
  331. .zindex-minus-3 {
  332. z-index: -3 !important;
  333. }
  334. .zindex-minus-4 {
  335. z-index: -4 !important;
  336. }
  337. //------------ Box Shadow ------------
  338. //------------------------------------
  339. .box-shadow-0 {
  340. box-shadow: none !important;
  341. }
  342. .box-shadow-1 {
  343. box-shadow: 0 2px 5px 0 rgba($black, 0.16), 0 2px 10px 0 rgba($black, 0.12);
  344. }
  345. .box-shadow-2 {
  346. box-shadow: 0 8px 17px 0 rgba($black, 0.2), 0 6px 20px 0 rgba($black, 0.19);
  347. }
  348. .box-shadow-3 {
  349. box-shadow: 0 12px 15px 0 rgba($black, 0.24), 0 17px 50px 0 rgba($black, 0.19);
  350. }
  351. .box-shadow-4 {
  352. box-shadow: 0 16px 28px 0 rgba($black, 0.22), 0 25px 55px 0 rgba($black, 0.21);
  353. }
  354. .box-shadow-5 {
  355. box-shadow: 0 27px 24px 0 rgba($black, 0.2), 0 40px 77px 0 rgba($black, 0.22);
  356. }
  357. .box-shadow-6 {
  358. box-shadow: 0 4px 8px 0 rgba($black, 0.12), 0 2px 4px 0 rgba($black, 0.08);
  359. }
  360. //-------------- Outline --------------
  361. //-------------------------------------
  362. .outline-none {
  363. outline: none !important;
  364. }
  365. //-------------- Lists --------------
  366. //-----------------------------------
  367. .list-style-inside {
  368. list-style: inside;
  369. }
  370. .list-style-circle {
  371. list-style: circle;
  372. }
  373. .list-style-square {
  374. list-style: square;
  375. }
  376. //--------- Background Image ---------
  377. //------------------------------------
  378. .bg-cover {
  379. background-size: cover !important;
  380. }
  381. .background-repeat {
  382. background-repeat: repeat !important;
  383. }
  384. .background-no-repeat {
  385. background-repeat: no-repeat !important;
  386. }
  387. //-------------- Icons --------------
  388. //-----------------------------------
  389. .icon-bg-circle {
  390. color: $white;
  391. padding: 0.5rem;
  392. border-radius: 50%;
  393. }
  394. .icon-left {
  395. margin-right: 0.5rem;
  396. }
  397. .icon-right {
  398. margin-right: 0.5rem;
  399. }
  400. // Used for blockUI
  401. .blockOverlay {
  402. z-index: 1050 !important;
  403. }
  404. .blockElement,
  405. .blockPage {
  406. z-index: 1051 !important;
  407. }
  408. .hidden {
  409. display: none;
  410. visibility: hidden;
  411. }
  412. a {
  413. &:hover {
  414. cursor: pointer;
  415. }
  416. }
  417. //Tables
  418. //--------------------------
  419. .table-middle {
  420. td {
  421. vertical-align: middle;
  422. }
  423. }
  424. //SVG
  425. //--------------------------
  426. .fill-current {
  427. fill: currentColor;
  428. }
  429. //Cursor
  430. //--------------------------
  431. .pointer-events-none {
  432. pointer-events: none;
  433. }