Skip to content

Commit

Permalink
codeforamerica#1558 fix CSS hover issue in supporters footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Cher Stewart committed Jun 14, 2016
1 parent 8692034 commit d13580f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 30 deletions.
15 changes: 0 additions & 15 deletions action.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@
.masthead-homepage:before { min-height: 600px }
}

ul.list-logos
{
width: 900px;
margin: 0 auto;
padding: 0;
}

ul.list-logos li { width: 15% }

@media (max-width: 900px)
{
ul.list-logos { width: 100% }
ul.list-logos li { width: 140px }
}

/* Collapse global header with following masthead */
.global-header
{
Expand Down
15 changes: 0 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@
.masthead-homepage:before { min-height: 600px }
}

ul.list-logos
{
width: 900px;
margin: 0 auto;
padding: 0;
}

ul.list-logos li { width: 15% }

@media (max-width: 900px)
{
ul.list-logos { width: 100% }
ul.list-logos li { width: 140px }
}

/* Collapse global header with following masthead */
.global-header
{
Expand Down
43 changes: 43 additions & 0 deletions stylesheets/staging.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@
}
}

// Media Queries - TODO: Add more sizes, switch to ems, switch to mobile-first

$screen-sizes: (
desktop-sm: 900px
);

@mixin break-point($type, $target-width: min-width, $media-type: screen) {
$screen-size: map-get($screen-sizes, $type);

@media #{$media-type} and (#{$target-width}: #{$screen-size}) {
@content;
}
}

// Colors
$color-red: #cf1b41;
$color-red-medium: #aa1c3a;
Expand Down Expand Up @@ -567,3 +581,32 @@ ul.checkmark li:before {
float: left;
width: 2em;
}

// Supporters List in Footer

ul.list-logos.muted {
width: 900px;
margin: 0 auto;
padding: 0;

li {
width: 15%;

a:link, a:visited {
border-bottom: 1px solid transparent;
}

a:hover, a:active {
border-color: transparentize($color-red, .3);
}
}

@include break-point(desktop-sm, max-width) {
width: 100%;

li {
width: 140px;
}
}
}

0 comments on commit d13580f

Please sign in to comment.