mirror of
https://github.com/acid-info/new-codex.storage.git
synced 2026-08-29 20:31:11 +00:00
109 lines
1.9 KiB
CSS
109 lines
1.9 KiB
CSS
.resource {
|
|
position: relative;
|
|
cursor: pointer;
|
|
|
|
@media (max-width: 800px) {
|
|
margin-bottom: 2em;
|
|
padding-bottom: 2.5em;
|
|
border-bottom: 1px solid var(--dark-90);
|
|
border-radius: 0;
|
|
}
|
|
|
|
> .resource-img {
|
|
width: 100%;
|
|
border-radius: 1.6rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: grid;
|
|
place-items: center;
|
|
--x: 0px;
|
|
--y: 0px;
|
|
background-color: black;
|
|
height: 426px;
|
|
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: radial-gradient(
|
|
100% 100% at 50% 50%,
|
|
#171825 40%,
|
|
#4f9480 50%,
|
|
#6bbf8f,
|
|
#e6c78b
|
|
);
|
|
mix-blend-mode: darken;
|
|
}
|
|
|
|
div {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
font-family: "input-mono", monospace;
|
|
font-size: 0.85rem;
|
|
word-wrap: break-word;
|
|
line-height: 1.15;
|
|
color: #fff;
|
|
opacity: 0;
|
|
-webkit-mask-image: radial-gradient(
|
|
300px circle at var(--x) var(--y),
|
|
black 20%,
|
|
rgba(0, 0, 0, 0.25),
|
|
transparent
|
|
);
|
|
mask-image: radial-gradient(
|
|
300px circle at var(--x) var(--y),
|
|
black 20%,
|
|
rgba(0, 0, 0, 0.25),
|
|
transparent
|
|
);
|
|
}
|
|
}
|
|
|
|
img {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
z-index: 1;
|
|
}
|
|
|
|
h4 {
|
|
position: absolute;
|
|
top: 10px;
|
|
color: white;
|
|
z-index: 2;
|
|
font-family: Inter;
|
|
font-size: 1.25em;
|
|
font-weight: 400;
|
|
left: 1em;
|
|
top: 1em;
|
|
margin: 0;
|
|
|
|
&:before {
|
|
content: " ";
|
|
width: 33px;
|
|
height: 5px;
|
|
background-color: var(--green-10);
|
|
display: block;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
}
|
|
|
|
p {
|
|
color: var(--grey-40);
|
|
}
|
|
|
|
p + a {
|
|
font-weight: 700;
|
|
color: var(--dark-0);
|
|
|
|
svg {
|
|
margin-left: 0.25em;
|
|
}
|
|
}
|
|
}
|