base.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. /*!
  2. * ress.css • v4.0.0
  3. * MIT License
  4. * github.com/filipelinhares/ress
  5. */
  6. /* # =================================================================
  7. # Global selectors
  8. # ================================================================= */
  9. html {
  10. box-sizing: border-box;
  11. -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS */
  12. word-break: normal;
  13. -moz-tab-size: 4;
  14. tab-size: 4;
  15. }
  16. *,
  17. ::before,
  18. ::after {
  19. background-repeat: no-repeat; /* Set `background-repeat: no-repeat` to all elements and pseudo elements */
  20. box-sizing: inherit;
  21. appearance: none;
  22. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  23. text-rendering: optimizeLegibility !important;
  24. -webkit-font-smoothing: antialiased !important;
  25. }
  26. ::before,
  27. ::after {
  28. text-decoration: inherit; /* Inherit text-decoration and vertical align to ::before and ::after pseudo elements */
  29. vertical-align: inherit;
  30. }
  31. * {
  32. padding: 0; /* Reset `padding` and `margin` of all elements */
  33. margin: 0;
  34. }
  35. /* # =================================================================
  36. # General elements
  37. # ================================================================= */
  38. hr {
  39. overflow: visible; /* Show the overflow in Edge and IE */
  40. height: 0; /* Add the correct box sizing in Firefox */
  41. color: inherit; /* Correct border color in Firefox. */
  42. }
  43. details,
  44. main {
  45. display: block; /* Render the `main` element consistently in IE. */
  46. }
  47. summary {
  48. display: list-item; /* Add the correct display in all browsers */
  49. }
  50. small {
  51. font-size: 80%; /* Set font-size to 80% in `small` elements */
  52. }
  53. [hidden] {
  54. display: none; /* Add the correct display in IE */
  55. }
  56. abbr[title] {
  57. border-bottom: none; /* Remove the bottom border in Chrome 57 */
  58. /* Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari */
  59. text-decoration: underline;
  60. text-decoration: underline dotted;
  61. }
  62. a {
  63. background-color: transparent; /* Remove the gray background on active links in IE 10 */
  64. }
  65. a:active,
  66. a:hover {
  67. outline-width: 0; /* Remove the outline when hovering in all browsers */
  68. }
  69. code,
  70. kbd,
  71. pre,
  72. samp {
  73. font-family: monospace, monospace; /* Specify the font family of code elements */
  74. }
  75. pre {
  76. font-size: 1em; /* Correct the odd `em` font sizing in all browsers */
  77. }
  78. b,
  79. strong {
  80. font-weight: bolder; /* Add the correct font weight in Chrome, Edge, and Safari */
  81. }
  82. /* https://gist.github.com/unruthless/413930 */
  83. sub,
  84. sup {
  85. font-size: 75%;
  86. line-height: 0;
  87. position: relative;
  88. vertical-align: baseline;
  89. }
  90. sub {
  91. bottom: -0.25em;
  92. }
  93. sup {
  94. top: -0.5em;
  95. }
  96. table {
  97. border-color: inherit; /* Correct border color in all Chrome, Edge, and Safari. */
  98. text-indent: 0; /* Remove text indentation in Chrome, Edge, and Safari */
  99. }
  100. /* # =================================================================
  101. # Forms
  102. # ================================================================= */
  103. input {
  104. border-radius: 0;
  105. }
  106. /* Replace pointer cursor in disabled elements */
  107. [disabled] {
  108. cursor: default;
  109. user-select: none;
  110. }
  111. [type='number']::-webkit-inner-spin-button,
  112. [type='number']::-webkit-outer-spin-button {
  113. height: auto; /* Correct the cursor style of increment and decrement buttons in Chrome */
  114. }
  115. [type='search'] {
  116. -webkit-appearance: textfield; /* Correct the odd appearance in Chrome and Safari */
  117. outline-offset: -2px; /* Correct the outline style in Safari */
  118. }
  119. [type='search']::-webkit-search-decoration {
  120. -webkit-appearance: none; /* Remove the inner padding in Chrome and Safari on macOS */
  121. }
  122. textarea {
  123. overflow: auto; /* Internet Explorer 11+ */
  124. resize: vertical; /* Specify textarea resizability */
  125. }
  126. button,
  127. input,
  128. optgroup,
  129. select,
  130. textarea {
  131. font: inherit; /* Specify font inheritance of form elements */
  132. }
  133. optgroup {
  134. font-weight: bold; /* Restore the font weight unset by the previous rule */
  135. }
  136. button {
  137. overflow: visible; /* Address `overflow` set to `hidden` in IE 8/9/10/11 */
  138. }
  139. button,
  140. select {
  141. text-transform: none; /* Firefox 40+, Internet Explorer 11- */
  142. }
  143. /* Apply cursor pointer to button elements */
  144. button,
  145. [type='button'],
  146. [type='reset'],
  147. [type='submit'],
  148. [role='button'] {
  149. cursor: pointer;
  150. color: inherit;
  151. }
  152. /* Remove inner padding and border in Firefox 4+ */
  153. button::-moz-focus-inner,
  154. [type='button']::-moz-focus-inner,
  155. [type='reset']::-moz-focus-inner,
  156. [type='submit']::-moz-focus-inner {
  157. border-style: none;
  158. padding: 0;
  159. }
  160. /* Replace focus style removed in the border reset above */
  161. button:-moz-focusring,
  162. [type='button']::-moz-focus-inner,
  163. [type='reset']::-moz-focus-inner,
  164. [type='submit']::-moz-focus-inner {
  165. outline: 1px dotted #ccc;
  166. }
  167. button,
  168. html [type='button'], /* Prevent a WebKit bug where (2) destroys native `audio` and `video`controls in Android 4 */
  169. [type='reset'],
  170. [type='submit'] {
  171. -webkit-appearance: button; /* Correct the inability to style clickable types in iOS */
  172. }
  173. /* Remove the default button styling in all browsers */
  174. button,
  175. input,
  176. select,
  177. textarea {
  178. background-color: transparent;
  179. border-style: none;
  180. }
  181. a:focus,
  182. button:focus,
  183. input:focus,
  184. select:focus,
  185. textarea:focus {
  186. outline-width: 0;
  187. }
  188. /* Style select like a standard input */
  189. select {
  190. -moz-appearance: none; /* Firefox 36+ */
  191. -webkit-appearance: none; /* Chrome 41+ */
  192. }
  193. select::-ms-expand {
  194. display: none; /* Internet Explorer 11+ */
  195. }
  196. select::-ms-value {
  197. color: currentColor; /* Internet Explorer 11+ */
  198. }
  199. legend {
  200. border: 0; /* Correct `color` not being inherited in IE 8/9/10/11 */
  201. color: inherit; /* Correct the color inheritance from `fieldset` elements in IE */
  202. display: table; /* Correct the text wrapping in Edge and IE */
  203. max-width: 100%; /* Correct the text wrapping in Edge and IE */
  204. white-space: normal; /* Correct the text wrapping in Edge and IE */
  205. max-width: 100%; /* Correct the text wrapping in Edge 18- and IE */
  206. }
  207. ::-webkit-file-upload-button {
  208. /* Correct the inability to style clickable types in iOS and Safari */
  209. -webkit-appearance: button;
  210. color: inherit;
  211. font: inherit; /* Change font properties to `inherit` in Chrome and Safari */
  212. }
  213. /* # =================================================================
  214. # Specify media element style
  215. # ================================================================= */
  216. img {
  217. border-style: none; /* Remove border when inside `a` element in IE 8/9/10 */
  218. }
  219. /* Add the correct vertical alignment in Chrome, Firefox, and Opera */
  220. progress {
  221. vertical-align: baseline;
  222. }
  223. /* # =================================================================
  224. # Accessibility
  225. # ================================================================= */
  226. /* Specify the progress cursor of updating elements */
  227. [aria-busy='true'] {
  228. cursor: progress;
  229. }
  230. /* Specify the pointer cursor of trigger elements */
  231. [aria-controls] {
  232. cursor: pointer;
  233. }
  234. /* Specify the unstyled cursor of disabled, not-editable, or otherwise inoperable elements */
  235. [aria-disabled='true'] {
  236. cursor: default;
  237. }
  238. .disabled,
  239. :disabled {
  240. opacity: 0.3 !important;
  241. pointer-events: none !important;
  242. }