Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Commit 96ec0c7

Browse files
Merge branch 'hotfix/#3_Labels_styled_too_generic_+_label_color'
2 parents 922438a + adf3f10 commit 96ec0c7

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "castlecss-forms",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Easy to use forms for CastleCSS",
55
"main": "index.js",
66
"scripts": {

sass/component/default.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
list-style-type: none;
1010
padding: 0;
1111

12-
label:not(.input-control) {
12+
+ label:not(.input-control) {
1313
margin-bottom: $margin-default/2;
1414
display: block;
1515
}

sass/component/label.scss

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,7 @@
1515
}
1616
}
1717

18-
label[for] {
19-
transition: $input-transition;
20-
position: absolute;
21-
color: $color02;
22-
left: $margin-default;
23-
top: 50%;
24-
transform: translateY(-50%);
25-
font-weight: normal;
26-
margin: 0;
27-
z-index: 2;
28-
}
18+
2919

3020
.input-textarea label[for] {
3121
top: $margin-default/2;
@@ -39,6 +29,22 @@
3929
}
4030
}
4131

32+
.form-field {
33+
34+
label[for] {
35+
transition: $input-transition;
36+
position: absolute;
37+
color: $input-label-color;
38+
left: $margin-default;
39+
top: 50%;
40+
transform: translateY(-50%);
41+
font-weight: normal;
42+
margin: 0;
43+
z-index: 2;
44+
}
45+
46+
}
47+
4248
.label-bottom, .label-top {
4349
input,
4450
textarea {

0 commit comments

Comments
 (0)