basic.less 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. /**
  2. * This file provides the most basic styles.
  3. *
  4. * If you integrate DokuWiki into another project, you might either
  5. * want to integrate this file into the other project as well, or use
  6. * the other project's basic CSS for DokuWiki instead of this one.
  7. *
  8. * @author Anika Henke <anika@selfthinker.org>
  9. */
  10. html {
  11. overflow-x: auto;
  12. overflow-y: scroll;
  13. }
  14. html,
  15. body {
  16. color: @ini_text;
  17. background: @ini_background_site url(images/page-gradient.png) top left repeat-x;
  18. margin: 0;
  19. padding: 0;
  20. }
  21. body {
  22. font: normal 87.5%/1.4 Arial, sans-serif;
  23. /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */
  24. -webkit-text-size-adjust: 100%;
  25. }
  26. /*____________ headers ____________*/
  27. caption,
  28. figcaption,
  29. summary,
  30. legend {
  31. padding: 0;
  32. margin: 0 0 .35em;
  33. line-height: 1.2;
  34. }
  35. h1,
  36. h2,
  37. h3,
  38. h4,
  39. h5,
  40. h6 {
  41. font-weight: bold;
  42. padding: 0;
  43. line-height: 1.2;
  44. clear: left; /* ideally 'both', but problems with toc */
  45. }
  46. [dir=rtl] h1,
  47. [dir=rtl] h2,
  48. [dir=rtl] h3,
  49. [dir=rtl] h4,
  50. [dir=rtl] h5,
  51. [dir=rtl] h6 {
  52. clear: right;
  53. }
  54. h1 {
  55. font-size: 2em;
  56. margin: 0 0 0.444em;
  57. }
  58. h2 {
  59. font-size: 1.5em;
  60. margin: 0 0 0.666em;
  61. }
  62. h3 {
  63. font-size: 1.125em;
  64. margin: 0 0 0.888em;
  65. }
  66. h4 {
  67. font-size: 1em;
  68. margin: 0 0 1.0em;
  69. }
  70. h5 {
  71. font-size: .875em;
  72. margin: 0 0 1.1428em;
  73. }
  74. h6 {
  75. font-size: .75em;
  76. margin: 0 0 1.333em;
  77. }
  78. /* bottom margin = 1 / font-size */
  79. /*____________ basic margins and paddings ____________*/
  80. p,
  81. ul,
  82. ol,
  83. dl,
  84. pre,
  85. table,
  86. hr,
  87. blockquote,
  88. figure,
  89. details,
  90. fieldset,
  91. address {
  92. margin: 0 0 1.4em 0; /* bottom margin = line-height */
  93. padding: 0;
  94. }
  95. div,
  96. video,
  97. audio {
  98. margin: 0;
  99. padding: 0;
  100. }
  101. /*____________ lists ____________*/
  102. ul,
  103. ol {
  104. padding: 0 0 0 1.5em;
  105. }
  106. [dir=rtl] ul,
  107. [dir=rtl] ol {
  108. padding: 0 1.5em 0 0;
  109. }
  110. li,
  111. dd {
  112. padding: 0;
  113. margin: 0 0 0 1.5em;
  114. }
  115. [dir=rtl] li,
  116. [dir=rtl] dd {
  117. margin: 0 1.5em 0 0;
  118. }
  119. dt {
  120. font-weight: bold;
  121. margin: 0;
  122. padding: 0;
  123. }
  124. li ul,
  125. li ol,
  126. li dl,
  127. dl ul,
  128. dl ol,
  129. dl dl {
  130. margin-bottom: 0;
  131. padding: 0;
  132. }
  133. li li {
  134. font-size: 100%;
  135. }
  136. ul { list-style: square outside; }
  137. ol { list-style: decimal outside; }
  138. ol ol { list-style-type: lower-alpha; }
  139. ol ol ol { list-style-type: upper-roman; }
  140. ol ol ol ol { list-style-type: upper-alpha; }
  141. ol ol ol ol ol { list-style-type: lower-roman; }
  142. /*____________ tables ____________*/
  143. table {
  144. border-collapse: collapse;
  145. empty-cells: show;
  146. border-spacing: 0;
  147. border: 1px solid @ini_border;
  148. }
  149. caption {
  150. caption-side: top;
  151. text-align: left;
  152. }
  153. [dir=rtl] caption {
  154. text-align: right;
  155. }
  156. th,
  157. td {
  158. padding: .3em .5em;
  159. margin: 0;
  160. vertical-align: top;
  161. border: 1px solid @ini_border;
  162. }
  163. th {
  164. font-weight: bold;
  165. background-color: @ini_background_alt;
  166. text-align: left;
  167. }
  168. [dir=rtl] th {
  169. text-align: right;
  170. }
  171. /*____________ links ____________*/
  172. a {
  173. outline: none;
  174. }
  175. a:link,
  176. a:visited {
  177. text-decoration: none;
  178. color: @ini_link;
  179. }
  180. a:link:hover,
  181. a:visited:hover,
  182. a:link:focus,
  183. a:visited:focus,
  184. a:link:active,
  185. a:visited:active {
  186. text-decoration: underline;
  187. }
  188. /*____________ misc ____________*/
  189. img {
  190. border-width: 0;
  191. vertical-align: middle;
  192. color: #666;
  193. background-color: transparent;
  194. font-style: italic;
  195. object-fit: cover;
  196. }
  197. video {
  198. height: auto;
  199. }
  200. img,
  201. object,
  202. embed,
  203. iframe,
  204. video,
  205. audio {
  206. max-width: 100%;
  207. }
  208. button img {
  209. max-width: none;
  210. }
  211. table img {
  212. max-width: 50vw;
  213. }
  214. hr {
  215. border-top: solid @ini_border;
  216. border-bottom: solid @ini_background;
  217. border-width: 1px 0;
  218. height: 0;
  219. text-align: center;
  220. clear: both;
  221. }
  222. acronym,
  223. abbr {
  224. cursor: help;
  225. border-bottom: 1px dotted;
  226. text-decoration: none;
  227. font-style: normal;
  228. }
  229. em acronym,
  230. em abbr {
  231. font-style: italic;
  232. }
  233. mark {
  234. background-color: @ini_highlight;
  235. color: inherit;
  236. }
  237. pre,
  238. code,
  239. samp,
  240. kbd {
  241. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
  242. /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
  243. font-size: 1em;
  244. direction: ltr;
  245. text-align: left;
  246. background-color: @ini_background_site;
  247. color: @ini_text;
  248. box-shadow: inset 0 0 .3em @ini_border;
  249. border-radius: 2px;
  250. }
  251. pre {
  252. overflow: auto;
  253. word-wrap: normal;
  254. border: 1px solid @ini_border;
  255. border-radius: 2px;
  256. box-shadow: inset 0 0 .5em @ini_border;
  257. padding: .7em 1em;
  258. }
  259. blockquote {
  260. padding: 0 .5em;
  261. border: solid @ini_border;
  262. border-width: 0 0 0 .25em;
  263. }
  264. [dir=rtl] blockquote {
  265. border-width: 0 .25em 0 0;
  266. }
  267. q:before,
  268. q:after {
  269. content: '';
  270. }
  271. sub,
  272. sup {
  273. font-size: .8em;
  274. line-height: 1;
  275. }
  276. sub {
  277. vertical-align: sub;
  278. }
  279. sup {
  280. vertical-align: super;
  281. }
  282. small {
  283. font-size: .8em;
  284. }
  285. wbr {
  286. display: inline-block; /* for IE 11 */
  287. }
  288. /*____________ forms ____________*/
  289. /* for all of the form styles, style.ini colours are not used on purpose (except for fieldset border) */
  290. form {
  291. display: inline;
  292. margin: 0;
  293. padding: 0;
  294. }
  295. fieldset {
  296. padding: .7em 1em 0;
  297. padding: .7rem 1rem; /* for those browsers understanding :last-child */
  298. border: 1px solid @ini_text_alt;
  299. }
  300. fieldset > :last-child {
  301. margin-bottom: 0;
  302. }
  303. legend {
  304. margin: 0;
  305. padding: 0 .1em;
  306. }
  307. label {
  308. vertical-align: middle;
  309. cursor: pointer;
  310. }
  311. input,
  312. textarea,
  313. button,
  314. select,
  315. optgroup,
  316. option,
  317. keygen,
  318. output,
  319. meter,
  320. progress {
  321. font: inherit;
  322. font-weight: normal;
  323. color: #333;
  324. background-color: #fff;
  325. line-height: normal;
  326. margin: 0;
  327. vertical-align: middle;
  328. box-sizing: border-box;
  329. }
  330. select {
  331. max-width: 100%;
  332. }
  333. optgroup {
  334. font-style: italic;
  335. font-weight: bold;
  336. }
  337. option {
  338. font-style: normal;
  339. font-weight: normal;
  340. }
  341. option:checked {
  342. background-color: #ccc;
  343. }
  344. input,
  345. textarea,
  346. select,
  347. keygen {
  348. border: 1px solid #ccc;
  349. box-shadow: inset 0 0 1px #eee;
  350. border-radius: 2px;
  351. }
  352. input:active,
  353. input:focus,
  354. textarea:active,
  355. textarea:focus,
  356. select:active,
  357. select:focus,
  358. keygen:active,
  359. keygen:focus {
  360. border-color: #999;
  361. }
  362. input[type=radio],
  363. input[type=checkbox],
  364. input[type=image] {
  365. padding: 0;
  366. border-style: none;
  367. box-shadow: none;
  368. }
  369. /* all types of buttons */
  370. input[type=submit],
  371. input[type=button],
  372. input[type=reset],
  373. input.button,
  374. a.button,
  375. button,
  376. .qq-upload-button {
  377. color: #333;
  378. background-color: #eee;
  379. background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc4MjQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VFRUVFRSIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0NDQ0NDQyIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnODI0KSIgLz4KPC9zdmc+);
  380. background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #eeeeee 99%, #cccccc 99%);
  381. border: 1px solid #ccc;
  382. border-radius: 2px;
  383. padding: .1em .5em;
  384. cursor: pointer;
  385. }
  386. input[type=submit]:hover,
  387. input[type=submit]:active,
  388. input[type=submit]:focus,
  389. input[type=button]:hover,
  390. input[type=button]:active,
  391. input[type=button]:hover,
  392. input[type=reset]:hover,
  393. input[type=reset]:active,
  394. input[type=reset]:hover,
  395. input.button:hover,
  396. input.button:active,
  397. input.button:focus,
  398. a.button:hover,
  399. a.button:active,
  400. a.button:focus,
  401. button:hover,
  402. button:active,
  403. button:focus,
  404. .qq-upload-button:hover {
  405. border-color: #999;
  406. background-color: #ddd;
  407. background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc2NzAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0RERERERCIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0JCQkJCQiIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnNjcwKSIgLz4KPC9zdmc+);
  408. background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #dddddd 99%, #bbbbbb 99%);
  409. }
  410. input::-moz-focus-inner,
  411. button::-moz-focus-inner {
  412. border: 0;
  413. padding: 0;
  414. }
  415. input[disabled],
  416. button[disabled],
  417. select[disabled],
  418. textarea[disabled],
  419. option[disabled],
  420. input[readonly],
  421. button[readonly],
  422. select[readonly],
  423. textarea[readonly] {
  424. cursor: auto;
  425. opacity: .5;
  426. background-color: #eee;
  427. }