helper.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. // ================================================================================================
  2. // File Name: helper.scss
  3. // Description: Helper classes provides color, width, position & background etc..
  4. // related customiztion.
  5. // ----------------------------------------------------------------------------------------------
  6. // Item name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  7. // Author: PIXINVENT
  8. // Author URL: http://www.themeforest.net/user/pixinvent
  9. // ================================================================================================
  10. // Content helpers
  11. // -------------------------
  12. // Display
  13. .display-inline{
  14. display: inline !important;
  15. }
  16. .display-block{
  17. display: block !important;
  18. }
  19. .display-inline-block{
  20. display: inline-block !important;
  21. }
  22. .display-hidden{
  23. display: none !important;
  24. }
  25. .display-table-cell{
  26. display: table-cell !important;
  27. }
  28. // Position
  29. .position-top-0{
  30. top: 0;
  31. }
  32. .position-right-0{
  33. right: 0;
  34. }
  35. .position-bottom-0{
  36. bottom: 0;
  37. }
  38. .position-left-0{
  39. left: 0;
  40. }
  41. // Z-index
  42. .zindex-1{
  43. z-index: 1 !important;
  44. }
  45. .zindex-2{
  46. z-index: 2 !important;
  47. }
  48. .zindex-3{
  49. z-index: 3 !important;
  50. }
  51. .zindex-4{
  52. z-index: 4 !important;
  53. }
  54. .zindex-0{
  55. z-index: 0 !important;
  56. }
  57. .zindex-minus-1{
  58. z-index: -1 !important;
  59. }
  60. .zindex-minus-2{
  61. z-index: -2 !important;
  62. }
  63. .zindex-minus-3{
  64. z-index: -3 !important;
  65. }
  66. .zindex-minus-4{
  67. z-index: -4 !important;
  68. }
  69. // Edges
  70. .no-edge-top {
  71. top: 0 !important;
  72. }
  73. .no-edge-bottom {
  74. bottom: 0 !important;
  75. }
  76. .no-edge-left {
  77. left: 0 !important;
  78. }
  79. .no-edge-right {
  80. right: 0 !important;
  81. }
  82. // Cursors
  83. .cursor-pointer {
  84. cursor: pointer;
  85. }
  86. .cursor-move {
  87. cursor: move;
  88. }
  89. .cursor-default {
  90. cursor: default;
  91. }
  92. .cursor-progress {
  93. cursor: progress;
  94. }
  95. .cursor-not-allowed{
  96. cursor: not-allowed;
  97. }
  98. // Overflow
  99. .overflow-hidden {
  100. overflow: hidden;
  101. }
  102. .overflow-visible {
  103. overflow: visible;
  104. }
  105. .overflow-auto {
  106. overflow: auto;
  107. }
  108. .overflow-scroll {
  109. overflow: scroll;
  110. }
  111. .overflow-x-scroll {
  112. overflow: scroll;
  113. }
  114. .overflow-y-scroll {
  115. overflow: scroll;
  116. }
  117. // Lists
  118. .bullets-inside{
  119. list-style: inside;
  120. }
  121. .list-style-circle{
  122. list-style: circle;
  123. }
  124. .list-style-square{
  125. list-style: square;
  126. }
  127. .list-style-icons {
  128. padding-left: 10px;
  129. margin-left: 0;
  130. list-style: none;
  131. >li i {
  132. float: left;
  133. width: 1em;
  134. margin: 0 6px 0 0;
  135. }
  136. }
  137. // Borders
  138. // -------------------------
  139. // Add borders
  140. .border {
  141. border: 1px solid;
  142. }
  143. .border-top {
  144. border-top: 1px solid;
  145. }
  146. .border-bottom {
  147. border-bottom: 1px solid;
  148. }
  149. .border-left {
  150. border-left: 1px solid;
  151. }
  152. .border-right {
  153. border-right: 1px solid;
  154. }
  155. // Border widths
  156. // Med - 2px
  157. .border-2 {
  158. border-width: 2px !important;
  159. }
  160. .border-top-2 {
  161. border-top-width: 2px !important;
  162. }
  163. .border-bottom-2 {
  164. border-bottom-width: 2px !important;
  165. }
  166. .border-left-2 {
  167. border-left-width: 2px !important;
  168. }
  169. .border-right-2 {
  170. border-right-width: 2px !important;
  171. }
  172. // Large - 3px
  173. .border-3 {
  174. border-width: 3px !important;
  175. }
  176. .border-top-3 {
  177. border-top-width: 3px !important;
  178. }
  179. .border-bottom-3 {
  180. border-bottom-width: 3px !important;
  181. }
  182. .border-left-3 {
  183. border-left-width: 3px !important;
  184. }
  185. .border-right-3 {
  186. border-right-width: 3px !important;
  187. }
  188. // No border radious
  189. .no-border-top-radius{
  190. border-top-left-radius: 0 !important;
  191. border-top-right-radius: 0 !important;
  192. }
  193. .no-border-bottom-radius{
  194. border-bottom-left-radius: 0 !important;
  195. border-bottom-right-radius: 0 !important;
  196. }
  197. .no-border-top-left-radius{
  198. border-top-left-radius: 0 !important;
  199. }
  200. .no-border-top-right-radius{
  201. border-top-right-radius: 0 !important;
  202. }
  203. .no-border-bottom-left-radius{
  204. border-bottom-left-radius: 0 !important;
  205. }
  206. .no-border-bottom-right-radius{
  207. border-bottom-right-radius: 0 !important;
  208. }
  209. // Box Shadow
  210. .box-shadow-0 {
  211. box-shadow: none !important
  212. }
  213. .box-shadow-1{
  214. box-shadow: 0 2px 5px 0 rgba($pure-black,0.16),0 2px 10px 0 rgba($pure-black,0.12)
  215. }
  216. .box-shadow-2 {
  217. box-shadow: 0 8px 17px 0 rgba($pure-black,0.2),0 6px 20px 0 rgba($pure-black,0.19)
  218. }
  219. .box-shadow-3 {
  220. box-shadow: 0 12px 15px 0 rgba($pure-black,0.24),0 17px 50px 0 rgba($pure-black,0.19)
  221. }
  222. .box-shadow-4{
  223. box-shadow: 0 16px 28px 0 rgba($pure-black,0.22),0 25px 55px 0 rgba($pure-black,0.21)
  224. }
  225. .box-shadow-5 {
  226. box-shadow: 0 27px 24px 0 rgba($pure-black,0.2),0 40px 77px 0 rgba($pure-black,0.22)
  227. }
  228. .box-shadow-6{
  229. box-shadow: 0 4px 8px 0 rgba($pure-black,.12),0 2px 4px 0 rgba($pure-black,.08);
  230. }
  231. // Sizing
  232. // -------------------------
  233. //
  234. // Width && Height
  235. //
  236. .fit{
  237. max-width: 100% !important;
  238. }
  239. .half-width {
  240. width: 50% !important;
  241. }
  242. .full-width{
  243. width: 100% !important;
  244. }
  245. .full-height{
  246. height: 100% !important;
  247. }
  248. // Fixed widths
  249. .width-50 {
  250. width: 50px !important;
  251. }
  252. .width-100 {
  253. width: 100px !important;
  254. }
  255. .width-150 {
  256. width: 150px !important;
  257. }
  258. .width-200 {
  259. width: 200px !important;
  260. }
  261. .width-250 {
  262. width: 250px !important;
  263. }
  264. .width-300 {
  265. width: 300px !important;
  266. }
  267. .width-350 {
  268. width: 350px !important;
  269. }
  270. .width-400 {
  271. width: 400px !important;
  272. }
  273. .width-450 {
  274. width: 450px !important;
  275. }
  276. .width-500 {
  277. width: 500px !important;
  278. }
  279. .width-550 {
  280. width: 550px !important;
  281. }
  282. .width-600 {
  283. width: 600px !important;
  284. }
  285. .width-650 {
  286. width: 650px !important;
  287. }
  288. .width-700 {
  289. width: 700px !important;
  290. }
  291. .width-750 {
  292. width: 750px !important;
  293. }
  294. .width-800 {
  295. width: 800px !important;
  296. }
  297. // Width in %
  298. .width-5-per{
  299. width: 5% !important;
  300. }
  301. .width-10-per {
  302. width: 10% !important;
  303. }
  304. .width-15-per {
  305. width: 15% !important;
  306. }
  307. .width-20-per {
  308. width: 20% !important;
  309. }
  310. .width-25-per {
  311. width: 25% !important;
  312. }
  313. .width-30-per {
  314. width: 30% !important;
  315. }
  316. .width-35-per {
  317. width: 35% !important;
  318. }
  319. .width-40-per {
  320. width: 40% !important;
  321. }
  322. .width-45-per {
  323. width: 45% !important;
  324. }
  325. .width-50-per {
  326. width: 50% !important;
  327. }
  328. .width-55-per {
  329. width: 55% !important;
  330. }
  331. .width-60-per {
  332. width: 60% !important;
  333. }
  334. .width-65-per {
  335. width: 65% !important;
  336. }
  337. .width-70-per {
  338. width: 70% !important;
  339. }
  340. .width-75-per {
  341. width: 75% !important;
  342. }
  343. .width-80-per {
  344. width: 80% !important;
  345. }
  346. .width-90-per {
  347. width: 90% !important;
  348. }
  349. .width-95-per {
  350. width: 95% !important;
  351. }
  352. //Fixed Height in px
  353. .height-50 {
  354. height: 50px !important;
  355. }
  356. .height-75 {
  357. height: 75px !important;
  358. }
  359. .height-100 {
  360. height: 100px !important;
  361. }
  362. .height-150 {
  363. height: 150px !important;
  364. }
  365. .height-200 {
  366. height: 200px !important;
  367. }
  368. .height-250 {
  369. height: 250px !important;
  370. }
  371. .height-300 {
  372. height: 300px !important;
  373. }
  374. .height-350 {
  375. height: 350px !important;
  376. }
  377. .height-400 {
  378. height: 400px !important;
  379. }
  380. .height-450 {
  381. height: 450px !important;
  382. }
  383. .height-500 {
  384. height: 500px !important;
  385. }
  386. .height-550 {
  387. height: 550px !important;
  388. }
  389. .height-600 {
  390. height: 600px !important;
  391. }
  392. .height-650 {
  393. height: 650px !important;
  394. }
  395. .height-700 {
  396. height: 700px !important;
  397. }
  398. .height-750 {
  399. height: 750px !important;
  400. }
  401. .height-800 {
  402. height: 800px !important;
  403. }
  404. //Fixed Height in %
  405. .height-5-per{
  406. height: 5% !important;
  407. }
  408. .height-10-per {
  409. height: 10% !important;
  410. }
  411. .height-15-per {
  412. height: 15% !important;
  413. }
  414. .height-20-per {
  415. height: 20% !important;
  416. }
  417. .height-25-per {
  418. height: 25% !important;
  419. }
  420. .height-30-per {
  421. height: 30% !important;
  422. }
  423. .height-35-per {
  424. height: 35% !important;
  425. }
  426. .height-40-per {
  427. height: 40% !important;
  428. }
  429. .height-45-per {
  430. height: 45% !important;
  431. }
  432. .height-50-per {
  433. height: 50% !important;
  434. }
  435. .height-55-per {
  436. height: 55% !important;
  437. }
  438. .height-60-per {
  439. height: 60% !important;
  440. }
  441. .height-65-per {
  442. height: 65% !important;
  443. }
  444. .height-70-per {
  445. height: 70% !important;
  446. }
  447. .height-75-per {
  448. height: 75% !important;
  449. }
  450. .height-80-per {
  451. height: 80% !important;
  452. }
  453. //vh height
  454. .full-height-vh-with-nav{
  455. height: calc(100vh - #{$navbar-height} - 4rem);
  456. height: calc(var(--vh, 1vh) * 100 - #{$navbar-height} - 4rem);
  457. }
  458. .full-height-vh{
  459. height: 100vh;
  460. height: calc(var(--vh, 1vh) * 100);
  461. }
  462. // Line height
  463. .line-height-1{
  464. line-height: 1 !important;
  465. }
  466. .line-height-2{
  467. line-height: 2 !important;
  468. }
  469. //Transformations
  470. .rotate-45 {
  471. transform: rotate(45deg);
  472. }
  473. .rotate-45-inverse {
  474. transform: rotate(-45deg);
  475. }
  476. .rotate-90 {
  477. transform: rotate(45deg);
  478. }
  479. .rotate-90-inverse {
  480. transform: rotate(-45deg);
  481. }
  482. .rotate-180 {
  483. transform: rotate(45deg);
  484. }
  485. .rotate-180-inverse {
  486. transform: rotate(-45deg);
  487. }
  488. //Pull the element
  489. .pull-up {
  490. transition: all 0.25s ease;
  491. &:hover {
  492. transform: translateY(-4px) scale(1.02);
  493. box-shadow: 0px 14px 24px rgba(62, 57, 107, 0.2);
  494. z-index: 30;
  495. }
  496. }
  497. // Spinner classes
  498. .spinner {
  499. display: inline-block;
  500. animation: spin 1s linear infinite;
  501. }
  502. @keyframes spin {
  503. 0% { transform: rotate(0deg); }
  504. 100% { transform: rotate(360deg); }
  505. }
  506. .spinner-reverse {
  507. display: inline-block;
  508. animation: spin-reverse 1s linear infinite;
  509. }
  510. @keyframes spin-reverse {
  511. 0% { transform: rotate(0deg); }
  512. 100% { transform: rotate(-360deg); }
  513. }
  514. //
  515. // Image
  516. //
  517. //Background Image
  518. .bg-cover{
  519. background-size:cover !important;
  520. }
  521. .background-repeat {
  522. background-repeat:repeat !important;
  523. }
  524. .background-no-repeat {
  525. background-repeat:no-repeat !important;
  526. }
  527. // Extra large
  528. .img-xl {
  529. width: 64px !important;
  530. height: 64px !important;
  531. }
  532. // Large
  533. .img-lg {
  534. width: 44px !important;
  535. height: 44px !important;
  536. }
  537. // Small
  538. .img-sm {
  539. width: 36px !important;
  540. height: 36px !important;
  541. }
  542. // Mini
  543. .img-xs {
  544. width: 32px !important;
  545. height: 32px !important;
  546. }
  547. // Bullets used in application pages
  548. .bullet{
  549. width: 1rem;
  550. height: 1rem;
  551. border-radius: 50%;
  552. display: inline-block;
  553. &.bullet-xs{
  554. width: 0.5rem;
  555. height: 0.5rem;
  556. }
  557. &.bullet-sm{
  558. width: 0.714rem;
  559. height: 0.714rem;
  560. }
  561. &.bullet-lg{
  562. width: 1.25rem;
  563. height: 1.25rem;
  564. }
  565. }