Skip to content
This repository has been archived by the owner on Dec 3, 2017. It is now read-only.

Commit

Permalink
Merge pull request #626 from 18F/new-candidate-page-styles
Browse files Browse the repository at this point in the history
Styles for new Candidate pages
  • Loading branch information
Noah Manger authored Feb 10, 2017
2 parents b1285f9 + 4b782cc commit bc4b324
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 15 deletions.
64 changes: 50 additions & 14 deletions scss/components/_side-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@

.side-nav {
display: none;
}

.side-nav__item {
padding: u(1rem 0);
.side-nav__item {
padding: u(1rem 0);

&:first-child {
padding-top: 0;
}
&:first-child {
padding-top: 0;
}

&:last-child {
padding-bottom: 0;
}
&:last-child {
padding-bottom: 0;
}

&.is-disabled {
.side-nav__link {
&:hover,
&:focus {
background-color: transparent;
&.is-disabled {
.side-nav__link {
&:hover,
&:focus {
background-color: transparent;
}
}
}
}
Expand All @@ -58,6 +58,42 @@
}
}

.side-nav-alt {
display: table-cell;
width: 100%;

ul {
margin: u(0 2rem 2rem 0);
}

.side-nav__item {
border-bottom: 1px solid $gray;

&:last-child {
border-bottom: none;
}
}

.side-nav__link {
padding: u(.85rem 1rem .85rem 1.8rem);

&:hover,
&.is-active:hover {
background-color: $gray-lightest;
}

&[aria-selected=true] {
background-color: initial;
border-left: 4px solid $base;
padding-left: 1.4rem;
}
}

@include media($med) {
width: 250px;
}
}

@include media($med) {
.side-nav {
display: block;
Expand Down
13 changes: 12 additions & 1 deletion scss/layout/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@
position: relative;
}

.main__content--right-full {
@include clearfix();
position: relative;
width: 100%;

@include media($med) {
display: table-cell;
width: calc(100% - 4rem);
}
}

.content__section {
@include clearfix();
padding: u(0 0 2rem 0);
Expand Down Expand Up @@ -120,7 +131,7 @@
padding-bottom: u(2rem);
}

.u-padding-left {
.u-padding--left {
padding-left: u(2rem);
}

Expand Down

0 comments on commit bc4b324

Please sign in to comment.