Skip to content

Commit

Permalink
Fix contact and cv pages scaling for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-irt committed Jun 19, 2017
1 parent b3a57ef commit 51fd5e9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
19 changes: 17 additions & 2 deletions src/app/contact/contact.component.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
md-card {
float: left;
width: 420px;
margin: 10px;
margin: 20px !important;
}

md-card.full {
width: calc(100% - 68px);
width: calc(100% - 88px);
}

@media only screen and (max-width: 600px) {
md-card {
width: calc(100% - 68px) !important;
}
}

md-card-title {
Expand Down Expand Up @@ -36,6 +42,15 @@ a {
border-bottom: 1px solid rgba(0,0,0,0.2);
}

@media only screen and (max-width: 600px) {
.line {
width: calc(100% + 32px);
left: -16px;
right: -16px;
}
}


.mat-list-icon {
color: rgba(0, 0, 0, 0.54);
}
Expand Down
18 changes: 15 additions & 3 deletions src/app/cv/cv.component.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
md-card {
float: left;
width: 420px;
margin: 10px;
margin: 20px !important;
}

md-card.full {
width: calc(100% - 68px);
width: calc(100% - 88px);
}

p, li {
Expand All @@ -14,7 +14,11 @@ p, li {
font-family: 'Roboto', sans-serif;
}


@media only screen and (max-width: 600px) {
md-card {
width: calc(100% - 68px) !important;
}
}

md-chip {
font-size: 15px !important;
Expand Down Expand Up @@ -44,3 +48,11 @@ md-card-title.large {
right: -24px;
border-bottom: 1px solid rgba(0,0,0,0.2);
}

@media only screen and (max-width: 600px) {
.line {
width: calc(100% + 32px);
left: -16px;
right: -16px;
}
}

0 comments on commit 51fd5e9

Please sign in to comment.