Last active
February 7, 2025 09:16
-
-
Save gma/82dd38b7dd8a384c094a58e62ae0855c to your computer and use it in GitHub Desktop.
Kanban board CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
--primary-color: #222222; | |
--column-color: #eeeeee; | |
--task-color: #fefefe; | |
} | |
.board { | |
color: var(--primary-color); | |
} | |
/* Remove default numbering for lists */ | |
.board ol { | |
padding-inline: 0; | |
list-style: none; | |
} | |
/* Lay columns out across the page */ | |
.columns { | |
display: flex; | |
gap: 1.5em; | |
} | |
/* Draw black lines around columns and tasks */ | |
.column, | |
.task { | |
border: 3px solid var(--primary-color); | |
} | |
/* Style the columns */ | |
.column { | |
min-width: 12em; | |
padding-inline: 1em; | |
background-color: var(--column-color); | |
} | |
/* Style the tasks themselves */ | |
.task { | |
margin-bottom: 1.5em; | |
min-height: 5em; | |
padding: 1em; | |
background-color: var(--task-color); | |
h1 { | |
margin: 0; | |
font-weight: normal; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment