Default.css 4.2 KB

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