-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
120 lines (115 loc) · 2.57 KB
/
Copy pathstyle.css
File metadata and controls
120 lines (115 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
:root {
--input-color: #000;
--input-border: #bfc8ad;
--input-background: #fff;
--input-placeholder: #CBD1DC;
--input-border-focus: #90b494;
--group-color: var(--input-color);
--group-border: var(--input-border);
--group-background: #bfc8ad;
--group-color-focus: #fff;
--group-border-focus: var(--input-border-focus);
--group-background-focus: #90b494;
}
.form-field {
display: block;
width: 100%;
padding: 8px 16px;
line-height: 25px;
font-size: 14px;
font-weight: 500;
font-family: inherit;
border-radius: 6px;
-webkit-appearance: none;
color: var(--input-color);
border: 1px solid var(--input-border);
background: var(--input-background);
transition: border 0.3s ease;
}
.form-field::-moz-placeholder {
color: var(--input-placeholder);
}
.form-field:-ms-input-placeholder {
color: var(--input-placeholder);
}
.form-field::placeholder {
color: var(--input-placeholder);
}
.form-field:focus {
outline: none;
border-color: var(--input-border-focus);
}
.form-group {
position: relative;
display: flex;
width: 100%;
}
.form-group > span,
.form-group .form-field {
white-space: nowrap;
display: block;
}
.form-group > span:not(:first-child):not(:last-child),
.form-group .form-field:not(:first-child):not(:last-child) {
border-radius: 0;
}
.form-group > span:first-child,
.form-group .form-field:first-child {
border-radius: 6px 0 0 6px;
}
.form-group > span:last-child,
.form-group .form-field:last-child {
border-radius: 0 6px 6px 0;
}
.form-group > span:not(:first-child),
.form-group .form-field:not(:first-child) {
margin-left: -1px;
}
.form-group .form-field {
position: relative;
z-index: 1;
flex: 1 1 auto;
width: 1%;
margin-top: 0;
margin-bottom: 0;
}
.form-group > span {
text-align: center;
padding: 8px 12px;
font-size: 14px;
line-height: 25px;
color: var(--group-color);
background: var(--group-background);
border: 1px solid var(--group-border);
transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}
.form-group:focus-within > span {
color: var(--group-color-focus);
background: var(--group-background-focus);
border-color: var(--group-border-focus);
}
html {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
* {
box-sizing: inherit;
}
*:before, *:after {
box-sizing: inherit;
}
body {
min-height: 100vh;
font-family: "Mukta Malar", Arial;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #F2EEE3;
}
body .form-group {
max-width: 360px;
}
body .form-group:not(:last-child) {
margin-bottom: 32px;
}