Skip to content

Commit

Permalink
fix: responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Jul 24, 2017
1 parent 224c44d commit 27db236
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 19 deletions.
Empty file modified CHANGELOG.md
100755 → 100644
Empty file.
Empty file modified package.json
100755 → 100644
Empty file.
43 changes: 24 additions & 19 deletions src/app/static/about/about.component.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
@import 'styles-variables';

.background {
position: absolute;
top: 64px;
left: 0;
bottom: 140px;
right: 0;
overflow-y: auto;
padding: 100px 0;
position: relative;

h1 {
margin-top: 100px;
text-align: center;
font-size: 3em;
text-transform: uppercase;
Expand All @@ -18,6 +13,7 @@
.actions {
text-align: center;
margin: 50px;
z-index: 1;

span {
display: inline-block;
Expand All @@ -32,10 +28,12 @@

.get-started {
width: 700px;
margin: 50px auto;
margin: 50px auto 0 auto;
padding-bottom: 50px;
font-size: 0.9em;
letter-spacing: .01px;
overflow-wrap: break-word;
z-index: 1;

code {
display: inline-block;
Expand All @@ -45,27 +43,32 @@
}
}


&::before {
position: fixed;
top: 64px;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: url('../../../assets/intro.jpg') no-repeat center top;
background-size: cover;
opacity: .8;
opacity: .7;
content: "";
z-index: 0;
}
}

@media (max-width: $toolbar-breakpoint) {
.background {
top: 56px;

.gradient {
&::before {
top: 56px;
position: absolute;
top: 60%;
left: 0;
bottom: 0;
right: 0;
content: "";
z-index: 0;
}
}

}

@media (max-width: map-get($grid-breakpoints, md)) {
Expand All @@ -79,8 +82,9 @@

@media (max-width: map-get($grid-breakpoints, sm)) {
.background {
padding: 40px 0;

h1 {
margin-top: 40px;
line-height: 1em;
}

Expand All @@ -98,7 +102,8 @@

.get-started {
width: auto;
margin: 40px auto;
margin: 40px auto 0 auto;
padding-bottom: 40px;
}
}
}
10 changes: 10 additions & 0 deletions src/app/static/about/about.component.scss-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
.background {
color: mat-color($foreground, text);
background-color: mat-color($background, background);

.gradient {
&::before {
background: linear-gradient(
to bottom,
mat-color($background, background, 0) 0%,
mat-color($background, background, 1) 100%
);
}
}
}
}
}
Expand Down

0 comments on commit 27db236

Please sign in to comment.