Tidy topbar
This commit is contained in:
parent
cdd4a4eee1
commit
aba9c4facb
@ -12,9 +12,10 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
.topbar__link {
|
&__link {
|
||||||
color: $color-white;
|
color: $color-white !important;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: $topbar-height;
|
height: $topbar-height;
|
||||||
@ -38,62 +39,17 @@
|
|||||||
padding-left: $gap / 2;
|
padding-left: $gap / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--shield {
|
|
||||||
width: $icon-bar-width;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
.topbar__link-icon {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $color-primary-darker;
|
background-color: $color-primary-darker;
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbar__context {
|
&__context {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
|
||||||
.topbar__portfolio-menu {
|
|
||||||
margin-right: auto;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.topbar--public {
|
|
||||||
background-color: $color-primary;
|
|
||||||
|
|
||||||
.topbar__navigation {
|
|
||||||
justify-content: flex-end;
|
|
||||||
-ms-flex-pack: justify;
|
|
||||||
}
|
|
||||||
|
|
||||||
.topbar__link {
|
|
||||||
color: $color-white;
|
|
||||||
|
|
||||||
&-icon {
|
|
||||||
@include icon-style-inverted;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--home {
|
|
||||||
padding-left: $gap;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:first-child {
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: $color-primary-darker;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
{{ "navigation.topbar.jedi_cloud_link_text" | translate }}
|
{{ "navigation.topbar.jedi_cloud_link_text" | translate }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="topbar__context">
|
<div class="topbar__context">
|
||||||
{% if g.current_user %}
|
{% if g.current_user %}
|
||||||
<a href="{{ url_for('users.user') }}" class="topbar__link">
|
<a href="{{ url_for('users.user') }}" class="topbar__link">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user