commit
104a1d189c
@ -34,8 +34,12 @@ export default {
|
|||||||
mixins: [FormMixin],
|
mixins: [FormMixin],
|
||||||
directives: {
|
directives: {
|
||||||
sticky: {
|
sticky: {
|
||||||
inserted: el => {
|
inserted: (el, binding) => {
|
||||||
stickybits(el)
|
var customAttributes
|
||||||
|
if (binding.expression) {
|
||||||
|
customAttributes = JSON.parse(binding.expression)
|
||||||
|
}
|
||||||
|
stickybits(el, customAttributes)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -130,8 +130,12 @@ const app = new Vue({
|
|||||||
|
|
||||||
directives: {
|
directives: {
|
||||||
sticky: {
|
sticky: {
|
||||||
inserted: el => {
|
inserted: (el, binding) => {
|
||||||
stickybits(el)
|
var customAttributes
|
||||||
|
if (binding.expression) {
|
||||||
|
customAttributes = JSON.parse(binding.expression)
|
||||||
|
}
|
||||||
|
stickybits(el, customAttributes)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -19,15 +19,18 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
margin-bottom: $footer-height;
|
padding-bottom: $footer-height * 2.5;
|
||||||
|
|
||||||
.global-panel-container {
|
.global-panel-container {
|
||||||
margin: $gap;
|
margin: $gap;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
-ms-flex-negative: 1;
|
-ms-flex-negative: 1;
|
||||||
|
top: $usa-banner-height + $topbar-height;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
@include media($medium-screen) {
|
@include media($medium-screen) {
|
||||||
margin: $gap * 2;
|
margin: $gap * 2;
|
||||||
|
top: $usa-banner-height + $topbar-height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
.global-navigation {
|
.global-navigation {
|
||||||
background-color: $color-white;
|
background-color: $color-white;
|
||||||
|
height: auto;
|
||||||
|
|
||||||
.sidenav__link {
|
.sidenav__link {
|
||||||
padding-right: $gap * 2;
|
padding-right: $gap * 2;
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
.sticky-cta {
|
.sticky-cta {
|
||||||
margin-left: -$gap * 4;
|
margin-left: -$gap * 4;
|
||||||
|
margin-right: -$gap * 5;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
||||||
@include media($medium-screen) {
|
@include media($medium-screen) {
|
||||||
margin-left: -$gap * 5;
|
margin-left: -$gap * 5;
|
||||||
margin-right: -$gap * 3;
|
margin-right: -$gap * 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.js-is-sticky {
|
&.js-is-sticky {
|
||||||
width: 80.8%;
|
width: calc(100% - 25rem);
|
||||||
|
top: $usa-banner-height + $topbar-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sticky-cta-container {
|
.sticky-cta-container {
|
||||||
@ -18,7 +20,7 @@
|
|||||||
background-color: $color-gray-lightest;
|
background-color: $color-gray-lightest;
|
||||||
border-top: 1px solid $color-gray-lighter;
|
border-top: 1px solid $color-gray-lighter;
|
||||||
border-bottom: 1px solid $color-gray-lighter;
|
border-bottom: 1px solid $color-gray-lighter;
|
||||||
padding: 0 $gap * 2 0 $gap * 5;
|
padding: 0 $gap * 5 0 $gap * 5;
|
||||||
box-shadow: $box-shadow;
|
box-shadow: $box-shadow;
|
||||||
|
|
||||||
.usa-button {
|
.usa-button {
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
.topbar {
|
.topbar {
|
||||||
background-color: $color-blue-darkest;
|
background-color: $color-blue-darkest;
|
||||||
border-bottom: 1px solid $color-black;
|
border-bottom: 1px solid $color-black;
|
||||||
|
height: $topbar-height;
|
||||||
|
position: fixed;
|
||||||
|
top: $usa-banner-height;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 10;
|
||||||
|
|
||||||
&__navigation {
|
&__navigation {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: ($gap / 2) $gap;
|
padding: ($gap / 2) $gap;
|
||||||
z-index: 15;
|
z-index: 15;
|
||||||
|
position: fixed;
|
||||||
|
height: $usa-banner-height;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
|
@ -13,6 +13,9 @@ $hover-transition-time: 0.2s;
|
|||||||
$search-input-height: 4.4rem;
|
$search-input-height: 4.4rem;
|
||||||
$search-button-width: 5rem;
|
$search-button-width: 5rem;
|
||||||
$footer-height: 5rem;
|
$footer-height: 5rem;
|
||||||
|
$usa-banner-height: 2.8rem;
|
||||||
|
$sidenav-expanded-width: 25rem;
|
||||||
|
$sidenav-collapsed-width: 10rem;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* USWDS Variables
|
* USWDS Variables
|
||||||
|
@ -4,20 +4,28 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidenav-container {
|
.sidenav-container {
|
||||||
position: relative;
|
|
||||||
box-shadow: $box-shadow;
|
box-shadow: $box-shadow;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
top: $topbar-height + $usa-banner-height;
|
||||||
|
width: $sidenav-expanded-width;
|
||||||
|
|
||||||
.global-navigation.sidenav {
|
&--minimized {
|
||||||
height: 100%;
|
@extend .sidenav-container;
|
||||||
|
width: $sidenav-collapsed-width;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__fixed {
|
||||||
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidenav {
|
.sidenav {
|
||||||
|
width: $sidenav-expanded-width;
|
||||||
|
|
||||||
@include media($large-screen) {
|
@include media($large-screen) {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
width: 25rem;
|
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
@include sidenav__header;
|
@include sidenav__header;
|
||||||
|
|
||||||
@ -43,7 +51,16 @@
|
|||||||
|
|
||||||
ul {
|
ul {
|
||||||
&.sidenav__list--padded {
|
&.sidenav__list--padded {
|
||||||
margin: (4 * $gap) 0;
|
margin-top: 4 * $gap;
|
||||||
|
margin-bottom: $footer-height;
|
||||||
|
padding-bottom: $gap;
|
||||||
|
position: fixed;
|
||||||
|
overflow-y: scroll;
|
||||||
|
top: $topbar-height + $usa-banner-height + 4rem;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: $sidenav-expanded-width;
|
||||||
|
background-color: $color-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@ -182,7 +199,7 @@
|
|||||||
&--minimized {
|
&--minimized {
|
||||||
@extend .sidenav;
|
@extend .sidenav;
|
||||||
|
|
||||||
width: 10rem;
|
width: $sidenav-collapsed-width;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{% macro StickyCTA(text) -%}
|
{% macro StickyCTA(text) -%}
|
||||||
<div class="sticky-cta" v-sticky="{ stickyTop: 2 }">
|
<div class="sticky-cta" v-sticky='{ "stickyBitStickyOffset": 76 }'>
|
||||||
<div class="sticky-cta-container">
|
<div class="sticky-cta-container">
|
||||||
<div class="sticky-cta-text">
|
<div class="sticky-cta-text">
|
||||||
<h3>{{ text }}</h3>
|
<h3>{{ text }}</h3>
|
||||||
|
@ -2,9 +2,11 @@
|
|||||||
{% from "components/sidenav_item.html" import SidenavItem %}
|
{% from "components/sidenav_item.html" import SidenavItem %}
|
||||||
|
|
||||||
|
|
||||||
<div v-cloak is="SidenavToggler" class="sidenav-container">
|
<div v-cloak is="SidenavToggler" class="global-navigation">
|
||||||
<template slot-scope='props'>
|
<template slot-scope='props'>
|
||||||
<div v-bind:class="{'global-navigation': true, 'sidenav': props.isVisible, 'sidenav--minimized': !props.isVisible}">
|
<div v-bind:class="{'sidenav-container': props.isVisible, 'sidenav-container--minimized': !props.isVisible}">
|
||||||
|
<div class="sidenav-container__fixed">
|
||||||
|
<div v-bind:class="{'sidenav': props.isVisible, 'sidenav--minimized': !props.isVisible}">
|
||||||
<a href="#" v-on:click="props.toggle" class="sidenav__toggle">
|
<a href="#" v-on:click="props.toggle" class="sidenav__toggle">
|
||||||
<template v-if="props.isVisible">
|
<template v-if="props.isVisible">
|
||||||
{{ Icon('angle-double-left-solid', classes="toggle-arrows icon--blue") }}
|
{{ Icon('angle-double-left-solid', classes="toggle-arrows icon--blue") }}
|
||||||
@ -31,5 +33,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,12 +15,6 @@
|
|||||||
<div class='portfolio-header__name'>
|
<div class='portfolio-header__name'>
|
||||||
<h1>{{ portfolio.name }}</h1>
|
<h1>{{ portfolio.name }}</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class='row'>
|
|
||||||
<div class='column-left'></div>
|
|
||||||
<div class='column-right portfolio-funding__header--funded-through {{ "funded" if funding_end_date is not none and funded else "unfunded"}}'>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class='row links'>
|
<div class='row links'>
|
||||||
{% if user_can(permissions.VIEW_PORTFOLIO_FUNDING) %}
|
{% if user_can(permissions.VIEW_PORTFOLIO_FUNDING) %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user