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