Template:Main Page/Sandbox/styles.css
Template page
More actions
/* Main Container */
.home-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 12px;
margin: 1em 0;
}
/* Section Headers */
.home-header {
font-size: 1.5em;
font-weight: bold;
margin: 1.5em 0 0.5em;
padding-bottom: 5px;
border-bottom: 1px solid #333;
display: flex;
align-items: center;
}
.home-header-icon { margin-right: 10px; }
/* The Card */
.home-card {
position: relative; /* Essential for the "full click" trick */
background: #161b22;
border: 1px solid #30363d;
border-radius: 4px;
padding: 20px 10px;
text-align: center;
transition: background 0.2s, transform 0.1s;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.home-card:hover {
background: #21262d;
transform: translateY(-2px);
border-color: #8b949e;
}
/* Icon styling */
.home-card__icon {
font-size: 2.5em;
margin-bottom: 10px;
line-height: 1;
}
/* Link styling - The "Full Click" Trick */
.home-card__label a {
color: #c9d1d9 !important;
font-weight: bold;
text-decoration: none !important;
}
/* This makes the link cover the entire .home-card area */
.home-card__label a::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
}
/* Colored Accents */
.home-card--red { border-top: 3px solid #f85149; }
.home-card--orange { border-top: 3px solid #f0883e; }
.home-card--green { border-top: 3px solid #3fb950; }
.home-card--blue { border-top: 3px solid #58a6ff; }