task 17081 | сделал Блог (Хабовая страница)
This commit is contained in:
1 parent
07a4f5b19d
commit
e833705e6d
8 files changed
+517
-8
No files matched your search
@@ -7060,6 +7060,17 @@ h4 {
|
||||
|
||||
display: flex;
|
||||
}
|
||||
.blog-header__action .header-buttons__download-btn{
|
||||
height: 62px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.blog-header__action .header-buttons__download-btn{
|
||||
height: 44px;
|
||||
min-width: 140px;
|
||||
}
|
||||
}
|
||||
/* Article intro adapted from the supplied layout. */
|
||||
.article-intro,
|
||||
.article-intro * {
|
||||
@@ -8533,3 +8544,244 @@ h4 {
|
||||
|
||||
|
||||
}
|
||||
|
||||
.work-directions {
|
||||
--directions-background: #f5f5f9;
|
||||
--directions-heading: #172d38;
|
||||
--directions-accent: #ae001b;
|
||||
width: 100%;
|
||||
margin: 40px 0 40px;
|
||||
color: var(--directions-heading);
|
||||
font-family: "Onest", sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.work-directions,
|
||||
.work-directions *,
|
||||
.work-directions *::before,
|
||||
.work-directions *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.work-directions__grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 413fr) minmax(0, 414fr) minmax(0, 413fr);
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.work-directions__card {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
aspect-ratio: 413 / 290;
|
||||
min-height: 200px;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
padding: 32px 16px;
|
||||
border-radius: 20px;
|
||||
background: var(--directions-background);
|
||||
color: inherit;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
.work-directions__card--taxi {
|
||||
aspect-ratio: 414 / 290;
|
||||
}
|
||||
|
||||
.work-directions__label {
|
||||
position: relative;
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
line-height: 1.1;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.work-directions__vehicle {
|
||||
position: absolute;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
background: var(--directions-background);
|
||||
transform: translateX(-50%);
|
||||
transition: transform 240ms ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.work-directions__vehicle img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
mix-blend-mode: darken;
|
||||
}
|
||||
|
||||
.work-directions__vehicle--scooter {
|
||||
top: 20%;
|
||||
left: calc(50% + 0.5px);
|
||||
width: 55.205811%;
|
||||
aspect-ratio: 228 / 152;
|
||||
}
|
||||
|
||||
|
||||
.work-directions__vehicle--taxi {
|
||||
top: 20%;
|
||||
left: calc(50% - 1px);
|
||||
width: 83.091787%;
|
||||
aspect-ratio: 344 / 151;
|
||||
}
|
||||
|
||||
|
||||
.work-directions__vehicle--van {
|
||||
top: 13.448276%;
|
||||
left: calc(50% - 6.5px);
|
||||
width: 87.651332%;
|
||||
aspect-ratio: 362 / 174;
|
||||
}
|
||||
|
||||
|
||||
.work-directions__arrow {
|
||||
--arrow-scale: 1;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 24px;
|
||||
right: 24px;
|
||||
display: block;
|
||||
width: 51px;
|
||||
height: 51px;
|
||||
}
|
||||
|
||||
.work-directions__arrow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
color: var(--directions-accent);
|
||||
transition: color 180ms ease, background-color 180ms ease;
|
||||
}
|
||||
.work-directions__arrow svg {
|
||||
display: block;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
}
|
||||
.work-directions__card:is(:hover, :focus-visible, :active, .is-active) .work-directions__arrow {
|
||||
background: var(--directions-accent);
|
||||
color: #fff;
|
||||
}
|
||||
.work-directions__card.is-active {
|
||||
box-shadow: inset 0 0 0 1px var(--directions-accent);
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.work-directions__card:hover {
|
||||
box-shadow: inset 0 0 0 1px rgb(174 0 27 / 20%);
|
||||
}
|
||||
|
||||
|
||||
.work-directions__card:hover .work-directions__vehicle {
|
||||
transform: translateX(-50%) scale(1.04);
|
||||
}
|
||||
}
|
||||
|
||||
.work-directions__card:active {
|
||||
box-shadow: inset 0 0 0 1px rgb(174 0 27 / 20%);
|
||||
}
|
||||
|
||||
.work-directions__card:focus-visible {
|
||||
outline: 2px solid var(--directions-accent);
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
|
||||
.work-directions__card:is(:active, :focus-visible) .work-directions__vehicle {
|
||||
transform: translateX(-50%) scale(1.04);
|
||||
}
|
||||
|
||||
@media (min-width: 768px) and (max-width: 1199px) {
|
||||
|
||||
.work-directions__grid {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.work-directions__card {
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
|
||||
.work-directions__label {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.work-directions__arrow {
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.work-directions__vehicle,
|
||||
.work-directions__arrow {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767.98px) {
|
||||
.work-directions {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.work-directions__grid {
|
||||
grid-template-columns: minmax(0, 163fr) minmax(0, 162fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.work-directions__cargo {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.work-directions__card {
|
||||
height: 155px;
|
||||
min-height: 0;
|
||||
aspect-ratio: auto;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.work-directions__label {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.work-directions__vehicle--scooter {
|
||||
top: 36px;
|
||||
left: calc(50% + 0.5px);
|
||||
width: min(106px, 70%);
|
||||
aspect-ratio: 106 / 70;
|
||||
}
|
||||
|
||||
.work-directions__vehicle--taxi {
|
||||
top: 39px;
|
||||
left: 50%;
|
||||
width: min(138px, 85.185185%);
|
||||
aspect-ratio: 138 / 61;
|
||||
}
|
||||
|
||||
.work-directions__vehicle--van {
|
||||
top: 22px;
|
||||
left: 50%;
|
||||
width: min(181px, 80%);
|
||||
aspect-ratio: 181 / 87;
|
||||
}
|
||||
|
||||
.work-directions__arrow {
|
||||
--arrow-scale: 0.5882352941;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user