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,88 +12,44 @@
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;
padding: 0 ($gap * 2); padding: 0 ($gap * 2);
text-decoration: none;
&-label {
@include h5;
text-decoration: underline;
padding-left: $gap;
text-decoration: none; text-decoration: none;
&-label {
@include h5;
text-decoration: underline;
padding-left: $gap;
text-decoration: none;
}
&-icon {
margin-left: $gap;
@include icon-color($color-white);
}
&--home {
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 { &-icon {
display: flex; margin-left: $gap;
flex-grow: 1;
flex-direction: row;
align-items: stretch;
justify-content: flex-end;
.topbar__portfolio-menu { @include icon-color($color-white);
margin-right: auto; }
position: relative;
} &--home {
padding-left: $gap / 2;
}
&:hover {
background-color: $color-primary-darker;
color: $color-white;
} }
} }
&.topbar--public { &__context {
background-color: $color-primary; display: flex;
flex-grow: 1;
.topbar__navigation { flex-direction: row;
justify-content: flex-end; align-items: stretch;
-ms-flex-pack: justify; justify-content: flex-end;
}
.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 }} {{ "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">