Default.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. html {
  2. font-family: sans-serif;
  3. color: -libweb-palette-base-text;
  4. }
  5. a {
  6. cursor: pointer;
  7. }
  8. body {
  9. margin: 8px;
  10. }
  11. h1 {
  12. font-size: 2em;
  13. margin: 0.67em 0;
  14. }
  15. h2 {
  16. font-size: 1.5em;
  17. margin: 0.83em 0;
  18. }
  19. h3 {
  20. font-size: 1.17em;
  21. margin: 1em 0;
  22. }
  23. h4 {
  24. margin: 1.33em 0;
  25. }
  26. h5 {
  27. font-size: 0.83em;
  28. margin: 1.67em 0;
  29. }
  30. h6 {
  31. font-size: 0.67em;
  32. margin: 2.33em 0;
  33. }
  34. h1,
  35. h2,
  36. h3,
  37. h4,
  38. h5,
  39. h6 {
  40. font-weight: bold;
  41. }
  42. pre {
  43. font-family: monospace;
  44. margin-bottom: 8px;
  45. margin-top: 8px;
  46. white-space: pre;
  47. }
  48. code,
  49. kbd,
  50. samp,
  51. tt {
  52. font-family: monospace;
  53. }
  54. u,
  55. ins {
  56. text-decoration: underline;
  57. }
  58. s,
  59. strike,
  60. del {
  61. text-decoration: line-through;
  62. }
  63. strong,
  64. b {
  65. font-weight: bold;
  66. }
  67. i,
  68. em,
  69. address,
  70. cite,
  71. dfn,
  72. var {
  73. font-style: italic;
  74. }
  75. html,
  76. address,
  77. blockquote,
  78. body,
  79. dd,
  80. div,
  81. dl,
  82. dt,
  83. fieldset,
  84. form,
  85. frame,
  86. frameset,
  87. hgroup,
  88. h1,
  89. h2,
  90. h3,
  91. h4,
  92. h5,
  93. h6,
  94. noframes,
  95. ol,
  96. p,
  97. ul,
  98. center,
  99. dir,
  100. hr,
  101. menu,
  102. pre,
  103. header,
  104. footer,
  105. nav,
  106. main,
  107. article,
  108. aside,
  109. section {
  110. display: block;
  111. }
  112. center {
  113. text-align: -libweb-center;
  114. }
  115. h1,
  116. h2,
  117. h3 {
  118. margin: 8px 0 8px 0;
  119. }
  120. h4,
  121. p,
  122. blockquote,
  123. ul,
  124. fieldset,
  125. form,
  126. ol,
  127. dl,
  128. dir,
  129. menu {
  130. margin: 4px 0 4px 0;
  131. }
  132. h5,
  133. h6 {
  134. margin: 2px 0 2px 0;
  135. }
  136. li {
  137. display: list-item;
  138. margin-left: 8px;
  139. margin-top: 2px;
  140. margin-bottom: 2px;
  141. }
  142. a:link {
  143. color: -libweb-link;
  144. text-decoration: underline;
  145. }
  146. a:hover {
  147. color: red;
  148. }
  149. hr {
  150. margin-top: 0.5em;
  151. margin-bottom: 0.5em;
  152. border: 1px inset #888888;
  153. }
  154. blink {
  155. display: inline;
  156. }
  157. table {
  158. display: table;
  159. }
  160. thead {
  161. display: table-header-group;
  162. vertical-align: middle;
  163. border-color: inherit;
  164. }
  165. tbody {
  166. display: table-row-group;
  167. vertical-align: middle;
  168. border-color: inherit;
  169. }
  170. tfoot {
  171. display: table-footer-group;
  172. vertical-align: middle;
  173. border-color: inherit;
  174. }
  175. tr {
  176. display: table-row;
  177. }
  178. td,
  179. th {
  180. display: table-cell;
  181. }
  182. th {
  183. font-weight: bold;
  184. }
  185. col {
  186. display: table-column;
  187. }
  188. colgroup {
  189. display: table-column-group;
  190. }
  191. blockquote {
  192. margin-left: 25px;
  193. margin-right: 25px;
  194. }
  195. ul,
  196. ol {
  197. padding-left: 20px;
  198. }
  199. ul {
  200. list-style-type: disc;
  201. }
  202. ol {
  203. list-style-type: decimal;
  204. }
  205. :is(ul, ol) ul {
  206. list-style-type: circle;
  207. }
  208. :is(ul, ol) :is(ul, ol) ul {
  209. list-style-type: square;
  210. }
  211. /* FIXME: This is a temporary hack until we can render a native-looking frame for these. */
  212. input, textarea {
  213. border: 1px solid -libweb-palette-threed-shadow1;
  214. min-width: 80px;
  215. min-height: 16px;
  216. width: 120px;
  217. cursor: text;
  218. overflow: hidden;
  219. }
  220. textarea {
  221. padding: 2px;
  222. display: inline-block;
  223. overflow: scroll;
  224. }
  225. input[type=submit], input[type=button], input[type=reset], input[type=checkbox], input[type=radio] {
  226. border: none;
  227. min-width: unset;
  228. min-height: unset;
  229. width: unset;
  230. cursor: unset;
  231. }
  232. button, input[type=submit], input[type=button], input[type=reset] {
  233. padding: 1px 4px;
  234. background-color: -libweb-palette-button;
  235. border: 1px solid -libweb-palette-threed-shadow1;
  236. color: -libweb-palette-button-text;
  237. }
  238. button:hover, input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover {
  239. background-color: -libweb-palette-hover-highlight;
  240. }
  241. option {
  242. display: none;
  243. }
  244. details {
  245. display: block;
  246. padding-left: 1em;
  247. }
  248. summary {
  249. display: block;
  250. font-weight: bold;
  251. }
  252. /* 15.3.1 Hidden elements
  253. * https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements
  254. */
  255. /* FIXME: Add `noframes` once frames are implemented. */
  256. /* FIXME: Add `noembed` once <embed> is implemented. */
  257. /* FIXME: Add `rp` once <ruby> is implemented. */
  258. [hidden], area, base, basefont, datalist, head, link, meta, /*noembed,*/
  259. /*noframes,*/ param, /*rp,*/ script, style, template, title {
  260. display: none;
  261. }
  262. embed[hidden] { display: inline; height: 0; width: 0; }
  263. input[type=hidden i] { display: none !important; }
  264. @media (scripting) {
  265. noscript { display: none !important; }
  266. }
  267. /* 15.3.4 Phrasing content
  268. * https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3
  269. */
  270. abbr[title],
  271. acronym[title] {
  272. text-decoration: dotted underline;
  273. }
  274. mark {
  275. background: yellow;
  276. color: black;
  277. }
  278. /* 15.4.1 Embedded content
  279. * https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules
  280. */
  281. iframe { border: 2px inset; }
  282. /* https://www.w3.org/TR/mediaqueries-5/#descdef-media-inverted-colors
  283. */
  284. @media (inverted-colors) {
  285. img:not(picture>img),
  286. picture,
  287. video {
  288. filter: invert(100%);
  289. }
  290. }
  291. /* This is the same as default intrinsic size of a <progress> element */
  292. progress {
  293. width: 300px;
  294. height: 12px;
  295. }
  296. /* The default progress-value/bar CSS below is the same as Blink/WebKit.
  297. * Note: Setting any more than the backgrond-color may have unintended consequences, as sites don't expect to unset more than that.
  298. */
  299. progress::-webkit-progress-bar {
  300. width: inherit;
  301. height: inherit;
  302. background-color: grey;
  303. }
  304. progress::-webkit-progress-value {
  305. height: inherit;
  306. background-color: green;
  307. }