Revize 8baafb46
Přidáno uživatelem Marek Zábran před téměř 5 roky(ů)
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;} |
resources/views/inc/sidebar.blade.php | ||
---|---|---|
1 | 1 |
<div id="mySidenav" class="sidenav"> |
2 |
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a> |
|
2 |
<a href="javascript:void(0)" class="arrow-left" style="cursor:pointer" onclick="closeNav()"></a> |
|
3 |
<li class="nav-item"></li> |
|
4 |
<li class="nav-item"></li> |
|
5 |
<li class="nav-item"></li> |
|
6 |
<li class="nav-item"></li> |
|
3 | 7 |
@guest |
4 | 8 |
<li class="nav-item"> |
5 | 9 |
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a> |
... | ... | |
11 | 15 |
@endif |
12 | 16 |
@else |
13 | 17 |
<li class="nav-item dropdown"> |
14 |
<a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre> |
|
18 |
{{-- <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
|
|
15 | 19 |
{{ Auth::user()->name }} <span class="caret"></span> |
16 | 20 |
</a> |
17 | 21 |
|
18 |
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> |
|
19 |
<a class="dropdown-item" href="{{ url('/favartefacts') }}">Favorite artefacts</a> |
|
22 |
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">--}}
|
|
23 |
<a class="dropdown-item text-headline" href="{{ url('/favartefacts') }}">Favorite artefacts</a>
|
|
20 | 24 |
|
21 |
<a class="dropdown-item" href="{{ url('/favmetadata') }}">Favorite metadata</a> |
|
25 |
<a class="dropdown-item text-headline" href="{{ url('/favmetadata') }}">Favorite metadata</a>
|
|
22 | 26 |
|
23 |
<a class="dropdown-item" href="{{ route('logout') }}" |
|
27 |
<a class="dropdown-item text-headline" href="{{ route('logout') }}"
|
|
24 | 28 |
onclick="event.preventDefault(); |
25 | 29 |
document.getElementById('logout-form').submit();"> |
26 | 30 |
{{ __('Logout') }} |
... | ... | |
29 | 33 |
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> |
30 | 34 |
@csrf |
31 | 35 |
</form> |
32 |
</div>
|
|
36 |
{{-- </div>--}}
|
|
33 | 37 |
</li> |
34 | 38 |
@endguest |
35 | 39 |
|
36 | 40 |
</div> |
37 | 41 |
|
38 |
<span style="font-size:30px;cursor:pointer;background-color: #3f9ae5" onclick="openNav()">☰ open</span>
|
|
42 |
<span class="arrow-right" style="cursor:pointer" onclick="openNav()"></span>
|
|
39 | 43 |
|
40 | 44 |
<script> |
41 | 45 |
function openNav() { |
42 |
document.getElementById("mySidenav").style.width = "250px";
|
|
46 |
document.getElementById("mySidenav").style.width = "50vh";
|
|
43 | 47 |
} |
44 | 48 |
|
45 | 49 |
function closeNav() { |
Také k dispozici: Unified diff
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.