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