mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 18:58:25 -04:00
1050 - Fixing repsonsive issues in the header - and beyond
This commit is contained in:
@@ -26,7 +26,7 @@ i.e.
|
|||||||
.usa-logo {
|
.usa-logo {
|
||||||
font-family: family("sans");
|
font-family: family("sans");
|
||||||
margin: units(4) 0;
|
margin: units(4) 0;
|
||||||
@include at-media-max('mobile-lg') {
|
@include at-media-max('desktop') {
|
||||||
margin: units(4) 0 units(4) units(2);
|
margin: units(4) 0 units(4) units(2);
|
||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
@@ -43,6 +43,16 @@ i.e.
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@include at-media-max('desktop') {
|
||||||
|
padding: 0 units(2);
|
||||||
|
ul li {
|
||||||
|
padding-bottom: units(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.usa-nav-container {
|
||||||
|
max-width: 100%;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -343,6 +353,9 @@ td.table-empty-message {
|
|||||||
background-image: url(../img/material-icons/description.svg);
|
background-image: url(../img/material-icons/description.svg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.job-table, .dashboard-table {
|
||||||
|
overflow-x: scroll;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dashboard-table {
|
.dashboard-table {
|
||||||
|
|||||||
@@ -44,61 +44,64 @@
|
|||||||
|
|
||||||
<!-- usa header -->
|
<!-- usa header -->
|
||||||
<header class="usa-header usa-header--extended">
|
<header class="usa-header usa-header--extended">
|
||||||
<div class="usa-navbar">
|
<div class="usa-nav-container">
|
||||||
<div class="usa-logo display-flex flex-align-center" id="-logo">
|
<div class="usa-navbar">
|
||||||
{# <div class="logo-img display-flex">
|
<div class="usa-logo display-flex flex-align-center flex-justify" id="-logo">
|
||||||
<span class="usa-sr-only">US Notify Logo</span>
|
{# <div class="logo-img display-flex">
|
||||||
<image src="{{ params.assetsPath | default('/static/images') }}/us-notify-color.png" alt="US Notify logo" xlink:href=""
|
<span class="usa-sr-only">US Notify Logo</span>
|
||||||
class="usa-flag-logo margin-right-1" width="40" height="35"></image>
|
<image src="{{ params.assetsPath | default('/static/images') }}/us-notify-color.png" alt="US Notify logo" xlink:href=""
|
||||||
</div> #}
|
class="usa-flag-logo margin-right-1" width="40" height="35"></image>
|
||||||
<em class="logo-text usa-logo__text">
|
</div> #}
|
||||||
<a href="/" title="notify.gov">notify.gov</a>
|
<em class="logo-text usa-logo__text">
|
||||||
</em>
|
<a href="/" title="notify.gov">notify.gov</a>
|
||||||
</div>
|
</em>
|
||||||
{% if current_user.is_authenticated %}
|
<button type="button" class="usa-menu-btn">Menu</button>
|
||||||
<button type="button" class="usa-menu-btn">Menu</button>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<nav aria-label="Primary navigation" class="usa-nav">
|
|
||||||
<div class="usa-nav__inner">
|
|
||||||
<button type="button" class="usa-nav__close">
|
|
||||||
<img src="/static/images/usa-icons/close.svg" role="img" alt="Close" />
|
|
||||||
</button>
|
|
||||||
<ul class="usa-nav__primary usa-accordion margin-right-1">
|
|
||||||
{% for item in params.navigation %}
|
|
||||||
{% if item.href and item.text %}
|
|
||||||
<li class="usa-nav__primary-item{{ ' is-current' if item.active }}">
|
|
||||||
<a class="usa-nav__link {{ ' usa-current' if item.active }}" href="{{ item.href }}" {% for attribute, value in
|
|
||||||
item.attributes %} {{attribute}}="{{value}}" {% endfor %}>
|
|
||||||
<span>{{ item.text }}</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
<div class="usa-nav__secondary margin-bottom-2">
|
|
||||||
<ul class="usa-nav__secondary-links">
|
|
||||||
{% for item in params.secondaryNavigation %}
|
|
||||||
{% if item.href and item.text %}
|
|
||||||
<li class="usa-nav__secondary-item{{ ' is-current' if item.active }}">
|
|
||||||
<a class="usa-nav__link {{ ' usa-current' if item.active }}" href="{{ item.href }}" {% for attribute, value in
|
|
||||||
item.attributes %} {{attribute}}="{{value}}" {% endfor %}>
|
|
||||||
<span>{{ item.text }}</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
<!-- <section aria-label="Search component">
|
|
||||||
<form class="usa-search usa-search--small margin-bottom-2" role="search">
|
|
||||||
<label class="usa-sr-only" for="search-field">Search</label>
|
|
||||||
<input class="usa-input" id="search-field" type="search" name="search" />
|
|
||||||
<button class="usa-button" type="submit">
|
|
||||||
<img src="/static/images/usa-icons-bg/search--white.svg" class="usa-search__submit-icon" alt="Search" />
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
</section> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% if current_user.is_authenticated %}
|
||||||
</nav>
|
<button type="button" class="usa-menu-btn">Menu</button>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<nav aria-label="Primary navigation" class="usa-nav">
|
||||||
|
<div class="usa-nav__inner">
|
||||||
|
<button type="button" class="usa-nav__close">
|
||||||
|
<img src="/static/images/usa-icons/close.svg" role="img" alt="Close" />
|
||||||
|
</button>
|
||||||
|
<ul class="usa-nav__primary usa-accordion margin-right-1">
|
||||||
|
{% for item in params.navigation %}
|
||||||
|
{% if item.href and item.text %}
|
||||||
|
<li class="usa-nav__primary-item{{ ' is-current' if item.active }}">
|
||||||
|
<a class="usa-nav__link {{ ' usa-current' if item.active }}" href="{{ item.href }}" {% for attribute, value in
|
||||||
|
item.attributes %} {{attribute}}="{{value}}" {% endfor %}>
|
||||||
|
<span>{{ item.text }}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
<div class="usa-nav__secondary margin-bottom-2">
|
||||||
|
<ul class="usa-nav__secondary-links">
|
||||||
|
{% for item in params.secondaryNavigation %}
|
||||||
|
{% if item.href and item.text %}
|
||||||
|
<li class="usa-nav__secondary-item{{ ' is-current' if item.active }}">
|
||||||
|
<a class="usa-nav__link {{ ' usa-current' if item.active }}" href="{{ item.href }}" {% for attribute, value in
|
||||||
|
item.attributes %} {{attribute}}="{{value}}" {% endfor %}>
|
||||||
|
<span>{{ item.text }}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
<!-- <section aria-label="Search component">
|
||||||
|
<form class="usa-search usa-search--small margin-bottom-2" role="search">
|
||||||
|
<label class="usa-sr-only" for="search-field">Search</label>
|
||||||
|
<input class="usa-input" id="search-field" type="search" name="search" />
|
||||||
|
<button class="usa-button" type="submit">
|
||||||
|
<img src="/static/images/usa-icons-bg/search--white.svg" class="usa-search__submit-icon" alt="Search" />
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</section> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
Reference in New Issue
Block a user