-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds Form Fieldset UI component
* feat: add html structure * feat: add css structure * feat: add styles for the fieldset.css file * feat: add styles for the fieldset__title.css file * feat:imported styles into components.css * fix:changed the html structure, names of classes and modifiers * feat: add styles for the form-fieldset__legend.css file * feat: add styles for the form-fieldset.css file * feat: add styles for form-fieldset__legend_for_impressions and form-fieldset_for_impressions modifiers * feat: add styles for form-fieldset__legend_for_achievements and form-fieldset_for_achievements modifiers * feat: add styles for form-fieldset__legend_for_contact-info and form-fieldset_for_contact-info modifiers * feat: add styles for form-fieldset_for_app-type and form-fieldset__legend_for_app-type modifiers * feat: added description to the element * fix:set the margin of the form-fieldset element to zero * fix:added centering to the form-fieldset__legend element * fix: changed legend positioning for desktop version * fix: fixed legend behavior on phone versions on the _for_app-type modifier * fix: added absolute positioning to the _achievements and _app-type modifier * fix: indentation in modifiers for the fieldset element * fix: corrected errors * fix: reverts changes to index.html * style: ensures CSS formatting follows project code style * fix: removes extra closing div tag, ensures proper indentation in components.html * docs: improves Form Fieldset UI Component description * style: updates components.css for formatting consistency, ensures visually-hidden mix imports the last --------- Co-authored-by: Irina Naumchik <[email protected]>
- Loading branch information
1 parent
dd333f3
commit 0caba6a
Showing
13 changed files
with
304 additions
and
159 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
blocks/form-fieldset/__legend/_for/form-fieldset__legend_for_achievements.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.form-fieldset__legend_for_achievements{ | ||
padding: 0 31px; | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset__legend_for_achievements{ | ||
top: 38px; | ||
padding: 0; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
blocks/form-fieldset/__legend/_for/form-fieldset__legend_for_app-type.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.form-fieldset__legend_for_app-type{ | ||
position: absolute; | ||
top: -15px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: max-content; | ||
padding: 0 25px; | ||
background-color: rgb(255, 255, 255); | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset__legend_for_app-type{ | ||
top: 40px; | ||
padding: 0; | ||
background-color: rgb(242, 242, 242); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
blocks/form-fieldset/__legend/_for/form-fieldset__legend_for_contact-info.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.form-fieldset__legend_for_contact-info{ | ||
padding: 0 31px; | ||
} | ||
@media (max-width:659px){ | ||
.form-fieldset__legend_for_contact-info{ | ||
display: none; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
blocks/form-fieldset/__legend/_for/form-fieldset__legend_for_impressions.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.form-fieldset__legend_for_impressions{ | ||
padding: 0 38px; | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset__legend_for_impressions{ | ||
top: 34px; | ||
padding: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.form-fieldset__legend{ | ||
margin: 0 auto; | ||
font-size: 14px; | ||
line-height: 30px; | ||
letter-spacing: -.15px; | ||
color: rgb(210, 40, 86); | ||
text-transform: uppercase; | ||
text-align: center; | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset__legend{ | ||
position: absolute; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
width: 100%; | ||
max-width: 240px; | ||
line-height: 18px; | ||
letter-spacing: unset; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
blocks/form-fieldset/_for/form-fieldset_for_achievements.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.form-fieldset_for_achievements{ | ||
padding: 42px 60px 60px; | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset_for_achievements{ | ||
position: relative; | ||
padding: 117px 20px 46px; | ||
background-color: rgb(242, 242, 242); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.form-fieldset_for_app-type{ | ||
position: relative; | ||
top: -3px; | ||
padding: 59px 59px 56px; | ||
} | ||
@media screen and (max-width: 1199px){ | ||
.form-fieldset_for_app-type{ | ||
padding: 59px 45px 56px; | ||
} | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset_for_app-type{ | ||
padding: 116px 20px 46px; | ||
background-color: rgb(242, 242, 242); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.form-fieldset_for_contact-info{ | ||
padding: 28px 58px 10px; | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset_for_contact-info{ | ||
padding: 32px 20px 44px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.form-fieldset_for_impressions{ | ||
padding: 29px 60px 43px; | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset_for_impressions{ | ||
position: relative; | ||
padding: 68px 20px 52px; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
blocks/form-fieldset/_for/form-fieldset_for_personal-info.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.form-fieldset_for_personal-info{ | ||
border: none; | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset_for_personal-info{ | ||
padding: 0 20px 44px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.form-fieldset{ | ||
border: 2px solid rgb(229, 229, 229); | ||
} | ||
@media screen and (max-width: 659px){ | ||
.form-fieldset{ | ||
border: none; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters