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