_list.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ///
  2. /// Paradigm Shift 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.25rem;
  11. li {
  12. padding-left: 0.25rem;
  13. }
  14. }
  15. ul {
  16. list-style: disc;
  17. margin: 0 0 _size(element-margin) 0;
  18. padding-left: 1rem;
  19. li {
  20. padding-left: 0.325rem;
  21. }
  22. &.alt {
  23. list-style: none;
  24. padding-left: 0;
  25. > li {
  26. border-top: solid 1px _palette(border);
  27. padding: 0.75rem 0;
  28. &:first-child {
  29. border-top: 0;
  30. padding-top: 0;
  31. }
  32. &:last-child {
  33. padding-bottom: 0;
  34. }
  35. }
  36. }
  37. &.items {
  38. list-style: none;
  39. padding-left: 0;
  40. > li {
  41. padding-left: 0;
  42. margin: 0 0 (_size(element-margin) * 1.5) 0;
  43. > h3 {
  44. margin: 0 0 (_size(element-margin) * 0.5) 0;
  45. }
  46. > :last-child {
  47. margin-bottom: 0;
  48. }
  49. &:last-child {
  50. margin-bottom: 0;
  51. }
  52. }
  53. }
  54. @include breakpoint('<=small') {
  55. &.items {
  56. > li {
  57. margin: 0 0 (_size(element-margin) * 1) 0;
  58. }
  59. }
  60. }
  61. }
  62. dl {
  63. margin: 0 0 _size(element-margin) 0;
  64. dt {
  65. display: block;
  66. font-weight: _font(weight-bold);
  67. margin: 0 0 (_size(element-margin) * 0.5) 0;
  68. }
  69. dd {
  70. margin-left: (_size(element-margin) * 0.75);
  71. }
  72. }