Default.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. /* FIXME: Implement these using :is() :^) */
  184. /* :is(ul, ol) ul */
  185. ul ul,
  186. ol ul {
  187. list-style-type: circle;
  188. }
  189. /* :is(ul, ol) :is(ul, ol) ul */
  190. ul ul ul,
  191. ol ul ul,
  192. ul ol ul,
  193. ol ol ul {
  194. list-style-type: square;
  195. }
  196. /* FIXME: This is a temporary hack until we can render a native-looking frame for these. */
  197. input {
  198. border: 1px solid black;
  199. min-width: 80px;
  200. min-height: 16px;
  201. width: 120px;
  202. cursor: text;
  203. overflow: hidden;
  204. }
  205. input[type=submit], input[type=button], input[type=reset], input[type=checkbox], input[type=radio] {
  206. border: none;
  207. min-width: unset;
  208. min-height: unset;
  209. width: unset;
  210. cursor: unset;
  211. }
  212. button, input[type=submit], input[type=button], input[type=reset] {
  213. padding: 4px 8px;
  214. background-color: -libweb-palette-button;
  215. border: 1px solid -libweb-palette-threed-shadow1;
  216. }
  217. button:hover, input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover {
  218. background-color: -libweb-palette-hover-highlight;
  219. }
  220. option {
  221. display: none;
  222. }
  223. details {
  224. display: block;
  225. padding-left: 1em;
  226. }
  227. summary {
  228. display: block;
  229. font-weight: bold;
  230. }
  231. /* 15.3.1 Hidden elements
  232. * https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements
  233. */
  234. /* FIXME: Add `noframes` once frames are implemented. */
  235. /* FIXME: Add `noembed` once <embed> is implemented. */
  236. /* FIXME: Add `rp` once <ruby> is implemented. */
  237. [hidden], area, base, basefont, datalist, head, link, meta, /*noembed,*/
  238. /*noframes,*/ param, /*rp,*/ script, style, template, title {
  239. display: none;
  240. }
  241. embed[hidden] { display: inline; height: 0; width: 0; }
  242. input[type=hidden i] { display: none !important; }
  243. @media (scripting) {
  244. noscript { display: none !important; }
  245. }
  246. /* 15.3.4 Phrasing content
  247. * https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3
  248. */
  249. abbr[title],
  250. acronym[title] {
  251. text-decoration: dotted underline;
  252. }
  253. mark {
  254. background: yellow;
  255. color: black;
  256. }
  257. /* 15.4.1 Embedded content
  258. * https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules
  259. */
  260. iframe { border: 2px inset; }