Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Form Fieldset UI component #21

Merged
merged 26 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
be22264
feat: add html structure
rasokolovska Mar 6, 2024
ddad635
feat: add css structure
rasokolovska Mar 6, 2024
d41e35f
feat: add styles for the fieldset.css file
rasokolovska Mar 6, 2024
b84fc1e
feat: add styles for the fieldset__title.css file
rasokolovska Mar 6, 2024
c25b60b
feat:imported styles into components.css
rasokolovska Mar 6, 2024
345c8fe
fix:changed the html structure, names of classes and modifiers
rasokolovska Mar 12, 2024
4b4d8a2
feat: add styles for the form-fieldset__legend.css file
rasokolovska Mar 12, 2024
b8b18d5
feat: add styles for the form-fieldset.css file
rasokolovska Mar 12, 2024
96b6643
feat: add styles for form-fieldset__legend_for_impressions and form-f…
rasokolovska Mar 12, 2024
37fbb72
feat: add styles for form-fieldset__legend_for_achievements and form-…
rasokolovska Mar 12, 2024
37da654
feat: add styles for form-fieldset__legend_for_contact-info and form-…
rasokolovska Mar 12, 2024
b83f300
feat: add styles for form-fieldset_for_app-type and form-fieldset__le…
rasokolovska Mar 12, 2024
c784d5e
feat: added description to the element
rasokolovska Mar 12, 2024
e06c952
fix:set the margin of the form-fieldset element to zero
rasokolovska Mar 12, 2024
b0bd4c4
fix:added centering to the form-fieldset__legend element
rasokolovska Mar 12, 2024
a487e4a
fix: changed legend positioning for desktop version
rasokolovska Mar 20, 2024
de14a90
fix: fixed legend behavior on phone versions on the _for_app-type mod…
rasokolovska Apr 5, 2024
e73d7bd
fix: added absolute positioning to the _achievements and _app-type mo…
rasokolovska Apr 9, 2024
21acb5b
fix: indentation in modifiers for the fieldset element
rasokolovska Apr 15, 2024
fc2d97b
fix: corrected errors
rasokolovska Apr 23, 2024
d140ce0
fix: reverts changes to index.html
naumch1k Apr 24, 2024
8b753d7
style: ensures CSS formatting follows project code style
naumch1k Apr 24, 2024
a6cae23
fix: removes extra closing div tag, ensures proper indentation in com…
naumch1k Apr 24, 2024
896fbb9
docs: improves Form Fieldset UI Component description
naumch1k Apr 24, 2024
c841f99
style: updates components.css for formatting consistency, ensures vis…
naumch1k Apr 24, 2024
d4b77e8
Merge branch 'main' into feature-fieldset
naumch1k Apr 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
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);
}
}
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;
}
}
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;
}
}
20 changes: 20 additions & 0 deletions blocks/form-fieldset/__legend/form-fieldset__legend.css
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 blocks/form-fieldset/_for/form-fieldset_for_achievements.css
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);
}
}
16 changes: 16 additions & 0 deletions blocks/form-fieldset/_for/form-fieldset_for_app-type.css
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);
}
}
8 changes: 8 additions & 0 deletions blocks/form-fieldset/_for/form-fieldset_for_contact-info.css
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;
}
}
9 changes: 9 additions & 0 deletions blocks/form-fieldset/_for/form-fieldset_for_impressions.css
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 blocks/form-fieldset/_for/form-fieldset_for_personal-info.css
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;
}
}
8 changes: 8 additions & 0 deletions blocks/form-fieldset/form-fieldset.css
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;
}
}
323 changes: 167 additions & 156 deletions components.html

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions pages/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,34 @@
@import url(../blocks/button/_place/button_place_form.css);
@import url(../blocks/button/_place/button_place_photo-editor.css);

/* Form Fieldset UI Component */
@import url(../blocks/form-fieldset/form-fieldset.css);
@import url(../blocks/form-fieldset/_for/form-fieldset_for_personal-info.css);
@import url(../blocks/form-fieldset/_for/form-fieldset_for_app-type.css);
@import url(../blocks/form-fieldset/_for/form-fieldset_for_contact-info.css);
@import url(../blocks/form-fieldset/_for/form-fieldset_for_achievements.css);
@import url(../blocks/form-fieldset/_for/form-fieldset_for_impressions.css);
@import url(../blocks/form-fieldset/__legend/form-fieldset__legend.css);
@import url(../blocks/form-fieldset/__legend/_for/form-fieldset__legend_for_app-type.css);
@import url(../blocks/form-fieldset/__legend/_for/form-fieldset__legend_for_contact-info.css);
@import url(../blocks/form-fieldset/__legend/_for/form-fieldset__legend_for_achievements.css);
@import url(../blocks/form-fieldset/__legend/_for/form-fieldset__legend_for_impressions.css);

/* Radio Input UI Component */
@import url(../blocks/radio-input/radio-input.css);
@import url(../blocks/radio-input/__label/radio-input__label.css);

/* Textarea UI Component */
@import url(../blocks/textarea/textarea.css);

/* Section-intro UI Component*/
@import url(../blocks/section/__intro/section__intro.css);
/* Section Intro UI Component */
@import url(../blocks/section/section.css);
@import url(../blocks/section/__intro/section__intro.css);
@import url(../blocks/section/__intro/_place/section__intro_place_form.css);
@import url(../blocks/section/__intro/_place/section__intro_place_gallery.css);
@import url(../blocks/section/__intro/_place/section__intro_place_photo-editor.css);

/* Input UI Component*/
/* Input UI Component */
@import url(../blocks/input/input.css);
@import url(../blocks/input/__label/input__label.css);
@import url(../blocks/input/__input/input__input.css);
Expand Down