@@ -50,8 +50,54 @@ a:visited {
50
50
color : $accent-color-alt ;
51
51
}
52
52
53
+ input [type = text ],
54
+ input [type = search ],
55
+ input [type = password ] {
56
+ padding : 9px ;
57
+ font-family : $font-family ;
58
+ font-size : 14px ;
59
+ font-weight : 600 ;
60
+ min-width : 0 ;
61
+ }
62
+
63
+ input [type = text ].mx_textinput_icon ,
64
+ input [type = search ].mx_textinput_icon {
65
+ padding-left : 36px ;
66
+ background-repeat : no-repeat ;
67
+ background-position : 10px center ;
68
+ }
69
+
70
+ // FIXME THEME - Tint by CSS rather than referencing a duplicate asset
71
+ input [type = text ].mx_textinput_icon.mx_textinput_search ,
72
+ input [type = search ].mx_textinput_icon.mx_textinput_search {
73
+ background-image : url (' $(res)/img/feather-icons/search-input.svg' );
74
+ }
75
+
76
+ // dont search UI as not all browsers support it,
77
+ // we implement it ourselves where needed instead
78
+ input [type = search ]::-webkit-search-decoration ,
79
+ input [type = search ]::-webkit-search-cancel-button ,
80
+ input [type = search ]::-webkit-search-results-button ,
81
+ input [type = search ]::-webkit-search-results-decoration {
82
+ display : none ;
83
+ }
84
+
85
+ .input [type = text ]::-webkit-input-placeholder ,
86
+ .input [type = text ]::-moz-placeholder ,
87
+ .input [type = search ]::-webkit-input-placeholder ,
88
+ .input [type = search ]::-moz-placeholder {
89
+ color : #a5aab2 ;
90
+ }
91
+
92
+ // Override Firefox's UA style so we get a consistent look across browsers
93
+ input ::placeholder ,
94
+ textarea ::placeholder {
95
+ opacity : initial ;
96
+ }
97
+
53
98
input [type = text ], input [type = password ], textarea {
54
99
background-color : transparent ;
100
+ color : $primary-fg-color ;
55
101
}
56
102
57
103
input [type = text ]:focus , input [type = password ]:focus , textarea :focus {
@@ -62,6 +108,7 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
62
108
/* Required by Firefox */
63
109
textarea {
64
110
font-family : $font-family ;
111
+ color : $primary-fg-color ;
65
112
}
66
113
67
114
/* Prevent ugly dotted highlight around selected elements in Firefox */
@@ -242,7 +289,7 @@ textarea {
242
289
font-weight : 600 ;
243
290
border : 1px solid $accent-color ! important;
244
291
color : $accent-color ;
245
- background-color : $accent-fg -color ;
292
+ background-color : $button-secondary-bg -color ;
246
293
}
247
294
248
295
.mx_Dialog button :hover , .mx_Dialog input [type = " submit" ]:hover {
0 commit comments