content.less 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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: @ini_existing;
  35. background-color: inherit;
  36. }
  37. /* not existing wikipage */
  38. .dokuwiki a.wikilink2 {
  39. color: @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: @ini_text_alt;
  61. }
  62. ol li {
  63. color: @ini_text_neu;
  64. }
  65. li .li {
  66. color: @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: @ini_background_alt;
  84. }
  85. .dokuwiki table.inline tr:hover th {
  86. background-color: @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: @ini_background_site;
  98. background: linear-gradient(to bottom, @ini_background_alt 0%, @ini_background_site 100%);
  99. color: inherit;
  100. border: 1px solid @ini_border;
  101. border-bottom-color: @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 @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: @ini_background;
  145. color: @ini_text;
  146. border: 1px solid @ini_border;
  147. //box-shadow: .1em .1em .1em @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. background-color: transparent !important;
  180. border: 1px solid #11344C;
  181. border-radius: 5px;
  182. padding: .1em .35em;
  183. }
  184. button.toolbutton:first-child {
  185. border-top-left-radius: 4px;
  186. border-bottom-left-radius: 4px;
  187. border-left-width: 1px;
  188. background-color: transparent !important;
  189. border: 1px solid #11344C;
  190. border-radius: 5px;
  191. }
  192. button.toolbutton:last-child {
  193. border-top-right-radius: 4px;
  194. border-bottom-right-radius: 4px;
  195. background-color: transparent !important;
  196. border: 1px solid #11344C;
  197. border-radius: 5px;
  198. }
  199. }
  200. [dir=rtl] .dokuwiki div.toolbar {
  201. button.toolbutton:last-child {
  202. border-top-left-radius: 4px;
  203. border-bottom-left-radius: 4px;
  204. border-top-right-radius: 0;
  205. border-bottom-right-radius: 0;
  206. border-left-width: 1px;
  207. background-color: transparent !important;
  208. border: 1px solid #11344C;
  209. border-radius: 5px;
  210. }
  211. button.toolbutton:first-child {
  212. border-top-left-radius: 0;
  213. border-bottom-left-radius: 0;
  214. border-top-right-radius: 4px;
  215. border-bottom-right-radius: 4px;
  216. border-left-width: 0;
  217. border-right-width: 1px;
  218. background-color: transparent !important;
  219. border: 1px solid #11344C;
  220. border-radius: 5px;
  221. }
  222. }
  223. .dokuwiki div.section_highlight {
  224. margin: 0 -2em;
  225. padding: 0 1em;
  226. border-width: 0 1em;
  227. }
  228. .dokuwiki textarea.edit {
  229. font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
  230. }
  231. .dokuwiki div.preview {
  232. margin: 0 -2em;
  233. padding: 0 2em;
  234. }
  235. .dokuwiki.hasSidebar div.preview {
  236. border-right: @ini_sidebar_width solid @ini_background_alt;
  237. }
  238. [dir=rtl] .dokuwiki.hasSidebar div.preview {
  239. border-right-width: 0;
  240. border-left: @ini_sidebar_width solid @ini_background_alt;
  241. }
  242. .dokuwiki div.preview div.pad {
  243. padding: 1.556em 0 2em;
  244. }
  245. /*____________ changes to _toc ____________*/
  246. #dw__toc {
  247. margin: -1.556em -2em .5em 1.4em;
  248. width: @ini_sidebar_width;
  249. border-left: 1px solid @ini_border;
  250. background: @ini_background;
  251. color: inherit;
  252. }
  253. [dir=rtl] #dw__toc {
  254. margin: -1.556em 1.4em .5em -2em;
  255. border-left-width: 0;
  256. border-right: 1px solid @ini_border;
  257. }
  258. .dokuwiki.export #dw__toc {
  259. margin-top: 0;
  260. margin-right: 0;
  261. }
  262. [dir=rtl] .dokuwiki.export #dw__toc {
  263. margin-top: 0;
  264. margin-left: 0;
  265. }
  266. .dokuwiki h3.toggle {
  267. padding: .5em 1em;
  268. margin-bottom: 0;
  269. font-size: .875em;
  270. letter-spacing: .1em;
  271. }
  272. #dokuwiki__aside h3.toggle {
  273. display: none;
  274. }
  275. .dokuwiki .toggle strong {
  276. background: transparent url(images/toc-arrows.png) 0 0;
  277. width: 8px;
  278. height: 5px;
  279. margin: .4em 0 0;
  280. }
  281. .dokuwiki .toggle.closed strong {
  282. background-position: 0 -5px;
  283. }
  284. .dokuwiki .toggle strong span {
  285. display: none;
  286. }
  287. #dw__toc {
  288. > div {
  289. font-size: 0.875em;
  290. padding: .5em 1em 1em;
  291. }
  292. ul {
  293. padding: 0 0 0 1.2em;
  294. li {
  295. list-style-image: url(images/toc-bullet.png);
  296. }
  297. }
  298. ul li.clear {
  299. list-style: none;
  300. }
  301. ul li div.li {
  302. padding: .2em 0;
  303. }
  304. }
  305. [dir=rtl] #dw__toc ul {
  306. padding: 0 1.5em 0 0;
  307. }
  308. /*____________ changes to _imgdetail ____________*/
  309. #dokuwiki__detail {
  310. padding: 0;
  311. img {
  312. float: none;
  313. margin-bottom: 1.4em;
  314. }
  315. div.img_detail {
  316. float: none;
  317. }
  318. div.img_detail dl {
  319. overflow: hidden;
  320. }
  321. div.img_detail dl dt {
  322. float: left;
  323. width: 9em;
  324. text-align: right;
  325. clear: left;
  326. }
  327. div.img_detail dl dd {
  328. margin-left: 9.5em;
  329. }
  330. }
  331. [dir=rtl] #dokuwiki__detail div.img_detail {
  332. dl dt {
  333. float: right;
  334. text-align: left;
  335. clear: right;
  336. }
  337. dl dd {
  338. margin-left: 0;
  339. margin-right: 9.5em;
  340. }
  341. }