Tidy topbar

This commit is contained in:
graham-dds 2019-12-27 13:27:04 -05:00
parent cdd4a4eee1
commit aba9c4facb
2 changed files with 31 additions and 76 deletions

View File

@ -12,9 +12,10 @@
flex-direction: row;
align-items: stretch;
justify-content: space-between;
}
.topbar__link {
color: $color-white;
&__link {
color: $color-white !important;
display: inline-flex;
align-items: center;
height: $topbar-height;
@ -38,62 +39,17 @@
padding-left: $gap / 2;
}
&--shield {
width: $icon-bar-width;
justify-content: center;
padding: 0;
.topbar__link-icon {
margin: 0;
}
}
&:hover {
background-color: $color-primary-darker;
color: $color-white;
}
}
.topbar__context {
&__context {
display: flex;
flex-grow: 1;
flex-direction: row;
align-items: stretch;
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;
}
}
}
}

View File

@ -8,7 +8,6 @@
{{ "navigation.topbar.jedi_cloud_link_text" | translate }}
</span>
</a>
<div class="topbar__context">
{% if g.current_user %}
<a href="{{ url_for('users.user') }}" class="topbar__link">