Skip to content

Commit

Permalink
First pass at the small screen table layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Anderson committed Apr 30, 2012
1 parent d35dcd4 commit f0b71ea
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 105 deletions.
78 changes: 35 additions & 43 deletions public/stylesheets/screen.css
Expand Up @@ -70,7 +70,7 @@ body:after {
clear: both;
}

.hidden, h1 span, h2 span, .videos h6 {
.hidden, h1 span, h2 span, h6 {
display: none;
}

Expand Down Expand Up @@ -149,6 +149,7 @@ a {

header {
padding: 80px 0 50px 0;
display: none;
}

nav {
Expand Down Expand Up @@ -177,62 +178,31 @@ nav a:hover {
color: #fff;
}

.videos li {
margin-bottom: 30px;
}
.videos .thumbnail {
display: table;
position: relative;
-moz-transition: all 0.25s;
-webkit-transition: all 0.25s;
-o-transition: all 0.25s;
transition: all 0.25s;
}
.videos .thumbnail:after {
bottom: 0;
-moz-box-shadow: rgba(255, 255, 255, 0.1) 0 0 0 1px inset;
-webkit-box-shadow: rgba(255, 255, 255, 0.1) 0 0 0 1px inset;
-o-box-shadow: rgba(255, 255, 255, 0.1) 0 0 0 1px inset;
box-shadow: rgba(255, 255, 255, 0.1) 0 0 0 1px inset;
content: " ";
display: block;
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 10;
}

@media screen and (max-width: 750px) {
#about {
background: #4c489e;
}

.videos li {
display: block;
width: 102.381%;
margin: 0 -1.19%;
*zoom: 1;
border-bottom: 1px solid #000;
}
.videos li:before, .videos li:after {
content: "";
.videos a {
display: table;
width: 100%;
}
.videos li:after {
clear: both;
.videos div {
display: table-cell;
width: 25%;
}
.videos img {
display: inline;
float: left;
width: 14.286%;
margin: 0 1.19%;
display: block;
width: 100%;
}
.videos aside {
display: inline;
float: left;
width: 14.286%;
margin: 0 1.19%;
display: table-cell;
text-align: left;
vertical-align: middle;
width: 75%;
}
}
@media screen and (min-width: 769px) {
Expand All @@ -253,6 +223,28 @@ nav a:hover {
.videos li:active aside {
background-color: rgba(42, 40, 88, 0.9);
}
.videos .video {
display: table;
position: relative;
-moz-transition: all 0.25s;
-webkit-transition: all 0.25s;
-o-transition: all 0.25s;
transition: all 0.25s;
}
.videos .video:after {
bottom: 0;
-moz-box-shadow: rgba(255, 255, 255, 0.1) 0 0 0 1px inset;
-webkit-box-shadow: rgba(255, 255, 255, 0.1) 0 0 0 1px inset;
-o-box-shadow: rgba(255, 255, 255, 0.1) 0 0 0 1px inset;
box-shadow: rgba(255, 255, 255, 0.1) 0 0 0 1px inset;
content: " ";
display: block;
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 10;
}
.videos img {
-moz-box-shadow: 0px 1px 3px black;
-webkit-box-shadow: 0px 1px 3px black;
Expand Down
73 changes: 47 additions & 26 deletions stylesheets/screen.scss
Expand Up @@ -19,7 +19,7 @@ a {
text-decoration: none;
}

header { padding: 80px 0 50px 0; }
header { padding: 80px 0 50px 0; display: none; }

nav {
display: none;
Expand All @@ -37,40 +37,45 @@ nav {
}
}

.videos {
li {
margin-bottom: 30px;
}
.thumbnail {
display: table;
position: relative;
@include transition;
&:after {
bottom: 0;
@include box-shadow(rgba(255, 255, 255, .1) 0 0 0 1px inset);
content: " ";
display: block;
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 10;
}
}
h6 { @extend .hidden; }
}
h6 { @extend .hidden; }

// @media screen and (max-width: 480px) {
@media screen and (max-width: 750px) {
#about {
background: $purple;
}
.videos {
li { @include row; }
img { @include column(1); }
// background: #fff;
li {
border-bottom: 1px solid #000;
// display: table;
// width: 100%;
// @include row;
}
a {
display: table;
width: 100%;
}
div {
display: table-cell;
width: 25%;
}
img {
display: block;
width: 100%;
}
aside {
@include column(1);
display: table-cell;
text-align: left;
vertical-align: middle;
// float: left;
// height: 100%;
width: 75%;
}
hgroup {
// display: table-cell;
// height: 100%;
// vertical-align: middle;
}
}
}
Expand All @@ -91,6 +96,22 @@ nav {
aside { background-color: darken(fade_out($purple, .1), 20%); }
}
}
.video {
display: table;
position: relative;
@include transition;
&:after {
bottom: 0;
@include box-shadow(rgba(255, 255, 255, .1) 0 0 0 1px inset);
content: " ";
display: block;
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 10;
}
}
img {
@include box-shadow;
display: block;
Expand Down

0 comments on commit f0b71ea

Please sign in to comment.