diff --git a/index.html b/index.html index 4ab7666..bbcec10 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,5 @@ + @@ -15,7 +16,7 @@ margin: 0; padding: 0; font-family: sans-serif; - background-color: #ededed; + background-color: #EDF2F4; } simple-food-diary diff --git a/src/diary-item.ts b/src/diary-item.ts index 69fc344..7c10239 100644 --- a/src/diary-item.ts +++ b/src/diary-item.ts @@ -9,7 +9,14 @@ class DiaryItem extends LitElement{ @property({type: String}) name = ""; @property({type:String}) icon = ""; - static styles = css``; + static styles = css` + .selected{ + background-color: #8D99AE; + } + + .unselected{ + } + `; constructor(){ super(); @@ -18,8 +25,10 @@ class DiaryItem extends LitElement{ render(){ return html` - -

${this.name}

+
+ +

${this.name}

+
`; } } \ No newline at end of file