{item.name}
£{item.price}
+ +-
{#each item.labels as label}
{#if label === Labels.vegan}
@@ -114,6 +125,8 @@
{/each}
{basketAmount}
@@ -154,6 +167,30 @@ $padding: 1px; + .notice { + margin-right: auto; + margin-bottom: $spacing-large; + margin-left: auto; + + max-width: $sizing-default-width; + height: 45px; + + display: flex; + justify-content: center; + align-items: center; + + font-size: $font-size-h6; + + border-radius: $border-radius-normal; + background: $color-dark; + color: $color-on-dark; + + &.error { + background: $color-error; + color: $color-on-error; + } + } + .main { display: flex; flex-direction: row; @@ -176,6 +213,12 @@ overflow: hidden; + &.loaded { + border-radius: $border-radius-large; + border: 1px solid rgba($color-dark, 0.15); + background-color: rgba($color-dark, 0.1); + } + > .loading.image { width: 100%; height: 100%; @@ -184,8 +227,6 @@ > img { max-width: 100%; max-height: 100%; - - border-radius: $border-radius-normal; } } @@ -245,18 +286,15 @@ align-items: flex-end; > h2 { - margin-bottom: $spacing-small; - padding: 0; + padding-bottom: $spacing-xsmall; font-size: $font-size-h1; } > p { - margin-bottom: $spacing-normal; padding: 0; font-size: $font-size-h2; } .container { - margin-bottom: $spacing-small; width: 100%; #description { @@ -400,7 +438,7 @@ flex-wrap: wrap; > li { - margin: 0 0 $spacing-small $spacing-xsmall; + margin: 0 0 0 $spacing-xsmall; padding: 0 $spacing-small; min-width: 30px; diff --git a/front/src/styles/_container.scss b/front/src/styles/_container.scss index b0dd7d6..f49b865 100644 --- a/front/src/styles/_container.scss +++ b/front/src/styles/_container.scss @@ -1,6 +1,6 @@ .container { border-radius: $border-radius-normal; - background-image: url("/BackgroundTextureAlt.svg"); + background-image: url("/assets/BackgroundTextureAlt.svg"); background-repeat: no-repeat; background-size: 200px 250px; background-position: 5px -43px; diff --git a/front/src/styles/_reset.scss b/front/src/styles/_reset.scss index 448f0df..0927eff 100644 --- a/front/src/styles/_reset.scss +++ b/front/src/styles/_reset.scss @@ -86,10 +86,14 @@ hr { button { font-family: $font-family; + font-size: $font-size-small; } .spacer { height: $spacing-large; + &.half { + height: calc($spacing-large / 2); + } } main {