From da568cb706a76244d1624cbf4f0589cddd5565fe Mon Sep 17 00:00:00 2001 From: GodMod Date: Sun, 3 Nov 2019 15:53:22 +0100 Subject: [PATCH] Nicer Roster Layout --- roster/roster_additions.php | 83 ++++++++++++++++++++----------------- roster/roster_view.html | 18 +++++--- 2 files changed, 58 insertions(+), 43 deletions(-) diff --git a/roster/roster_additions.php b/roster/roster_additions.php index eb175bc..2696508 100644 --- a/roster/roster_additions.php +++ b/roster/roster_additions.php @@ -22,54 +22,63 @@ // Add css code: $this->tpl->add_css(" #guild_header_wrap { - width:100%; -margin-top: 20px; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; } - - #guild_emblem { - height:120px; - margin:-20px 0 0 5px; - float:left; + + #guild_data_wrapper { + padding: 0 20px; + border-left: 1px solid rgba(0,0,0,.2); + align-self: stretch; + overflow: hidden; } - #guild_emblem img{ - height:100px; - } - #guild_header_banner_alliance{ - width:100%; - height:106px; - background: url('".$this->server_path."games/wow/profiles/factions/banner_alliance.jpg') repeat-x scroll 0px 0px transparent; - margin-top:30px; + + #guild_emblem, #guild_emblem img { + height: 100px; } - #guild_header_banner_horde{ - width:100%; - height:106px; - background: url('".$this->server_path."games/wow/profiles/factions/banner_horde.jpg') repeat-x scroll 0px 0px transparent; - margin-top:30px; + + #guild_name_wrapper { + padding: 0 20px; } - #guild_emblem { - height:180px; - margin:-20px 0 0 5px; - float:left; - } - #guild_emblem img{ - height:150px; - } - + #guild_name { - font-size: 30px; - position:relative; - top:20px; - left:15px; + font-size: 2em; font-weight:bold; } + #guild_realm { - font-size: 20px; + padding-top: 5px; + font-size: 1.2em; color: #FFCC33 ; - position:relative; - top:50px; - left:15px; + } + + #guild_data_wrapper { + color: #FFCC33; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + display: flex; + } + + .guild_data_container svg { + width: 16px;height: 16px;fill: currentColor; } + .guild_data_container { + margin-right: 20px; + display: flex; + } + + #guild_data_wrapper > div { + display: flex; + } + #bar_15088, #bar_15077, #bar_15078, #bar_15079, #bar_15080, #bar_15089, #bar_15093{ width: 31%; float: left; diff --git a/roster/roster_view.html b/roster/roster_view.html index 618b2f0..27501ce 100644 --- a/roster/roster_view.html +++ b/roster/roster_view.html @@ -1,11 +1,17 @@
-
-
+
Guildtabard -
-
{GUILD}
-
{REGION}-{REALM} • {ACHIEV_POINTS} {MEMBER_COUNT}
-
+
+
+
{GUILD}
+
{REGION}-{REALM}
+
+
+
+ {ACHIEV_POINTS} +  {MEMBER_COUNT} {L_members} +
+