diff --git a/public/blockstart/blockstart.css b/public/blockstart/blockstart.css index 1eec267..c230ac5 100644 --- a/public/blockstart/blockstart.css +++ b/public/blockstart/blockstart.css @@ -1,138 +1,186 @@ :root { - --color-border: hsl(0, 0%, 50%); + --color-border: hsl(0, 0%, 0%); --border-radius: 5px; - --value0: hsl(0, 0%, 0%); - --value1: hsl(0, 0%, 11%); - --value2: hsl(0, 0%, 22%); - --value3: hsl(0, 0%, 33%); - --value4: hsl(0, 0%, 44%); - --value5: hsl(0, 0%, 55%); - --value6: hsl(0, 0%, 66%); - --value7: hsl(0, 0%, 77%); - --value8: hsl(0, 0%, 88%); - --value9: hsl(0, 0%, 100%); --text: 0; + --value: 9; + --value-scale: 12%; + --pad: 10px; + --bottom-margin: 2rem; + --w: initial; + --h: initial; + --value0: hsl(0, 0%, calc(0 * var(--value-scale))); + --value1: hsl(0, 0%, calc(1 * var(--value-scale))); + --value2: hsl(0, 0%, calc(2 * var(--value-scale))); + --value3: hsl(0, 0%, calc(3 * var(--value-scale))); + --value4: hsl(0, 0%, calc(4 * var(--value-scale))); + --value5: hsl(0, 0%, calc(5 * var(--value-scale))); + --value6: hsl(0, 0%, calc(6 * var(--value-scale))); + --value7: hsl(0, 0%, calc(7 * var(--value-scale))); + --value8: hsl(0, 0%, calc(8 * var(--value-scale))); + --value9: hsl(0, 0%, calc(9 * var(--value-scale))); } body { - color: hsl(0, 0%, calc(var(--text) * 11%)); + padding: 0px; + margin: 0px; +} + +blockstart { + background-color: #fff; + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); display: flex; flex-direction: column; justify-content: flex-start; padding: 0px; margin: 0px; + width: 100%; + min-width: 100%; + max-width: 100%; + height: 100%; + min-height: 100%; } -content { - display: flex; - flex-direction: column; +blockstart * { + font-size: 1.1em; } -a { - color: hsl(0, 0%, calc(var(--text) * 11%)); +blockstart > * + * { + margin-bottom: var(--bottom-margin); } -block { - color: hsl(0, 0%, calc(var(--text) * 11%)); - display: flex; +blockstart > *:last-child { + margin-bottom: 0px; +} + +blockstart a { + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); +} + +blockstart block { --spacing: space-evenly; + + display: flex; + background-color: hsl(0, 0%, calc(var(--value) * var(--value-scale))); + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); justify-content: var(--spacing); flex-direction: column; + padding: var(--pad); + width: var(--w); + min-width: var(--w); + max-width: var(--w); + height: var(--h); + min-height: var(--h); + max-height: var(--h); } -block > * { - color: hsl(0, 0%, calc(var(--text) * 11%)); - display: flex; - flex: 1 1 auto; +blockstart block > * { --spacing: flex-start; + --pad: 10px; + --w: initial; + --h: initial; + + background-color: hsl(0, 0%, calc(var(--value) * var(--value-scale))); + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); + display: flex; justify-content: var(--spacing); align-self: stretch; flex-direction: column; margin: 2px; + padding: var(--pad); + width: var(--w); + min-width: var(--w); + max-width: var(--w); + height: var(--h); + min-height: var(--h); + max-height: var(--h); } -.wide { +blockstart stack { + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); + display: grid; + grid-template-rows: 1fr; + grid-template-columns: 1fr; + grid-template-areas: "cover"; +} + +blockstart stack > * { + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); width: 100%; + height: 100%; + position: relative; + grid-area: cover; } -.no-flex { +blockstart stack > .top { + z-index: 10; +} + +blockstart .wide { + width: 100%; +} + +blockstart .no-flex { display: block; flex: unset; flex-direction: unset; align-self: unset; } -.center { +blockstart .center { justify-content: center; align-items: center; align-self: center; } -.center-text > * { +blockstart .center-text { text-align: center; + justify-content: center; + align-items: center; } -.center-self { +blockstart .center-self { align-self: center; } -.vertical { +blockstart .vertical { flex-direction: column; } -.horizontal { +blockstart .horizontal { flex-direction: row; } -grid { - --cols: 1fr 1fr; +blockstart grid { + --cols: auto; --rows: auto; --gap: 0.5rem; - color: hsl(0, 0%, calc(var(--text) * 11%)); + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); display: grid; grid-gap: var(--gap); - grid-template-columns: var(--cols); - grid-template-rows: var(--rows); + grid-template-columns: repeat(var(--cols), 1fr); + grid-template-rows: repeat(var(--rows), 1fr); } -stack { - color: hsl(0, 0%, calc(var(--text) * 11%)); - display: grid; - grid-template-rows: 1fr; - grid-template-columns: 1fr; - grid-template-areas: "cover"; -} - -stack > * { - color: hsl(0, 0%, calc(var(--text) * 11%)); - width: 100%; - height: 100%; - position: relative; - grid-area: cover; -} - -stack > .top { - z-index: 10; -} -hr { +blockstart hr { --height: 1rem; + min-height: var(--height); visibility: hidden; } -hr.huge { +blockstart hr.huge { --height: 3rem; } -shape { - --w: 100%; - --h: 100%; - --value: 4; +blockstart shape { + --value: 2; + --text: 9; + --pad: 1rem; - color: hsl(0, 0%, calc(var(--text) * 11%)); - background-color: hsl(0, 0%, calc(var(--value) * 11%)); + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); + background-color: hsl(0, 0%, calc(var(--value) * var(--value-scale))); display: flex; width: var(--w); min-width: var(--w); @@ -144,57 +192,49 @@ shape { justify-content: center; align-items: center; align-self: center; + padding: pad; } -.debug { +blockstart .debug { border: 1px solid red; } -.debug > * { +blockstart .debug > * { border: 1px solid blue; } -.pad { - --pad: 1rem; - padding: var(--pad); +blockstart .border { + border: 2px solid var(--color-border); + border-radius: var(--border-radius); } -.sized { - --w: 100%; - --h: 100%; - width: var(--w); - min-width: var(--w); - max-width: var(--w); - height: var(--h); - min-height: var(--h); - max-height: var(--h); +blockstart .compact { + justify-content: flex-start; } -.border { - border: 1px solid var(--color-border); - border-radius: var(--border-radius); +blockstart .compact > * { + flex: unset; } .solid { - --value: 8; - background-color: hsl(0, 0%, calc(var(--value) * 11%)); + --value: 4; + --text: 9; } -.dots { - --pat-val: 7; - - background-image: radial-gradient(hsl(0, 0%, calc(var(--pat-val) * 11%)) 1px, transparent 1px); - background-size: calc(10 * 1px) calc(10 * 1px); +.fill { + flex: 1 1 auto; } -.lines { - --pat-val: 7; - background-image: linear-gradient(hsl(0, 0%, calc(var(--pat-val) * 11%)) 1px, transparent 1px), linear-gradient(to right, hsl(0, 0%, calc(var(--pat-val) * 11%)) 1px, transparent 1px); - background-size: 10px 10px; +button { + --value: 7; + --text: 0; + + background-color: hsl(0, 0%, calc(var(--value) * var(--value-scale))); + color: hsl(0, 0%, calc(var(--text) * var(--value-scale))); + border: 2px solid var(--color-border); + border-radius: var(--border-radius); } -.stripes { - --pat-val: 7; - background-image: linear-gradient(90deg, transparent 50%, hsl(0, 0%, calc(var(--pat-val) * 11%)) 50%); - background-size: 10px 10px; +button:hover { + filter: brightness(90%); } diff --git a/public/blockstart/demos/asana.html b/public/blockstart/demos/asana.html index 0ab3304..1bfaf25 100644 --- a/public/blockstart/demos/asana.html +++ b/public/blockstart/demos/asana.html @@ -14,17 +14,18 @@
-Asana is the easiest way for product managers to track their team's work—and get results.
Using Asana as your product roadmap tool helps you track project progress, identify blockers, and shift resources on the fly.
- +"Some dude says that some dude is great."
See why millions of people use asana...
- +