-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
128 lines (109 loc) · 1.99 KB
/
style.css
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
121
122
123
124
125
126
127
128
@keyframes errors {
from {
margin-top: -5px;
opacity: .1;
}
to {
margin-top: 10px;
opacity: 1;
}
}
html {
font-family: Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
.container {
max-width: 600px;
margin: auto;
}
.header {
max-width: 600px;
height: 80px;
margin: auto;
display: flex;
align-items: center;
}
.header__logo {
width: 150px;
}
.header__logo-sub {
margin-left: 10px;
margin-bottom: 25px;
font-size: 0.6em;
}
.form {
max-width: 600px;
margin: auto;
}
.block {
margin-top: 60px;
border-radius: 3px;
}
.cover {
display: flex;
align-items: center;
margin-top: 30px;
margin-bottom: 20px;
}
.cover__image {
width: 110px;
min-width: 110px;
height: 110px;
background-image: url(https://pictures.s3.yandex.net/frontend-developer/dom_bom/cover.jpg);
background-size: cover;
background-position: center;
border-radius: 50%;
}
.cover__heading {
margin-left: 30px;
font-size: 2.5em;
line-height: 1;
}
.form__field {
margin-bottom: 36px;
}
.form__fieldset {
border: none;
margin: 0;
padding: 0;
}
.form__error {
display: none;
position: absolute;
margin-top: 10px;
color: #df4b41;
text-align: left;
font-size: 14px;
animation: errors .1s ease-in-out;
}
.form__input {
display: block;
width: 100%;
border: none;
border-radius: 2px;
border-bottom: 2px solid #ccc;
padding: 10px 0;
box-sizing: border-box;
font-size: 16px;
}
.form__button {
width: 200px;
height: 48px;
font-weight: bold;
font-size: 14px;
border-radius: 3px;
border: none;
text-align: center;
cursor: pointer;
background-color: #ffdb4d;
color: #000;
}
.form__input:valid:not(:placeholder-shown) {
border-color: #ffdb4d;
}
.form__input:invalid:not(:placeholder-shown) {
border-color: #df4b41;
}
.form__input:invalid:not(:placeholder-shown) + .form__error {
display: block;
}