Skip to content

Commit d35873f

Browse files
committed
fix styles for form
- currently, hovering a textarea element nested under .input-title and .input-path results in a lower-contrast color and switches to a high- contrast black in active state. This commit fixes this behaviour to increase in contrast from normal state > hover state > active state. - currently, `.input-title text-area` and `input-path text-area` shares many styles. This commit groups those shared styles.
1 parent e1abffe commit d35873f

File tree

1 file changed

+16
-28
lines changed

1 file changed

+16
-28
lines changed

src/styles/form.scss

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,57 +22,45 @@
2222
display: block;
2323
}
2424

25-
.input-title {
25+
.input-title,
26+
.input-path {
2627
textarea {
2728
display:inline-block;
28-
padding: 0;
2929
margin: 5px 0 30px 0;
30+
padding: 0;
3031
width: 100%;
31-
min-height: 57px;
32-
font-size: 45px;
32+
color: #757575;
33+
word-wrap: break-word;
34+
-webkit-font-smoothing: antialiased;
3335
overflow: hidden;
3436
resize: vertical;
35-
word-wrap: break-word;
3637
background: none;
37-
-webkit-font-smoothing: antialiased;
3838
outline: none;
39-
box-shadow: none;
4039
border: 0;
4140
border-bottom: 1px solid #ccc;
41+
box-shadow: none;
4242
&:focus {
4343
color: #000 !important;
4444
border-bottom: 2px solid $border-color-focus;
4545
}
4646
&:hover {
47-
color: #888;
47+
color: #444;
4848
}
4949
}
5050
}
5151

52+
.input-title {
53+
textarea {
54+
min-height: 57px;
55+
font-size: 45px;
56+
}
57+
}
58+
5259
.input-path {
5360
textarea {
54-
display:inline-block;
55-
padding: 0;
56-
margin: 5px 0 30px 0;
57-
width: 100%;
61+
margin-top: 10px;
5862
min-height: 30px;
5963
font-size: 20px;
60-
overflow: hidden;
61-
resize: vertical;
62-
word-wrap: break-word;
63-
background: none;
64-
-webkit-font-smoothing: antialiased;
65-
outline: none;
66-
box-shadow: none;
67-
border: 0;
68-
border-bottom: 1px solid #ccc;
69-
&:focus {
70-
color: #000 !important;
71-
border-bottom: 2px solid $border-color-focus;
72-
}
73-
&:hover {
74-
color: #888;
75-
}
7664
}
7765
.tooltip {
7866
i {

0 commit comments

Comments
 (0)