You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

584 lines
8.9 KiB

  1. /**
  2. * This file provides the main design styles
  3. * across all template elements (typo, colors etc.)
  4. */
  5. html, body {
  6. background-color: @ini_background_site;
  7. }
  8. /* highlight selected tool */
  9. .mode_admin a.action.admin,
  10. .mode_login a.action.login,
  11. .mode_register a.action.register,
  12. .mode_profile a.action.profile,
  13. .mode_recent a.action.recent,
  14. .mode_index a.action.index,
  15. .mode_media a.action.media,
  16. .mode_revisions a.action.revs,
  17. .mode_backlink a.action.backlink,
  18. .mode_subscribe a.action.subscribe {
  19. font-weight: bold;
  20. }
  21. .dokuwiki {
  22. .page ol li,
  23. .page ul li,
  24. .aside ul li {
  25. color: @ini_text;
  26. }
  27. .pageId {
  28. float: right;
  29. margin-right: -1em;
  30. margin-bottom: -1px;
  31. margin-top: -1.5em;
  32. overflow: hidden;
  33. padding: 0.5em 1em 0;
  34. span {
  35. font-size: @font-size-small;
  36. border: solid @ini_background_alt;
  37. border-width: 1px 1px 0;
  38. background-color: @ini_background_site;
  39. color: @ini_text_alt;
  40. padding: .1em .35em;
  41. border-top-left-radius: 2px;
  42. border-top-right-radius: 2px;
  43. box-shadow: 0 0 .5em @ini_text_alt;
  44. display: block;
  45. }
  46. }
  47. div.page {
  48. clear: both;
  49. overflow: hidden;
  50. word-wrap: break-word;
  51. background: @ini_background;
  52. color: inherit;
  53. padding: @page_padding-top @margin-default @margin-default;
  54. @media @screen_max-md {
  55. padding-right: (@margin-default * 1.6);
  56. }
  57. @media @screen_max-xs {
  58. padding-left: @margin-small;
  59. }
  60. @media @screen_max-xxs {
  61. padding-right: @margin-small;
  62. }
  63. }
  64. .content #dokuwiki__pagetools {
  65. @media @screen_max-md {
  66. top: 4rem;
  67. }
  68. }
  69. .docInfo {
  70. font-size: @font-size-small;
  71. text-align: right;
  72. }
  73. /* license note under edit window */
  74. div.license {
  75. font-size: @font-size-small;
  76. line-height: @line-height-default;
  77. padding-top: 1rem;
  78. @media @screen_max-lg {
  79. font-size: @font-size-default;
  80. }
  81. @media @screen_max-md {
  82. font-size: @font-size-small;
  83. }
  84. * {
  85. font-size: inherit;
  86. }
  87. }
  88. [dir=rtl] & .docInfo {
  89. text-align: left;
  90. }
  91. [dir=rtl] & .pageId {
  92. float: left;
  93. margin-left: -1em;
  94. margin-right: 0;
  95. }
  96. }
  97. caption,
  98. figcaption,
  99. summary,
  100. legend {
  101. padding: 0;
  102. margin: 0 0 .35em;
  103. line-height: 1.2;
  104. }
  105. h1,
  106. h2,
  107. h3,
  108. h4,
  109. h5,
  110. h6 {
  111. font-weight: bold;
  112. padding: 0;
  113. line-height: 1.2;
  114. clear: both;
  115. }
  116. [dir=rtl] h1,
  117. [dir=rtl] h2,
  118. [dir=rtl] h3,
  119. [dir=rtl] h4,
  120. [dir=rtl] h5,
  121. [dir=rtl] h6 {
  122. clear: right;
  123. }
  124. h1 {
  125. font-size: @font-size-head1;
  126. margin: 0 0 @font-size-head1;
  127. padding-top: 1em;
  128. }
  129. h2 {
  130. font-size: @font-size-head2;
  131. margin: 0 0 @font-size-head2;
  132. padding-top: (@font-size-head2 / 2);
  133. }
  134. h3 {
  135. font-size: @font-size-head3;
  136. margin: 0 0 @font-size-head3;
  137. padding-top: (@font-size-head3 / 2);
  138. }
  139. h4 {
  140. font-size: @font-size-head4;
  141. margin: 0 0 @font-size-head4;
  142. padding-top: (@font-size-head4 / 2);
  143. }
  144. h5 {
  145. font-size: @font-size-head5;
  146. margin: 0 0 @font-size-head5;
  147. padding-top: (@font-size-head5 / 2);
  148. }
  149. h6 {
  150. font-size: @font-size-head6;
  151. font-weight: @font-weight-bold;
  152. margin: 0 0 @font-size-head6;
  153. padding-top: (@font-size-head6 / 2);
  154. }
  155. p {
  156. font-size: @font-size-default;
  157. line-height: @line-height-big;
  158. a,
  159. span,
  160. strong {
  161. font-size: inherit;
  162. }
  163. }
  164. label,
  165. legend,
  166. button {
  167. font-size: @font-size-default;
  168. a,
  169. span,
  170. strong {
  171. font-size: inherit;
  172. }
  173. }
  174. hr,
  175. figure,
  176. details,
  177. address {
  178. font-size: @font-size-default;
  179. line-height: 140%;
  180. }
  181. p,
  182. ul,
  183. ol,
  184. dl,
  185. pre,
  186. table,
  187. hr,
  188. blockquote,
  189. figure,
  190. details,
  191. fieldset,
  192. address {
  193. margin: 0 0 1.4em; /* bottom margin = line-height */
  194. padding: 0;
  195. }
  196. div,
  197. video,
  198. audio {
  199. margin: 0;
  200. padding: 0;
  201. }
  202. small,
  203. .code {
  204. font-size: @font-size-small;
  205. }
  206. .code {
  207. margin-top: @grid;
  208. // SPR-926: darker colors for accessibility
  209. .es6 {
  210. color: #00832B;
  211. }
  212. .kw5 {
  213. color: #005D00;
  214. }
  215. .kw6 {
  216. color: #DC0075;
  217. }
  218. .nu0 {
  219. color: #A74DA7;
  220. }
  221. .re3 {
  222. color: #DE1B1B;
  223. }
  224. .re4 {
  225. color: #007F6F;
  226. }
  227. .br0, .sy0 {
  228. color: #248124;
  229. }
  230. .co1, .coMULTI, .sc-1 {
  231. color: #707070;
  232. }
  233. .co2, .sy1 {
  234. color: #108400;
  235. }
  236. .co3, .sy4 {
  237. color: #008070;
  238. }
  239. .kw1, .kw8 {
  240. color: #747400;
  241. }
  242. .re1, .st0, .st_h {
  243. color: #DD0000;
  244. }
  245. }
  246. /* + + + lists + + + */
  247. ul,
  248. ol {
  249. font-size: @font-size-default;
  250. line-height: 140%;
  251. padding: 0 0 0 1.5em;
  252. }
  253. [dir=rtl] ul,
  254. [dir=rtl] ol {
  255. padding: 0 1.5em 0 0;
  256. }
  257. li,
  258. dd {
  259. padding: 0;
  260. margin: 0 0 0 1.5em;
  261. }
  262. [dir=rtl] li,
  263. [dir=rtl] dd {
  264. margin: 0 1.5em 0 0;
  265. }
  266. dl {
  267. font-size: @font-size-default;
  268. line-height: 140%;
  269. }
  270. dt,
  271. dd {
  272. line-height: inherit;
  273. }
  274. dt {
  275. font-weight: bold;
  276. margin: 0;
  277. padding: 0;
  278. }
  279. li ul,
  280. li ol,
  281. li dl,
  282. dl ul,
  283. dl ol,
  284. dl dl {
  285. margin-bottom: 0;
  286. padding: 0;
  287. }
  288. li li {
  289. font-size: 100%;
  290. }
  291. ul {
  292. list-style: square outside;
  293. }
  294. ol {
  295. list-style: decimal outside;
  296. }
  297. ol ol {
  298. list-style-type: lower-alpha;
  299. }
  300. ol ol ol {
  301. list-style-type: upper-roman;
  302. }
  303. ol ol ol ol {
  304. list-style-type: upper-alpha;
  305. }
  306. ol ol ol ol ol {
  307. list-style-type: lower-roman;
  308. }
  309. /* + + + tables + + + */
  310. .dokuwiki {
  311. table.inline tr:hover {
  312. th {
  313. background-color: fade(@ini_background_alt, 50%);
  314. }
  315. td {
  316. background-color: fade(@ini_background_alt, 80%);
  317. color: @ini_text_alt;
  318. *:not(button,a) {
  319. color: @ini_text_alt;
  320. }
  321. }
  322. }
  323. }
  324. table {
  325. border-collapse: collapse;
  326. empty-cells: show;
  327. border-spacing: 0;
  328. border: 1px solid @ini_border;
  329. font-size: @font-size-default;
  330. line-height: 140%;
  331. }
  332. caption {
  333. caption-side: top;
  334. text-align: left;
  335. }
  336. [dir=rtl] caption {
  337. text-align: right;
  338. }
  339. th,
  340. td {
  341. padding: .3em .5em;
  342. margin: 0;
  343. vertical-align: top;
  344. border: 1px solid @ini_border;
  345. }
  346. th {
  347. font-weight: bold;
  348. background-color: @ini_background_alt;
  349. color: @ini_text_alt;
  350. text-align: left;
  351. a {
  352. color: @ini_link_alt;
  353. }
  354. }
  355. [dir=rtl] th {
  356. text-align: right;
  357. }
  358. a {
  359. outline: none;
  360. &:link,
  361. &:visited {
  362. text-decoration: none;
  363. color: @ini_link; // links to non wikipages (external links)
  364. }
  365. &:hover,
  366. &:focus,
  367. &:active {
  368. text-decoration: underline;
  369. }
  370. }
  371. img {
  372. display: inline-block;
  373. border-width: 0;
  374. vertical-align: middle;
  375. color: #666;
  376. background-color: transparent;
  377. font-style: italic;
  378. height: auto;
  379. }
  380. img,
  381. object,
  382. embed,
  383. iframe,
  384. video,
  385. audio {
  386. max-width: 100%;
  387. }
  388. button img {
  389. max-width: none;
  390. }
  391. hr {
  392. border-top: solid @ini_border;
  393. border-bottom: solid @ini_background_site;
  394. border-width: 1px 0;
  395. height: 0;
  396. text-align: center;
  397. clear: both;
  398. }
  399. acronym,
  400. abbr {
  401. cursor: help;
  402. border-bottom: 1px dotted;
  403. font-style: normal;
  404. }
  405. em acronym,
  406. em abbr {
  407. font-style: italic;
  408. }
  409. mark {
  410. background-color: @ini_highlight;
  411. color: @ini_highlight_text;
  412. }
  413. pre,
  414. code,
  415. samp,
  416. kbd {
  417. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
  418. /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
  419. font-size: @font-size-default;
  420. direction: ltr;
  421. text-align: left;
  422. background-color: @code-background;
  423. color: @noopentasks-color;
  424. box-shadow: inset 0 0 .3em @noopentasks-border;
  425. border-radius: @fix_border-radius;
  426. padding-left: @small-spacing;
  427. padding-right: @small-spacing;
  428. * {
  429. font-family: inherit;
  430. font-size: inherit;
  431. }
  432. span {
  433. color: inherit;
  434. }
  435. a {
  436. &:link,
  437. &:visited {
  438. color: inherit;
  439. text-decoration: underline;
  440. }
  441. &:hover,
  442. &:focus,
  443. &:active {
  444. text-decoration: none;
  445. }
  446. }
  447. }
  448. pre {
  449. overflow: auto;
  450. word-wrap: normal;
  451. border: 1px solid @noopentasks-border;
  452. font-size: @font-size-default;
  453. line-height: 140%;
  454. padding: .7em 1em;
  455. }
  456. code:not([class]) {
  457. display: inline-block;
  458. }
  459. blockquote {
  460. border: solid @ini_border;
  461. border-width: 0 0 0 .25em;
  462. font-size: @font-size-default;
  463. line-height: 140%;
  464. padding: 0 .5em;
  465. }
  466. [dir=rtl] blockquote {
  467. border-width: 0 .25em 0 0;
  468. }
  469. q:before,
  470. q:after {
  471. content: '';
  472. }
  473. sub,
  474. sup {
  475. font-size: .8em;
  476. line-height: 1;
  477. }
  478. sub {
  479. vertical-align: sub;
  480. }
  481. sup {
  482. vertical-align: super;
  483. }
  484. small {
  485. font-size: .9em;
  486. }