Skip to content

Commit fe7239d

Browse files
committed
refactor(form): extract form logic into the right file (form.scss)
1 parent e228f0d commit fe7239d

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

assets/css/_exercise-gestion.scss

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -72,31 +72,6 @@ form {
7272
font-weight: bold;
7373
}
7474

75-
label[for=Archive] {
76-
align-self: flex-start;
77-
}
78-
79-
.message {
80-
margin-top: 10px;
81-
font-style: italic;
82-
font-size: .75em;
83-
84-
&.message--primary-color {
85-
color: $PRIMARY_COLOR
86-
}
87-
88-
&.message--red {
89-
color: $RED
90-
}
91-
}
92-
93-
.error-message {
94-
margin-top: 10px;
95-
96-
&.error-message--red {
97-
color: $RED;
98-
}
99-
}
10075
}
10176

10277
.validation__tag {

assets/css/form.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,30 @@ input[type=file] {
9595
font-style: italic;
9696
}
9797

98+
99+
form {
100+
.message {
101+
margin-top: 10px;
102+
font-style: italic;
103+
font-size: .75em;
104+
105+
&.message--primary-color {
106+
color: $PRIMARY_COLOR
107+
}
108+
109+
&.message--red {
110+
color: $RED
111+
}
112+
}
113+
114+
.error-message {
115+
margin-top: 10px;
116+
117+
&.error-message--red {
118+
color: $RED;
119+
}
120+
}
121+
}
98122
/**
99123
Custom theme of textarea
100124
*/

0 commit comments

Comments
 (0)