From 861568069c2855e2328fd017d9905be902455d53 Mon Sep 17 00:00:00 2001 From: Adrian Thompson Date: Wed, 9 Sep 2020 12:13:21 +0200 Subject: [PATCH 1/6] working mobile --- src/ui/RequestedWineCard.vue | 39 ++++++++++++++---------------------- 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/src/ui/RequestedWineCard.vue b/src/ui/RequestedWineCard.vue index e43ab5f..6475c7f 100644 --- a/src/ui/RequestedWineCard.vue +++ b/src/ui/RequestedWineCard.vue @@ -7,22 +7,20 @@ :class="{ 'fullscreen': fullscreen }" /> Wine image -
-

{{ wine.name }}

-

(no name)

-

Antall ganger denne har blitt foreslått: {{requestedElement.count}}

-
- - Les mer på polet -
- -
+

{{ wine.name }}

+

(no name)

+

Foreslått: {{requestedElement.count}}

+ + + + Les mer + + @@ -68,13 +66,6 @@ export default { \ No newline at end of file From d2ad209d139fccfa06194dd34fd52c61c906a52a Mon Sep 17 00:00:00 2001 From: Adrian Thompson Date: Wed, 9 Sep 2020 12:52:31 +0200 Subject: [PATCH 2/6] added grid for all requested wines, also added new media-breakpoints --- src/components/AllRequestedWines.vue | 40 ++++++++++++++++--- src/styles/media-queries.scss | 21 ++++++++++ src/ui/RequestedWineCard.vue | 58 +++++++++++++++++++++++++++- 3 files changed, 112 insertions(+), 7 deletions(-) diff --git a/src/components/AllRequestedWines.vue b/src/components/AllRequestedWines.vue index f8415fb..1249fa0 100644 --- a/src/components/AllRequestedWines.vue +++ b/src/components/AllRequestedWines.vue @@ -39,14 +39,42 @@ export default { \ No newline at end of file diff --git a/src/styles/media-queries.scss b/src/styles/media-queries.scss index 0f7f91a..021102c 100644 --- a/src/styles/media-queries.scss +++ b/src/styles/media-queries.scss @@ -16,3 +16,24 @@ $mobile-width: 768px; @content; } } + +$sm: 320; +$md: 756; +$lg: 1200; +$xl: 1704; + +$minMobileWidth: $sm + 0px; +$maxMobileWidth: $md - 1px; +$minTabletWidth: $md + 0px; +$maxTabletWidth: $lg - 1px; +$minDesktopWidth: $lg + 0px; +$maxDesktopWidth: $xl - 1px; +$minWidescreenWidth: $xl + 0px; + +$mobileOnly: "only screen and ( max-width: #{$maxMobileWidth} )"; +$tabletOnly: "only screen and( min-width: #{$minTabletWidth} ) and ( max-width: #{$maxTabletWidth} )"; +$desktopOnly: "only screen and ( min-width: #{$minDesktopWidth} ) and ( max-width: #{$maxDesktopWidth} )"; +$widescreenOnly: "only screen and ( min-width: #{$minWidescreenWidth} )"; +$tabletAndUp: "only screen and ( min-width: #{$minTabletWidth} )"; +$desktopAndUp: "only screen and ( min-width: #{$minDesktopWidth} )"; +$widescreenAndUp: "only screen and ( min-width: #{$minWidescreenWidth} )"; \ No newline at end of file diff --git a/src/ui/RequestedWineCard.vue b/src/ui/RequestedWineCard.vue index 6475c7f..44e362c 100644 --- a/src/ui/RequestedWineCard.vue +++ b/src/ui/RequestedWineCard.vue @@ -66,6 +66,62 @@ export default { \ No newline at end of file From ef367bd1dbddeab7d436579461ae1ddddd9fd0ea Mon Sep 17 00:00:00 2001 From: Adrian Thompson Date: Wed, 9 Sep 2020 15:46:16 +0200 Subject: [PATCH 3/6] reworked requestwine css --- src/components/RequestWine.vue | 177 +++++++++++++++++++++------------ src/ui/RequestedWineCard.vue | 4 +- 2 files changed, 118 insertions(+), 63 deletions(-) diff --git a/src/components/RequestWine.vue b/src/components/RequestWine.vue index 2dee37b..90f84e4 100644 --- a/src/components/RequestWine.vue +++ b/src/components/RequestWine.vue @@ -1,20 +1,20 @@