_width_height.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  1. // Width & Height
  2. /*******************
  3. Width property
  4. *******************/
  5. $width-property-map: ( w-: width, min-w-: min-width, max-w-: max-width);
  6. $sizes-list: 0 10 20 30 40 50 60 70 80 90 100 120 150 160 170 180 190 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  7. @each $size in $sizes-list {
  8. $val: $size + 0px !important;
  9. @each $keyword,
  10. $property in $width-property-map {
  11. .#{$keyword}#{$size} {
  12. #{$property}: $val;
  13. }
  14. }
  15. }
  16. $width-property-per-map: ( w-p: width, min-w-p: min-width, max-w-p: max-width);
  17. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95;
  18. @each $size in $sizes-list {
  19. $val: $size + 0%;
  20. @each $keyword,
  21. $property in $width-property-per-map {
  22. .#{$keyword}#{$size} {
  23. #{$property}: $val;
  24. }
  25. }
  26. }
  27. $width-property-per-map: ( w-p: width, min-w-p: min-width, max-w-p: max-width);
  28. $sizes-list: 100;
  29. @each $size in $sizes-list {
  30. $val: $size + 0% !important;
  31. @each $keyword,
  32. $property in $width-property-per-map {
  33. .#{$keyword}#{$size} {
  34. #{$property}: $val;
  35. }
  36. }
  37. }
  38. $width-auto-property-map: ( w-: width, min-w-: min-width, max-w-: max-width);
  39. $sizes-list: auto;
  40. @each $size in $sizes-list {
  41. $val: $size;
  42. @each $keyword,
  43. $property in $width-auto-property-map {
  44. .#{$keyword}#{$size} {
  45. #{$property}: $val;
  46. }
  47. }
  48. }
  49. @include screen-xs {
  50. $width-property-map: ( w-xs-: width, min-w-xs-: min-width, max-w-xs-: max-width);
  51. $sizes-list: 0 10 20 30 40 50 60 70 80 90 100 120 150 160 170 180 190 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  52. @each $size in $sizes-list {
  53. $val: $size + 0px;
  54. @each $keyword,
  55. $property in $width-property-map {
  56. .#{$keyword}#{$size} {
  57. #{$property}: $val;
  58. }
  59. }
  60. }
  61. $width-property-per-map: ( w-xs-p: width, min-w-xs-p: min-width, max-w-xs-p: max-width);
  62. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  63. @each $size in $sizes-list {
  64. $val: $size + 0%;
  65. @each $keyword,
  66. $property in $width-property-per-map {
  67. .#{$keyword}#{$size} {
  68. #{$property}: $val;
  69. }
  70. }
  71. }
  72. $width-auto-property-map: ( w-xs-: width, min-w-xs-: min-width, max-w-xs-: max-width);
  73. $sizes-list: auto;
  74. @each $size in $sizes-list {
  75. $val: $size;
  76. @each $keyword,
  77. $property in $width-auto-property-map {
  78. .#{$keyword}#{$size} {
  79. #{$property}: $val;
  80. }
  81. }
  82. }
  83. }
  84. @include screen-sm {
  85. $width-property-map: ( w-sm-: width, min-w-sm-: min-width, max-w-sm-: max-width);
  86. $sizes-list: 0 10 20 30 40 50 60 70 80 90 100 120 150 160 170 180 190 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  87. @each $size in $sizes-list {
  88. $val: $size + 0px;
  89. @each $keyword,
  90. $property in $width-property-map {
  91. .#{$keyword}#{$size} {
  92. #{$property}: $val;
  93. }
  94. }
  95. }
  96. $width-property-per-map: ( w-sm-p: width, min-w-sm-p: min-width, max-w-sm-p: max-width);
  97. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  98. @each $size in $sizes-list {
  99. $val: $size + 0%;
  100. @each $keyword,
  101. $property in $width-property-per-map {
  102. .#{$keyword}#{$size} {
  103. #{$property}: $val;
  104. }
  105. }
  106. }
  107. $width-auto-property-map: ( w-sm-: width, min-w-sm-: min-width, max-w-sm-: max-width);
  108. $sizes-list: auto;
  109. @each $size in $sizes-list {
  110. $val: $size;
  111. @each $keyword,
  112. $property in $width-auto-property-map {
  113. .#{$keyword}#{$size} {
  114. #{$property}: $val;
  115. }
  116. }
  117. }
  118. }
  119. @include screen-md {
  120. $width-property-map: ( w-md-: width, min-w-md-: min-width, max-w-md-: max-width);
  121. $sizes-list: 0 10 20 30 40 50 60 70 80 90 100 120 150 160 170 180 190 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  122. @each $size in $sizes-list {
  123. $val: $size + 0px;
  124. @each $keyword,
  125. $property in $width-property-map {
  126. .#{$keyword}#{$size} {
  127. #{$property}: $val;
  128. }
  129. }
  130. }
  131. $width-property-per-map: ( w-md-p: width, min-w-md-p: min-width, max-w-md-p: max-width);
  132. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  133. @each $size in $sizes-list {
  134. $val: $size + 0%;
  135. @each $keyword,
  136. $property in $width-property-per-map {
  137. .#{$keyword}#{$size} {
  138. #{$property}: $val;
  139. }
  140. }
  141. }
  142. $width-auto-property-map: ( w-md-: width, min-w-md-: min-width, max-w-md-: max-width);
  143. $sizes-list: auto;
  144. @each $size in $sizes-list {
  145. $val: $size;
  146. @each $keyword,
  147. $property in $width-auto-property-map {
  148. .#{$keyword}#{$size} {
  149. #{$property}: $val;
  150. }
  151. }
  152. }
  153. }
  154. @include screen-lg {
  155. $width-property-map: ( w-lg-: width, min-w-lg-: min-width, max-w-lg-: max-width);
  156. $sizes-list: 0 10 20 30 40 50 60 70 80 90 100 120 150 160 170 180 190 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  157. @each $size in $sizes-list {
  158. $val: $size + 0px;
  159. @each $keyword,
  160. $property in $width-property-map {
  161. .#{$keyword}#{$size} {
  162. #{$property}: $val;
  163. }
  164. }
  165. }
  166. $width-property-per-map: ( w-lg-p: width, min-w-lg-p: min-width, max-w-lg-p: max-width);
  167. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  168. @each $size in $sizes-list {
  169. $val: $size + 0%;
  170. @each $keyword,
  171. $property in $width-property-per-map {
  172. .#{$keyword}#{$size} {
  173. #{$property}: $val;
  174. }
  175. }
  176. }
  177. $width-auto-property-map: ( w-lg-: width, min-w-lg-: min-width, max-w-lg-: max-width);
  178. $sizes-list: auto;
  179. @each $size in $sizes-list {
  180. $val: $size;
  181. @each $keyword,
  182. $property in $width-auto-property-map {
  183. .#{$keyword}#{$size} {
  184. #{$property}: $val;
  185. }
  186. }
  187. }
  188. }
  189. @include screen-xl {
  190. $width-property-map: ( w-xl-: width, min-w-xl-: min-width, max-w-xl-: max-width);
  191. $sizes-list: 0 10 20 30 40 50 60 70 80 90 100 120 150 160 170 180 190 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  192. @each $size in $sizes-list {
  193. $val: $size + 0px;
  194. @each $keyword,
  195. $property in $width-property-map {
  196. .#{$keyword}#{$size} {
  197. #{$property}: $val;
  198. }
  199. }
  200. }
  201. $width-property-per-map: ( w-xl-p: width, min-w-xl-p: min-width, max-w-xl-p: max-width);
  202. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  203. @each $size in $sizes-list {
  204. $val: $size + 0%;
  205. @each $keyword,
  206. $property in $width-property-per-map {
  207. .#{$keyword}#{$size} {
  208. #{$property}: $val;
  209. }
  210. }
  211. }
  212. $width-auto-property-map: ( w-xl-: width, min-w-xl-: min-width, max-w-xl-: max-width);
  213. $sizes-list: auto;
  214. @each $size in $sizes-list {
  215. $val: $size;
  216. @each $keyword,
  217. $property in $width-auto-property-map {
  218. .#{$keyword}#{$size} {
  219. #{$property}: $val;
  220. }
  221. }
  222. }
  223. }
  224. /*******************
  225. Height property
  226. *******************/
  227. $height-property-map: ( h-: height, min-h-: min-height, max-h-: max-height);
  228. $sizes-list: 0 10 15 20 30 40 50 60 70 80 90 100 120 150 160 165 170 175 180 185 190 195 200 210 220 230 240 250 300 310 320 325 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  229. @each $size in $sizes-list {
  230. $val: $size + 0px !important;
  231. @each $keyword,
  232. $property in $height-property-map {
  233. .#{$keyword}#{$size} {
  234. #{$property}: $val;
  235. }
  236. }
  237. }
  238. $height-property-per-map: ( h-p: height, min-h-p: min-height, max-h-p: max-height);
  239. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  240. @each $size in $sizes-list {
  241. $val: $size + 0% !important;
  242. @each $keyword,
  243. $property in $height-property-per-map {
  244. .#{$keyword}#{$size} {
  245. #{$property}: $val;
  246. }
  247. }
  248. }
  249. $height-auto-property-map: ( h-: height, min-h-: min-height, max-h-: max-height);
  250. $sizes-list: auto;
  251. @each $size in $sizes-list {
  252. $val: $size !important;
  253. @each $keyword,
  254. $property in $height-auto-property-map {
  255. .#{$keyword}#{$size} {
  256. #{$property}: $val;
  257. }
  258. }
  259. }
  260. @include screen-xs {
  261. $height-property-map: ( h-xs-: height, min-h-xs-: min-height, max-h-xs-: max-height);
  262. $sizes-list: 0 10 15 20 30 40 50 60 70 80 90 100 120 150 160 165 170 175 180 185 190 195 200 210 220 230 240 250 300 310 320 325 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  263. @each $size in $sizes-list {
  264. $val: $size + 0px !important;
  265. @each $keyword,
  266. $property in $height-property-map {
  267. .#{$keyword}#{$size} {
  268. #{$property}: $val;
  269. }
  270. }
  271. }
  272. $height-property-per-map: ( h-xs-p: height, min-h-xs-p: min-height, max-h-xs-p: max-height);
  273. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  274. @each $size in $sizes-list {
  275. $val: $size + 0% !important;
  276. @each $keyword,
  277. $property in $height-property-per-map {
  278. .#{$keyword}#{$size} {
  279. #{$property}: $val;
  280. }
  281. }
  282. }
  283. $height-auto-property-map: ( h-xs-: height, min-h-xs-: min-height, max-h-xs-: max-height);
  284. $sizes-list: auto;
  285. @each $size in $sizes-list {
  286. $val: $size !important;
  287. @each $keyword,
  288. $property in $height-auto-property-map {
  289. .#{$keyword}#{$size} {
  290. #{$property}: $val;
  291. }
  292. }
  293. }
  294. }
  295. @include screen-sm {
  296. $height-property-map: ( h-sm-: height, min-h-sm-: min-height, max-h-sm-: max-height);
  297. $sizes-list: 0 10 15 20 30 40 50 60 70 80 90 100 120 150 160 165 170 175 180 185 190 195 200 210 220 230 240 250 300 310 320 325 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  298. @each $size in $sizes-list {
  299. $val: $size + 0px !important;
  300. @each $keyword,
  301. $property in $height-property-map {
  302. .#{$keyword}#{$size} {
  303. #{$property}: $val;
  304. }
  305. }
  306. }
  307. $height-property-per-map: ( h-sm-p: height, min-h-sm-p: min-height, max-h-sm-p: max-height);
  308. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  309. @each $size in $sizes-list {
  310. $val: $size + 0% !important;
  311. @each $keyword,
  312. $property in $height-property-per-map {
  313. .#{$keyword}#{$size} {
  314. #{$property}: $val;
  315. }
  316. }
  317. }
  318. $height-auto-property-map: ( h-sm-: height, min-h-sm-: min-height, max-h-sm-: max-height);
  319. $sizes-list: auto;
  320. @each $size in $sizes-list {
  321. $val: $size !important;
  322. @each $keyword,
  323. $property in $height-auto-property-map {
  324. .#{$keyword}#{$size} {
  325. #{$property}: $val;
  326. }
  327. }
  328. }
  329. }
  330. @include screen-md {
  331. $height-property-map: ( h-md-: height, min-h-md-: min-height, max-h-md-: max-height);
  332. $sizes-list: 0 10 15 20 30 40 50 60 70 80 90 100 120 150 160 165 170 175 180 185 190 195 200 210 220 230 240 250 300 310 320 325 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  333. @each $size in $sizes-list {
  334. $val: $size + 0px !important;
  335. @each $keyword,
  336. $property in $height-property-map {
  337. .#{$keyword}#{$size} {
  338. #{$property}: $val;
  339. }
  340. }
  341. }
  342. $height-property-per-map: ( h-md-p: height, min-h-md-p: min-height, max-h-md-p: max-height);
  343. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  344. @each $size in $sizes-list {
  345. $val: $size + 0% !important;
  346. @each $keyword,
  347. $property in $height-property-per-map {
  348. .#{$keyword}#{$size} {
  349. #{$property}: $val;
  350. }
  351. }
  352. }
  353. $height-auto-property-map: ( h-md-: height, min-h-md-: min-height, max-h-md-: max-height);
  354. $sizes-list: auto;
  355. @each $size in $sizes-list {
  356. $val: $size !important;
  357. @each $keyword,
  358. $property in $height-auto-property-map {
  359. .#{$keyword}#{$size} {
  360. #{$property}: $val;
  361. }
  362. }
  363. }
  364. }
  365. @include screen-lg {
  366. $height-property-map: ( h-lg-: height, min-h-lg-: min-height, max-h-lg-: max-height);
  367. $sizes-list: 0 10 15 20 30 40 50 60 70 80 90 100 120 150 160 165 170 175 180 185 190 195 200 210 220 230 240 250 300 310 320 325 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  368. @each $size in $sizes-list {
  369. $val: $size + 0px !important;
  370. @each $keyword,
  371. $property in $height-property-map {
  372. .#{$keyword}#{$size} {
  373. #{$property}: $val;
  374. }
  375. }
  376. }
  377. $height-property-per-map: ( h-lg-p: height, min-h-lg-p: min-height, max-h-lg-p: max-height);
  378. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  379. @each $size in $sizes-list {
  380. $val: $size + 0% !important;
  381. @each $keyword,
  382. $property in $height-property-per-map {
  383. .#{$keyword}#{$size} {
  384. #{$property}: $val;
  385. }
  386. }
  387. }
  388. $height-auto-property-map: ( h-lg-: height, min-h-lg-: min-height, max-h-lg-: max-height);
  389. $sizes-list: auto;
  390. @each $size in $sizes-list {
  391. $val: $size !important;
  392. @each $keyword,
  393. $property in $height-auto-property-map {
  394. .#{$keyword}#{$size} {
  395. #{$property}: $val;
  396. }
  397. }
  398. }
  399. }
  400. @include screen-xl {
  401. $height-property-map: ( h-xl-: height, min-h-xl-: min-height, max-h-xl-: max-height);
  402. $sizes-list: 0 10 15 20 30 40 50 60 70 80 90 100 120 150 160 165 170 175 180 185 190 195 200 210 220 230 240 250 300 310 320 325 350 400 450 500 550 600 650 700 750 800 850 900 950 1000;
  403. @each $size in $sizes-list {
  404. $val: $size + 0px !important;
  405. @each $keyword,
  406. $property in $height-property-map {
  407. .#{$keyword}#{$size} {
  408. #{$property}: $val;
  409. }
  410. }
  411. }
  412. $height-property-per-map: ( h-xl-p: height, min-h-xl-p: min-height, max-h-xl-p: max-height);
  413. $sizes-list: 5 10 15 20 25 30 35 40 45 50 60 65 70 75 80 85 90 95 100;
  414. @each $size in $sizes-list {
  415. $val: $size + 0% !important;
  416. @each $keyword,
  417. $property in $height-property-per-map {
  418. .#{$keyword}#{$size} {
  419. #{$property}: $val;
  420. }
  421. }
  422. }
  423. $height-auto-property-map: ( h-lg-: height, min-h-lg-: min-height, max-h-lg-: max-height);
  424. $sizes-list: auto;
  425. @each $size in $sizes-list {
  426. $val: $size !important;
  427. @each $keyword,
  428. $property in $height-auto-property-map {
  429. .#{$keyword}#{$size} {
  430. #{$property}: $val;
  431. }
  432. }
  433. }
  434. }