Dough Git

clove/web

src/lib/styles/stack.css

back to src/lib/styles

/* src/lib/styles/stack.css
 * DASL-1.2 — (c) Clove Twilight
 */

/* Tech stack */

.stack {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-block: 2rem;
}

.stack-heading {
	margin: 1.25rem 0 0;
	color: var(--accent);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.stack-heading:first-child {
	margin-top: 0;
}

/* Tools */

.stack-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stack-tool {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	align-items: center;
	padding: 1rem 0.5rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--raised);
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

/* --brand is the tool's Simple Icons colour */
.stack-tool:hover {
	border-color: color-mix(in srgb, var(--brand) 45%, transparent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
	color: var(--text);
	transform: translateY(-2px);
}

.stack-icon {
	width: 2rem;
	height: 2rem;
	color: var(--brand);
}

/* Contribution heatmap, coloured like the trans flag */

.heatmap {
	--hm-cell: 13px;
	--hm-gap: 3px;
	--hm-weekday-w: 30px;
	--hm-0: rgb(255 255 255 / 6%);
	--hm-1: #5bcefa;
	--hm-2: #f5a9b8;
	--hm-3: #fbd3dc;
	--hm-4: #fff;

	padding: 1.25rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--raised);
}

.hm-count {
	margin: 0 0 0.9rem;
	color: var(--muted);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.hm-scroll {
	padding-bottom: 0.25rem;
	overflow-x: auto;
	scrollbar-color: rgb(235 69 158 / 40%) transparent;
	scrollbar-width: thin;
}

.hm-months {
	display: grid;
	grid-auto-columns: var(--hm-cell);
	grid-auto-flow: column;
	gap: var(--hm-gap);
	height: 14px;
	margin: 0 0 6px calc(var(--hm-weekday-w) + var(--hm-gap));
	color: var(--muted);
	font-size: 11px;
	line-height: 14px;
}

.hm-months span {
	white-space: nowrap;
}

.hm-body {
	display: flex;
	gap: var(--hm-gap);
}

.hm-weekdays {
	display: grid;
	flex: none;
	grid-template-rows: repeat(7, var(--hm-cell));
	gap: var(--hm-gap);
	width: var(--hm-weekday-w);
	color: var(--muted);
	font-size: 10px;
	line-height: var(--hm-cell);
}

.hm-grid {
	display: grid;
	grid-template-rows: repeat(7, var(--hm-cell));
	grid-auto-columns: var(--hm-cell);
	grid-auto-flow: column;
	gap: var(--hm-gap);
}

.hm-day {
	width: var(--hm-cell);
	height: var(--hm-cell);
	border-radius: 3px;
	background: var(--hm-0);
	opacity: 0;
	animation: hm-pop 0.4s ease forwards;
}

.hm-day:hover {
	outline: 1px solid var(--text);
}

.hm-day[data-level='1'] {
	background: var(--hm-1);
}

.hm-day[data-level='2'] {
	background: var(--hm-2);
}

.hm-day[data-level='3'] {
	background: var(--hm-3);
}

.hm-day[data-level='4'] {
	background: var(--hm-4);
}

@keyframes hm-pop {
	to {
		opacity: 1;
	}
}

.hm-legend {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 0.9rem;
	color: var(--muted);
	font-size: 11px;
}

.hm-legend .hm-day {
	opacity: 1;
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.stack-tool,
	.stack-icon {
		transition: none;
	}

	.stack-tool:hover {
		transform: none;
	}

	.hm-day {
		opacity: 1;
		animation: none;
	}
}