Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #695 from nlubisch/feature/menu
Base Structure/Layout & Kitchensink
- Loading branch information
Showing
33 changed files
with
1,077 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
htdocs/app/Resources/assets/scss/blocks/navigation/navigation-item.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@import 'global'; | ||
|
||
.navigation-item { | ||
border-top: .05rem solid $gray; | ||
|
||
&__text, | ||
&__link { | ||
color: $white; | ||
display: block; | ||
padding: #{$navigation-item__text---padding-vertical}rem 0 #{$navigation-item__text---padding-vertical}rem #{$navigation-item__text---padding-left}rem; | ||
} | ||
|
||
&--current { | ||
> span, | ||
> a { | ||
border-left: #{$navigation-item--current---border-left-width}rem solid $navigation-item--current---border-left-color; | ||
padding-left: #{$navigation-item__text---padding-left - $navigation-item--current---border-left-width}rem; | ||
background-color: $gray; | ||
} | ||
|
||
} | ||
} |
28 changes: 27 additions & 1 deletion
28
htdocs/app/Resources/assets/scss/blocks/navigation/navigation.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,31 @@ | ||
@import 'global'; | ||
|
||
.navigation { | ||
margin: 0 1rem; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
|
||
&__item { | ||
padding-left: 0; | ||
|
||
> &:hover { | ||
background-color: lighten($navigation--level-0---color-background, 5%); | ||
} | ||
} | ||
|
||
&--level-0 { | ||
background-color: $navigation--level-0---color-background; | ||
|
||
.navigation__item { | ||
padding-left: 0; | ||
} | ||
} | ||
|
||
&--level-1 { | ||
background-color: $navigation--level-1---color-background; | ||
|
||
.navigation__item { | ||
padding-left: 1rem; | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
htdocs/app/Resources/assets/scss/blocks/sidebar/sidebar.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@import 'global'; | ||
|
||
.sidebar { | ||
background-color: $sidebar---color-background; | ||
height: 100vh; | ||
color: $sidebar---color-text; | ||
|
||
&__brand { | ||
height: 3.5rem; | ||
display: flex; | ||
align-items: center; | ||
padding: .5rem .5rem 0; | ||
|
||
&-logo { | ||
width: 2rem; | ||
} | ||
|
||
&-text { | ||
padding-left: .5rem; | ||
padding-top: .75rem; | ||
font-size: 1.5rem; | ||
} | ||
} | ||
|
||
&__profile { | ||
margin-top: $sidebar---margin-top; | ||
text-align: center; | ||
|
||
&-image { | ||
width: 8rem; | ||
border-radius: 50%; | ||
} | ||
|
||
&-text { | ||
font-size: 1.5rem; | ||
} | ||
} | ||
|
||
&__navigation { | ||
margin-top: $sidebar---margin-top; | ||
font-size: 0.9rem; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@import 'global'; | ||
|
||
.site { | ||
@include make-container(); | ||
|
||
&__inner { | ||
@include make-row(); | ||
|
||
&-sidebar { | ||
@extend %fixed-left; | ||
width: $sidebar---width; | ||
} | ||
|
||
&-main { | ||
@include make-col(9); | ||
|
||
margin-left: $sidebar---width; | ||
} | ||
} | ||
} |
17 changes: 3 additions & 14 deletions
17
htdocs/app/Resources/views/_components/header/header.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
{% block headerPrepend %}{% endblock %} | ||
<header class="header"> | ||
<div class="header"> | ||
{% block header %} | ||
<div class="header__brand">Opencaching.de</div> | ||
<ul class="header__items header-items"> | ||
<li class="header-items__item">Startseite</li> | ||
<li class="header-items__item">Mein Profil</li> | ||
<li class="header-items__item">Caches</li> | ||
<li class="header-items__item">Karte</li> | ||
<li class="header-items__item">Hilfe</li> | ||
<li class="header-items__item">Teamblog</li> | ||
<li class="header-items__item">Forum</li> | ||
<li class="header-items__item">Geokrety</li> | ||
<li class="header-items__item">Api</li> | ||
</ul> | ||
|
||
{% endblock %} | ||
</header> | ||
</div> | ||
{% block headerAppend %}{% endblock %} |
17 changes: 1 addition & 16 deletions
17
htdocs/app/Resources/views/_components/navigation/navigation.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
{% block navigation %} | ||
<nav class="navigation"> | ||
<ul class="navigation__items navigation-items"> | ||
<li class="navigation-items__item"> | ||
<div class="navigation-items__item-text">Neueste Caches</div> | ||
</li> | ||
<li class="navigation-items__item"> | ||
<div class="navigation-items__item-text">Neueste Logs</div> | ||
</li> | ||
<li class="navigation-items__item"> | ||
<div class="navigation-items__item-text">Neue Wikiartikel</div> | ||
</li> | ||
<li class="navigation-items__item navigation-items__item--last"> | ||
<div class="navigation-items__item-text">Neue Features</div> | ||
</li> | ||
</ul> | ||
</nav> | ||
{{ knp_menu_render('main', {'depth': 2}, 'main') }} | ||
{% endblock %} |
13 changes: 13 additions & 0 deletions
13
htdocs/app/Resources/views/_components/sidebar/sidebar.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="sidebar"> | ||
<div class="sidebar__brand"> | ||
<img alt="" class="sidebar__brand-logo" src="{{ asset('assets/images/logo_white.png') }}"> | ||
<div class="sidebar__brand-text">Opencaching</div> | ||
</div> | ||
<div class="sidebar__profile"> | ||
<img alt="" class="sidebar__profile-image" src="{{ asset('assets/images/profile_unknown.png') }}"> | ||
<div class="sidebar__profile-text">Anonymous</div> | ||
</div> | ||
<div class="sidebar__navigation"> | ||
{% include '_components/navigation/navigation.html.twig' %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.