}
+/*
+ * Colors
+ */
+
+
+.icon-black { color: @baseFontColor; }
+.icon-red { color: @red; }
+.icon-green { color: @green; }
+
+
/*
* Severity
*/
*/
[class^="icon-qualifier-"], [class*=" icon-qualifier-"] {
+ position: relative;
+ top: -1px;
color: @qualifierColor;
font-size: @iconFontSize;
}
.icon-qualifier-dev:before { content: "\f007"; }
+/*
+ * Trends
+ */
+
+[class^="icon-trend-"], [class*=" icon-trend-"] {
+ position: relative;
+ top: -1px;
+ font-size: @iconSmallFontSize;
+}
+
+.icon-trend-big {
+ font-size: @iconFontSize;
+}
+
+.icon-trend-0:before {
+ content: "\e607";
+}
+.icon-trend-1:before {
+ content: "\e605";
+}
+.icon-trend--1:before {
+ content: "\e601";
+}
+.icon-trend-2:before {
+ content: "\e606";
+}
+.icon-trend--2:before {
+ content: "\e603";
+}
+
+
/*
* Common
*/
m = @snapshot.measure(metric_or_measure)
end
- if options[:big]
- size = '-big'
- pixels = 16
- else
- size = ''
- pixels = 10
- end
if m.nil? || m.tendency.nil? || m.tendency==0
- return options[:empty] ? image_tag("trend/0#{size}.png", :width => pixels, :height => pixels, :alt => '') : nil
+ return options[:empty] ? "<i class=\"icon-trend-0\"></i>" : nil
+ end
+ className = m.tendency.to_s
+
+ if options[:big]
+ className += ' icon-trend-big'
end
- filename = m.tendency.to_s
case m.tendency_qualitative
when 0
- filename+= '-black'
+ className += ' icon-black'
when -1
- filename+= '-red'
+ className += ' icon-red'
when 1
- filename+= '-green'
+ className += ' icon-green'
end
- image_tag("trend/#{filename}#{size}.png", :alt => '', :width => pixels, :height => pixels)
+ "<i class=\"icon-trend-#{className}\"></i>"
end
#
<missing-glyph horiz-adv-x="1024" />
<glyph unicode=" " d="" horiz-adv-x="512" />
<glyph unicode="" d="M614.398 170.667v-34.132c0-4.979-1.6-9.067-4.799-12.269-3.201-3.199-7.291-4.799-12.268-4.799h-375.467c-4.978 0-9.066 1.6-12.267 4.799-3.199 3.201-4.799 7.289-4.799 12.269v34.132c0 4.979 1.6 9.066 4.799 12.268 3.2 3.2 7.289 4.799 12.267 4.799h375.468c4.977 0 9.066-1.599 12.268-4.799 3.199-3.202 4.798-7.289 4.798-12.268zM614.398 307.2v-34.133c0-4.979-1.6-9.066-4.799-12.267-3.201-3.2-7.291-4.8-12.268-4.8h-375.467c-4.978 0-9.066 1.6-12.267 4.8-3.199 3.2-4.799 7.287-4.799 12.267v34.133c0 4.977 1.6 9.067 4.799 12.268 3.2 3.199 7.289 4.8 12.267 4.8h375.468c4.977 0 9.066-1.601 12.268-4.8 3.199-3.2 4.798-7.291 4.798-12.268zM136.532-17.065h546.134v409.598h-221.867c-14.223 0-26.312 4.979-36.267 14.934-9.956 9.955-14.934 22.045-14.934 36.268v221.866h-273.065l-0.001-682.666zM477.866 460.801h200.533c-3.557 10.311-7.467 17.6-11.732 21.867l-166.935 166.934c-4.267 4.267-11.556 8.177-21.867 11.733v-200.534zM750.932 443.734v-477.868c0-14.222-4.979-26.311-14.934-36.266-9.953-9.955-22.043-14.934-36.266-14.934h-580.266c-14.222 0-26.311 4.979-36.267 14.934s-14.934 22.044-14.934 36.266v716.801c0 14.222 4.978 26.311 14.934 36.266s22.045 14.934 36.267 14.934h341.333c14.221 0 29.867-3.556 46.933-10.668 17.067-7.11 30.579-15.644 40.534-25.6l166.401-166.401c9.955-9.955 18.488-23.466 25.6-40.533 7.111-17.067 10.666-32.711 10.666-46.934l-0.001 0.003zM785.064 494.933v-409.599h-74.424v-68.267h91.492c14.221 0 26.312 4.978 36.266 14.934 9.955 9.955 14.934 22.044 14.934 36.266v477.868l0.002-0.003c0 14.224-3.557 29.867-10.666 46.934-7.111 17.066-15.645 30.579-25.6 40.533l-166.4 166.401c-9.957 9.956-23.467 18.489-40.537 25.6-17.066 7.113-32.711 10.668-46.934 10.668h-341.331c-14.222 0-26.311-4.978-36.267-14.933-9.955-9.958-14.933-22.046-14.933-36.268v-70.253h68.267v53.186h273.066l68.267-4.266c10.311-3.555 17.6-7.466 21.865-11.733l166.934-166.933c4.268-4.267 8.178-11.557 11.734-21.867zM887.465 597.333v-409.599h-74.424v-68.266h91.49c14.223 0 26.314 4.978 36.268 14.934 9.955 9.955 14.934 22.044 14.934 36.266v477.867l0.002-0.003c0 14.223-3.557 29.866-10.666 46.933-7.111 17.067-15.645 30.579-25.6 40.534l-166.4 166.401c-9.957 9.956-23.467 18.489-40.537 25.6-17.067 7.111-32.712 10.667-46.934 10.667h-341.332c-14.222 0-26.312-4.979-36.267-14.934-9.956-9.956-14.934-22.044-14.934-36.266v-70.252h68.267v53.185h273.066l68.268-4.266c10.311-3.556 17.6-7.466 21.865-11.733l166.934-166.933c4.268-4.267 8.178-11.557 11.734-21.867z" />
+<glyph unicode="" d="M773.849 688.348c11.878-11.877 17.815-26.107 17.815-42.69l0.336-437.982c-0.448-17.032-6.499-31.374-18.151-43.026-11.877-11.876-26.106-17.814-42.689-17.814l-437.983 0.337c-16.583-0.448-30.923 5.378-43.025 17.479-11.876 11.875-17.815 26.329-17.815 43.36l-0.337 50.084c0.448 17.030 6.499 31.373 18.151 43.026 11.877 11.875 26.107 17.813 42.689 17.813h197.647l-236.637 236.639c-11.653 11.653-17.479 25.995-17.479 43.026 0 17.030 5.826 31.373 17.479 43.025l43.025 43.025c11.653 11.652 25.994 17.479 43.025 17.479s31.373-5.826 43.025-17.479l236.64-236.639-0.002 197.647c0.002 16.583 5.939 30.812 17.816 42.69 11.652 11.652 25.994 17.702 43.025 18.151h50.42c17.031-0.448 31.373-6.498 43.025-18.151v0z" />
<glyph unicode="" d="M462 150.431v400.479l-233.19-200.239zM562 150.431l233.191 200.239-233.191 200.24zM1009.066 819.080c-9.955 9.955-22.045 14.934-36.266 14.934h-921.6c-14.222 0-26.312-4.979-36.267-14.934-9.955-9.955-14.933-22.044-14.933-36.266v-700.172c0-14.222 4.979-26.312 14.934-36.267s22.045-14.934 36.266-14.934h921.6c14.222 0 26.312 4.979 36.267 14.934s14.933 22.044 14.933 36.266v700.173c0 14.221-4.979 26.311-14.934 36.266zM68.267 765.747h0.003v-25.95h-0.003v25.95zM955.733 99.708h-887.467v1.459h0.003v503.001l887.461-0.003v-467.998h0.003v-36.459z" />
+<glyph unicode="" d="M870.483 591.712c11.879-11.878 17.816-26.107 17.816-42.691l0.337-437.983c-0.448-17.031-6.5-31.373-18.153-43.025-11.876-11.875-26.106-17.814-42.688-17.814l-437.983 0.336c-16.582-0.447-30.924 5.379-43.025 17.48-11.876 11.875-17.814 26.33-17.814 43.361l-0.337 50.084c0.449 17.029 6.5 31.373 18.151 43.025 11.878 11.875 26.107 17.812 42.689 17.812l197.647 0.002-236.639 236.639c-11.653 11.653-17.479 25.995-17.479 43.026-0.001 17.030 5.825 31.373 17.479 43.025l43.025 43.025c11.653 11.652 25.994 17.479 43.025 17.479 17.030 0 31.373-5.826 43.025-17.479l236.641-236.64-0.003 197.648c0.002 16.583 5.939 30.812 17.817 42.69 11.651 11.652 25.993 17.702 43.024 18.151h50.42c17.031-0.449 31.373-6.499 43.024-18.15l0.001-0.001zM307.461 588.006c-23.661-23.661-62.38-23.662-86.042 0l-43.035 43.035c-23.662 23.661-23.662 62.379 0 86.041l43.035 43.035c23.661 23.661 62.38 23.662 86.041 0l43.035-43.035c23.661-23.661 23.661-62.38 0-86.041l-43.034-43.035z" />
<glyph unicode="" d="M27.136 97.267h300.708v661.34h-300.708v-661.34zM177.5 194.608c-39.117 0-70.82 31.703-70.82 70.82s31.703 70.82 70.82 70.82c39.117 0 70.82-31.703 70.82-70.82 0-39.117-31.703-70.82-70.82-70.82zM84.009 705.256h184.074v-313.528h-184.074v313.528zM358.236 94.748h300.708v661.32h-300.708v-661.32zM508.58 192.089c-39.117 0-70.82 31.703-70.82 70.82s31.703 70.82 70.82 70.82c39.117 0 70.82-31.703 70.82-70.82 0.020-39.117-31.703-70.82-70.82-70.82zM415.109 702.717h184.074v-313.528h-184.074v313.528zM696.156 756.067v-661.34h300.708v661.34h-300.708zM846.5 192.089c-39.117 0-70.82 31.703-70.82 70.82s31.703 70.82 70.82 70.82c39.117 0 70.82-31.703 70.82-70.82 0.020-39.117-31.703-70.82-70.82-70.82zM937.103 389.209h-184.074v313.508h184.074v-313.508z" />
+<glyph unicode="" d="M250.319 688.516c11.877 11.878 26.107 17.815 42.69 17.815l437.982 0.336c17.032-0.448 31.374-6.499 43.026-18.151 11.876-11.877 17.814-26.106 17.814-42.689l-0.337-437.983c0.448-16.583-5.378-30.923-17.479-43.025-11.875-11.876-26.329-17.815-43.36-17.815l-50.084-0.337c-17.030 0.448-31.373 6.499-43.026 18.151-11.875 11.877-17.813 26.107-17.813 42.689v197.647l-236.639-236.637c-11.653-11.653-25.995-17.479-43.026-17.479-17.030 0-31.373 5.826-43.025 17.479l-43.025 43.025c-11.652 11.653-17.479 25.994-17.479 43.025s5.826 31.373 17.479 43.025l236.639 236.64-197.647-0.002c-16.583 0.002-30.812 5.939-42.69 17.816-11.652 11.652-17.702 25.994-18.151 43.025v50.42c0.448 17.031 6.498 31.373 18.151 43.025v0z" />
+<glyph unicode="" d="M346.955 785.15c11.878 11.879 26.107 17.816 42.691 17.816l437.983 0.337c17.031-0.448 31.373-6.5 43.025-18.153 11.875-11.876 17.814-26.106 17.814-42.688l-0.336-437.983c0.447-16.582-5.379-30.924-17.48-43.025-11.875-11.876-26.33-17.814-43.361-17.814l-50.084-0.337c-17.029 0.449-31.373 6.5-43.025 18.151-11.875 11.878-17.812 26.107-17.812 42.689l-0.002 197.647-236.639-236.639c-11.653-11.653-25.995-17.479-43.026-17.479-17.030-0.001-31.373 5.825-43.025 17.479l-43.025 43.025c-11.652 11.653-17.479 25.994-17.479 43.025 0 17.030 5.826 31.373 17.479 43.025l236.64 236.641-197.648-0.003c-16.583 0.002-30.812 5.939-42.69 17.817-11.652 11.651-17.702 25.993-18.151 43.024v50.42c0.449 17.031 6.499 31.373 18.15 43.024l0.001 0.001zM350.661 222.128c23.661-23.661 23.662-62.38 0-86.042l-43.035-43.035c-23.661-23.662-62.379-23.662-86.041 0l-43.035 43.035c-23.661 23.661-23.662 62.38 0 86.041l43.035 43.035c23.661 23.661 62.38 23.661 86.041 0l43.035-43.034z" />
+<glyph unicode="" d="M481.57 335.396c-33.462 0-60.84 27.378-60.84 60.84v60.861c0 33.462 27.377 60.84 60.839 60.84h60.861c33.462 0 60.84-27.378 60.84-60.84v-60.861c0-33.462-27.378-60.84-60.84-60.84h-60.86z" />
<glyph unicode="" d="M438.857 886.857q119.429 0 220.286-58.857t159.714-159.714 58.857-220.286-58.857-220.286-159.714-159.714-220.286-58.857-220.286 58.857-159.714 159.714-58.857 220.286 58.857 220.286 159.714 159.714 220.286 58.857zM512 174.286v108.571q0 8-5.143 13.429t-12.571 5.429h-109.714q-7.429 0-13.143-5.714t-5.714-13.143v-108.571q0-7.429 5.714-13.143t13.143-5.714h109.714q7.429 0 12.571 5.429t5.143 13.429zM510.857 370.857l10.286 354.857q0 6.857-5.714 10.286-5.714 4.571-13.714 4.571h-125.714q-8 0-13.714-4.571-5.714-3.429-5.714-10.286l9.714-354.857q0-5.714 5.714-10t13.714-4.286h105.714q8 0 13.429 4.286t6 10z" />
<glyph unicode="" d="M733.714 448.571q0 15.429-10.286 25.714l-258.857 258.857q-10.286 10.286-25.714 10.286t-25.714-10.286l-258.857-258.857q-10.286-10.286-10.286-25.714t10.286-25.714l52-52q10.286-10.286 25.714-10.286t25.714 10.286l108 108v-286.857q0-14.857 10.857-25.714t25.714-10.857h73.143q14.857 0 25.714 10.857t10.857 25.714v286.857l108-108q10.857-10.857 25.714-10.857t25.714 10.857l52 52q10.286 10.286 10.286 25.714zM877.714 448q0-119.429-58.857-220.286t-159.714-159.714-220.286-58.857-220.286 58.857-159.714 159.714-58.857 220.286 58.857 220.286 159.714 159.714 220.286 58.857 220.286-58.857 159.714-159.714 58.857-220.286z" />
<glyph unicode="" d="M665.714 309.143l58.286 58.286q10.857 10.857 10.857 25.714t-10.857 25.714l-259.429 259.429q-10.857 10.857-25.714 10.857t-25.714-10.857l-259.429-259.429q-10.857-10.857-10.857-25.714t10.857-25.714l58.286-58.286q10.857-10.857 25.714-10.857t25.714 10.857l175.429 175.429 175.429-175.429q10.857-10.857 25.714-10.857t25.714 10.857zM877.714 448q0-119.429-58.857-220.286t-159.714-159.714-220.286-58.857-220.286 58.857-159.714 159.714-58.857 220.286 58.857 220.286 159.714 159.714 220.286 58.857 220.286-58.857 159.714-159.714 58.857-220.286z" />