Skip to content

Commit

Permalink
Use padding to adjust top size
Browse files Browse the repository at this point in the history
This works better since it'll allow the top element directly under
`tutor-booksplash-background` to be targeted.
  • Loading branch information
nathanstitt committed May 22, 2015
1 parent f4e4c20 commit 808c889
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/styles/components/course-calendar/month.less
Expand Up @@ -28,11 +28,11 @@

.list-courses {
background-color: transparent;
.tutor-booksplash-adjust-top-padding(120px);

.calendar-container{
background-color: @tutor-white;
.bootstrap-column-padding-override();
.tutor-booksplash-adjust-top-margin(120px);
padding-bottom: @tutor-card-body-padding-vertical;
}

Expand Down
@@ -1,7 +1,7 @@
.student-dashboard {
@small-height-breakpoint: 600px;
.container {
.tutor-booksplash-adjust-top-margin();
.tutor-booksplash-adjust-top-padding();
}

.right-actions-box {
Expand Down
6 changes: 3 additions & 3 deletions resources/styles/global/tutor-booksplash-background.less
Expand Up @@ -36,9 +36,9 @@
// custom backgrounds images for different types
&[data-title=Physics]:after{ .tutor-background-image("physics.jpg"); }
}
.tutor-booksplash-adjust-top-margin(@normal-top-margin: 100px, @short-top-margin: 35px){
margin-top: @normal-top-margin;
.tutor-booksplash-adjust-top-padding(@normal-top-padding: 100px, @short-top-padding: 35px){
padding-top: @normal-top-padding;
// if the screen is short, move up even though it means
// the booksplash background won't be as visible
@media screen and ( max-height: 600px ){ margin-top: @short-top-margin; }
@media screen and ( max-height: 600px ){ padding-top: @short-top-padding; }
}

0 comments on commit 808c889

Please sign in to comment.