You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_coordinates.css 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /*
  2. COORDINATES
  3. Docs: http://tachyons.io/docs/layout/position/
  4. Use in combination with the position module.
  5. Base:
  6. top
  7. bottom
  8. right
  9. left
  10. Modifiers:
  11. -0 = literal value 0
  12. -1 = literal value 1
  13. -2 = literal value 2
  14. --1 = literal value -1
  15. --2 = literal value -2
  16. Media Query Extensions:
  17. -ns = not-small
  18. -m = medium
  19. -l = large
  20. */
  21. .top-0 { top: 0; }
  22. .right-0 { right: 0; }
  23. .bottom-0 { bottom: 0; }
  24. .left-0 { left: 0; }
  25. .top-1 { top: 1rem; }
  26. .right-1 { right: 1rem; }
  27. .bottom-1 { bottom: 1rem; }
  28. .left-1 { left: 1rem; }
  29. .top-2 { top: 2rem; }
  30. .right-2 { right: 2rem; }
  31. .bottom-2 { bottom: 2rem; }
  32. .left-2 { left: 2rem; }
  33. .top--1 { top: -1rem; }
  34. .right--1 { right: -1rem; }
  35. .bottom--1 { bottom: -1rem; }
  36. .left--1 { left: -1rem; }
  37. .top--2 { top: -2rem; }
  38. .right--2 { right: -2rem; }
  39. .bottom--2 { bottom: -2rem; }
  40. .left--2 { left: -2rem; }
  41. .absolute--fill {
  42. top: 0;
  43. right: 0;
  44. bottom: 0;
  45. left: 0;
  46. }
  47. @media (--breakpoint-not-small) {
  48. .top-0-ns { top: 0; }
  49. .left-0-ns { left: 0; }
  50. .right-0-ns { right: 0; }
  51. .bottom-0-ns { bottom: 0; }
  52. .top-1-ns { top: 1rem; }
  53. .left-1-ns { left: 1rem; }
  54. .right-1-ns { right: 1rem; }
  55. .bottom-1-ns { bottom: 1rem; }
  56. .top-2-ns { top: 2rem; }
  57. .left-2-ns { left: 2rem; }
  58. .right-2-ns { right: 2rem; }
  59. .bottom-2-ns { bottom: 2rem; }
  60. .top--1-ns { top: -1rem; }
  61. .right--1-ns { right: -1rem; }
  62. .bottom--1-ns { bottom: -1rem; }
  63. .left--1-ns { left: -1rem; }
  64. .top--2-ns { top: -2rem; }
  65. .right--2-ns { right: -2rem; }
  66. .bottom--2-ns { bottom: -2rem; }
  67. .left--2-ns { left: -2rem; }
  68. .absolute--fill-ns {
  69. top: 0;
  70. right: 0;
  71. bottom: 0;
  72. left: 0;
  73. }
  74. }
  75. @media (--breakpoint-medium) {
  76. .top-0-m { top: 0; }
  77. .left-0-m { left: 0; }
  78. .right-0-m { right: 0; }
  79. .bottom-0-m { bottom: 0; }
  80. .top-1-m { top: 1rem; }
  81. .left-1-m { left: 1rem; }
  82. .right-1-m { right: 1rem; }
  83. .bottom-1-m { bottom: 1rem; }
  84. .top-2-m { top: 2rem; }
  85. .left-2-m { left: 2rem; }
  86. .right-2-m { right: 2rem; }
  87. .bottom-2-m { bottom: 2rem; }
  88. .top--1-m { top: -1rem; }
  89. .right--1-m { right: -1rem; }
  90. .bottom--1-m { bottom: -1rem; }
  91. .left--1-m { left: -1rem; }
  92. .top--2-m { top: -2rem; }
  93. .right--2-m { right: -2rem; }
  94. .bottom--2-m { bottom: -2rem; }
  95. .left--2-m { left: -2rem; }
  96. .absolute--fill-m {
  97. top: 0;
  98. right: 0;
  99. bottom: 0;
  100. left: 0;
  101. }
  102. }
  103. @media (--breakpoint-large) {
  104. .top-0-l { top: 0; }
  105. .left-0-l { left: 0; }
  106. .right-0-l { right: 0; }
  107. .bottom-0-l { bottom: 0; }
  108. .top-1-l { top: 1rem; }
  109. .left-1-l { left: 1rem; }
  110. .right-1-l { right: 1rem; }
  111. .bottom-1-l { bottom: 1rem; }
  112. .top-2-l { top: 2rem; }
  113. .left-2-l { left: 2rem; }
  114. .right-2-l { right: 2rem; }
  115. .bottom-2-l { bottom: 2rem; }
  116. .top--1-l { top: -1rem; }
  117. .right--1-l { right: -1rem; }
  118. .bottom--1-l { bottom: -1rem; }
  119. .left--1-l { left: -1rem; }
  120. .top--2-l { top: -2rem; }
  121. .right--2-l { right: -2rem; }
  122. .bottom--2-l { bottom: -2rem; }
  123. .left--2-l { left: -2rem; }
  124. .absolute--fill-l {
  125. top: 0;
  126. right: 0;
  127. bottom: 0;
  128. left: 0;
  129. }
  130. }