basic.less 7.4 KB

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