585 lines
11 KiB
CSS
585 lines
11 KiB
CSS
.grid {
|
|
list-style: none;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
height: 100%;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.card:has(.moreWrapOpen),
|
|
.card:has(.moreWrap:hover),
|
|
.card:has(.moreWrap:focus-within) {
|
|
z-index: 5;
|
|
}
|
|
|
|
.coverWrap {
|
|
position: relative;
|
|
height: 168px;
|
|
overflow: hidden;
|
|
border-radius: 5px 5px 0 0;
|
|
background: var(--color-card);
|
|
}
|
|
|
|
.cover {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.coverFallback {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #e8e8e8;
|
|
}
|
|
|
|
.status {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
z-index: 2;
|
|
font-size: 10px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
padding: 5px 9px;
|
|
border-radius: 3px;
|
|
background: rgba(246, 246, 246, 0.92);
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.statusLive {
|
|
background: #111;
|
|
color: #fff;
|
|
}
|
|
|
|
.statusReview {
|
|
background: rgba(232, 232, 232, 0.95);
|
|
}
|
|
|
|
.statusDraft,
|
|
.statusHidden,
|
|
.statusRejected {
|
|
color: var(--color-soft);
|
|
}
|
|
|
|
.body {
|
|
position: relative;
|
|
z-index: 1;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--color-card);
|
|
border-top: 0;
|
|
border-radius: 0 0 5px 5px;
|
|
padding: 0;
|
|
background: var(--color-white);
|
|
overflow: visible;
|
|
}
|
|
|
|
.body:has(.moreWrapOpen),
|
|
.body:has(.moreWrap:hover),
|
|
.body:has(.moreWrap:focus-within) {
|
|
z-index: 4;
|
|
}
|
|
|
|
.info {
|
|
position: relative;
|
|
z-index: 2;
|
|
margin: -40px 18px 0;
|
|
background: var(--color-card);
|
|
border-radius: 5px;
|
|
padding: 14px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Keep logo / name readable while the body wipe fills behind them */
|
|
.body:global(.tile-hover):hover .info .name,
|
|
.body:global(.tile-hover):focus-within .info .name {
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.body:global(.tile-hover):hover .info .tagline,
|
|
.body:global(.tile-hover):focus-within .info .tagline {
|
|
color: var(--color-soft);
|
|
}
|
|
|
|
.body:global(.tile-hover):hover .info .logoMark,
|
|
.body:global(.tile-hover):focus-within .info .logoMark {
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
.identity {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
.logo {
|
|
width: auto;
|
|
height: 52px;
|
|
max-width: min(160px, 42%);
|
|
object-fit: contain;
|
|
object-position: left center;
|
|
flex-shrink: 0;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
}
|
|
|
|
.logoMark {
|
|
width: 52px;
|
|
height: 52px;
|
|
flex-shrink: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 4px;
|
|
background: var(--color-white);
|
|
font-size: 18px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.08em;
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
.copy {
|
|
min-width: 0;
|
|
}
|
|
|
|
.name {
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.6px;
|
|
text-transform: uppercase;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.tagline {
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
color: var(--color-soft);
|
|
margin-top: 3px;
|
|
transition: color 0.25s ease;
|
|
}
|
|
|
|
.bottom {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin-top: auto;
|
|
padding: 14px 18px 16px;
|
|
border-radius: 0 0 5px 5px;
|
|
overflow: visible;
|
|
}
|
|
|
|
.bottom:has(.moreWrapOpen),
|
|
.bottom:has(.moreWrap:hover),
|
|
.bottom:has(.moreWrap:focus-within) {
|
|
z-index: 6;
|
|
}
|
|
|
|
.foot {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.slug {
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.04em;
|
|
color: var(--color-body);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.featured {
|
|
font-size: 10px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.moreItemSpecial {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
.body:global(.tile-hover):hover .moreItemSpecial,
|
|
.body:global(.tile-hover):focus-within .moreItemSpecial,
|
|
.body:hover .moreItemSpecial,
|
|
.body:focus-within .moreItemSpecial {
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
.body:global(.tile-hover):hover .moreItemSpecial:hover,
|
|
.body:global(.tile-hover):focus-within .moreItemSpecial:hover,
|
|
.body:global(.tile-hover):hover .moreItemSpecial:focus-visible,
|
|
.body:global(.tile-hover):focus-within .moreItemSpecial:focus-visible,
|
|
.moreItemSpecial:hover,
|
|
.moreItemSpecial:focus-visible {
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.specialChip {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
flex: 0 0 auto;
|
|
width: auto;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
margin-left: 10px;
|
|
padding: 0 5px;
|
|
border-radius: 999px;
|
|
background: var(--color-black);
|
|
color: var(--color-white);
|
|
font-style: normal;
|
|
font-size: 10px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.04em;
|
|
line-height: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.body:global(.tile-hover):hover .specialChip,
|
|
.body:global(.tile-hover):focus-within .specialChip,
|
|
.body:hover .specialChip,
|
|
.body:focus-within .specialChip,
|
|
.moreItemSpecial:hover .specialChip,
|
|
.moreItemSpecial:focus-visible .specialChip,
|
|
.body:global(.tile-hover):hover .moreItemSpecial:hover .specialChip,
|
|
.body:global(.tile-hover):focus-within .moreItemSpecial:hover .specialChip {
|
|
background: var(--color-black);
|
|
color: var(--color-white);
|
|
}
|
|
|
|
.controls {
|
|
margin-top: 12px;
|
|
padding-top: 14px;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
gap: 0;
|
|
border-top: 1px solid #f0f0f0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.control {
|
|
appearance: none;
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 0 8px;
|
|
font: inherit;
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--color-soft);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
line-height: 1.4;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.control + .control {
|
|
border-left: 1px solid #e4e4e4;
|
|
}
|
|
|
|
.control:hover,
|
|
.control:focus-visible {
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.body:hover .control,
|
|
.body:focus-within .control,
|
|
.body:hover .control:hover,
|
|
.body:focus-within .control:hover,
|
|
.body:hover .control:focus-visible,
|
|
.body:focus-within .control:focus-visible,
|
|
.body:hover .controlAccent,
|
|
.body:focus-within .controlAccent,
|
|
.body:hover .slug,
|
|
.body:focus-within .slug,
|
|
.body:hover .featured,
|
|
.body:focus-within .featured {
|
|
color: var(--color-white);
|
|
}
|
|
|
|
.body:hover .controls,
|
|
.body:focus-within .controls {
|
|
border-top-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.body:hover .control + .control,
|
|
.body:focus-within .control + .control {
|
|
border-left-color: rgba(255, 255, 255, 0.22);
|
|
}
|
|
|
|
.body:hover .moreWrap::before,
|
|
.body:focus-within .moreWrap::before {
|
|
background: rgba(255, 255, 255, 0.22);
|
|
}
|
|
|
|
.body:hover .moreTrigger img,
|
|
.body:focus-within .moreTrigger img {
|
|
opacity: 1;
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
.control:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.controlAccent {
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
.controlPrimary {
|
|
color: var(--color-black);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.moreWrap {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.moreWrapOpen,
|
|
.moreWrap:hover,
|
|
.moreWrap:focus-within {
|
|
z-index: 8;
|
|
}
|
|
|
|
.moreWrap::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background: #e4e4e4;
|
|
}
|
|
|
|
/* Invisible bridge so the cursor can reach the menu without losing hover */
|
|
.moreWrap::after {
|
|
content: "";
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 100%;
|
|
width: 148px;
|
|
height: 14px;
|
|
}
|
|
|
|
.moreTrigger {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
border-left: 0 !important;
|
|
}
|
|
|
|
.moreTrigger img {
|
|
width: 9px;
|
|
height: 9px;
|
|
object-fit: contain;
|
|
opacity: 0.55;
|
|
transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.moreWrap:hover .moreTrigger,
|
|
.moreWrap:focus-within .moreTrigger,
|
|
.moreWrapOpen .moreTrigger {
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.body:hover .moreWrap:hover .moreTrigger,
|
|
.body:focus-within .moreWrap:hover .moreTrigger,
|
|
.body:hover .moreWrap:focus-within .moreTrigger,
|
|
.body:focus-within .moreWrap:focus-within .moreTrigger,
|
|
.body:hover .moreWrapOpen .moreTrigger,
|
|
.body:focus-within .moreWrapOpen .moreTrigger {
|
|
color: var(--color-white);
|
|
}
|
|
|
|
.moreWrap:hover .moreTrigger img,
|
|
.moreWrap:focus-within .moreTrigger img,
|
|
.moreWrapOpen .moreTrigger img {
|
|
opacity: 1;
|
|
filter: brightness(0);
|
|
}
|
|
|
|
.body:hover .moreWrap:hover .moreTrigger img,
|
|
.body:focus-within .moreWrap:hover .moreTrigger img,
|
|
.body:hover .moreWrap:focus-within .moreTrigger img,
|
|
.body:focus-within .moreWrap:focus-within .moreTrigger img,
|
|
.body:hover .moreWrapOpen .moreTrigger img,
|
|
.body:focus-within .moreWrapOpen .moreTrigger img {
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
|
|
.moreMenu {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: calc(100% + 6px);
|
|
z-index: 20;
|
|
min-width: 200px;
|
|
padding: 6px;
|
|
border: 1px solid #ececec;
|
|
border-radius: 5px;
|
|
background: var(--color-white);
|
|
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(4px);
|
|
pointer-events: none;
|
|
transition:
|
|
opacity 0.16s ease,
|
|
transform 0.16s ease,
|
|
visibility 0.16s ease;
|
|
}
|
|
|
|
.moreWrap:hover .moreMenu,
|
|
.moreWrap:focus-within .moreMenu,
|
|
.moreWrapOpen .moreMenu {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.moreWrapOpen::after,
|
|
.moreWrap:hover::after,
|
|
.moreWrap:focus-within::after {
|
|
z-index: 7;
|
|
}
|
|
|
|
.moreItem {
|
|
appearance: none;
|
|
border: 0;
|
|
background: transparent;
|
|
display: block;
|
|
width: 100%;
|
|
text-align: left;
|
|
padding: 8px 10px;
|
|
border-radius: 3px;
|
|
font: inherit;
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: var(--color-muted);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: background 0.15s ease, color 0.15s ease;
|
|
}
|
|
|
|
/* Beat global .tile-hover a { color: white } so Website stays readable */
|
|
.body:global(.tile-hover):hover .moreItem,
|
|
.body:global(.tile-hover):focus-within .moreItem,
|
|
.body:hover .moreItem,
|
|
.body:focus-within .moreItem {
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
.moreItem:hover,
|
|
.moreItem:focus-visible,
|
|
.body:global(.tile-hover):hover .moreItem:hover,
|
|
.body:global(.tile-hover):focus-within .moreItem:hover,
|
|
.body:global(.tile-hover):hover .moreItem:focus-visible,
|
|
.body:global(.tile-hover):focus-within .moreItem:focus-visible {
|
|
background: #f6f6f6;
|
|
color: var(--color-black);
|
|
}
|
|
|
|
.moreItemDanger:hover,
|
|
.moreItemDanger:focus-visible,
|
|
.body:global(.tile-hover):hover .moreItemDanger:hover,
|
|
.body:global(.tile-hover):focus-within .moreItemDanger:hover,
|
|
.body:global(.tile-hover):hover .moreItemDanger:focus-visible,
|
|
.body:global(.tile-hover):focus-within .moreItemDanger:focus-visible {
|
|
color: #b42318;
|
|
background: #fff5f4;
|
|
}
|
|
|
|
.moreItem:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.empty {
|
|
min-height: 280px;
|
|
border-radius: 5px;
|
|
background: var(--color-white);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
padding: 48px 28px;
|
|
}
|
|
|
|
.emptyTitle {
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.28em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.emptyCopy {
|
|
margin-top: 12px;
|
|
max-width: 360px;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
line-height: 1.6;
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
@media (max-width: 1280px) {
|
|
.grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.controls {
|
|
gap: 8px 0;
|
|
}
|
|
|
|
.control {
|
|
padding: 0 8px;
|
|
}
|
|
}
|