Skip to content

Instantly share code, notes, and snippets.

@twocathouse
Created December 3, 2014 13:56
Show Gist options
  • Save twocathouse/7824c794030a2cd3578b to your computer and use it in GitHub Desktop.
Save twocathouse/7824c794030a2cd3578b to your computer and use it in GitHub Desktop.
$expanded-grid-breakpoint: new-breakpoint(max-width 1250px);
$collapsed-grid-breakpoint: new-breakpoint(max-width 800px);
#page-header .page-header-content {
@include media($mobile) {
margin: 0;
padding: em(150) em(20) em(100);
text-align: left;
width: 100%;
}
}
#photo-grid {
background-color: rgba($thoughtbot-red, 0.65);
position: relative;
@include media($mobile) {
display: none;
}
}
.photo-list {
line-height: 0;
}
.person {
cursor: pointer;
display: inline-block;
position: relative;
overflow: hidden;
height: 220px;
width: 10%;
@include media($collapsed-grid-breakpoint) {
width: 16.66%;
}
span {
@include position(absolute, 0px 0px 0px 0px);
@include size(100%);
background-color: rgba($thoughtbot-red, 0.65);
content: '';
display: block;
opacity: 1.0;
}
&.selected span {
opacity: 0;
}
img {
@include size(100% auto);
}
}
.person-info {
@include position(absolute, 100% null null null);
background-color: rgba(0,0,0,0.7);
color: white;
display: none;
margin-top: auto;
margin-bottom: auto;
overflow: hidden;
padding: 30px;
width: 40%;
@include media($collapsed-grid-breakpoint) {
width: 30%;
}
@include media($expanded-grid-breakpoint) {
width: 50%;
}
> div {
padding: 30px;
}
a {
color: lighten($thoughtbot-red, 20%)
}
h3 {
color: $thoughtbot-red;
text-transform: uppercase;
}
h4 {
margin-bottom: $base-line-height / 2;
}
p {
clear: both;
margin-top: 10px;
}
}
#team-photo {
background-image: image-url("team.jpg");
background-size: cover;
width: 100%;
height: em(300);
display: none;
@include media($mobile) {
display: block;
}
}
#hire-us {
overflow: hidden;
background-color: white;
padding: em(100) 0;
position: relative;
@include media($mobile) {
.big-button {
margin-top: 0;
margin-bottom: 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment