[3365] | 1 | // Admin layout |
---|
[3355] | 2 | #dotclear-admin { |
---|
[3412] | 3 | display: flex; |
---|
| 4 | min-height: 100vh; |
---|
| 5 | flex-direction: column; |
---|
[3355] | 6 | } |
---|
| 7 | |
---|
| 8 | #header { |
---|
[3439] | 9 | width: 99.99%; |
---|
| 10 | /* Bugfix Chrome >= 49.0.2623.108 */ |
---|
[3412] | 11 | display: table; |
---|
| 12 | position: relative; |
---|
[3355] | 13 | } |
---|
| 14 | |
---|
| 15 | h1, |
---|
| 16 | #top-info-blog, |
---|
| 17 | #top-info-user { |
---|
[3412] | 18 | display: table-cell; |
---|
| 19 | padding: 8px 0; |
---|
| 20 | margin: 0; |
---|
| 21 | font-size: 1em; |
---|
| 22 | vertical-align: top; |
---|
[3355] | 23 | } |
---|
| 24 | |
---|
| 25 | #wrapper { |
---|
[3412] | 26 | position: relative; |
---|
| 27 | padding-top: 1.5em; |
---|
| 28 | float: left; |
---|
| 29 | width: 100%; |
---|
| 30 | z-index: 10; |
---|
| 31 | flex: 1; |
---|
[3355] | 32 | } |
---|
| 33 | |
---|
| 34 | .with-js #wrapper { |
---|
[3412] | 35 | padding-top: 0; |
---|
[3355] | 36 | } |
---|
| 37 | |
---|
| 38 | #main { |
---|
[3412] | 39 | width: 100%; |
---|
| 40 | float: right; |
---|
| 41 | margin-left: -14em; |
---|
| 42 | margin-top: 0; |
---|
[3355] | 43 | } |
---|
| 44 | |
---|
| 45 | #content { |
---|
[3412] | 46 | margin: 0 0 0 14em; |
---|
| 47 | padding: .5em 1.5em .75em 2.5em; |
---|
[3355] | 48 | } |
---|
| 49 | |
---|
| 50 | #main-menu { |
---|
[3412] | 51 | width: 14em; |
---|
| 52 | float: left; |
---|
| 53 | margin: 0; |
---|
| 54 | padding-top: .5em; |
---|
| 55 | padding-bottom: 1em; |
---|
| 56 | overflow: hidden; |
---|
[3355] | 57 | } |
---|
| 58 | |
---|
| 59 | #footer { |
---|
[3412] | 60 | clear: both; |
---|
| 61 | position: relative; |
---|
| 62 | padding: .5em 0 .5em 1em; |
---|
| 63 | text-align: left; |
---|
[3355] | 64 | } |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | /* to hide main-menu */ |
---|
| 68 | |
---|
| 69 | #collapser { |
---|
[3412] | 70 | position: absolute; |
---|
| 71 | top: 0; |
---|
| 72 | left: 14em; |
---|
| 73 | width: $collapser-width; |
---|
| 74 | height: 100%; |
---|
| 75 | overflow: hidden; |
---|
| 76 | display: block; |
---|
| 77 | border-right: 0; // 1px solid #999; |
---|
| 78 | border-bottom: 0; |
---|
| 79 | z-index: 1; |
---|
| 80 | transition: none; |
---|
[3355] | 81 | } |
---|
| 82 | |
---|
| 83 | .expand-mm { |
---|
[3412] | 84 | display: none; |
---|
[3355] | 85 | } |
---|
| 86 | |
---|
[3439] | 87 | |
---|
[3355] | 88 | /* if main-menu is hidden */ |
---|
| 89 | |
---|
[3439] | 90 | .hide-mm { |
---|
| 91 | #main { |
---|
| 92 | margin-left: 0; |
---|
| 93 | } |
---|
| 94 | #content { |
---|
| 95 | margin-left: $collapser-width; |
---|
| 96 | > h2 { |
---|
| 97 | margin-left: calc(-1em - #{$collapser-width}); |
---|
| 98 | } |
---|
| 99 | } |
---|
| 100 | #main-menu { |
---|
| 101 | display: none; |
---|
| 102 | } |
---|
| 103 | #collapser { |
---|
| 104 | left: 0; |
---|
| 105 | } |
---|
| 106 | .collapse-mm { |
---|
| 107 | display: none; |
---|
| 108 | } |
---|
| 109 | .expand-mm { |
---|
| 110 | display: block; |
---|
| 111 | } |
---|
[3355] | 112 | } |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | /* -------------------------------------------------------------- layout: two-cols */ |
---|
| 116 | |
---|
| 117 | .two-cols { |
---|
[3412] | 118 | position: static; |
---|
[3439] | 119 | .col { |
---|
| 120 | width: 48%; |
---|
| 121 | margin-left: 2%; |
---|
| 122 | float: left; |
---|
| 123 | &:first-child { |
---|
| 124 | margin-left: 0; |
---|
| 125 | margin-right: 2%; |
---|
| 126 | } |
---|
| 127 | &:last-child { |
---|
| 128 | margin-left: 2%; |
---|
| 129 | margin-right: 0; |
---|
| 130 | } |
---|
| 131 | } |
---|
| 132 | .col70 { |
---|
| 133 | width: 68%; |
---|
| 134 | margin-left: 0; |
---|
| 135 | float: left; |
---|
| 136 | &.last-col { |
---|
| 137 | margin-left: 2%; |
---|
| 138 | margin-right: 0; |
---|
| 139 | } |
---|
| 140 | } |
---|
| 141 | .col30 { |
---|
| 142 | width: 28%; |
---|
| 143 | margin-left: 2%; |
---|
| 144 | float: left; |
---|
| 145 | &.first-col { |
---|
| 146 | margin-left: 0; |
---|
| 147 | margin-right: 2%; |
---|
| 148 | } |
---|
| 149 | } |
---|
| 150 | table { |
---|
| 151 | width: 90%; |
---|
| 152 | } |
---|
[3355] | 153 | } |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | /* -------------------------------------------------------------- layout: three-cols */ |
---|
| 157 | |
---|
| 158 | .three-cols { |
---|
[3412] | 159 | position: static; |
---|
[3439] | 160 | .col { |
---|
| 161 | width: 32.3%; |
---|
| 162 | float: left; |
---|
| 163 | margin-left: 1%; |
---|
| 164 | &:first-child { |
---|
| 165 | margin-left: 0; |
---|
| 166 | } |
---|
| 167 | } |
---|
[3355] | 168 | } |
---|
| 169 | |
---|
| 170 | |
---|
| 171 | /* ------------------------------------------------- layout: optionnal one/two/three-boxes */ |
---|
| 172 | |
---|
| 173 | .one-box { |
---|
[3412] | 174 | text-align: justify; |
---|
[3355] | 175 | } |
---|
| 176 | |
---|
| 177 | .two-boxes { |
---|
[3412] | 178 | width: 48.5%; |
---|
[3355] | 179 | } |
---|
| 180 | |
---|
| 181 | .three-boxes { |
---|
[3412] | 182 | width: 30%; |
---|
[3355] | 183 | } |
---|
| 184 | |
---|
| 185 | .two-boxes, |
---|
| 186 | .three-boxes { |
---|
[3412] | 187 | display: inline-block; |
---|
| 188 | vertical-align: top; |
---|
| 189 | margin: 0 1.5% 1em; |
---|
| 190 | text-align: left; |
---|
[3355] | 191 | } |
---|
| 192 | |
---|
| 193 | .two-boxes:nth-of-type(odd), |
---|
| 194 | .three-boxes:nth-of-type(3n+1) { |
---|
[3412] | 195 | margin-left: 0; |
---|
[3355] | 196 | } |
---|
| 197 | |
---|
| 198 | .two-boxes:nth-of-type(even), |
---|
| 199 | .three-boxes:nth-of-type(3n) { |
---|
[3412] | 200 | margin-right: 0; |
---|
[3355] | 201 | } |
---|
| 202 | |
---|
| 203 | |
---|
| 204 | /* ---------------------------------------------------------------- layout: popups */ |
---|
| 205 | |
---|
[3439] | 206 | .popup { |
---|
| 207 | h1 { |
---|
| 208 | display: block; |
---|
| 209 | width: 100%; |
---|
| 210 | margin: 0; |
---|
| 211 | font-size: 1.5em; |
---|
| 212 | text-indent: 1em; |
---|
| 213 | line-height: 1.5em; |
---|
| 214 | font-weight: normal; |
---|
| 215 | } |
---|
| 216 | #wrapper { |
---|
| 217 | display: block; |
---|
| 218 | float: none; |
---|
| 219 | width: 100%; |
---|
| 220 | margin: 0; |
---|
| 221 | padding: 0; |
---|
| 222 | background-position: 0 0; |
---|
| 223 | } |
---|
| 224 | #main { |
---|
| 225 | margin: 0; |
---|
| 226 | padding: 0; |
---|
| 227 | } |
---|
| 228 | #content { |
---|
| 229 | margin: 0; |
---|
| 230 | padding: 1em; |
---|
| 231 | h2 { |
---|
| 232 | margin: 0 0 1em 0; |
---|
| 233 | padding: 0; |
---|
| 234 | } |
---|
| 235 | } |
---|
| 236 | #footer p { |
---|
| 237 | border: none; |
---|
| 238 | } |
---|
[3355] | 239 | } |
---|
| 240 | |
---|
| 241 | |
---|
| 242 | /* -------------------------------------------------------- layout: classes de complément */ |
---|
| 243 | |
---|
| 244 | .constrained { |
---|
[3412] | 245 | margin: 0; |
---|
| 246 | padding: 0; |
---|
| 247 | border: none; |
---|
| 248 | background: transparent; |
---|
[3355] | 249 | } |
---|
| 250 | |
---|
| 251 | .table { |
---|
[3412] | 252 | display: table; |
---|
[3355] | 253 | } |
---|
| 254 | |
---|
| 255 | .cell { |
---|
[3412] | 256 | display: table-cell; |
---|
| 257 | vertical-align: top; |
---|
[3355] | 258 | } |
---|
| 259 | |
---|
| 260 | .clear { |
---|
[3412] | 261 | clear: both; |
---|
[3355] | 262 | } |
---|
| 263 | |
---|
| 264 | .lclear { |
---|
[3412] | 265 | clear: left; |
---|
[3355] | 266 | } |
---|
| 267 | |
---|
| 268 | .clearer { |
---|
[3412] | 269 | height: 1px; |
---|
| 270 | font-size: 1px; |
---|
[3355] | 271 | } |
---|
| 272 | |
---|
| 273 | |
---|
| 274 | /* Micro clearfix thx to Nicolas Gallagher */ |
---|
| 275 | |
---|
| 276 | .clearfix:before, |
---|
| 277 | .clearfix:after { |
---|
[3412] | 278 | content: " "; |
---|
| 279 | display: table; |
---|
[3355] | 280 | } |
---|
| 281 | |
---|
| 282 | .clearfix:after { |
---|
[3412] | 283 | clear: both; |
---|
[3355] | 284 | } |
---|
| 285 | |
---|
| 286 | .box { |
---|
[3412] | 287 | display: inline-block; |
---|
| 288 | vertical-align: top; |
---|
| 289 | margin: 0 10px 10px; |
---|
| 290 | text-align: left; |
---|
| 291 | flex: 1 1 auto; |
---|
[3439] | 292 | &.small { |
---|
| 293 | // width: 312px; |
---|
| 294 | flex-basis: 312px; |
---|
| 295 | } |
---|
| 296 | &.medium { |
---|
| 297 | // width: 644px; |
---|
| 298 | flex-basis: 644px; |
---|
| 299 | } |
---|
| 300 | &.large { |
---|
| 301 | width: 100%; |
---|
| 302 | } |
---|
[3355] | 303 | } |
---|
| 304 | |
---|
| 305 | .odd { |
---|
[3412] | 306 | margin-left: 0; |
---|
[3355] | 307 | } |
---|
| 308 | |
---|
| 309 | .even { |
---|
[3412] | 310 | margin-right: 0; |
---|
[3355] | 311 | } |
---|
| 312 | |
---|
[3439] | 313 | |
---|
[3355] | 314 | /* ------------------------------------------------------------------------------------ |
---|
[3412] | 315 | UN POIL DE MEDIA QUERIES |
---|
[3355] | 316 | ------------------------------------------------------------------------------------ */ |
---|
| 317 | |
---|
[3365] | 318 | @media screen and (max-width: $xl-screen) { |
---|
[3439] | 319 | #header { |
---|
| 320 | display: block; |
---|
| 321 | width: 100%; |
---|
| 322 | text-align: right; |
---|
| 323 | h1, |
---|
| 324 | h1 a { |
---|
| 325 | width: 120px; |
---|
| 326 | margin: 0; |
---|
| 327 | } |
---|
| 328 | } |
---|
| 329 | h1 { |
---|
| 330 | width: 19.5em; |
---|
| 331 | display: inline-block; |
---|
| 332 | vertical-align: top; |
---|
| 333 | margin-right: 1em; |
---|
| 334 | } |
---|
| 335 | #top-info-blog { |
---|
| 336 | display: inline-block; |
---|
| 337 | vertical-align: top; |
---|
| 338 | margin-right: 1em; |
---|
| 339 | #switchblog { |
---|
| 340 | max-width: 16em; |
---|
| 341 | } |
---|
| 342 | a { |
---|
| 343 | margin-left: 2em; |
---|
| 344 | } |
---|
| 345 | } |
---|
| 346 | #top-info-user { |
---|
| 347 | display: block; |
---|
| 348 | width: 100%; |
---|
| 349 | } |
---|
| 350 | #collapser { |
---|
| 351 | left: 17em; |
---|
| 352 | } |
---|
[3412] | 353 | #main { |
---|
| 354 | margin-left: -17em; |
---|
| 355 | } |
---|
| 356 | #content { |
---|
| 357 | margin: 0 0 0 17em; |
---|
| 358 | } |
---|
| 359 | #main-menu { |
---|
| 360 | width: 17em; |
---|
| 361 | } |
---|
| 362 | .three-boxes, |
---|
| 363 | .three-boxes .box, |
---|
| 364 | .two-cols .col70, |
---|
| 365 | .two-cols .col30 { |
---|
| 366 | width: 100%; |
---|
| 367 | margin-left: 0; |
---|
| 368 | margin-right: 0; |
---|
| 369 | } |
---|
[3355] | 370 | } |
---|
| 371 | |
---|
| 372 | @media screen and (max-width: $m-screen) { |
---|
[3412] | 373 | #dashboard-boxes .box.medium, |
---|
| 374 | .box.medium, |
---|
| 375 | #dashboard-boxes .box.small, |
---|
| 376 | .box.small, |
---|
| 377 | #dashboard-boxes .box.large, |
---|
| 378 | .box.large { |
---|
| 379 | width: 95%; |
---|
| 380 | margin: 10px auto; |
---|
| 381 | } |
---|
[3355] | 382 | } |
---|
| 383 | |
---|
| 384 | @media screen and (max-width: $s-screen) { |
---|
[3412] | 385 | #help-button { |
---|
| 386 | height: 26px; |
---|
| 387 | width: 26px; |
---|
| 388 | margin: 0; |
---|
| 389 | overflow: hidden; |
---|
| 390 | } |
---|
| 391 | #content.with-help #help-button { |
---|
| 392 | top: 10em; // 77px; |
---|
| 393 | } |
---|
| 394 | .one-box, |
---|
| 395 | .two-boxes, |
---|
| 396 | .box, |
---|
| 397 | .two-cols .col { |
---|
| 398 | width: 96%; |
---|
| 399 | margin-left: 0; |
---|
| 400 | margin-right: 0; |
---|
| 401 | } |
---|
[3355] | 402 | } |
---|
| 403 | |
---|
| 404 | @media screen and (max-width: $xs-screen) { |
---|
[3412] | 405 | #header h1, |
---|
| 406 | #header h1 a { |
---|
| 407 | width: 42px !important; |
---|
| 408 | height: 42px; |
---|
| 409 | } |
---|
| 410 | #wrapper, |
---|
| 411 | #main, |
---|
| 412 | #main-menu { |
---|
| 413 | display: block; |
---|
| 414 | float: none; |
---|
| 415 | width: 100%; |
---|
| 416 | margin: 0; |
---|
| 417 | } |
---|
[3439] | 418 | #main-menu { |
---|
| 419 | a { |
---|
| 420 | display: block; |
---|
| 421 | width: 100%; |
---|
| 422 | } |
---|
| 423 | h3 a { |
---|
| 424 | display: inline; |
---|
| 425 | } |
---|
[3412] | 426 | } |
---|
| 427 | #content, |
---|
| 428 | .hide-mm #content { |
---|
| 429 | margin: 0; |
---|
| 430 | } |
---|
| 431 | #collapser { |
---|
| 432 | display: none; |
---|
| 433 | } |
---|
| 434 | #main #content > h2 { |
---|
| 435 | margin: 0 -.25em 1em; |
---|
| 436 | } |
---|
| 437 | #dashboard-boxes .box.medium, |
---|
| 438 | .box.medium, |
---|
| 439 | #dashboard-boxes .box.small, |
---|
| 440 | .box.small, |
---|
| 441 | #dashboard-boxes .box.large, |
---|
| 442 | .box.large { |
---|
| 443 | width: 95%; |
---|
| 444 | margin: 10px auto; |
---|
| 445 | } |
---|
| 446 | .cell, |
---|
| 447 | #filters-form .cell { |
---|
| 448 | display: inline-block; |
---|
| 449 | vertical-align: bottom; |
---|
| 450 | } |
---|
| 451 | .pseudo-tabs li { |
---|
| 452 | display: block; |
---|
| 453 | float: left; |
---|
| 454 | width: 50%; |
---|
| 455 | } |
---|
[3355] | 456 | } |
---|
| 457 | |
---|
| 458 | @media screen and (max-width: $xxs-screen) { |
---|
[3412] | 459 | #top-info-blog label, |
---|
| 460 | .nomobile { |
---|
| 461 | display: none; |
---|
| 462 | } |
---|
| 463 | #top-info-blog { |
---|
| 464 | margin-bottom: .5em; |
---|
| 465 | max-width: 75%; |
---|
[3439] | 466 | select { |
---|
| 467 | margin-bottom: .5em; |
---|
| 468 | } |
---|
[3412] | 469 | } |
---|
[3439] | 470 | #content.with-help { |
---|
| 471 | #help-button { |
---|
| 472 | top: 10em; // 120px; |
---|
| 473 | right: 28rem; // 20.5em; |
---|
| 474 | } |
---|
| 475 | #help { |
---|
| 476 | width: 28rem; |
---|
| 477 | } |
---|
[3412] | 478 | } |
---|
| 479 | p.top-add { |
---|
| 480 | margin-bottom: .5em; |
---|
| 481 | } |
---|
| 482 | .part-tabs ul { |
---|
| 483 | margin: 1em 0; |
---|
| 484 | } |
---|
| 485 | .part-tabs li a { |
---|
| 486 | display: block; |
---|
| 487 | width: 100%; |
---|
| 488 | } |
---|
| 489 | #icons p { |
---|
| 490 | width: 9em; |
---|
| 491 | } |
---|
| 492 | .media-item { |
---|
| 493 | width: 90%; |
---|
| 494 | } |
---|
| 495 | #theme-new, |
---|
| 496 | #theme-activate, |
---|
| 497 | #theme-deactivate { |
---|
| 498 | margin-left: 0; |
---|
| 499 | margin-right: 0; |
---|
| 500 | } |
---|
| 501 | .box.current-theme { |
---|
| 502 | margin: 5px; |
---|
| 503 | width: 100%; |
---|
| 504 | } |
---|
| 505 | .current-theme .module-sshot img { |
---|
| 506 | margin: 0; |
---|
| 507 | float: none; |
---|
| 508 | max-width: 100%; |
---|
| 509 | } |
---|
| 510 | table .maximal { |
---|
| 511 | min-width: 14em; |
---|
| 512 | } |
---|
| 513 | .pseudo-tabs li { |
---|
| 514 | display: block; |
---|
| 515 | width: 100%; |
---|
| 516 | float: none; |
---|
| 517 | } |
---|
[3355] | 518 | } |
---|