Skip to content

Commit

Permalink
About section adaptive complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Dual-Ice committed May 7, 2020
1 parent 986c0b9 commit 48cb30c
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/about.pug
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ section.about(id="about")
.user__info
-
var info = [
["Проживаю", "Петропавловск-Камчатский"],
["Возраст", "27 лет"],
["Родился", "8 ноября 1992"]
["Проживаю:", "Петропавловск-Камчатский"],
["Возраст:", "27 лет"],
["Родился:", "8 ноября 1992"]
];
table.user__data
tbody.user__data-body
Expand Down
55 changes: 55 additions & 0 deletions src/styles/blocks/about.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,58 @@
justify-content: center;
padding-top: 100px;
padding-bottom: 200px;

@include phonesLg {
padding-bottom: 100px;
}
}

.about__content {
display: flex;
justify-content: space-between;
max-width: 1008px;

@include tablets {
max-width: 690px;
font-size: 14px;
}

@include phonesLg {
max-width: initial;
flex-direction: column;
justify-content: initial;
align-items: center;
}
}

.about__user {
width: 40%;

@include phonesLg {
width: 100%;
margin-bottom: 50px;
}
}

.about__text {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 54%;

@include phonesLg {
width: 80%;
}

@include phones {
width: initial;
}
}

.about__text-main {
@include phonesLg {
margin-bottom: 50px;;
}
}

.about__intro,
Expand All @@ -35,12 +70,27 @@

.about__intro {
margin-bottom: 30px;

@include phones {
margin-bottom: 20px;;
}
}

.about__title {
font-weight: 700;
font-size: 36px;
margin-bottom: 38px;

@include tablets {
font-size: 30px;
margin-bottom: 50px;
}
}

.about__desc {
@include phones {
line-height: 30px;
}
}

.about__ps {
Expand All @@ -58,6 +108,11 @@
left: -50px;
line-height: 1;
}

@include phones {
margin-bottom: 0;
line-height: 30px;
}
}


11 changes: 10 additions & 1 deletion src/styles/blocks/user.pcss
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.user {
&--horizontal {
@include phonesLg {
display: flex;
flex-direction: column;
align-items: center;
}

&--horizontal {
display: flex;
align-items: center;

Expand Down Expand Up @@ -30,6 +35,10 @@
justify-content: center;
margin-bottom: 80px;

@include phonesLg {
margin-bottom: 50px;
}

@include phones {
margin-bottom: 30px;
}
Expand Down

0 comments on commit 48cb30c

Please sign in to comment.