design.less 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. /**
  2. * This file provides the main design styles for the
  3. * bits that surround the content.
  4. *
  5. * @author Anika Henke <anika@selfthinker.org>
  6. * @author Andreas Gohr <andi@splitbrain.org>
  7. * @author Clarence Lee <clarencedglee@gmail.com>
  8. */
  9. .dokuwiki.export {
  10. background-color: @ini_background;
  11. }
  12. /* header
  13. ********************************************************************/
  14. #dokuwiki__header {
  15. padding: 2em 0 1.5em;
  16. .headings,
  17. .tools {
  18. margin-bottom: 1.5em;
  19. width: 49%;
  20. }
  21. .tools {
  22. margin-top: .2em;
  23. }
  24. .logo {
  25. margin: 0;
  26. font-size: 1.5em;
  27. font-weight: normal;
  28. line-height: 1.2;
  29. img {
  30. float: left;
  31. margin-right: .5em;
  32. }
  33. span {
  34. display: block;
  35. padding-top: 10px;
  36. }
  37. a {
  38. text-decoration: none;
  39. color: @ini_text;
  40. background-color: inherit;
  41. }
  42. }
  43. p.claim {
  44. margin-bottom: 0;
  45. font-size: 0.875em;
  46. }
  47. /* make all links in header (including breadcrumb and interwiki) same colour as the rest */
  48. a {
  49. color: @ini_link;
  50. background-color: inherit;
  51. }
  52. }
  53. [dir=rtl] #dokuwiki__header .logo img {
  54. float: right;
  55. margin-left: .5em;
  56. margin-right: 0;
  57. }
  58. /* tools
  59. ********************************************************************/
  60. /* highlight selected tool */
  61. .mode_admin .action.admin a,
  62. .mode_login .action.login a,
  63. .mode_register .action.register a,
  64. .mode_profile .action.profile a,
  65. .mode_recent .action.recent a,
  66. .mode_index .action.index a,
  67. .mode_media .action.media a,
  68. .mode_revisions .action.revs a,
  69. .mode_backlink .action.backlink a,
  70. .mode_subscribe .action.subscribe a {
  71. font-weight: bold;
  72. }
  73. #dokuwiki__header .tools {
  74. ul {
  75. padding-left: 0;
  76. margin-bottom: 0;
  77. }
  78. li {
  79. font-size: 0.875em;
  80. margin-left: 1em;
  81. list-style: none;
  82. display: inline;
  83. }
  84. form.search div.ajax_qsearch li {
  85. font-size: 1em;
  86. margin-left: 0;
  87. display: block;
  88. overflow: hidden;
  89. text-overflow: ellipsis;
  90. }
  91. }
  92. [dir=rtl] #dokuwiki__header .tools li {
  93. margin-right: 1em;
  94. margin-left: 0;
  95. }
  96. #dokuwiki__header .mobileTools {
  97. display: none; /* hide mobile tools dropdown to only show in mobile view */
  98. }
  99. /*____________ site tools ____________*/
  100. #dokuwiki__sitetools {
  101. text-align: right;
  102. form.search {
  103. font-size: 0.875em;
  104. }
  105. }
  106. [dir=rtl] #dokuwiki__sitetools {
  107. text-align: left;
  108. }
  109. form.search {
  110. display: block;
  111. position: relative;
  112. margin-bottom: 0.5em;
  113. input {
  114. width: 18em;
  115. padding: .35em 22px .35em .1em;
  116. }
  117. button {
  118. background: transparent url(images/search.png) no-repeat 0 0;
  119. border-width: 0;
  120. width: 19px;
  121. height: 14px;
  122. text-indent: -99999px;
  123. margin-left: -20px;
  124. box-shadow: none;
  125. padding: 0;
  126. }
  127. }
  128. [dir=rtl] form.search {
  129. input {
  130. padding: .35em .1em .35em 22px;
  131. }
  132. button {
  133. background-position: 5px 0;
  134. margin-left: 0;
  135. margin-right: -20px;
  136. position: relative;
  137. }
  138. }
  139. /*____________ breadcrumbs ____________*/
  140. .dokuwiki div.breadcrumbs {
  141. border-top: 1px solid @ini_border;
  142. border-bottom: 1px solid @ini_background;
  143. margin-bottom: .5em;
  144. font-size: 0.875em;
  145. clear: both;
  146. div {
  147. padding: .1em .35em;
  148. }
  149. div:only-child {
  150. border-top: 1px solid @ini_background;
  151. border-bottom: 1px solid @ini_border;
  152. }
  153. div:first-child {
  154. border-top: 1px solid @ini_background;
  155. }
  156. div:last-child {
  157. border-bottom: 1px solid @ini_border;
  158. }
  159. .bcsep {
  160. font-size: 0.75em;
  161. }
  162. }
  163. /* sidebar
  164. ********************************************************************/
  165. .dokuwiki .aside {
  166. font-size: 0.875em;
  167. overflow: hidden;
  168. word-wrap: break-word;
  169. /* make sidebar more condensed */
  170. h1 {
  171. font-size: 1.714em;
  172. margin-bottom: .292em;
  173. }
  174. h2 {
  175. margin-bottom: .333em;
  176. }
  177. h3 {
  178. margin-bottom: .444em;
  179. }
  180. h4 {
  181. margin-bottom: .5em;
  182. }
  183. h5 {
  184. margin-bottom: .5714em;
  185. }
  186. p,
  187. ul,
  188. ol,
  189. dl,
  190. pre,
  191. table,
  192. fieldset,
  193. hr,
  194. blockquote,
  195. address {
  196. margin-bottom: .7em;
  197. }
  198. ul,
  199. ol {
  200. padding-left: .5em;
  201. }
  202. li ul,
  203. li ol {
  204. margin-bottom: 0;
  205. padding: 0;
  206. }
  207. a:link,
  208. a:visited {
  209. color: @ini_link;
  210. background-color: inherit;
  211. }
  212. }
  213. [dir=rtl] .dokuwiki .aside ul,
  214. [dir=rtl] .dokuwiki .aside ol {
  215. padding-right: .5em;
  216. }
  217. /* content
  218. ********************************************************************/
  219. .dokuwiki .pageId {
  220. float: right;
  221. margin-right: -1em;
  222. margin-bottom: -1px;
  223. margin-top: -1.5em;
  224. overflow: hidden;
  225. padding: 0.5em 1em 0;
  226. span {
  227. font-size: 0.875em;
  228. border: solid @ini_background_alt;
  229. border-width: 1px 1px 0;
  230. background-color: @ini_background;
  231. color: @ini_text_alt;
  232. padding: .1em .35em;
  233. border-top-left-radius: 2px;
  234. border-top-right-radius: 2px;
  235. //box-shadow: 0 0 .5em @ini_text_alt;
  236. display: block;
  237. }
  238. }
  239. .dokuwiki div.page {
  240. clear: both;
  241. background: @ini_background;
  242. color: inherit;
  243. border: 1px solid @ini_background_alt;
  244. //box-shadow: 0 0 .5em @ini_text_alt;
  245. border-radius: 5px;
  246. padding: 1.556em 2em 2em;
  247. margin-bottom: .5em;
  248. overflow: hidden;
  249. word-wrap: break-word;
  250. }
  251. .dokuwiki .docInfo {
  252. font-size: 0.875em;
  253. text-align: right;
  254. overflow-wrap: break-word;
  255. }
  256. /* license note under edit window */
  257. .dokuwiki div.license {
  258. font-size: 93.75%;
  259. }
  260. [dir=rtl] .dokuwiki .docInfo {
  261. text-align: left;
  262. }
  263. [dir=rtl] .dokuwiki .pageId {
  264. float: left;
  265. margin-left: -1em;
  266. margin-right: 0;
  267. }
  268. /* footer
  269. ********************************************************************/
  270. .dokuwiki .wrapper {
  271. margin-bottom: 1.4em;
  272. }
  273. #dokuwiki__footer {
  274. margin-bottom: 1em;
  275. text-align: center;
  276. > .pad {
  277. font-size: 0.875em;
  278. }
  279. div.license {
  280. margin-bottom: 0.5em;
  281. font-size: 100%;
  282. }
  283. div.buttons a {
  284. img {
  285. opacity: 0.5;
  286. }
  287. &:hover img,
  288. &:active img,
  289. &:focus img {
  290. opacity: 1;
  291. }
  292. }
  293. }
  294. [dir=rtl] #dokuwiki__footer .license img {
  295. margin: 0 0 0 .5em;
  296. }