degmods.com/src/styles/cardMod.css

125 lines
2.2 KiB
CSS
Raw Normal View History

2024-07-11 11:19:12 +00:00
.cardModMain {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
2024-08-06 10:46:38 +00:00
background: rgba(255, 255, 255, 0.05);
2024-07-11 11:19:12 +00:00
border-radius: 10px;
overflow: hidden;
background: linear-gradient(to top right, #262626, #292929, #262626);
}
.cMMPicture {
position: relative;
width: 100%;
padding-top: 56.25%;
2024-08-06 10:46:38 +00:00
background: rgba(0, 0, 0, 0.1);
2024-07-11 11:19:12 +00:00
}
.cMMBody {
padding: 15px;
2024-08-06 10:46:38 +00:00
color: rgba(255, 255, 255, 0.5);
2024-07-11 11:19:12 +00:00
display: flex;
flex-direction: column;
grid-gap: 15px;
flex-grow: 1;
2024-08-19 08:32:40 +00:00
justify-content: space-between;
2024-07-11 11:19:12 +00:00
}
.cMMFoot {
width: 100%;
padding: 10px 25px;
2024-08-06 10:46:38 +00:00
border-top: solid 1px rgba(255, 255, 255, 0.05);
2024-07-11 11:19:12 +00:00
font-size: 14px;
display: flex;
flex-direction: row;
justify-content: start;
align-items: center;
}
.cardModMainWrapperLink {
transition: ease 0.4s;
text-decoration: unset;
color: unset;
transform: scale(1);
border-radius: 12px;
padding: 2px;
2024-08-06 10:46:38 +00:00
box-shadow: 0 0 8px 0 rgb(0, 0, 0, 0.05);
cursor: pointer;
2024-07-11 11:19:12 +00:00
}
.cardModMainWrapperLink:hover {
transition: ease 0.4s;
text-decoration: unset;
color: unset;
transform: scale(1.01);
}
.cardModMainWrapperLink:active {
transition: ease 0.1s;
transform: scale(1);
}
.cardModMainWrapperLink::before {
transition: ease 0.4s;
2024-08-06 10:46:38 +00:00
background: linear-gradient(
to top,
#8000ff 0%,
#232323 50%,
rgba(255, 255, 255, 0) 100%
);
2024-07-11 11:19:12 +00:00
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0;
z-index: -1;
border-radius: 12px;
}
.cardModMainWrapperLink:hover::before {
transition: 0.4s ease;
opacity: 1;
}
.cMMBodyTitle {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 2;
font-size: 20px;
line-height: 1.25;
2024-08-06 10:46:38 +00:00
color: rgba(255, 255, 255, 0.75);
2024-07-11 11:19:12 +00:00
font-weight: bold;
}
.cMMBodyText {
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
-webkit-line-clamp: 3;
2024-08-06 10:46:38 +00:00
color: rgba(255, 255, 255, 0.5);
2024-07-11 11:19:12 +00:00
font-size: 15px;
line-height: 1.5;
}
.cMMFootReactions {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
flex-wrap: wrap;
grid-gap: 25px;
}
.cMMFootReactionsElement {
display: flex;
flex-direction: row;
grid-gap: 5px;
justify-content: center;
align-items: center;
2024-08-06 10:46:38 +00:00
color: rgba(255, 255, 255, 0.25);
2024-07-11 11:19:12 +00:00
}