generated from the-collab-lab/smart-shopping-list
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from the-collab-lab/ma/view-list-name
Issue #43 Users should be able to view the list name
- Loading branch information
Showing
13 changed files
with
245 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.Nav { | ||
background-color: var(--color-bg); | ||
border-top: 1px solid var(--color-border); | ||
bottom: 0; | ||
display: flex; | ||
flex-direction: row; | ||
padding-bottom: max(env(safe-area-inset-bottom), 1rem); | ||
padding-top: 1rem; | ||
place-content: center; | ||
position: fixed; | ||
width: 100%; | ||
} | ||
|
||
.Nav-container { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-evenly; | ||
width: min(72ch, 100%); | ||
} | ||
|
||
.Nav-link { | ||
--color-text: var(--color-accent); | ||
color: var(--color-text); | ||
font-size: 1.4em; | ||
flex: 0 1 auto; | ||
line-height: 1; | ||
padding: 0.8rem; | ||
text-align: center; | ||
text-underline-offset: 0.1em; | ||
} | ||
|
||
.Nav-link.active { | ||
text-decoration-thickness: 0.22em; | ||
text-underline-offset: 0.1em; | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.ListItem { | ||
align-items: baseline; | ||
display: flex; | ||
flex-direction: row; | ||
font-size: 1.2em; | ||
justify-content: space-between; | ||
} | ||
|
||
.ListItem-checkbox { | ||
accent-color: var(--color-accent); | ||
} | ||
|
||
.ListItem-label { | ||
margin-left: 0.2em; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.SingleList { | ||
align-items: baseline; | ||
display: flex; | ||
flex-direction: row; | ||
font-size: 1.2em; | ||
} | ||
|
||
.SingleList-label { | ||
margin-left: 0.2em; | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
:root { | ||
--color-black: hsla(220, 13%, 18%, 1); | ||
--color-gray-dark: hsla(220, 13%, 25%, 1); | ||
--color-white: hsla(220, 13%, 98%, 1); | ||
--color-gray-light: hsla(220, 13%, 94%, 1); | ||
--color-emerald-green: hsla(168, 92%, 25%, 1); | ||
--color-vermillion-green: hsla(168, 92%, 43%, 1); | ||
--color-cobalt-blue: hsla(215, 100%, 34%, 1); | ||
--color-pastel-blue: hsla(215, 100%, 73%, 1); | ||
--color-red: hsl(0, 68%, 42%); | ||
|
||
--color-accent: var(--color-pastel-blue); | ||
--color-bg: var(--color-black); | ||
--color-border: hsla(220, 13%, 32%, 1); | ||
--color-error: var(--color-red); | ||
--color-text: var(--color-white); | ||
|
||
/** | ||
* Set the value of 1rem to 10px to make relative units | ||
* easier to work with. | ||
* (The default is 16px. 16 * 62.5% = 10) | ||
*/ | ||
font-size: 62.5%; | ||
} | ||
|
||
@media screen and (prefers-color-scheme: light) { | ||
:root { | ||
--color-accent: var(--color-cobalt-blue); | ||
--color-bg: var(--color-white); | ||
--color-border: hsla(220, 13%, 78%, 1); | ||
--color-text: var(--color-black); | ||
} | ||
} | ||
|
||
:root.theme-light { | ||
--color-accent: var(--color-cobalt-blue); | ||
--color-bg: var(--color-white); | ||
--color-border: hsla(220, 13%, 78%, 1); | ||
--color-text: var(--color-black); | ||
} | ||
|
||
*, | ||
*::after, | ||
*::before { | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
background-color: var(--color-bg); | ||
color: var(--color-text); | ||
font-family: | ||
-apple-system, | ||
BlinkMacSystemFont, | ||
avenir next, | ||
avenir, | ||
segoe ui, | ||
helvetica neue, | ||
helvetica, | ||
Ubuntu, | ||
roboto, | ||
noto, | ||
arial, | ||
sans-serif; | ||
font-size: 1.8rem; | ||
/** Make sure the app fills the height of the screen. */ | ||
height: 100dvh; | ||
line-height: 1.4; | ||
margin: 0; | ||
|
||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
code { | ||
--color-bg: var(--color-gray-dark); | ||
--color-text: var(--color-accent); | ||
|
||
background-color: var(--color-bg); | ||
border-radius: 4px; | ||
color: var(--color-text); | ||
display: inline-block; | ||
font-family: | ||
Menlo, | ||
Consolas, | ||
Monaco, | ||
Liberation Mono, | ||
Lucida Console, | ||
monospace; | ||
font-size: 0.9em; | ||
padding: 2px 2px; | ||
} | ||
|
||
@media screen and (prefers-color-scheme: light) { | ||
code { | ||
--color-bg: var(--color-gray-light); | ||
} | ||
} | ||
|
||
:root.theme-light code { | ||
--color-bg: var(--color-gray-light); | ||
} |
Empty file.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* The `env()` function used in this block of code | ||
* allows us to reference special variables that might be defined | ||
* by certain browsers. In this case, we are making sure that | ||
* the app stays within the 'safe' viewable area of a mobile phone, | ||
* and isn't covered up by the phone's UI. | ||
* | ||
* @see: https://developer.mozilla.org/en-US/docs/Web/CSS/env | ||
*/ | ||
.Layout { | ||
display: flex; | ||
flex-direction: column; | ||
height: 100dvh; | ||
} | ||
|
||
.Layout > * { | ||
padding-inline: min(5dvw, 3.2rem); | ||
} | ||
|
||
.Layout-header { | ||
background-color: var(--color-bg); | ||
padding-bottom: 0.5rem; | ||
padding-top: max(env(safe-area-inset-top), 1rem); | ||
text-align: center; | ||
} | ||
|
||
.Layout-header > h1 { | ||
margin: 0; | ||
} | ||
|
||
.Layout-main { | ||
margin: 0 auto; | ||
padding-block: 0; | ||
padding-block-end: 6.26rem; | ||
width: min(72ch, 100%); | ||
} |
This file contains 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