_reset.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // -----------------------------------------------------------------------------
  2. // This file contains very basic styles.
  3. // -----------------------------------------------------------------------------
  4. /**
  5. * Set up a decent box model on the root element
  6. */
  7. html {
  8. box-sizing: border-box;
  9. }
  10. /**
  11. * Make all elements from the DOM inherit from the parent box-sizing
  12. * Since `*` has a specificity of 0, it does not override the `html` value
  13. * making all elements inheriting from the root box-sizing value
  14. * See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
  15. */
  16. *,
  17. *::before,
  18. *::after {
  19. box-sizing: inherit;
  20. }
  21. /**
  22. * Basic styles for links
  23. */
  24. a {
  25. @include themify($themes) {
  26. text-decoration: none;
  27. color: themed('link');
  28. @include on-event {
  29. color: themed('link-hover');
  30. text-decoration: underline;
  31. }
  32. }
  33. }
  34. /*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
  35. // Blocks
  36. html,
  37. body,
  38. p,
  39. ol,
  40. ul,
  41. li,
  42. dl,
  43. dt,
  44. dd,
  45. blockquote,
  46. figure,
  47. fieldset,
  48. legend,
  49. textarea,
  50. pre,
  51. iframe,
  52. hr,
  53. h1,
  54. h2,
  55. h3,
  56. h4,
  57. h5,
  58. h6 {
  59. margin: 0;
  60. padding: 0;
  61. }
  62. // List
  63. ul {
  64. list-style: none;
  65. }
  66. hr {
  67. border: 0;
  68. }
  69. // Form
  70. button,
  71. input,
  72. select,
  73. textarea {
  74. margin: 0;
  75. }
  76. // Media
  77. img,
  78. video {
  79. height: auto;
  80. max-width: 100%;
  81. object-fit: inherit;
  82. }
  83. // Iframe
  84. iframe {
  85. border: 0;
  86. }
  87. // Table
  88. table {
  89. border-collapse: collapse;
  90. border-spacing: 0;
  91. }
  92. td,
  93. th {
  94. padding: 0;
  95. &:not([align]) {
  96. text-align: left;
  97. }
  98. }
  99. b,
  100. strong {
  101. font-weight: bold;
  102. }
  103. dfn {
  104. font-style: italic;
  105. }
  106. figcaption {
  107. font-style: italic;
  108. font-size: 0.9rem;
  109. margin: 0.5rem 1rem 1rem;
  110. @include themify($themes) {
  111. color: themed("figcaption-color");
  112. strong {
  113. color: themed("figcaption-strong-color");
  114. }
  115. }
  116. }
  117. pre {
  118. white-space: pre;
  119. -webkit-hyphens: none;
  120. -ms-hyphens: none;
  121. hyphens: none;
  122. }
  123. ::-moz-selection {
  124. /* Code for Firefox */
  125. @include themify($themes) {
  126. color: themed("selection-color");
  127. background: themed("selection-background-color");
  128. }
  129. }
  130. ::selection {
  131. @include themify($themes) {
  132. color: themed("selection-color");
  133. background: themed("selection-background-color");
  134. }
  135. }