+
+
Standup
@@ -100,9 +100,9 @@
diff --git a/html/main.css b/html/main.css
index 6719ba4..03cf4e5 100644
--- a/html/main.css
+++ b/html/main.css
@@ -2,6 +2,9 @@
--bg-color: #222;
--fg-color: #555;
--text-color: #dbdbdb;
+ --pad-datasets: 1rem;
+ --pad-main: 2rem;
+ --min-card-size: 60ch;
font-size: 12pt;
}
@@ -11,9 +14,10 @@ body {
}
main {
- max-width: 120ch;
- padding-inline: 2rem;
+ max-width: calc(2 * var(--min-card-size) + var(--pad-main) + var(--pad-datasets));
+ padding-inline: var(--pad-main);
margin-inline: auto;
+ container-type: inline-size;
}
header {
@@ -22,49 +26,58 @@ header {
}
.datasets {
- padding-inline: 1rem;
+ padding-inline: var(--pad-datasets);
display: grid;
- grid-template-columns: repeat(auto-fit, 1fr);
- grid-auto-columns: 1fr;
+ grid-template-columns: repeat(auto-fit, minmax(var(--min-card-size), 1fr));
gap: 1rem;
}
-.datasets > li {
- min-width: 60ch;
+@container (width < 80ch) {
+ .datasets {
+ grid-template-columns: 1fr;
+ }
+}
+
+.dataset {
+ padding: 1rem 2rem;
background-color: var(--fg-color, darkgrey);
border-radius: 1rem;
list-style: none;
- padding: 1rem 2rem;
+ display: inline-flex;
+ align-items: center;
+ justify-content: space-between;
+ box-sizing: border-box;
}
-.datasets > li :is(h3, p) {
- width: fit-content;
-}
-
-/*
.upvote {
+ margin-left: 1rem;
+ margin-block: 1rem;
display: flex;
flex-direction: column;
- justify-content: center;
align-items: center;
- gap: 5px;
+ gap: .5em;
}
-.upvote button {
- background: none;
+.upvote-btn, .downvote-btn {
+ background: url(triangle.svg) no-repeat;
+ background-size: contain;
border: none;
- color: #4a90e2;
- font-size: 20px;
+ width: 2em;
+ height: 2em;
+ padding: 0;
+ overflow: hidden;
+ color: transparent;
cursor: pointer;
}
-.upvote button:hover {
- color: #ff9900;
+.downvote-btn {
+ transform: rotate(180deg);
}
-.upvote-count {
- font-size: 16px;
- color: #e1e1e1;
+:is(.upvote-btn, .downvote-btn):is(:hover, :focus-visible) {
+ filter: brightness(1.5);
}
-*/
\ No newline at end of file
+:is(.upvote-btn, .downvote-btn):active {
+ filter: brightness(1.75);
+}
diff --git a/html/triangle.svg b/html/triangle.svg
new file mode 100644
index 0000000..75d192f
--- /dev/null
+++ b/html/triangle.svg
@@ -0,0 +1,2 @@
+
+