Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stats: Move number-stat CSS rules to pie_messages_sent_by_type_total.

Lauryn Menard1df033be3c0f
diff --git a/templates/analytics/stats.html b/templates/analytics/stats.html
index f5a66da4387..7001a04d060 100644
--- a/templates/analytics/stats.html
+++ b/templates/analytics/stats.html
@@ -45,7 +45,7 @@
<div id="id_number_of_users">
<div class="spinner"></div>
</div>
- <div id="users_hover_info" class="number-stat">
+ <div id="users_hover_info">
<span id="users_hover_date"></span>
<b id="users_hover_humans">{{ _("Users") }}: </b>
<span id="users_hover_1day_value"></span>
@@ -53,7 +53,7 @@
<span id="users_hover_all_time_value"></span>
</div>
</div>
- <div class="chart-container pie-chart">
+ <div class="chart-container">
<div id="pie_messages_sent_by_type">
<h1>{{ _("Messages sent by recipient type") }}</h1>
<div class="button-container">
@@ -65,7 +65,7 @@
<div id="id_messages_sent_by_message_type">
<div class="spinner"></div>
</div>
- <div id="pie_messages_sent_by_type_total" class="number-stat"></div>
+ <div id="pie_messages_sent_by_type_total"></div>
<div class="buttons">
<button class="button" type="button" data-time="week">{{ _("Last week") }}</button>
<button class="button selected" type="button" data-time="month">{{ _("Last month") }}</button>
diff --git a/web/styles/portico/stats.css b/web/styles/portico/stats.css
index 7e440cbe94f..66b78e028ac 100644
--- a/web/styles/portico/stats.css
+++ b/web/styles/portico/stats.css
@@ -67,11 +67,6 @@ p {
font-size: 1.5em;
}
- &:not(.pie-chart) .number-stat {
- position: relative;
- top: -30px;
- }
-
.button-container {
position: relative;
z-index: 1;
@@ -91,14 +86,6 @@ p {
font-weight: 400;
}
-.pie-chart {
- .number-stat {
- float: left;
- font-size: 0.8em;
- font-weight: 400;
- }
-}
-
.buttons button {
background-color: hsl(0deg 0% 94%);
@@ -173,18 +160,20 @@ p {
display: none;
}
+#users_hover_info,
+#read_hover_info,
+#hoverinfo,
#pie_messages_sent_by_type_total {
float: right;
+ font-size: 0.8em;
+ font-weight: 400;
}
#users_hover_info,
#read_hover_info,
#hoverinfo {
display: none;
- font-size: 0.8em;
- font-weight: 400;
position: relative;
- float: right;
height: 0;
top: -25px;
}