content.less 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. /**
  2. * This file provides the main design styles for the page content.
  3. *
  4. * @author Anika Henke <anika@selfthinker.org>
  5. * @author Andreas Gohr <andi@splitbrain.org>
  6. * @author Clarence Lee <clarencedglee@gmail.com>
  7. */
  8. /*____________ section indenting ____________
  9. .dokuwiki .page h1 {margin-left: 0;}
  10. .dokuwiki .page h2 {margin-left: .666em;}
  11. .dokuwiki .page h3 {margin-left: 1.776em;}
  12. .dokuwiki .page h4 {margin-left: 3em;}
  13. .dokuwiki .page h5 {margin-left: 4.5712em;}
  14. .dokuwiki .page div.level1 {margin-left: 0;}
  15. .dokuwiki .page div.level2 {margin-left: 1em;}
  16. .dokuwiki .page div.level3 {margin-left: 2em;}
  17. .dokuwiki .page div.level4 {margin-left: 3em;}
  18. .dokuwiki .page div.level5 {margin-left: 4em;}
  19. [dir=rtl] .dokuwiki .page h1 {margin-left: 0; margin-right: 0;}
  20. [dir=rtl] .dokuwiki .page h2 {margin-left: 0; margin-right: .666em;}
  21. [dir=rtl] .dokuwiki .page h3 {margin-left: 0; margin-right: 1.776em;}
  22. [dir=rtl] .dokuwiki .page h4 {margin-left: 0; margin-right: 3em;}
  23. [dir=rtl] .dokuwiki .page h5 {margin-left: 0; margin-right: 4.5712em;}
  24. [dir=rtl] .dokuwiki .page div.level1 {margin-left: 0; margin-right: 0;}
  25. [dir=rtl] .dokuwiki .page div.level2 {margin-left: 0; margin-right: 1em;}
  26. [dir=rtl] .dokuwiki .page div.level3 {margin-left: 0; margin-right: 2em;}
  27. [dir=rtl] .dokuwiki .page div.level4 {margin-left: 0; margin-right: 3em;}
  28. [dir=rtl] .dokuwiki .page div.level5 {margin-left: 0; margin-right: 4em;}
  29. */
  30. /* hx margin-left = (1 / font-size) * .levelx-margin */
  31. /*____________ links to wiki pages (addition to _links) ____________*/
  32. /* existing wikipage */
  33. .dokuwiki a.wikilink1 {
  34. color: var(--ini-existing);
  35. background-color: inherit;
  36. }
  37. /* not existing wikipage */
  38. .dokuwiki a.wikilink2 {
  39. color: var(--ini-missing);
  40. background-color: inherit;
  41. }
  42. /*____________ images ____________*/
  43. /* embedded images (styles are already partly set in lib/styles/all.css) */
  44. .dokuwiki img.media {
  45. margin: .2em 0;
  46. }
  47. .dokuwiki img.medialeft {
  48. margin: .2em 1em .2em 0;
  49. }
  50. .dokuwiki img.mediaright {
  51. margin: .2em 0 .2em 1em;
  52. }
  53. .dokuwiki img.mediacenter {
  54. margin: .2em auto;
  55. }
  56. /*____________ lists ____________*/
  57. .dokuwiki .page,
  58. .dokuwiki .aside {
  59. ul li {
  60. color: var(--ini-text-alt);
  61. }
  62. ol li {
  63. color: var(--ini-text-neu);
  64. }
  65. li .li {
  66. color: var(--ini-text);
  67. }
  68. }
  69. /*____________ tables ____________*/
  70. /* div around each table */
  71. .dokuwiki div.table {
  72. overflow-x: auto;
  73. margin-bottom: 1.4em;
  74. min-width: 50%;
  75. }
  76. .dokuwiki div.table table {
  77. margin-bottom: 0;
  78. }
  79. .dokuwiki table.inline {
  80. min-width: 50%;
  81. }
  82. .dokuwiki table.inline tr:hover td {
  83. background-color: var(--ini-background-alt);
  84. }
  85. .dokuwiki table.inline tr:hover th {
  86. background-color: var(--ini-border);
  87. }
  88. /*____________ code ____________*/
  89. /* fix if background-color hides underlining */
  90. .dokuwiki em.u code {
  91. text-decoration: underline;
  92. }
  93. /* filenames for downloadable file and code blocks */
  94. .dokuwiki dl.code,
  95. .dokuwiki dl.file {
  96. dt {
  97. background-color: var(--ini-background-site);
  98. background: linear-gradient(to bottom, var(--ini-background-alt) 0%, var(--ini-background-site) 100%);
  99. color: inherit;
  100. border: 1px solid var(--ini-border);
  101. border-bottom-color: var(--ini-background-site);
  102. border-top-left-radius: .3em;
  103. border-top-right-radius: .3em;
  104. padding: .3em .6em .1em;
  105. margin-bottom: -1px;
  106. float: left;
  107. a {
  108. background-color: transparent;
  109. font-size: 0.875em;
  110. font-weight: normal;
  111. display: block;
  112. min-height: 16px;
  113. }
  114. }
  115. dd {
  116. margin: 0;
  117. clear: left;
  118. }
  119. pre {
  120. box-shadow: inset -4px -4px .5em -.3em var(--ini-border);
  121. }
  122. }
  123. [dir=rtl] .dokuwiki dl.code,
  124. [dir=rtl] .dokuwiki dl.file {
  125. dt {
  126. float: right;
  127. }
  128. dd {
  129. clear: right;
  130. }
  131. }
  132. /* for code in <file> */
  133. .dokuwiki dl.file {
  134. pre,
  135. dt {
  136. border-style: dashed;
  137. }
  138. dt {
  139. border-bottom-style: solid;
  140. }
  141. }
  142. /*____________ JS popup ____________*/
  143. .JSpopup {
  144. background-color: var(--ini-background);
  145. color: var(--ini-text);
  146. border: 1px solid var(--ini-border);
  147. //box-shadow: .1em .1em .1em var(--ini-border);
  148. border-radius: 2px;
  149. padding: .3em .5em;
  150. font-size: .9em;
  151. }
  152. .dokuwiki form.search div.ajax_qsearch {
  153. top: -.35em;
  154. font-size: 1em;
  155. text-overflow: ellipsis;
  156. }
  157. .JSpopup ul,
  158. .JSpopup ol {
  159. padding-left: 0;
  160. }
  161. [dir=rtl] .JSpopup ul,
  162. [dir=rtl] .JSpopup ol {
  163. padding-right: 0;
  164. }
  165. /* changes to underscored CSS files
  166. ********************************************************************/
  167. #acl__tree li {
  168. margin: 0;
  169. }
  170. #dokuwiki__content span.curid a {
  171. font-weight: normal;
  172. }
  173. #dokuwiki__content strong span.curid a {
  174. font-weight: bold;
  175. }
  176. /*____________ changes to _edit ____________*/
  177. .dokuwiki div.toolbar {
  178. button.toolbutton {
  179. border-radius: 0;
  180. border-left-width: 0;
  181. padding: .1em .35em;
  182. background-color: transparent !important;
  183. border: 1px solid var(--ini-border);
  184. border-radius: 5px;
  185. }
  186. button.toolbutton:first-child {
  187. border-top-left-radius: 4px;
  188. border-bottom-left-radius: 4px;
  189. border-left-width: 1px;
  190. }
  191. button.toolbutton:last-child {
  192. border-top-right-radius: 4px;
  193. border-bottom-right-radius: 4px;
  194. }
  195. }
  196. [dir=rtl] .dokuwiki div.toolbar {
  197. button.toolbutton:last-child {
  198. border-top-left-radius: 4px;
  199. border-bottom-left-radius: 4px;
  200. border-top-right-radius: 0;
  201. border-bottom-right-radius: 0;
  202. border-left-width: 1px;
  203. }
  204. button.toolbutton:first-child {
  205. border-top-left-radius: 0;
  206. border-bottom-left-radius: 0;
  207. border-top-right-radius: 4px;
  208. border-bottom-right-radius: 4px;
  209. border-left-width: 0;
  210. border-right-width: 1px;
  211. }
  212. }
  213. .dokuwiki div.section_highlight {
  214. margin: 0 -2em;
  215. padding: 0 1em;
  216. border-width: 0 1em;
  217. }
  218. .dokuwiki textarea.edit {
  219. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
  220. }
  221. .dokuwiki div.preview {
  222. margin: 0 -2em;
  223. padding: 0 2em;
  224. }
  225. .dokuwiki.hasSidebar div.preview {
  226. border-right: var(--ini-sidebar-width) solid var(--ini-background-alt);
  227. }
  228. [dir=rtl] .dokuwiki.hasSidebar div.preview {
  229. border-right-width: 0;
  230. border-left: var(--ini-sidebar-width) solid var(--ini-background-alt);
  231. }
  232. .dokuwiki div.preview div.pad {
  233. padding: 1.556em 0 2em;
  234. }
  235. /*____________ changes to _toc ____________*/
  236. #dw__toc {
  237. margin: -1.556em -2em .5em 1.4em;
  238. width: var(--ini-sidebar-width);
  239. border-left: 1px solid var(--ini-border);
  240. background: var(--ini-background);
  241. color: inherit;
  242. }
  243. [dir=rtl] #dw__toc {
  244. margin: -1.556em 1.4em .5em -2em;
  245. border-left-width: 0;
  246. border-right: 1px solid var(--ini-border);
  247. }
  248. .dokuwiki.export #dw__toc {
  249. margin-top: 0;
  250. margin-right: 0;
  251. }
  252. [dir=rtl] .dokuwiki.export #dw__toc {
  253. margin-top: 0;
  254. margin-left: 0;
  255. }
  256. .dokuwiki h3.toggle {
  257. padding: .5em 1em;
  258. margin-bottom: 0;
  259. font-size: .875em;
  260. letter-spacing: .1em;
  261. }
  262. #dokuwiki__aside h3.toggle {
  263. display: none;
  264. }
  265. .dokuwiki .toggle strong {
  266. background: transparent url(images/toc-arrows.png) 0 0;
  267. width: 8px;
  268. height: 5px;
  269. margin: .4em 0 0;
  270. }
  271. .dokuwiki .toggle.closed strong {
  272. background-position: 0 -5px;
  273. }
  274. .dokuwiki .toggle strong span {
  275. display: none;
  276. }
  277. #dw__toc {
  278. > div {
  279. font-size: 0.875em;
  280. padding: .5em 1em 1em;
  281. }
  282. ul {
  283. padding: 0 0 0 1.2em;
  284. li {
  285. list-style-image: url(images/toc-bullet.png);
  286. }
  287. }
  288. ul li.clear {
  289. list-style: none;
  290. }
  291. ul li div.li {
  292. padding: .2em 0;
  293. }
  294. }
  295. [dir=rtl] #dw__toc ul {
  296. padding: 0 1.5em 0 0;
  297. }
  298. /*____________ changes to _imgdetail ____________*/
  299. #dokuwiki__detail {
  300. padding: 0;
  301. img {
  302. float: none;
  303. margin-bottom: 1.4em;
  304. }
  305. div.img_detail {
  306. float: none;
  307. }
  308. div.img_detail dl {
  309. overflow: hidden;
  310. }
  311. div.img_detail dl dt {
  312. float: left;
  313. width: 9em;
  314. text-align: right;
  315. clear: left;
  316. }
  317. div.img_detail dl dd {
  318. margin-left: 9.5em;
  319. }
  320. }
  321. [dir=rtl] #dokuwiki__detail div.img_detail {
  322. dl dt {
  323. float: right;
  324. text-align: left;
  325. clear: right;
  326. }
  327. dl dd {
  328. margin-left: 0;
  329. margin-right: 9.5em;
  330. }
  331. }