gitea源码

normalize.css 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. /*
  2. This is copy of modern-normalize with these changes done:
  3. - Remove html font-family, we set our own
  4. - Remove html tab-size, we set our own
  5. - Remove b,strong font-weight, we set our own
  6. - Remove b,code,samp,pre font-size, we set our own
  7. */
  8. /*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
  9. /*
  10. Document
  11. ========
  12. */
  13. /**
  14. Use a better box model (opinionated).
  15. */
  16. *,
  17. ::before,
  18. ::after {
  19. box-sizing: border-box;
  20. }
  21. html {
  22. line-height: normal; /* 1. (not following the "modern-normalize") Do not change the browser's default line-height, the default value is font-dependent and roughly 1.2 */
  23. -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
  24. }
  25. /*
  26. Sections
  27. ========
  28. */
  29. body {
  30. margin: 0; /* Remove the margin in all browsers. */
  31. }
  32. /*
  33. Grouping content
  34. ================
  35. */
  36. /**
  37. 1. Add the correct height in Firefox.
  38. 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  39. */
  40. hr {
  41. height: 0; /* 1 */
  42. color: inherit; /* 2 */
  43. }
  44. /*
  45. Text-level semantics
  46. ====================
  47. */
  48. /**
  49. Add the correct text decoration in Chrome, Edge, and Safari.
  50. */
  51. abbr[title] {
  52. text-decoration: underline dotted;
  53. }
  54. /**
  55. Add the correct font size in all browsers.
  56. */
  57. small {
  58. font-size: 80%;
  59. }
  60. /**
  61. Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
  62. */
  63. sub,
  64. sup {
  65. font-size: 75%;
  66. line-height: 0;
  67. position: relative;
  68. vertical-align: baseline;
  69. }
  70. sub {
  71. bottom: -0.25em;
  72. }
  73. sup {
  74. top: -0.5em;
  75. }
  76. /*
  77. Tabular data
  78. ============
  79. */
  80. /**
  81. 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  82. 2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  83. */
  84. table {
  85. text-indent: 0; /* 1 */
  86. border-color: inherit; /* 2 */
  87. }
  88. /*
  89. Forms
  90. =====
  91. */
  92. /**
  93. 1. Change the font styles in all browsers.
  94. 2. Remove the margin in Firefox and Safari.
  95. */
  96. button,
  97. input,
  98. optgroup,
  99. select,
  100. textarea {
  101. font-family: inherit; /* 1 */
  102. font-size: 100%; /* 1 */
  103. line-height: 1.15; /* 1 */
  104. margin: 0; /* 2 */
  105. }
  106. /**
  107. Remove the inheritance of text transform in Edge and Firefox.
  108. */
  109. button,
  110. select {
  111. text-transform: none;
  112. }
  113. /**
  114. Correct the inability to style clickable types in iOS and Safari.
  115. */
  116. button,
  117. [type="button"],
  118. [type="reset"],
  119. [type="submit"] {
  120. -webkit-appearance: button;
  121. }
  122. /**
  123. Remove the inner border and padding in Firefox.
  124. */
  125. ::-moz-focus-inner {
  126. border-style: none;
  127. padding: 0;
  128. }
  129. /**
  130. Restore the focus styles unset by the previous rule.
  131. */
  132. :-moz-focusring {
  133. outline: 1px dotted ButtonText;
  134. }
  135. /**
  136. Remove the additional ':invalid' styles in Firefox.
  137. See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
  138. */
  139. :-moz-ui-invalid {
  140. box-shadow: none;
  141. }
  142. /**
  143. Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
  144. */
  145. legend {
  146. padding: 0;
  147. }
  148. /**
  149. Add the correct vertical alignment in Chrome and Firefox.
  150. */
  151. progress {
  152. vertical-align: baseline;
  153. }
  154. /**
  155. Correct the cursor style of increment and decrement buttons in Safari.
  156. */
  157. ::-webkit-inner-spin-button,
  158. ::-webkit-outer-spin-button {
  159. height: auto;
  160. }
  161. /**
  162. 1. Correct the odd appearance in Chrome and Safari.
  163. 2. Correct the outline style in Safari.
  164. */
  165. [type="search"] {
  166. -webkit-appearance: textfield; /* 1 */
  167. outline-offset: -2px; /* 2 */
  168. }
  169. /**
  170. Remove the inner padding in Chrome and Safari on macOS.
  171. */
  172. ::-webkit-search-decoration {
  173. -webkit-appearance: none;
  174. }
  175. /**
  176. 1. Correct the inability to style clickable types in iOS and Safari.
  177. 2. Change font properties to 'inherit' in Safari.
  178. */
  179. ::-webkit-file-upload-button {
  180. -webkit-appearance: button; /* 1 */
  181. font: inherit; /* 2 */
  182. }
  183. /*
  184. Interactive
  185. ===========
  186. */
  187. /*
  188. Add the correct display in Chrome and Safari.
  189. */
  190. summary {
  191. display: list-item;
  192. }