#GFCatalog .categories-item__card-wrapper {
overflow: hidden;
box-shadow: 0 2px 6px 0 rgba(188, 191, 185, 0.5);
border-radius: 10px;
max-height: 260px;
padding: 10px 15px;
position: absolute;
width: 100%;
background-color: white;
transition: max-height 0.2s ease;
}
#GFCatalog .categories-item__card-wrapper:hover {
max-height: 1000px;
z-index: 10;
transition: max-height 1s linear, box-shadow .3s;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15), 0 3px 5px rgba(0, 0, 0, 0.1);
}
text-align
, он работает, странно ожидать чего-то большего..items
. Не меняются ссылки на цвет , который задал.
Как решить проблему ?
user agent stylesheet
, т.е. стили браузера по умолчанию. inherit
.nav a {
color: inherit;
}
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Треугольники в шапке</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
header {
position: relative;
height: 200px;
background-color: #4CAF50;
color: white;
text-align: center;
line-height: 200px;
font-size: 24px;
overflow: hidden;
}
/* Левый верхний треугольник */
header::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-style: solid;
border-width: 100px 100px 0 0;
border-color: #333 transparent transparent transparent;
}
/* Правый нижний треугольник */
header::after {
content: '';
position: absolute;
bottom: 0;
right: 0;
width: 0;
height: 0;
border-style: solid;
border-width: 0 0 100px 100px;
border-color: transparent transparent #333 transparent;
}
</style>
</head>
<body>
<header>
Шапка сайта
</header>
</body>
</html>
mix-blend-mode
, но нужно подбирать цвета и эффекты