_list.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. ///
  2. /// Hyperspace by HTML5 UP
  3. /// html5up.net | @ajlkn
  4. /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
  5. ///
  6. /* List */
  7. ol {
  8. list-style: decimal;
  9. margin: 0 0 _size(element-margin) 0;
  10. padding-left: 1.25em;
  11. li {
  12. padding-left: 0.25em;
  13. }
  14. }
  15. ul {
  16. list-style: disc;
  17. margin: 0 0 _size(element-margin) 0;
  18. padding-left: 1em;
  19. li {
  20. padding-left: 0.5em;
  21. }
  22. &.alt {
  23. list-style: none;
  24. padding-left: 0;
  25. li {
  26. border-top: solid _size(border-width) _palette(border);
  27. padding: 0.5em 0;
  28. &:first-child {
  29. border-top: 0;
  30. padding-top: 0;
  31. }
  32. }
  33. }
  34. &.icons {
  35. cursor: default;
  36. list-style: none;
  37. padding-left: 0;
  38. li {
  39. display: inline-block;
  40. padding: 0 0.75em 0 0;
  41. &:last-child {
  42. padding-right: 0;
  43. }
  44. > a, > span {
  45. border: 0;
  46. @include icon;
  47. .label {
  48. display: none;
  49. }
  50. }
  51. }
  52. }
  53. &.actions {
  54. cursor: default;
  55. list-style: none;
  56. padding-left: 0;
  57. li {
  58. display: inline-block;
  59. padding: 0 (_size(element-margin) * 0.5) 0 0;
  60. vertical-align: middle;
  61. &:last-child {
  62. padding-right: 0;
  63. }
  64. }
  65. &.small {
  66. li {
  67. padding: 0 (_size(element-margin) * 0.25) 0 0;
  68. }
  69. }
  70. &.vertical {
  71. li {
  72. display: block;
  73. padding: (_size(element-margin) * 0.5) 0 0 0;
  74. &:first-child {
  75. padding-top: 0;
  76. }
  77. > * {
  78. margin-bottom: 0;
  79. }
  80. }
  81. &.small {
  82. li {
  83. padding: (_size(element-margin) * 0.25) 0 0 0;
  84. &:first-child {
  85. padding-top: 0;
  86. }
  87. }
  88. }
  89. }
  90. &.fit {
  91. display: table;
  92. margin-left: (_size(element-margin) * -0.5);
  93. padding: 0;
  94. table-layout: fixed;
  95. width: calc(100% + #{(_size(element-margin) * 0.5)});
  96. li {
  97. display: table-cell;
  98. padding: 0 0 0 (_size(element-margin) * 0.5);
  99. > * {
  100. margin-bottom: 0;
  101. }
  102. }
  103. &.small {
  104. margin-left: (_size(element-margin) * -0.25);
  105. width: calc(100% + #{(_size(element-margin) * 0.25)});
  106. li {
  107. padding: 0 0 0 (_size(element-margin) * 0.25);
  108. }
  109. }
  110. }
  111. @include breakpoint(xsmall) {
  112. margin: 0 0 _size(element-margin) 0;
  113. li {
  114. padding: (_size(element-margin) * 0.5) 0 0 0;
  115. display: block;
  116. text-align: center;
  117. width: 100%;
  118. > * {
  119. width: 100%;
  120. margin: 0 !important;
  121. &.icon {
  122. &:before {
  123. margin-left: -2em;
  124. }
  125. }
  126. }
  127. .button {
  128. padding: 0;
  129. }
  130. &:first-child {
  131. padding-top: 0;
  132. }
  133. }
  134. &.small {
  135. li {
  136. padding: (_size(element-margin) * 0.25) 0 0 0;
  137. &:first-child {
  138. padding-top: 0;
  139. }
  140. }
  141. }
  142. }
  143. }
  144. &.contact {
  145. list-style: none;
  146. padding: 0;
  147. > li {
  148. padding: 0;
  149. margin: 1.5em 0 0 0;
  150. &:first-child {
  151. margin-top: 0;
  152. }
  153. }
  154. }
  155. &.menu {
  156. list-style: none;
  157. padding: 0;
  158. > li {
  159. border-left: solid 1px _palette(border);
  160. display: inline-block;
  161. line-height: 1;
  162. margin-left: 1.5em;
  163. padding: 0 0 0 1.5em;
  164. &:first-child {
  165. border-left: 0;
  166. margin: 0;
  167. padding-left: 0;
  168. }
  169. }
  170. @include breakpoint(xsmall) {
  171. > li {
  172. border-left: 0;
  173. display: block;
  174. line-height: inherit;
  175. margin: 0.5em 0 0 0;
  176. padding-left: 0;
  177. }
  178. }
  179. }
  180. }
  181. dl {
  182. margin: 0 0 _size(element-margin) 0;
  183. dt {
  184. display: block;
  185. font-weight: _font(weight-bold);
  186. margin: 0 0 (_size(element-margin) * 0.5) 0;
  187. }
  188. dd {
  189. margin-left: _size(element-margin);
  190. }
  191. }