blog_theme/assets/css/blog/navigation.css

78 lines
1.3 KiB
CSS
Raw Normal View History

2019-05-03 18:11:39 +03:00
.navigation {
2020-09-28 06:05:46 +03:00
display: flex;
margin-top: 30px;
2019-05-03 18:11:39 +03:00
}
2020-09-24 05:18:34 +03:00
2019-05-03 18:11:39 +03:00
.navigation-item {
2020-10-19 04:07:40 +03:00
position: relative;
2020-09-28 06:05:46 +03:00
display: flex;
flex-direction: column;
justify-content: center;
overflow: hidden;
padding: 0 20px;
2020-10-19 04:07:40 +03:00
min-height: 100px;
2020-09-28 06:05:46 +03:00
width: 50%;
2020-10-19 04:07:40 +03:00
border-radius: 5px;
2019-05-03 18:11:39 +03:00
}
2020-09-24 05:18:34 +03:00
.navigation-item::before {
2020-09-28 06:05:46 +03:00
content: "";
position: absolute;
top: 0;
2020-10-19 04:07:40 +03:00
right: 0;
bottom: 0;
left: 0;
2020-09-28 06:05:46 +03:00
z-index: 1;
2020-10-19 04:07:40 +03:00
background-color: var(--black-color);
opacity: 0.4;
transition: opacity 0.2s var(--animation-base);
}
2020-09-24 05:18:34 +03:00
.navigation-item:hover::before {
2020-09-28 06:05:46 +03:00
opacity: 0.6;
}
2020-09-24 05:18:34 +03:00
2019-05-04 19:02:00 +03:00
.navigation-previous {
2020-09-28 06:05:46 +03:00
margin-right: 7px;
2019-05-04 19:02:00 +03:00
}
2020-09-24 05:18:34 +03:00
2019-05-03 18:11:39 +03:00
.navigation-next {
2020-09-28 06:05:46 +03:00
align-items: flex-end;
margin-left: auto;
text-align: right;
2019-05-03 18:11:39 +03:00
}
2020-09-24 05:18:34 +03:00
2019-05-03 18:11:39 +03:00
.navigation-label {
2020-10-19 04:07:40 +03:00
position: relative;
z-index: 2;
padding-top: 25px;
2020-09-28 06:05:46 +03:00
color: var(--white-color);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
2020-10-19 04:07:40 +03:00
opacity: 0.8;
2019-05-03 18:11:39 +03:00
}
2020-09-24 05:18:34 +03:00
2019-05-03 18:11:39 +03:00
.navigation-title {
2020-09-28 06:05:46 +03:00
position: relative;
z-index: 2;
2020-10-19 04:07:40 +03:00
margin: 5px 0 0;
padding-bottom: 25px;
color: var(--white-color);
font-size: 17px;
2019-05-03 18:11:39 +03:00
}
2020-09-24 05:18:34 +03:00
2019-05-03 18:11:39 +03:00
@media (max-width: 767px) {
2020-09-28 06:05:46 +03:00
.navigation {
display: block;
}
2020-09-24 05:18:34 +03:00
2020-09-28 06:05:46 +03:00
.navigation-item {
width: 100%;
}
2020-09-24 05:18:34 +03:00
2020-09-28 06:05:46 +03:00
.navigation-next {
margin-top: 7px;
}
}