Files
labs/labWeb/lab8/css/style.css
2026-05-02 20:27:02 +05:00

182 lines
2.8 KiB
CSS

.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
padding: 1rem 0;
}
.product-card {
background: white;
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
display: flex;
flex-direction: column;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.news-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}
@media (min-width: 768px) {
.news-grid {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: auto auto;
}
.news-card-large {
grid-column: 1 / -1;
}
}
@media (min-width: 1024px) {
.news-grid {
grid-template-columns: repeat(3, 1fr);
}
.news-card-large {
grid-column: 1 / 3;
grid-row: 1 / 3;
display: flex;
flex-direction: column;
}
.news-card-large img {
height: 300px;
width: 100%;
object-fit: cover;
}
}
.news-card {
background: white;
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.news-card:hover {
transform: translateY(-3px);
}
.news-card-large {
background: white;
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: #374151;
}
input[type="radio"],
input[type="checkbox"] {
accent-color: #059669;
}
#mobile-menu {
transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
max-height: 0;
overflow: hidden;
opacity: 0;
}
#mobile-menu:not(.hidden) {
max-height: 400px;
opacity: 1;
}
#burger-btn {
transition: transform 0.2s;
}
#burger-btn:active {
transform: scale(0.95);
}
@media (max-width: 640px) {
.grid-container {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.container {
padding-left: 1rem;
padding-right: 1rem;
}
}
header {
transition: box-shadow 0.3s ease;
}
html {
scroll-behavior: smooth;
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #10b981;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #059669;
}
img {
background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
background-size: 200% 100%;
animation: 1.5s shine linear infinite;
}
@keyframes shine {
to {
background-position-x: -200%;
}
}
img[src] {
animation: none;
background: none;
}