More actions
GamingTwist (talk | contribs) Blanked the page Tag: Blanking |
GamingTwist (talk | contribs) No edit summary |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
.card-grid { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 1em; | |||
justify-content: space-between; | |||
margin: 0 auto; | |||
padding: 1em; | |||
max-width: 1200px; /* Center the grid on larger screens */ | |||
} | |||
.card { | |||
flex: 1 1 calc(33.333% - 1em); /* 3 columns with spacing */ | |||
box-sizing: border-box; | |||
border: 2px solid var(--ooui-border-color-base); /* Theme-adaptive border */ | |||
border-radius: 8px; /* Rounded corners */ | |||
padding: 1em; /* Add padding inside the card */ | |||
background-color: var(--ooui-background-color-base); /* Theme-adaptive background */ | |||
color: var(--ooui-text-color); /* Theme-adaptive text color */ | |||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */ | |||
transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */ | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; | |||
} | |||
.card:hover { | |||
transform: translateY(-5px); /* Slight lift on hover */ | |||
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */ | |||
border-color: var(--ooui-border-color-progressive); /* Theme-adaptive hover border */ | |||
} | |||
.card h3 { | |||
text-align: center; | |||
font-size: 1.5em; | |||
margin: 0.5em 0; | |||
} | |||
.card p { | |||
font-size: 1em; | |||
text-align: center; | |||
margin: 0.5em 0; | |||
} | |||
.card .card-image-container { | |||
display: flex; | |||
justify-content: center; | |||
margin-bottom: 1em; | |||
} | |||
.card .card-view-button-container { | |||
display: flex; | |||
justify-content: space-between; | |||
margin-top: auto; | |||
} | |||
.card .card-view-button-container .left { | |||
text-align: left; | |||
} | |||
.card .card-view-button-container .right { | |||
text-align: right; | |||
} | |||
.card img { | |||
display: block; | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
/* Adjust for tablets */ | |||
@media (max-width: 768px) { | |||
.card { | |||
flex: 1 1 calc(50% - 1em); /* 2 columns */ | |||
} | |||
} | |||
/* Adjust for mobile */ | |||
@media (max-width: 480px) { | |||
.card { | |||
flex: 1 1 100%; /* 1 column */ | |||
} | |||
} | |||
/* To make images responsive */ | |||
.res-img img { | |||
max-width:100%; | |||
height:auto; | |||
} | |||
.icon-minecraft, .icon-minecraft-sm { | |||
background-image: url("https://www.prismparty.net/hosted/images/items/icons-minecraft.webp"); | |||
} |
Latest revision as of 13:03, 20 December 2024
.card-grid { display: flex; flex-wrap: wrap; gap: 1em; justify-content: space-between; margin: 0 auto; padding: 1em; max-width: 1200px; /* Center the grid on larger screens */ } .card { flex: 1 1 calc(33.333% - 1em); /* 3 columns with spacing */ box-sizing: border-box; border: 2px solid var(--ooui-border-color-base); /* Theme-adaptive border */ border-radius: 8px; /* Rounded corners */ padding: 1em; /* Add padding inside the card */ background-color: var(--ooui-background-color-base); /* Theme-adaptive background */ color: var(--ooui-text-color); /* Theme-adaptive text color */ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */ transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */ display: flex; flex-direction: column; justify-content: space-between; } .card:hover { transform: translateY(-5px); /* Slight lift on hover */ box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */ border-color: var(--ooui-border-color-progressive); /* Theme-adaptive hover border */ } .card h3 { text-align: center; font-size: 1.5em; margin: 0.5em 0; } .card p { font-size: 1em; text-align: center; margin: 0.5em 0; } .card .card-image-container { display: flex; justify-content: center; margin-bottom: 1em; } .card .card-view-button-container { display: flex; justify-content: space-between; margin-top: auto; } .card .card-view-button-container .left { text-align: left; } .card .card-view-button-container .right { text-align: right; } .card img { display: block; max-width: 100%; height: auto; } /* Adjust for tablets */ @media (max-width: 768px) { .card { flex: 1 1 calc(50% - 1em); /* 2 columns */ } } /* Adjust for mobile */ @media (max-width: 480px) { .card { flex: 1 1 100%; /* 1 column */ } } /* To make images responsive */ .res-img img { max-width:100%; height:auto; } .icon-minecraft, .icon-minecraft-sm { background-image: url("https://www.prismparty.net/hosted/images/items/icons-minecraft.webp"); }