Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 927fb559

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

Issue #7996 @2.25h
[+] Přidáno tlačítko home pro guesta.
[+] Přidán do menu efekt active.
[+] Šipka pro menu dána do fixní horní lišty. Z neznámých důvodů na některých stránkách ovšem buguje a mizí?!
[+] Přidáno zvýraznění aktivní záložky.
[+] Přidán odkaz na češtinu (zatím nefunkční) a separátor pro logout.
[+] Přidáno logo kaplicky s odkazem na home do nové horní lišty. Logo není přítomno v loginu a registraci.

Zobrazit rozdíly:

resources/sass/_custom.scss
62 62
        }
63 63
    }
64 64

  
65
    .container{
66
        margin-top: 4.99055rem;
67
    }
68

  
65 69
    /////////text types
66 70
    //většina běžných textů
67 71
    .text {
......
149 153

  
150 154
        .card-body{
151 155
            padding-bottom: 0px;
152
            padding-top: 28vh
156
            padding-top: calc(28vh - 4.99055rem);
153 157
        }
154 158
    }
155 159

  
......
675 679
    border: 0.59055rem solid transparent;
676 680
}
677 681

  
682
.top-bar{
683
    padding-bottom: 4.59055rem;
684
    background-color: $theme-color-five;
685
    position: fixed;
686
    width: 100%;
687
    top: 0;
688
}
689

  
678 690
.arrow-left {
679 691
    margin-left: 80%;
680 692

  
......
691 703
    left: 0;
692 704
}
693 705

  
706
.separator{
707
    border-bottom: 1px solid $theme-color-five;
708
}
709

  
694 710
.sidenav {
695 711
    height: 100%;
696 712
    //width: 0;
......
709 725
    color: $theme-color-five;
710 726
    display: block;
711 727
    transition: 0.3s;
728
    &:hover{
729
        color: $theme-color-four;
730
        background-color: $theme-color-one;
731
    }
732
    &:active, &:focus, .active{
733
        color: $theme-color-one;
734
        background-color: $theme-color-four;
735
    }
712 736
}
713 737

  
714
.sidenav a:hover {
715
    color: $theme-color-four;
738
.dropdown-item.active, .dropdown-item:active{
739
    color: $theme-color-five;
716 740
    background-color: $theme-color-one;
717 741
}
718 742

  
743
.logo-kaplicky{
744
    position: fixed;
745
    top: 0;
746
    left: calc(50vw - 50pt);
747
    margin-top: 2rem;
748
}
749

  
719 750
@media screen and (max-height: 450px) {
720 751
    .sidenav a {font-size: 18px;}
721 752
}
resources/views/categories/index.blade.php
3 3
@section('title', 'Categories')
4 4

  
5 5
@section('content')
6
    <div class="container">
6 7
    @if(isset($user))
7 8
        {{--<p><?php dd($categories); ?></p>--}}
8 9
        <div class="cat-main-div" onclick="resetEnter()">
......
33 34
            </li>
34 35
        </ul>
35 36
    @endif
37
    </div>
36 38
@endsection
resources/views/inc/sidebar.blade.php
6 6
    <li class="nav-item"> &#160;</li>
7 7
        @guest
8 8
        <li class="nav-item">
9
            <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
9
            <a class="dropdown-item text-headline" href="{{ url('/') }}">{{ __('Home') }}</a>
10
            <a class="dropdown-item text-headline" href="{{ route('login') }}">{{ __('Login') }}</a>
10 11
        </li>
11 12
        @if (Route::has('register'))
12 13
        <li class="nav-item">
13
            <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
14
            <a class="dropdown-item text-headline" href="{{ route('register') }}">{{ __('Register') }}</a>
14 15
        </li>
15 16
        @endif
16 17
        @else
......
31 32

  
32 33

  
33 34

  
34
                <a class="dropdown-item text-headline" href="{{ route('logout') }}"
35
                   onclick="event.preventDefault();
35
        </li>
36
        <li class="nav-item dropdown separator">
37
            <a class="dropdown-item text-headline" href="{{ url('/czech') }}">česky</a>
38
        </li>
39
        <li class="nav-item dropdown">
40
            <a class="dropdown-item text-headline" href="{{ route('logout') }}"
41
               onclick="event.preventDefault();
36 42
                                                     document.getElementById('logout-form').submit();">
37
                    {{ __('logout') }}
38
                </a>
43
                {{ __('logout') }}
44
            </a>
39 45

  
40
                <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
41
                    @csrf
42
                </form>
46
            <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
47
                @csrf
48
            </form>
43 49
        </li>
44 50
        @endguest
45 51

  
46 52
</div>
47 53

  
48

  
49
<span class="arrow arrow-right" onclick="openNav()"></span>
54
<nav class="navbar navbar-expand-md navbar-light black shadow-sm top-bar">
55
    <span class="arrow arrow-right" onclick="openNav()"></span>
56
    @if(!Request::is('login')&&!Request::is('register'))
57
        <li class="nav-item dropdown col-md-4">
58
            <a for="logo" class="col-md-4 logo-kaplicky kaplicky" href="{{ url('/') }}">{{ __('kaplicky') }}</a>
59
        </li>
60
    @endif
61
</nav>
50 62
{{--<label for="logo" class="col-md-12 kaplicky" style="display: inline-block; text-align: center; padding: 1.25rem; padding-bottom: 0">{{ __('kaplicky') }}</label>
51 63
{{--<label for="logo" class="col-md-4 kaplicky">{{ __('kaplicky') }}</label>--}}
52 64
{{--<a class="navbar-brand kaplicky" href="{{ url('/') }}">
......
69 81
        document.getElementById("sidebar").style.width = "0";
70 82
    }
71 83
</script>
84
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
85
<script>
86
    $(function(){
87
        $('a').each(function(){
88
            if ($(this).prop('href') == window.location.href) {
89
                $(this).addClass('active');// $(this).parents('a').addClass('active');
90
            }
91
        });
92
    });
93
</script>

Také k dispozici: Unified diff