UNPKG

3.41 kBCSSView Raw
1
2
3::-moz-focus-inner {
4 border: 0;
5 padding: 0;
6}
7
8fieldset {
9 position: relative;
10}
11label {
12 cursor: pointer;
13 line-height: 32px;
14 text-overflow: ellipsis;
15 white-space: nowrap;
16}
17input, select, textarea {
18 width: 100%;
19}
20
21.btn, button,
22input,
23select,
24textarea {
25 font: inherit;
26 line-height: 30px;
27 display: block;
28 border-radius: 5px;
29 border: 1px solid;
30 padding: 0 8px;
31 margin: 0;
32}
33select {
34 padding: 0 4px;
35}
36select[multiple] {
37 height: auto;
38 padding: 4px 0;
39}
40option {
41 padding: 2px 8px;
42}
43textarea {
44 height: 64px;
45 padding: 8px;
46 line-height: 1.2;
47}
48.btn,
49button,
50input[type=button],
51input[type=submit] {
52 -webkit-appearance: none; /* remove ios styling */
53 -moz-appearance: none;
54 appearance: none;
55 position: relative;
56 padding: 0px 14px;
57 text-align: center;
58 text-decoration: none;
59 cursor: pointer;
60}
61input[type=radio],
62input[type=checkbox] {
63 border-radius: 10px;
64 width: auto;
65 height: auto;
66 display: inline;
67 margin-top: 6px;
68}
69input[type=file] {
70 cursor: pointer;
71 padding: 0;
72}
73::file-selector-button {
74 font: inherit;
75 border: 0;
76 border-right: 1px solid;
77 padding: 0 8px;
78 margin: 0 8px 0 0;
79 background: transparent;
80}
81input[type=time] {
82 padding: 0 0 0 8px;
83}
84.btn:disabled,
85input:disabled,
86option:disabled,
87textarea:disabled,
88select:disabled {
89 opacity: .6;
90 font-style: italic;
91 box-shadow: none;
92 cursor: not-allowed;
93}
94input[readonly] {
95 opacity: .6;
96 font-style: italic;
97}
98
99input.Toggle {
100 -webkit-appearance: none;
101 -moz-appearance: none;
102 appearance: none;
103 position: relative;
104 padding: 0;
105 outline: 0;
106 width: 36px;
107 height: 14px;
108 margin: 4px 0;
109 border-radius: 7px;
110}
111input.Toggle:after {
112 position: relative;
113 width: 20px;
114 height: 20px;
115 border-radius: 10px;
116}
117input.Toggle:after {
118 content: "";
119 display: block;
120 background-color: #666;
121 left: -3px;
122 top: -4px;
123 transition: all .25s cubic-bezier(0, 0, .2, 1) 0s;
124 box-shadow:
125 2px 2px 8px rgba(255, 255, 255, .3) inset,
126 0 1px 5px rgba(0, 0, 0, 1);
127}
128input.Toggle:focus:after {
129 box-shadow:
130 2px 2px 8px rgba(255, 255, 255, .3) inset,
131 0 1px 5px rgba(0, 0, 0, 1),
132 0 0 0 12px rgb(255, 255, 255, .2);
133}
134input.Toggle:checked:after {
135 background-color: #00a651;
136 left: 17px;
137}
138input.Toggle:active:after {
139 width: 30px;
140}
141input.Toggle:checked:active:after {
142 left: 7px;
143}
144
145
146
147
148
149
150
151.group {
152 padding: 0 1px;
153}
154.group > .btn {
155 display: inline-block;
156 border-radius: 0;
157 margin: 0 -1px;
158}
159.group > .btn:first-child {
160 border-top-left-radius: 5px;
161 border-bottom-left-radius: 5px;
162}
163.group > .btn:last-child {
164 border-top-right-radius: 5px;
165 border-bottom-right-radius: 5px;
166}
167
168
169/*** theme ***/
170
171:focus {
172 outline: 0;
173 box-shadow: 0 0 6px -1px inset, 0 0 6px 1px;
174}
175:focus:not(:focus-visible) {
176 box-shadow: 0;
177}
178
179.btn:active,
180button:active,
181select:active,
182textarea:active,
183input:active {
184 box-shadow: 0 0 8px 1px inset, 0 0 8px 2px;
185}
186input, textarea, select {
187 background: #eee;
188}
189.btn,
190button,
191option:checked,
192input[type=button],
193input[type=submit] {
194 background: #aaa;
195}
196::file-selector-button {
197 box-shadow: 0 0 26px -5px inset;
198}
199:focus::file-selector-button {
200}
201
202input.Toggle:after {
203 background-color: #666;
204 box-shadow:
205 2px 2px 8px rgba(255, 255, 255, .3) inset,
206 0 1px 5px rgba(0, 0, 0, 1);
207}
208input.Toggle:focus:after {
209 box-shadow:
210 2px 2px 8px rgba(255, 255, 255, .3) inset,
211 0 1px 5px rgba(0, 0, 0, 1),
212 0 0 0 12px rgb(0, 0, 0, .2);
213}
214input.Toggle:checked:after {
215 background-color: #00a651;
216}
217/**/
218
219