From 19be5817a96422aaff0c6dc23bef622aedc4bb22 Mon Sep 17 00:00:00 2001 From: Aymen Boughanmi <30938650+aymenBox@users.noreply.github.com> Date: Thu, 18 May 2023 15:48:50 +0100 Subject: [PATCH 1/2] Update style.css removing code redundancy --- public/styles/style.css | 48 +++++++---------------------------------- 1 file changed, 8 insertions(+), 40 deletions(-) diff --git a/public/styles/style.css b/public/styles/style.css index 449ae915..42d0e70d 100644 --- a/public/styles/style.css +++ b/public/styles/style.css @@ -1533,76 +1533,44 @@ a { opacity: 1; } -.lb1 { - background: url(../images/leftbar-64.png) -1px -2px; - background-image: image-set(url(../images/leftbar-64.png) 1x, url(../images/leftbar-128.png) 2x); +/*groups all buttons repeated code into one block*/ +.lbtg{ height: 62px; width: 62px; cursor: pointer; border: none; position: absolute; top: 6px; - left: 6px; + left: 6px; +} +.lb1 { + background: url(../images/leftbar-64.png) -1px -2px; + background-image: image-set(url(../images/leftbar-64.png) 1x, url(../images/leftbar-128.png) 2x); } .lb2 { background: url(../images/leftbar-64.png) -66px -2px; background-image: image-set(url(../images/leftbar-64.png) 1x, url(../images/leftbar-128.png) 2x); - height: 62px; - width: 62px; - cursor: pointer; - border: none; - position: absolute; - top: 6px; - left: 6px; } .lb3 { background: url(../images/leftbar-64.png) -130px -2px; background-image: image-set(url(../images/leftbar-64.png) 1x, url(../images/leftbar-128.png) 2x); - height: 62px; - width: 62px; - cursor: pointer; - border: none; - position: absolute; - top: 6px; - left: 6px; } .lb4 { background: url(../images/leftbar-64.png) -194px -2px; background-image: image-set(url(../images/leftbar-64.png) 1x, url(../images/leftbar-128.png) 2x); - height: 62px; - width: 62px; - cursor: pointer; - border: none; - position: absolute; - top: 6px; - left: 6px; } .lb5 { background: url(../images/leftbar-64.png) -257px -2px; background-image: image-set(url(../images/leftbar-64.png) 1x, url(../images/leftbar-128.png) 2x); - height: 62px; - width: 62px; - cursor: pointer; - border: none; - position: absolute; - top: 6px; - left: 6px; } .lb6 { background: url(../images/leftbar-64.png) -318px -2px; background-image: image-set(url(../images/leftbar-64.png) 1x, url(../images/leftbar-128.png) 2x); - height: 62px; - width: 62px; - cursor: pointer; - border: none; - position: absolute; - top: 6px; - left: 6px; } .m0 { @@ -3278,4 +3246,4 @@ a { padding: 6px 12px; border: 1px solid #ccc; border-top: none; -} \ No newline at end of file +} From e168db19f3b13e6a8d8fcbad6920b90f57bcc533 Mon Sep 17 00:00:00 2001 From: Aymen Boughanmi <30938650+aymenBox@users.noreply.github.com> Date: Thu, 18 May 2023 15:54:40 +0100 Subject: [PATCH 2/2] Update default.handlebars Followed by some changes in Style.css the same must be done to this file to reduce code redundancy --- views/default.handlebars | 36718 ++++++++++++++++++------------------- 1 file changed, 18359 insertions(+), 18359 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index c9e74367..433a1fcb 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -1,18359 +1,18359 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{{title}}} - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
{{{titlehtml}}}
-
{{{title1}}}
-
{{{title2}}}
-
- -
-

-
-
-
-
-
-
-
-
-
-
-
-
- - - -
-
-
-
- -
- ♦ - -
- - - - - - - - - - - - - - - - - -
- - -
 
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
-
- - -
- - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{{title}}} + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
{{{titlehtml}}}
+
{{{title1}}}
+
{{{title2}}}
+
+ +
+

+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+
+
+ +
+ ♦ + +
+ + + + + + + + + + + + + + + + + +
+ + +
 
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+ + +
+ + +