forked from urfu-2015/verstka-tasks-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
116 lines (116 loc) · 1.99 KB
/
index.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
body {
width: 100%;
}
h1 {
text-align: center;
}
section {
margin-left: 5%;
}
/* Для таблицы */
img {
height: 50px;
}
.table {
display: table;
width: 90%;
margin-top: 2%;
border-spacing: 0;
overflow: hidden;
border: 1px solid yellow;
}
.tr {
display: table-row;
}
.td {
display: table-cell;
width: 10%;
padding: 5px;
text-align: center;
vertical-align: middle;
position: relative;
}
.tr:hover {
padding: 20px;
background-color: #ffe066;
}
.tr:nth-child(odd) .td:first-child::before {
content: "";
position: absolute;
background-color: #fff5c2;
top: 0;
left: -5000px;
width: 10000px;
height: 100%;
z-index: -10;
}
.td:hover::after {
content: "";
position: absolute;
background-color: #ffe066;
left: 0;
top: -5000px;
height: 10000px;
width: 100%;
z-index: -1;
}
.tr:first-child {
background-color: #ffe066;
}
/* Для формы */
form {
width:40%;
margin: auto;
margin-top: 50px;
margin-bottom: 50px;
}
fieldset {
background-color: #fff5c2;
}
legend {
font-weight: bold;
}
input {
margin: 2% auto;
}
button {
display: none;
}
form > fieldset > label {
display: block;
}
input[type="email"]:valid + label + input[type="tel"]:valid + button{
display:block;
}
/* Фильтры */
input {
margin-left: 10px;
margin-right: 10px;
}
#depar:checked ~ div > div.arr {
display: none;
}
#depar:checked ~ div > div.dep {
background-color: white;
}
#arriv:checked ~ div > div.dep {
display: none;
}
#arriv:checked ~ div > div.arr {
background-color: white;
}
#C:not(:checked) ~ div > div.C {
display: none;
}
#D:not(:checked) ~ div > div.D {
display: none;
}
#E:not(:checked) ~ div > div.E {
display: none;
}
#F:not(:checked) ~ div > div.F {
display: none;
}
input[type="checkbox"]:not(:checked) ~ div > div.tr:not(:first-child) {
background-color: white;
}