Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 8baafb46

Přidáno uživatelem Marek Zábran před asi 4 roky(ů)

Issue #7952 @1.75h
První trošku použitelné side-menu.
Vzdálenosti jsou zatím ad hoc a v SCSS jsem nechal nepořádek, který pak uklidím.

Zobrazit rozdíly:

resources/sass/_custom.scss
349 349

  
350 350
        &:before {
351 351
            background-image : url(../images/Button_Arrow_Small.png);
352
            //height: 0.9685rem;
353
            //width: 0.59055rem;
352 354
        }
353 355

  
354 356
        &:hover {
......
421 423
    }
422 424
}
423 425

  
426
.arrow-left {
427
    position: absolute;
428
    width: 0;
429
    height: 0;
430
    margin-top: 50px;
431
    //height: 0.9685rem;
432
    //width: 0.59055rem;
433
    margin-left: 90%;
434
    border-top: 0.59055rem solid transparent;
435
    border-bottom: 0.59055rem solid transparent;
436

  
437
    border-right:0.59055rem solid $theme-color-four;
438
}
439
.arrow-right {
440
    position: absolute;
441
    top: 0;
442
    width: 0;
443
    height: 0;
444
    margin: 50px;
445
    border-top: 0.59055rem solid transparent;
446
    border-bottom: 0.59055rem solid transparent;
447

  
448
    border-left:0.59055rem solid $theme-color-four;
449
}
450

  
424 451
.sidenav {
425 452
    height: 100%;
426 453
    width: 0;
......
428 455
    z-index: 1;
429 456
    top: 0;
430 457
    left: 0;
431
    background-color: #111;
458
    //margin-top: 50px;
459
    background-color: $theme-color-five;
432 460
    overflow-x: hidden;
433 461
    transition: 0.5s;
434
    padding-top: 60px;
462
    //padding-top: 60px;
435 463
}
436 464

  
437 465
.sidenav a {
438
    padding: 8px 8px 8px 32px;
466
    //padding: 8px 8px 8px 50px;
439 467
    text-decoration: none;
440
    font-size: 25px;
441
    color: #818181;
468
    //font-size: 25px;
469
    color: $theme-color-four;
442 470
    display: block;
443 471
    transition: 0.3s;
444 472
}
445 473

  
446 474
.sidenav a:hover {
447
    color: #f1f1f1;
475
    color: $theme-color-five;
476
    background-color: $theme-color-one;
448 477
}
449 478

  
450
.sidenav .closebtn {
479
/*.sidenav .closebtn {
451 480
    position: absolute;
452 481
    top: 0;
453 482
    right: 25px;
454 483
    font-size: 36px;
455 484
    margin-left: 50px;
456
}
485
}*/
457 486

  
458 487
@media screen and (max-height: 450px) {
459 488
    .sidenav {padding-top: 15px;}

Také k dispozici: Unified diff