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: 1; // 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 .tools { 170 .row > .col-xs-12 { 171 position: absolute; 172 } 173 } 174 175 .content { 176 .row > .col-xs-12 { 177 position: relative; 178 width: 100%; 179 background-color: #fff; 180 } 181 } 182 183 .showSidebar { 184 .content { 185 .row > .col-xs-12 { 186 width: @ini_site_width; 187 float: right; 188 } 189 } 190 } 191 192 .wide-content { 193 .content { 194 .row > .col-xs-12 { 195 width: auto; 196 float: none; 197 } 198 } 199 200 &.showSidebar { 201 .content { 202 .row > .col-xs-12 { 203 margin-left: @toggle-showsidebar_width; 204 } 205 } 206 } 207 } 208 209 .main-sidebar { 210 &.search { 211 > img { 212 width: 100%; 213 height: auto; 214 } 215 } 216 } 217} 218 219 220@media @screen_md-lg { 221 .wide-content.showSidebar { 222 .content { 223 .row > .col-xs-12 { 224 margin-left: 2.3rem; 225 } 226 } 227 } 228} 229 230 231@media @screen_max-md { 232 .container { 233 margin: 0 1.25rem; 234 } 235 236 .content { 237 position: relative; 238 239 #dokuwiki__pagetools { 240 top: 0; 241 } 242 243 .row > .col-xs-12 #dokuwiki__content::before { 244 display: none; 245 } 246 } 247 248 .tools { 249 .main-sidebar { 250 display: none; 251 } 252 } 253} 254 255@media @screen_max-xxs { 256 @mobileMargin: 4px; 257 258 .container { 259 margin: 0 @mobileMargin; 260 } 261 262 body.show-mobile-sidebar #dokuwiki__aside { 263 left: @mobileMargin; 264 } 265 266 #dokuwiki__footer { 267 .main-footer { 268 > * { 269 padding-left: 2rem; 270 padding-right: 2rem; 271 } 272 } 273 } 274} 275