Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_widths.css 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /*
  2. WIDTHS
  3. Docs: http://tachyons.io/docs/layout/widths/
  4. Base:
  5. w = width
  6. Modifiers
  7. 1 = 1st step in width scale
  8. 2 = 2nd step in width scale
  9. 3 = 3rd step in width scale
  10. 4 = 4th step in width scale
  11. 5 = 5th step in width scale
  12. -10 = literal value 10%
  13. -20 = literal value 20%
  14. -25 = literal value 25%
  15. -30 = literal value 30%
  16. -33 = literal value 33%
  17. -34 = literal value 34%
  18. -40 = literal value 40%
  19. -50 = literal value 50%
  20. -60 = literal value 60%
  21. -70 = literal value 70%
  22. -75 = literal value 75%
  23. -80 = literal value 80%
  24. -90 = literal value 90%
  25. -100 = literal value 100%
  26. -third = 100% / 3 (Not supported in opera mini or IE8)
  27. -two-thirds = 100% / 1.5 (Not supported in opera mini or IE8)
  28. -auto = string value auto
  29. Media Query Extensions:
  30. -ns = not-small
  31. -m = medium
  32. -l = large
  33. */
  34. /* Width Scale */
  35. .w1 { width: 1rem; }
  36. .w2 { width: 2rem; }
  37. .w3 { width: 4rem; }
  38. .w4 { width: 8rem; }
  39. .w5 { width: 16rem; }
  40. .w-10 { width: 10%; }
  41. .w-20 { width: 20%; }
  42. .w-25 { width: 25%; }
  43. .w-30 { width: 30%; }
  44. .w-33 { width: 33%; }
  45. .w-34 { width: 34%; }
  46. .w-40 { width: 40%; }
  47. .w-50 { width: 50%; }
  48. .w-60 { width: 60%; }
  49. .w-70 { width: 70%; }
  50. .w-75 { width: 75%; }
  51. .w-80 { width: 80%; }
  52. .w-90 { width: 90%; }
  53. .w-100 { width: 100%; }
  54. .w-third { width: calc(100% / 3); }
  55. .w-two-thirds { width: calc(100% / 1.5); }
  56. .w-auto { width: auto; }
  57. @media (--breakpoint-not-small) {
  58. .w1-ns { width: 1rem; }
  59. .w2-ns { width: 2rem; }
  60. .w3-ns { width: 4rem; }
  61. .w4-ns { width: 8rem; }
  62. .w5-ns { width: 16rem; }
  63. .w-10-ns { width: 10%; }
  64. .w-20-ns { width: 20%; }
  65. .w-25-ns { width: 25%; }
  66. .w-30-ns { width: 30%; }
  67. .w-33-ns { width: 33%; }
  68. .w-34-ns { width: 34%; }
  69. .w-40-ns { width: 40%; }
  70. .w-50-ns { width: 50%; }
  71. .w-60-ns { width: 60%; }
  72. .w-70-ns { width: 70%; }
  73. .w-75-ns { width: 75%; }
  74. .w-80-ns { width: 80%; }
  75. .w-90-ns { width: 90%; }
  76. .w-100-ns { width: 100%; }
  77. .w-third-ns { width: calc(100% / 3); }
  78. .w-two-thirds-ns { width: calc(100% / 1.5); }
  79. .w-auto-ns { width: auto; }
  80. }
  81. @media (--breakpoint-medium) {
  82. .w1-m { width: 1rem; }
  83. .w2-m { width: 2rem; }
  84. .w3-m { width: 4rem; }
  85. .w4-m { width: 8rem; }
  86. .w5-m { width: 16rem; }
  87. .w-10-m { width: 10%; }
  88. .w-20-m { width: 20%; }
  89. .w-25-m { width: 25%; }
  90. .w-30-m { width: 30%; }
  91. .w-33-m { width: 33%; }
  92. .w-34-m { width: 34%; }
  93. .w-40-m { width: 40%; }
  94. .w-50-m { width: 50%; }
  95. .w-60-m { width: 60%; }
  96. .w-70-m { width: 70%; }
  97. .w-75-m { width: 75%; }
  98. .w-80-m { width: 80%; }
  99. .w-90-m { width: 90%; }
  100. .w-100-m { width: 100%; }
  101. .w-third-m { width: calc(100% / 3); }
  102. .w-two-thirds-m { width: calc(100% / 1.5); }
  103. .w-auto-m { width: auto; }
  104. }
  105. @media (--breakpoint-large) {
  106. .w1-l { width: 1rem; }
  107. .w2-l { width: 2rem; }
  108. .w3-l { width: 4rem; }
  109. .w4-l { width: 8rem; }
  110. .w5-l { width: 16rem; }
  111. .w-10-l { width: 10%; }
  112. .w-20-l { width: 20%; }
  113. .w-25-l { width: 25%; }
  114. .w-30-l { width: 30%; }
  115. .w-33-l { width: 33%; }
  116. .w-34-l { width: 34%; }
  117. .w-40-l { width: 40%; }
  118. .w-50-l { width: 50%; }
  119. .w-60-l { width: 60%; }
  120. .w-70-l { width: 70%; }
  121. .w-75-l { width: 75%; }
  122. .w-80-l { width: 80%; }
  123. .w-90-l { width: 90%; }
  124. .w-100-l { width: 100%; }
  125. .w-third-l { width: calc(100% / 3); }
  126. .w-two-thirds-l { width: calc(100% / 1.5); }
  127. .w-auto-l { width: auto; }
  128. }