Skip to content

Commit

Permalink
TRAINING-36: Mobile first implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathryn McClintock committed May 18, 2014
1 parent 6735f20 commit 5f06fcc
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 54 deletions.
80 changes: 44 additions & 36 deletions drupal/themes/movies/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,18 @@ ul.inline {
ul.inline .comment-forbidden {
padding: 0 0.5em 0 0; }

/* line 4, ../sass/components/_header.scss */
.name-and-slogan {
width: 26.78571%;
float: left;
margin-left: 0.89286%;
margin-right: 0.89286%;
margin-left: 8.03571%;
padding: 0 30px 0 0;
text-transform: uppercase; }
@media (min-width: 481px) {
/* line 4, ../sass/components/_header.scss */
.name-and-slogan {
width: 26.78571%;
float: left;
margin-left: 0.89286%;
margin-right: 0.89286%;
margin-left: 8.03571%;
padding: 0 30px 0 0;
text-transform: uppercase; } }

/* line 10, ../sass/components/_header.scss */
/* line 12, ../sass/components/_header.scss */
.site-name {
background: #000;
font-size: 24px;
Expand All @@ -194,13 +195,13 @@ ul.inline {
line-height: 3.0rem;
text-align: right;
font-weight: normal; }
/* line 19, ../sass/components/_header.scss */
/* line 21, ../sass/components/_header.scss */
.site-name a {
background: #000;
color: #fff;
float: left;
padding: 30px; }
/* line 24, ../sass/components/_header.scss */
/* line 26, ../sass/components/_header.scss */
.site-name a:hover {
color: #fff; }

Expand Down Expand Up @@ -232,48 +233,52 @@ ul.inline {
position: relative; }
/* line 25, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review .image {
float: left;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-webkit-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
-webkit-backface-visibility: hidden;
-webkit-transform: translateZ(0) scale(1, 1); }
/* line 30, ../sass/components/_movies.scss */
@media (min-width: 769px) {
/* line 25, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review .image {
float: left; } }
/* line 32, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review .image img {
display: block; }
/* line 33, ../sass/components/_movies.scss */
/* line 35, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review .image:hover {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);
opacity: 0.85; }
/* line 37, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review .content {
bottom: 0;
left: 180px;
padding: 0 30px;
position: absolute;
right: 0;
top: 0; }
/* line 45, ../sass/components/_movies.scss */
@media (min-width: 769px) {
/* line 39, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review .content {
bottom: 0;
left: 180px;
padding: 0 30px;
position: absolute;
right: 0;
top: 0; } }
/* line 49, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review h2 {
text-transform: uppercase;
margin: 26px 0 10px; }
/* line 49, ../sass/components/_movies.scss */
/* line 53, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review .bottom {
bottom: 24px;
left: 0;
padding: 0 30px;
position: absolute;
width: 100%; }
/* line 56, ../sass/components/_movies.scss */
/* line 60, ../sass/components/_movies.scss */
.view-mode-teaser.node-movie-review .green-button {
float: right; }

/* line 61, ../sass/components/_movies.scss */
/* line 65, ../sass/components/_movies.scss */
.l-content {
padding: 0 20px; }
@media (min-width: 481px) {
/* line 61, ../sass/components/_movies.scss */
@media (min-width: 769px) {
/* line 65, ../sass/components/_movies.scss */
.l-content {
width: 55.35714%;
float: right;
Expand All @@ -284,17 +289,20 @@ ul.inline {

/* line 2, ../sass/components/_sidebar.scss */
.l-sidebar {
width: 26.78571%;
float: left;
margin-left: 0.89286%;
margin-right: 0.89286%;
margin-left: 8.03571%;
padding-right: 30px; }
/* line 7, ../sass/components/_sidebar.scss */
@media (min-width: 769px) {
/* line 2, ../sass/components/_sidebar.scss */
.l-sidebar {
width: 26.78571%;
float: left;
margin-left: 0.89286%;
margin-right: 0.89286%;
margin-left: 8.03571%; } }
/* line 8, ../sass/components/_sidebar.scss */
.l-sidebar .block {
background: #fcdd62;
padding: 30px;
margin-bottom: 30px; }
/* line 11, ../sass/components/_sidebar.scss */
/* line 12, ../sass/components/_sidebar.scss */
.l-sidebar .block h2 {
margin-top: 0; }
10 changes: 6 additions & 4 deletions drupal/themes/movies/sass/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
// Styling for the site title (regardless if it's an H1 or just a div)
// =============================================================================
.name-and-slogan {
@include span(4 of 14);
@include pre(1);
padding: 0 30px 0 0;
text-transform: uppercase;
@include breakpoint($tablet-up) {
@include span(4 of 14);
@include pre(1);
padding: 0 30px 0 0;
text-transform: uppercase;
}
}
.site-name {
background: #000;
Expand Down
25 changes: 14 additions & 11 deletions drupal/themes/movies/sass/components/_movies.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,28 @@
margin: 0 0 30px;
position: relative;
.image {
float: left;
@include transition(all 0.4s ease-in-out);
-webkit-backface-visibility: hidden;
-webkit-transform: translateZ(0) scale(1.0, 1.0);
@include breakpoint($desktop-up) {
float: left;
}
img {
display: block;
}
&:hover {
@include opacity(0.85);
}
@include opacity(0.85);
}
}
.content {
bottom: 0;
left: 180px;
padding: 0 30px;
position: absolute;
right: 0;
top: 0;
@include breakpoint($desktop-up) {
bottom: 0;
left: 180px;
padding: 0 30px;
position: absolute;
right: 0;
top: 0;
}
}
h2 {
text-transform: uppercase;
Expand All @@ -60,10 +64,9 @@

.l-content {
padding: 0 20px;
@include breakpoint($tablet-up) {
@include breakpoint($desktop-up) {
@include span(last 8 of 14);
@include post(1);
padding: 0;
}
// border: 1px solid black;
}
7 changes: 4 additions & 3 deletions drupal/themes/movies/sass/components/_sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

.l-sidebar {
@include span(first 4 of 14);
@include pre(1);
// border: 1px solid black;
@include breakpoint($desktop-up) {
@include span(first 4 of 14);
@include pre(1);
}
padding-right: 30px;
.block {
background: $yellow;
Expand Down

0 comments on commit 5f06fcc

Please sign in to comment.