Cards are now looking pretty good
This commit is contained in:
parent
51761e3734
commit
9a5dbb4d18
4 changed files with 46 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
|||
border-radius: 0.2em;
|
||||
color: var(--color-on-surface);
|
||||
display: inline-grid;
|
||||
font-size: 2em;
|
||||
font-size: 1.8em;
|
||||
grid-template-areas:
|
||||
'head'
|
||||
'body'
|
||||
|
|
|
@ -1,17 +1,23 @@
|
|||
:host {
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
"head"
|
||||
"body";
|
||||
grid-template-rows: min-content auto;
|
||||
height: 100%;
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
'head'
|
||||
'body';
|
||||
grid-template-rows: min-content auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
header {
|
||||
grid-area: 'head';
|
||||
grid-area: head;
|
||||
}
|
||||
|
||||
.meal-plan {
|
||||
grid-area: "body";
|
||||
padding-left: 1.8em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
grid-area: body;
|
||||
padding-left: 1.8em;
|
||||
|
||||
& > *:not(:last-child) {
|
||||
margin-bottom: 1.6em;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,5 +11,11 @@ import { Meal } from './components/meal/meal';
|
|||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class Plan {
|
||||
protected meals = signal<Array<TMeal>>([new TMeal(uuidv7(), 'breakfast', [])]);
|
||||
protected meals = signal<Array<TMeal>>([
|
||||
new TMeal(uuidv7(), 'breakfast', []),
|
||||
new TMeal(uuidv7(), 'snack', [], 'Morning Snack'),
|
||||
new TMeal(uuidv7(), 'lunch', []),
|
||||
new TMeal(uuidv7(), 'snack', [], 'Afternoon Snack'),
|
||||
new TMeal(uuidv7(), 'dinner', []),
|
||||
]);
|
||||
}
|
||||
|
|
23
webapp/src/styles/components/button.scss
Normal file
23
webapp/src/styles/components/button.scss
Normal file
|
@ -0,0 +1,23 @@
|
|||
button {
|
||||
background-color: var(--color-surface-container);
|
||||
border: 1px solid var(--color-outline);
|
||||
border-radius: 0.4em;
|
||||
color: var(--color-on-surface-container);
|
||||
cursor: pointer;
|
||||
font-size: 0.8em;
|
||||
padding: 0.2em 0.6em;
|
||||
|
||||
&:hover {
|
||||
box-shadow: var(--color-shadow) 0px 3px 8px;
|
||||
box-shadow: var(--color-shadow) 0px 2px 5px -1px, var(--color-shadow-variant) 0px 1px 3px -1px;
|
||||
|
||||
&:active {
|
||||
background-color: var(--color-primary-container-alt);
|
||||
}
|
||||
}
|
||||
|
||||
&.primary {
|
||||
background-color: var(--color-primary-container);
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue