From 88477ba93fc71ed69d4f005756c7bff242e02762 Mon Sep 17 00:00:00 2001 From: Axel Cocat Date: Sat, 26 Feb 2022 20:53:39 +0100 Subject: [PATCH] feat(character): made responsive --- data/background.png | Bin 161 -> 284 bytes static/character.html | 196 ++++++++++++++++++++----------- static/css/character-talents.css | 1 + static/css/character.css | 35 +++--- static/css/icons.css | 22 ++++ 5 files changed, 164 insertions(+), 90 deletions(-) diff --git a/data/background.png b/data/background.png index cf62b89447e9f0665991022bc60bf243bb5ba3c8..d4797d57f180ddbecadf9502c399751fb80ccd5f 100644 GIT binary patch literal 284 zcmeAS@N?(olHy`uVBq!ia0y~yU;;838911M)F(f?P!O*;$lZxy-8q?;Kn_c~qpu?a z!^VE@KZ&eBK68Lih%1m@US)d=q_!l;FPOpM*^M+HhqJ&VvY3H^?+^$xifVW@00pOd vx;TbZ#JxSp$Oz;$Dg0l*PSF9#8b}bs%P7adC?OQ640461tDnm{r-UW|x@04q delta 111 zcmbQkw2*Ov1Scai0|UeVxEPg*imK6qf`ZN8zt;mrI14-?iy0XB4ude`@%$AjKtXj+ w7srr_TW=2UYAHts2FA3qXLmuup00i_>zopr0BP character-header }} -
-
-
-
-
-
-
-
-
+
+
+
+
+
- - - + Hide tabard + + - - -
+ + + +
+
+
+ +
+ +
+
- -
-
-
- -
- -
+
+ -
+
+
+
+ +
+ +
+
+ +
@@ -52,6 +57,10 @@
diff --git a/static/css/character-talents.css b/static/css/character-talents.css index 26ea7d5..84ce35c 100644 --- a/static/css/character-talents.css +++ b/static/css/character-talents.css @@ -41,6 +41,7 @@ left: 30px; font-size: 14px; padding: 0px 2px; + z-index: 4; } .iconmedium.empty::after { diff --git a/static/css/character.css b/static/css/character.css index 95cc8e2..8c0916a 100644 --- a/static/css/character.css +++ b/static/css/character.css @@ -1,27 +1,22 @@ -#item-slot-template, -#mount-template { - display: none; -} - -.iconlarge .inventory-slot { - width: 56px; - height: 56px; - left: 6px; - top: 6px; - position: absolute; - background-repeat: no-repeat; - z-index: 1; -} - .wowhead-tooltip .whtt-sellprice { display: none; } -#mounts { - max-width: 400px; +#model-container, +#equipment-bottom { + display: flex; + justify-content: center; } -#char-options td { - vertical-align: top; - padding-right: 32px; +#equipment-col-left, +#equipment-col-right { + display: flex; + flex-direction: column; +} + +#model, +#model canvas { + touch-action: none; + height: 100% !important; + width: 100% !important; } diff --git a/static/css/icons.css b/static/css/icons.css index 609649e..6eb341e 100644 --- a/static/css/icons.css +++ b/static/css/icons.css @@ -13,6 +13,7 @@ top: 4px; position: absolute; background-repeat: no-repeat; + z-index: 2; } .iconmedium .border { @@ -29,12 +30,23 @@ position: absolute; left: 3px; top: 3px; + z-index: 3; } .iconmedium a:hover { background-position: 0 0; } +.iconmedium .inventory-slot { + width: 36px; + height: 36px; + left: 4px; + top: 4px; + position: absolute; + background-repeat: no-repeat; + z-index: 1; +} + .iconlarge { width: 68px; height: 68px; @@ -74,6 +86,16 @@ background-position: 0 0; } +.iconlarge .inventory-slot { + width: 56px; + height: 56px; + left: 6px; + top: 6px; + position: absolute; + background-repeat: no-repeat; + z-index: 1; +} + .iconmedium a, .iconlarge a { transition: none;