1
1
/* @group Input */
2
2
input [type = text ], input [type = password ], input [type = email ], input [type = search ], input [type = number ], input [type = file ], input [type = tel ], input [type = url ], select , textarea
3
3
background : var (-- background-color )
4
- border : 1px solid var (-- border-color-200 )
5
4
border-radius : 2px
5
+ border : 1px solid var (-- border-color-200 )
6
6
color : var (-- color )
7
7
display : block
8
8
font-family : "Consolas" , "Monaco" , "Menlo" , monospace
9
9
font-size : golden-font-size-large rem
10
10
margin : (golden-ratio )rem 0
11
11
outline : none
12
- padding : ( golden-ratio ) rem
12
+ padding 1.618 rem 0 1.618 rem 0.618 rem
13
13
transition : all 150ms linear
14
14
width : 100%
15
15
@@ -19,4 +19,83 @@ input[type=text], input[type=password], input[type=email], input[type=search], i
19
19
& :focus
20
20
border-color : var (-- border-color )
21
21
outline : none
22
+
23
+ .input-primary [type = email ],
24
+ .input-primary [type = file ],
25
+ .input-primary [type = number ],
26
+ .input-primary [type = password ],
27
+ .input-primary [type = search ],
28
+ .input-primary [type = tel ],
29
+ .input-primary [type = text ],
30
+ .input-primary [type = url ],
31
+ select .input-primary ,
32
+ textarea .input-primary
33
+ border-color var (-- color-primary )
34
+ background var (-- color-bg-primary )
35
+
36
+ .input-secondary [type = email ],
37
+ .input-secondary [type = file ],
38
+ .input-secondary [type = number ],
39
+ .input-secondary [type = password ],
40
+ .input-secondary [type = search ],
41
+ .input-secondary [type = tel ],
42
+ .input-secondary [type = text ],
43
+ .input-secondary [type = url ],
44
+ select .input-secondary ,
45
+ textarea .input-secondary
46
+ border-color var (-- color-secondary )
47
+ background var (-- color-bg-secondary )
48
+
49
+
50
+ .input-success [type = email ],
51
+ .input-success [type = file ],
52
+ .input-success [type = number ],
53
+ .input-success [type = password ],
54
+ .input-success [type = search ],
55
+ .input-success [type = tel ],
56
+ .input-success [type = text ],
57
+ .input-success [type = url ],
58
+ select .input-success ,
59
+ textarea .input-success
60
+ border-color var (-- color-success )
61
+ background var (-- color-bg-success )
62
+
63
+ .input-info [type = email ],
64
+ .input-info [type = file ],
65
+ .input-info [type = number ],
66
+ .input-info [type = password ],
67
+ .input-info [type = search ],
68
+ .input-info [type = tel ],
69
+ .input-info [type = text ],
70
+ .input-info [type = url ],
71
+ select .input-info ,
72
+ textarea .input-info
73
+ border-color var (-- color-info )
74
+ background var (-- color-bg-info )
75
+
76
+ .input-warning [type = email ],
77
+ .input-warning [type = file ],
78
+ .input-warning [type = number ],
79
+ .input-warning [type = password ],
80
+ .input-warning [type = search ],
81
+ .input-warning [type = tel ],
82
+ .input-warning [type = text ],
83
+ .input-warning [type = url ],
84
+ select .input-warning ,
85
+ textarea .input-warning
86
+ border-color var (-- color-warning )
87
+ background var (-- color-bg-warning )
88
+
89
+ .input-error [type = email ],
90
+ .input-error [type = file ],
91
+ .input-error [type = number ],
92
+ .input-error [type = password ],
93
+ .input-error [type = search ],
94
+ .input-error [type = tel ],
95
+ .input-error [type = text ],
96
+ .input-error [type = url ],
97
+ select .input-error ,
98
+ textarea .input-error
99
+ border-color var (-- color-error )
100
+ background var (-- color-bg-error )
22
101
/* @end */
0 commit comments