From 1f49b0f7557844680968ebc46705ba207aeff82c Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Wed, 26 Jul 2023 17:43:21 +0200 Subject: [PATCH] add miligram to a better design --- core.css | 10 +-- feature-flow.css | 42 +++++++++- feature-flow.html | 12 +++ index.css | 6 +- index.html | 12 +-- package.json | 1 + pnpm-lock.yaml | 13 ++++ src/modules/feature/FeatureStep.vue | 4 +- src/modules/feature/FeatureSteps.vue | 6 +- src/modules/simulation/SimulationControls.vue | 78 ++++++++++++------- .../simulation/SimulationDashboard.vue | 33 ++++---- src/modules/simulation/simulation-store.ts | 3 + src/utils.ts | 2 +- 13 files changed, 159 insertions(+), 63 deletions(-) diff --git a/core.css b/core.css index f09355b..d7ab07b 100644 --- a/core.css +++ b/core.css @@ -1,8 +1,8 @@ -@import url("https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap"); +@import url('https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap'); :root { - --background-color: #002992; - --background-color-no-focus: #abbbdf; + --primary-color: #002992; + --primary-color-no-focus: #abbbdf; --color: white; } @@ -12,13 +12,13 @@ body { font-size: 28px; - font-family: "Noto Serif", serif; + font-family: 'Noto Serif', serif; margin: 0; } header { text-align: center; - color: var(--background-color); + color: var(--primary-color); } main { diff --git a/feature-flow.css b/feature-flow.css index 749fade..f5ccb0c 100644 --- a/feature-flow.css +++ b/feature-flow.css @@ -4,6 +4,12 @@ --feature-item-height: 70px; } +.row { + display: flex; + gap: 1rem; + padding: 0 1rem; +} + ul { list-style: none; padding: 0; @@ -11,8 +17,8 @@ ul { .bin { margin-top: 1rem; - border: 3px solid var(--background-color); - color: var(--background-color); + border: 3px solid var(--primary-color); + color: var(--primary-color); background-color: white; min-height: var(--feature-item-height); display: flex; @@ -27,7 +33,7 @@ ul { } .blue-bin { - background-color: var(--background-color); + background-color: var(--primary-color); color: white; font-size: 18pt; } @@ -43,3 +49,33 @@ ul { font-family: 'Cutive Mono', monospace; font-weight: bold; } + +/* Miligram reset */ + +.button, +button, +input[type='button'], +input[type='reset'], +input[type='submit'] { + background-color: var(--primary-color); + border: 0.1rem solid var(--primary-color); +} + +.button.button-outline, +button.button-outline, +input[type='button'].button-outline, +input[type='reset'].button-outline, +input[type='submit'].button-outline { + background-color: transparent; + color: var(--primary-color); +} + +.button.button-clear, +button.button-clear, +input[type='button'].button-clear, +input[type='reset'].button-clear, +input[type='submit'].button-clear { + background-color: transparent; + border-color: transparent; + color: var(--primary-color); +} diff --git a/feature-flow.html b/feature-flow.html index 6bb6e91..41d272f 100644 --- a/feature-flow.html +++ b/feature-flow.html @@ -10,6 +10,18 @@ My understanding of how a feature flow can help team prioritize." /> + + + + + + diff --git a/index.css b/index.css index dd7a578..ecdb02d 100644 --- a/index.css +++ b/index.css @@ -11,15 +11,15 @@ li { } .focusable { - background-color: var(--background-color); + background-color: var(--primary-color); } .focusable.no-focus { - background-color: var(--background-color-no-focus); + background-color: var(--primary-color-no-focus); } .text-hide { - color: var(--background-color); + color: var(--primary-color); } .customer-satisfaction-roof { diff --git a/index.html b/index.html index 18fe30a..37f49ea 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ cx="696.5" cy="295.5" r="88.5" - fill="var(--background-color)" + fill="var(--primary-color)" /> diff --git a/package.json b/package.json index d09a775..f4fe79e 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "license": "ISC", "dependencies": { "comlink": "^4.4.1", + "milligram": "^1.4.1", "pinia": "^2.1.4", "vue": "^3.3.4", "vue-starport": "^0.3.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d792193..acaf216 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ dependencies: comlink: specifier: ^4.4.1 version: 4.4.1 + milligram: + specifier: ^1.4.1 + version: 1.4.1 pinia: specifier: ^2.1.4 version: 2.1.4(typescript@5.1.6)(vue@3.3.4) @@ -695,6 +698,12 @@ packages: dependencies: '@jridgewell/sourcemap-codec': 1.4.15 + /milligram@1.4.1: + resolution: {integrity: sha512-RCgh/boHhcXWOUfKJWm3RJRoUeaEguoipDg0mJ31G0tFfvcpWMUlO1Zlqqr12K4kAXfDlllaidu0x7PaL2PTFg==} + dependencies: + normalize.css: 8.0.1 + dev: false + /mlly@1.4.0: resolution: {integrity: sha512-ua8PAThnTwpprIaU47EPeZ/bPUVp2QYBbWMphUQpVdBI3Lgqzm5KZQ45Agm3YJedHXaIHl6pBGabaLSUPPSptg==} dependencies: @@ -718,6 +727,10 @@ packages: engines: {node: '>=0.10.0'} dev: true + /normalize.css@8.0.1: + resolution: {integrity: sha512-qizSNPO93t1YUuUhP22btGOo3chcvDFqFaj2TRybP0DMxkHOCTYwp3n34fel4a31ORXy4m1Xq0Gyqpb5m33qIg==} + dev: false + /p-limit@4.0.0: resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} diff --git a/src/modules/feature/FeatureStep.vue b/src/modules/feature/FeatureStep.vue index c7b763a..7370b46 100644 --- a/src/modules/feature/FeatureStep.vue +++ b/src/modules/feature/FeatureStep.vue @@ -90,7 +90,7 @@ const isLive = computed( header { padding: 0.5rem; - border: solid 2px var(--background-color); + border: solid 2px var(--primary-color); margin-top: 1rem; } @@ -106,7 +106,7 @@ const isLive = computed( h5 { margin: 0; - background-color: var(--background-color); + background-color: var(--primary-color); padding: 0.35rem; text-align: center; color: white; diff --git a/src/modules/feature/FeatureSteps.vue b/src/modules/feature/FeatureSteps.vue index 7ed724a..1f77a4c 100644 --- a/src/modules/feature/FeatureSteps.vue +++ b/src/modules/feature/FeatureSteps.vue @@ -32,7 +32,7 @@ const pushAndProblemSolving20Percent = () => { {{ featureStore.meanLeadTime }} days | Total days: {{ featureStore.meta.totalDays }} -
+