Skip to content

Commit

Permalink
fix: responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed May 28, 2017
1 parent fda5089 commit 8e45e71
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
44 changes: 27 additions & 17 deletions src/app/static/about/about.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
right: 0;
overflow-y: auto;

.container {
h1 {
margin-top: 100px;
text-align: center;
font-size: 3em;
text-transform: uppercase;
}

.actions {
Expand All @@ -31,14 +34,21 @@
}
}

h1 {
text-align: center;
font-size: 3em;
text-transform: uppercase;
&::before {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: url('../../../assets/intro.jpg') no-repeat center top;
background-size: cover;
opacity: .6;
content: "";
z-index: 0;
}
}

@media (max-width: map-get($grid-breakpoints, toolbar)) {
@media (max-width: $toolbar-breakpoint) {
.background {
top: 56px;
}
Expand All @@ -52,15 +62,15 @@
}
}

.background::before {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: url('../../../assets/intro.jpg') no-repeat center top;
background-size: cover;
opacity: .6;
content: "";
z-index: 0;
@media (max-width: map-get($grid-breakpoints, sm)) {
.background {
h1 {
margin-top: 40px;
line-height: 1em;
}
.get-started {
width: auto;
margin: 40px auto 0 auto;
}
}
}
3 changes: 0 additions & 3 deletions src/app/static/about/about.component.scss-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@
background-color: mat-color($foreground, text);
}

.get-started {
//border: 1px solid mat-color($background, background);
}
}

3 changes: 2 additions & 1 deletion src/styles-variables.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
$toolbar-breakpoint: 600px;

$grid-breakpoints: (
xs: 0,
sm: 576px,
toolbar: 600px,
md: 768px,
lg: 992px,
xl: 1200px
Expand Down

0 comments on commit 8e45e71

Please sign in to comment.