-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
124 lines (113 loc) · 2.8 KB
/
index.html
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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto&display=swap">
<title>Демо для has()</title>
<style>
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
padding: 50px;
display: flex;
align-items: center;
justify-content: center;
background-color: #18191C;
color: #FFFFFF;
font-family: "Roboto", sans-serif;
font-size: 18px;
}
@media (max-width: 768px) {
body {
padding: 30px;
}
}
.container {
display: flex;
align-items: start;
gap: 50px;
}
.form {
position: relative;
display: grid;
padding: 25px;
gap: 25px;
width: 450px;
background-color: #282A2E;
color: #E6E6E6;
}
.form:has(input[type='text']) {
background-image: linear-gradient(rgb(161 0 255/ 0.3), rgb(112 196 255/ 0.5));
}
input {
width: 100%;
border: 1px solid #FFFFFF;
border-radius: 6px;
padding: 10px 15px;
background-color: transparent;
color: #FFFFFF;
font-size: 18px;
font-weight: 300;
font-family: inherit;
-webkit-appearance: none;
appearance: none;
}
input:focus {
border-color: #2E9AFF;
outline: none;
}
button {
display: block;
min-width: 210px;
border: 2px solid transparent;
border-radius: 6px;
padding: 9px 15px;
color: #000000;
font-size: 18px;
font-weight: 300;
font-family: inherit;
transition: background-color 0.2s linear;
background-color: #2E9AFF;
}
button:hover {
background-color: #FFFFFF;
cursor: pointer;
transition: background-color 0.2s linear;
}
button:focus-visible {
border: 2px solid #FFFFFF;
outline: none;
}
button:focus {
border: 2px solid #FFFFFF;
outline: none;
}
</style>
</head>
<body>
<div class="container">
<form class="form">
<label for="email">Введите ваш емейл</label>
<input type="email">
<button>Подписаться</button>
</form>
<form class="form">
<label for="name">Введите ваше имя</label>
<input type="text">
<label for="email">Введите ваш емейл</label>
<input type="email">
<button>Зарегистрироваться</button>
</form>
</div>
</body>
</html>