Skip to content

Commit

Permalink
add some css
Browse files Browse the repository at this point in the history
  • Loading branch information
Maryna-511750 committed Oct 21, 2023
1 parent c39bc06 commit 940255a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 14 deletions.
10 changes: 9 additions & 1 deletion css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,12 @@ a,
button {
font-family: var(--font-sofia);
text-align: center;
}
}

#about-me,
#contacts,
#cases {
display: flex;
flex-direction: column;
justify-content: center;
}
9 changes: 2 additions & 7 deletions css/index.about-me.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#about-me {
display: flex;
flex-direction: column;
justify-content: center;
}

#about-me h2{
margin: 20px auto;
}
Expand All @@ -25,12 +19,13 @@
}

@media (min-width: 774px) {

.about-me-content {
display: flex;
flex-direction: row;
justify-content: space-between;
}

.about-me-photo{
flex: 1;
}
Expand Down
3 changes: 3 additions & 0 deletions css/index.cases.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#cases {
padding: 18px;
}
18 changes: 13 additions & 5 deletions css/index.contacts.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#contacts {
display: flex;
flex-direction: column;
justify-content: center;
}

.contacts-form,
.contacts-text {
margin: 24px;
Expand All @@ -28,6 +24,16 @@
background-color: inherit;
}

.contacts-form input[type=text]:focus,
.contacts-form input[type=tel]:focus,
.contacts-form input[type=email]:focus,
.contacts-form textarea::after {
border: none;
border-bottom: 2px solid var(--color-warm);
background-color: inherit;
color: var(--text-color);
}

.contacts-form input[type=submit] {
background-color: inherit;
font-family: var(--font-sofia);
Expand All @@ -37,13 +43,15 @@
padding: 0.75rem;
}


@media (min-width: 774px) {

#contacts {
display: flex;
flex-direction: row;
justify-content: space-between;
}

.contacts-form{
flex: 1;
}
Expand Down
3 changes: 2 additions & 1 deletion css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
@import url(index.header.css);
@import url(index.nav.css);
@import url(index.about-me.css);
@import url(index.contacts.css);
@import url(index.contacts.css);
@import url(index.cases.css);

0 comments on commit 940255a

Please sign in to comment.