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} 22 23@media @screen_min-xs { 24} 25 26@media @screen_min-sm { 27 .make-grid(sm); 28 html { 29 font-size: 100%; //16px 30 } 31} 32 33@media @screen_min-md { 34 .make-grid(md); 35 html { 36 font-size: 81.25%; //13px 37 } 38} 39 40@media @screen_min-lg { 41 .make-grid(lg); 42 html { 43 font-size: 87.5%; //14px 44 } 45} 46 47@media @screen_min-xlg { 48 html { 49 font-size: 93.75%; //15px 50 } 51} 52 53@media @screen_min-xxlg { 54 html { 55 font-size: 106.25%; //17px 56 } 57} 58 59/* + + + + + z-indeces + + + + + */ 60@media @screen_min-md { 61 .nav-direct p { 62 z-index: 1000; 63 } 64 65 .top-header { 66 z-index: 900; 67 } 68 69 .tools .row > .col-xs-12 { 70 z-index: 1; 71 } 72 73 .header .row > .col-xs-12 { 74 z-index: 2; 75 } 76 77 .content .row > .col-xs-12 { 78 z-index: 3; 79 } 80 81 .top-header { 82 position: absolute; 83 top: 0; 84 left: 0; 85 width: 100%; 86 } 87 88 .header, 89 .tools { 90 .row { 91 position: relative; 92 93 > .col-xs-12 { 94 width: 23%; 95 box-sizing: border-box; 96 } 97 } 98 } 99 100 .header { 101 .row > .col-xs-12 { 102 position: relative; 103 height: 150px; 104 min-height: 6rem; 105 } 106 } 107 108 .tools { 109 .row > .col-xs-12 { 110 position: absolute; 111 } 112 } 113 114 .content { 115 .row > .col-xs-12 { 116 position: relative; 117 width: 100%; 118 background-color: #fff; 119 } 120 } 121 122 .claim { 123 .logo { 124 125 img { 126 height: 60px; 127 width: auto; 128 border-style: solid; 129 border-color: transparent; 130 border-width: 0 2px; 131 } 132 133 a:hover, 134 a:focus, 135 a:active { 136 img { 137 border-width: 0; 138 } 139 } 140 } 141 } 142 143 .showSidebar { 144 .content { 145 .row > .col-xs-12 { 146 width: 73%; 147 float: right; 148 } 149 } 150 151 152 153 .claim { 154 .logo { 155 156 } 157 158 .logo img { 159 160 } 161 } 162 } 163 164 .wide-content{ 165 166 .content { 167 .row > .col-xs-12{ 168 width: auto; 169 float: none; 170 } 171 } 172 &.showSidebar{ 173 .content { 174 .row > .col-xs-12 { 175 margin-left: @margin-big; 176 } 177 } 178 } 179 180 } 181 182 .main-sidebar { 183 &.search { 184 > img { 185 width: 100%; 186 height: auto; 187 } 188 } 189 } 190} 191 192@media @screen_max-md { 193 .container { 194 margin: 0 (@margin-big/2); 195 } 196 197 #dokuwiki__usertools { 198 margin-top: 0; 199 max-width: 75%; 200 position: absolute; 201 top: 0; 202 right: @margin-big/2; 203 } 204 205 .content { 206 position: relative; 207 margin-top: 1rem; 208 209 #dokuwiki__pagetools { 210 top: @margin-big * 2; 211 .tools{ 212 position: static; 213 } 214 } 215 216 .row > .col-xs-12 #dokuwiki__content { 217 218 padding-right: @margin-big; 219 &::before { 220 display: none; 221 } 222 223 } 224 } 225 226 #dokuwiki__header { 227 .logo { 228 229 } 230 } 231 232 .tools { 233 .main-sidebar { 234 display: none; 235 } 236 } 237} 238