сделай так что бы эта часть была скрыта и открывалять при наведении мыши
Browse files- index.html +1 -1
- style.css +1 -14
index.html
CHANGED
|
@@ -178,7 +178,7 @@ document.getElementById('heroScrollBtn').addEventListener('click', function() {
|
|
| 178 |
|
| 179 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto">
|
| 180 |
<!-- Ортопедическая стоматология -->
|
| 181 |
-
<div class="city-card
|
| 182 |
<span class="absolute top-4 right-4 bg-blue-600 text-white text-xs font-semibold px-3 py-1 rounded-full select-none z-10">Популярно</span>
|
| 183 |
|
| 184 |
<div class="p-6 border-b border-gray-100">
|
|
|
|
| 178 |
|
| 179 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto">
|
| 180 |
<!-- Ортопедическая стоматология -->
|
| 181 |
+
<div class="city-card bg-white rounded-xl shadow-md relative overflow-hidden group">
|
| 182 |
<span class="absolute top-4 right-4 bg-blue-600 text-white text-xs font-semibold px-3 py-1 rounded-full select-none z-10">Популярно</span>
|
| 183 |
|
| 184 |
<div class="p-6 border-b border-gray-100">
|
style.css
CHANGED
|
@@ -52,24 +52,11 @@ body {
|
|
| 52 |
#contactModal {
|
| 53 |
transition: opacity 0.3s ease;
|
| 54 |
}
|
|
|
|
| 55 |
#contactModal.hidden {
|
| 56 |
opacity: 0;
|
| 57 |
pointer-events: none;
|
| 58 |
}
|
| 59 |
-
|
| 60 |
-
.card-hover-preview {
|
| 61 |
-
transition: all 0.3s ease;
|
| 62 |
-
height: auto;
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
.card-hover-content {
|
| 66 |
-
transition: all 0.3s ease;
|
| 67 |
-
}
|
| 68 |
-
|
| 69 |
-
.city-card:hover .card-hover-content {
|
| 70 |
-
opacity: 1;
|
| 71 |
-
height: auto;
|
| 72 |
-
}
|
| 73 |
h1 {
|
| 74 |
font-size: 16px;
|
| 75 |
margin-top: 0;
|
|
|
|
| 52 |
#contactModal {
|
| 53 |
transition: opacity 0.3s ease;
|
| 54 |
}
|
| 55 |
+
|
| 56 |
#contactModal.hidden {
|
| 57 |
opacity: 0;
|
| 58 |
pointer-events: none;
|
| 59 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
h1 {
|
| 61 |
font-size: 16px;
|
| 62 |
margin-top: 0;
|