-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.module.css
More file actions
106 lines (93 loc) · 1.84 KB
/
style.module.css
File metadata and controls
106 lines (93 loc) · 1.84 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
/* Контейнер */
.container {
display: flex;
gap: 40px;
padding: 20px;
font-family: Arial, sans-serif;
}
/* Список стран */
.countries_list {
list-style: none;
padding: 0;
margin: 0;
width: 250px;
max-height: 80vh;
overflow-y: auto;
border-right: 1px solid #ddd;
}
.country_item {
padding: 10px 15px;
cursor: pointer;
transition: background 0.2s ease;
}
.country_item:hover {
background: #f0f0f0;
}
/* Блок выбранной страны */
.country_info {
flex: 1;
padding: 20px;
background: #fafafa;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.country_info span {
display: block;
margin-bottom: 8px;
font-size: 15px;
}
.country_flag {
display: block;
margin-top: 15px;
width: 200px;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* Кнопка */
.show_neighbors_btn {
margin-top: 20px;
padding: 10px 15px;
border: none;
border-radius: 6px;
background: #007bff;
color: white;
font-size: 15px;
cursor: pointer;
transition: background 0.2s ease;
}
.show_neighbors_btn:hover {
background: #0056b3;
}
/* Блок соседей */
.neighbors_list {
margin-top: 30px;
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.neighbor_card {
display: flex;
flex-direction: column;
align-items: center;
width: 120px;
padding: 10px;
border-radius: 8px;
background: white;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease;
}
.neighbor_card:hover {
transform: translateY(-4px);
}
.neighbor_flag {
width: 100px;
height: 70px;
object-fit: cover;
border-radius: 4px;
margin-bottom: 8px;
}
.neighbor_name {
font-size: 14px;
font-weight: 600;
text-align: center;
}