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.
 
 
 
 
 

289 lines
6.0 KiB

  1. /**
  2. * This file provides styles for the general layout structure.
  3. */
  4. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  5. /* col grid */
  6. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  7. .make-grid(xs);
  8. @media screen {
  9. .container {
  10. margin: 0 @margin-big;
  11. }
  12. }
  13. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  14. /* font sizing */
  15. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  16. @media @screen_min-xxs {
  17. html {
  18. font-size: 100%; //16px
  19. }
  20. }
  21. @media @screen_min-xs {
  22. html {
  23. font-size: 100%; //16px
  24. }
  25. }
  26. @media @screen_min-sm {
  27. .make-grid(sm);
  28. html {
  29. font-size: 100%; //16px
  30. }
  31. }
  32. @media @screen_min-md {
  33. .make-grid(md);
  34. html {
  35. font-size: 87.5%; //14px
  36. }
  37. }
  38. @media @screen_min-lg {
  39. .make-grid(lg);
  40. html {
  41. font-size: 87.5%; //14px
  42. }
  43. }
  44. @media @screen_min-xlg {
  45. html {
  46. font-size: 93.75%; //15px
  47. }
  48. }
  49. @media @screen_min-xxlg {
  50. html {
  51. font-size: 100%; //16px
  52. }
  53. }
  54. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  55. /* z-indices */
  56. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  57. @media screen {
  58. .nav-direct p {
  59. z-index: 1000; // keyboard-navigation overlays always on top
  60. }
  61. .top-header {
  62. z-index: 2; // put MagicMatcher-Dropdowns above .content and metabox-tabs
  63. }
  64. #dokuwiki__aside div.nav a {
  65. &:hover, &:focus, &:active {
  66. z-index: 100; // show label/link above content on hover etc.
  67. }
  68. }
  69. .qc-output {
  70. z-index: 1; // put qc-output above meta-box
  71. }
  72. #spr__meta-box {
  73. z-index: 10; // put meta-box above positioned content-elements such as aggregations, edit-buttons
  74. ul.meta-tabs > li.active {
  75. z-index: 1; // put the active tab above the meta-content in .tab-pane.active
  76. }
  77. }
  78. nav#dokuwiki__pagetools {
  79. z-index: 100; // put labels of the pagetools above content on hover etc.
  80. }
  81. #dokuwiki__detail .img-link a::before {
  82. z-index: 2; // put 'view original file'-overlay above image
  83. }
  84. /* plug-in do_tasks */
  85. .plugin__do_usertasks_list {
  86. z-index: 200; // put tasks-list above pagetools
  87. }
  88. /* plug-in editable */
  89. #dokuwiki__content.main-content div.editbutton_table {
  90. z-index: 1; // for IE
  91. }
  92. /* plug-in tabinclude */
  93. div#dwpl-ti-container li.dwpl-ti-tab div.selected {
  94. z-index: 1; // put .slected tab above div.dwpl-ti-content-box
  95. }
  96. }
  97. @media @screen_min-md {
  98. .wide-content .search.main-sidebar p.toggleSearch {
  99. z-index: 1; // put search-toggle-button above #dw__search
  100. }
  101. }
  102. @media @screen_max-md {
  103. body.show-mobile-sidebar #dokuwiki__aside {
  104. z-index: 200; // mobile sidebar above all except nav-direct
  105. }
  106. }
  107. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  108. /* screen sizing */
  109. /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
  110. // >= 1024
  111. @media @screen_min-md {
  112. .content .row > .col-xs-12 {
  113. border-radius: 0 @ini_default_border_radius @fix_border-radius @fix_border-radius; // @ini_default_border_radius vs. @fix_border-radius
  114. }
  115. .top-header {
  116. position: absolute;
  117. top: 0;
  118. right: 0;
  119. width: 50%;
  120. }
  121. .header,
  122. .tools {
  123. .row {
  124. position: relative;
  125. > .col-xs-12 {
  126. width: @ini_sidebar_width;
  127. box-sizing: border-box;
  128. }
  129. }
  130. }
  131. .header {
  132. .row > .col-xs-12 {
  133. position: relative;
  134. height: 150px;
  135. min-height: 6rem;
  136. display: table;
  137. + .col-xs-12 {
  138. float: right;
  139. width: @ini_site_width;
  140. box-sizing: border-box;
  141. }
  142. }
  143. }
  144. /* + + + + + layout option compact + + + + + */
  145. .header-compact {
  146. .header {
  147. .row > .col-xs-12 {
  148. height: auto;
  149. min-height: auto;
  150. }
  151. }
  152. }
  153. .tools {
  154. .row > .col-xs-12 {
  155. position: absolute;
  156. }
  157. }
  158. .content {
  159. .row > .col-xs-12 {
  160. position: relative;
  161. width: 100%;
  162. background-color: #fff;
  163. }
  164. }
  165. .showSidebar {
  166. .content {
  167. .row > .col-xs-12 {
  168. width: @ini_site_width;
  169. float: right;
  170. }
  171. }
  172. }
  173. .wide-content {
  174. .content {
  175. .row > .col-xs-12 {
  176. width: auto;
  177. float: none;
  178. }
  179. }
  180. &.showSidebar {
  181. .content {
  182. .row > .col-xs-12 {
  183. margin-left: @toggle-showsidebar_width;
  184. }
  185. }
  186. }
  187. }
  188. .main-sidebar {
  189. &.search {
  190. > img {
  191. width: 100%;
  192. height: auto;
  193. }
  194. }
  195. }
  196. }
  197. // > 1024
  198. @media @screen_md-lg {
  199. .wide-content.showSidebar {
  200. .content {
  201. .row > .col-xs-12 {
  202. margin-left: 2.3rem;
  203. }
  204. }
  205. }
  206. }
  207. @media @screen_max-md {
  208. .container {
  209. margin: 0 1.25rem;
  210. }
  211. .content {
  212. position: relative;
  213. #dokuwiki__pagetools {
  214. top: 0;
  215. }
  216. .row > .col-xs-12 #dokuwiki__content::before {
  217. display: none;
  218. }
  219. }
  220. .tools {
  221. .main-sidebar {
  222. display: none;
  223. }
  224. }
  225. }
  226. @media @screen_max-xxs {
  227. @mobileMargin: 4px;
  228. .container {
  229. margin: 0 @mobileMargin;
  230. }
  231. body.show-mobile-sidebar #dokuwiki__aside {
  232. left: @mobileMargin;
  233. }
  234. #dokuwiki__footer {
  235. .main-footer {
  236. > * {
  237. padding-left: 2rem;
  238. padding-right: 2rem;
  239. }
  240. }
  241. }
  242. }