From a86c23ca1fd34e80ad571b19889339c8315ea458 Mon Sep 17 00:00:00 2001 From: Mstiekema Date: Tue, 2 Nov 2021 16:31:05 +0100 Subject: [PATCH] Added buttons for jumping to categories --- src/views/base/base.css | 8 +---- src/views/base/base.html | 3 -- src/views/products/products.css | 32 +++++++++++++---- src/views/products/products.html | 62 +++++++++++++++++++++++--------- 4 files changed, 72 insertions(+), 33 deletions(-) diff --git a/src/views/base/base.css b/src/views/base/base.css index f255b55..709877e 100644 --- a/src/views/base/base.css +++ b/src/views/base/base.css @@ -40,13 +40,7 @@ body { /* Default components */ main { - height: calc(100% - 120px); + height: calc(100% - 100px); position: relative; overflow-y: auto; } - -footer { - width: 100%; - text-align: center; - height: 20px; -} diff --git a/src/views/base/base.html b/src/views/base/base.html index 466d704..c3b5f1b 100644 --- a/src/views/base/base.html +++ b/src/views/base/base.html @@ -37,9 +37,6 @@
- diff --git a/src/views/products/products.css b/src/views/products/products.css index 36c4083..9b4d5cc 100644 --- a/src/views/products/products.css +++ b/src/views/products/products.css @@ -1,5 +1,29 @@ +#categoryList { + position: fixed; + width: calc(100% - 10px); + padding: 20px; + z-index: 1; + background-color: #f8f8f4; +} + +.category_button { + font-size: 20px !important; +} + #productList { - width: calc(100% - 200px); + width: calc(100% - 240px); + padding-top: 70px; + margin: 0 20px; +} + +.category_headers { + display: hidden; +} + +.category_headers:target { + display: block; + position: relative; + top: -70px; } #purchase { @@ -29,9 +53,5 @@ position: fixed; width: 200px; right: 20px; - top: 140px; + top: 209px; } - -.products { - margin: 20px; -} \ No newline at end of file diff --git a/src/views/products/products.html b/src/views/products/products.html index 0426b8f..1b6e399 100644 --- a/src/views/products/products.html +++ b/src/views/products/products.html @@ -1,28 +1,56 @@
+
+
+ + Beverages + + + Savory + + + Sweet + + + Additional + + + Alcohol + +
+
-

Beverages

-
- -
-

Savory

-
- -
-

Sweet

-
+ +

+ Beverages +

+
-
-

Additional

-
+ +

+ Savory +

+
-
-

Alcohol

-
+ +

+ Sweet +

+
-
+ +

+ Additional +

+
+ + +

+ Alcohol +

+