File size: 1,886 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | @import "@wordpress/base-styles/breakpoints";
.readymade-templates {
display: flex;
gap: 24px;
overflow: auto;
scroll-snap-type: x proximity;
scroll-padding-left: 24px;
padding-left: calc((100vw - 1440px) / 2 + 102px);
padding-right: 24px;
@media (max-width: $break-wide) {
padding-left: 24px;
padding-right: 24px;
}
@media (max-width: $break-medium) {
padding-top: 0;
padding-bottom: 0;
}
/* Hide scrollbar */
scrollbar-width: none; // Chrome, Edge, Firefox
&::-webkit-scrollbar {
display: none; // Safari
}
}
a.readymade-template {
color: var(--studio-white);
}
.readymade-template__preview {
--readymade-template-width: 390px;
width: var(--readymade-template-width);
height: calc(var(--readymade-template-width) * 1.4);
background-color: #fff;
margin-bottom: 24px;
overflow: hidden;
border-radius: 2px;
pointer-events: none;
@media (max-width: $break-huge) {
--readymade-template-width: calc(100vw / 3 - 90px);
}
@media (max-width: $break-wide) {
--readymade-template-width: calc(100vw / 3 - 50px);
}
@media (max-width: $break-medium) {
--readymade-template-width: calc(100vw / 2 - 72px);
}
@media (max-width: $break-small) {
--readymade-template-width: calc(100vw - 170px);
}
}
.readymade-template__title {
font-size: 1.125rem; /* stylelint-disable-line scales/font-sizes */
line-height: 26px;
}
.readymade-templates-controls {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 16px;
button {
width: 48px;
height: 48px;
background: var(--studio-gray-70);
fill: var(--studio-white);
border: none;
align-items: center;
border-radius: 50%;
display: flex;
justify-content: center;
cursor: pointer;
transition: background 0.3s ease-in-out;
&:hover {
background: var(--studio-gray-50);
}
&:disabled {
pointer-events: none;
background: var(--studio-gray-80);
}
}
}
|