_charts.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // CHARTS
  2. // -----------------------------------------------------------------------------
  3. .chart {
  4. width: 100%;
  5. &.chart-xs {
  6. height: 150px;
  7. }
  8. &.chart-sm {
  9. height: 184px;
  10. }
  11. &.chart-md {
  12. height: 350px;
  13. }
  14. &.chart-unity {
  15. height: 610px;
  16. }
  17. &.chart-lg {
  18. height: 500px;
  19. }
  20. }
  21. // CHARTS TOOLTIP
  22. // -----------------------------------------------------------------------------
  23. #flotTip {
  24. padding: 4px 8px;
  25. background-color: #000;
  26. z-index: 100;
  27. color: #FFF;
  28. opacity: .7;
  29. font-size: 11px;
  30. -webkit-border-radius: 5px;
  31. -moz-border-radius: 5px;
  32. border-radius: 5px;
  33. }
  34. .jqstooltip {
  35. min-width: 30px;
  36. min-height: 25px;
  37. border: 0 !important;
  38. height: auto !important;
  39. width: auto !important;
  40. }
  41. // CIRCULAR
  42. // -----------------------------------------------------------------------------
  43. .circular-bar {
  44. margin: 25px 0;
  45. .circular-bar-chart {
  46. position: relative;
  47. }
  48. strong {
  49. display: block;
  50. font-weight: 600;
  51. font-size: 18px;
  52. line-height: 30px;
  53. position: absolute;
  54. top: 35%;
  55. width: 80%;
  56. left: 10%;
  57. text-align: center;
  58. }
  59. label {
  60. display: block;
  61. font-weight: 100;
  62. font-size: 17px;
  63. line-height: 20px;
  64. position: absolute;
  65. top: 50%;
  66. width: 80%;
  67. left: 10%;
  68. text-align: center;
  69. }
  70. &.circular-bar-xs {
  71. width: 50px;
  72. strong {
  73. display: none;
  74. }
  75. label {
  76. font-size: 11px;
  77. left: 0;
  78. text-align: center;
  79. top: 28%;
  80. width: 100%;
  81. }
  82. }
  83. }
  84. // GAUGE
  85. // -----------------------------------------------------------------------------
  86. .gauge-chart {
  87. margin: 25px 0;
  88. strong {
  89. display: block;
  90. font-weight: 600;
  91. font-size: 18px;
  92. line-height: 30px;
  93. text-align: center;
  94. margin-top: 10px;
  95. }
  96. label {
  97. display: block;
  98. font-weight: 100;
  99. font-size: 17px;
  100. line-height: 20px;
  101. padding-bottom: 5px;
  102. text-align: center;
  103. }
  104. }
  105. // SMALL CHARTS
  106. // -----------------------------------------------------------------------------
  107. .small-chart-wrapper {
  108. display: inline-block;
  109. margin: 10px 15px;
  110. width: 100%;
  111. .small-chart {
  112. display: inline-block;
  113. float: left;
  114. margin-bottom: 8px;
  115. min-width: 80px;
  116. }
  117. .small-chart-info {
  118. display: inline-block;
  119. padding: 0 0 0 10px;
  120. label {
  121. display: block;
  122. font-size: 11px;
  123. text-transform: uppercase;
  124. color: #a0a0a0;
  125. padding: 0;
  126. margin: 0;
  127. line-height: 15px;
  128. }
  129. strong {
  130. display: block;
  131. font-size: 13px;
  132. padding: 0;
  133. margin: 0;
  134. line-height: 15px;
  135. }
  136. }
  137. + .small-chart-wrapper {
  138. margin-left: 25px;
  139. }
  140. }
  141. @media only screen and (max-width: 767px) {
  142. .small-chart-wrapper {
  143. margin-right: 0;
  144. margin-left: 0;
  145. text-align: center;
  146. .small-chart {
  147. width: 100%;
  148. text-align: center;
  149. }
  150. .small-chart-info {
  151. padding-left: 0;
  152. }
  153. }
  154. }
  155. // LIQUID
  156. // -----------------------------------------------------------------------------
  157. .liquid-meter {
  158. position: relative;
  159. max-height: 200px;
  160. max-width: 200px;
  161. margin: 0 auto;
  162. width: 100%;
  163. padding-bottom: 50%;
  164. meter {
  165. display: none;
  166. }
  167. &.liquid-meter-loaded {
  168. width: auto;
  169. padding-bottom: 0;
  170. &:before {
  171. display: none;
  172. }
  173. }
  174. }
  175. .liquid-meter-wrapper {
  176. &.liquid-meter-xs {
  177. .liquid-meter {
  178. max-height: 120px;
  179. max-width: 120px;
  180. }
  181. }
  182. &.liquid-meter-sm {
  183. .liquid-meter {
  184. max-height: 150px;
  185. max-width: 150px;
  186. }
  187. }
  188. &.liquid-meter-md {
  189. .liquid-meter {
  190. max-height: 200px;
  191. max-width: 200px;
  192. }
  193. }
  194. &.liquid-meter-lg {
  195. .liquid-meter {
  196. max-height: 230px;
  197. max-width: 230px;
  198. }
  199. }
  200. .liquid-meter-selector {
  201. margin-top: 3px;
  202. a {
  203. text-transform: uppercase;
  204. font-weight: $font-weight-light;
  205. font-size: 11px;
  206. color: #9b9b9b;
  207. border-right: 1px solid #e4e4e4;
  208. display: inline-block;
  209. padding-right: 8px;
  210. margin-right: 8px;
  211. &.active {
  212. color: $color-primary;
  213. }
  214. &:last-child {
  215. border-right: 0;
  216. padding-right: 0;
  217. margin-right: 0;
  218. }
  219. }
  220. }
  221. }
  222. // CHART SELECTOR
  223. // -----------------------------------------------------------------------------
  224. .chart-data-selector {
  225. visibility: hidden;
  226. max-height: 255px;
  227. padding: 6px;
  228. h2 {
  229. color: $panel-title-color;
  230. font-size: $panel-title-size;
  231. line-height: $panel-title-size;
  232. margin: 0;
  233. padding: 0;
  234. text-transform: none;
  235. letter-spacing: -1px;
  236. .multiselect {
  237. background: $panel-heading-background;
  238. border: 0 none;
  239. font-size: $panel-title-size;
  240. font-weight: 600;
  241. margin: -4px 0 0 4px !important;
  242. padding: 3px 12px 3px 8px;
  243. &:hover, &:focus, &:active {
  244. text-decoration: none;
  245. }
  246. }
  247. .multiselect-container {
  248. margin: 0 0 0 4px;
  249. min-width: 120%;
  250. }
  251. }
  252. .chart-data-selector-items {
  253. position: relative;
  254. overflow: hidden;
  255. .chart-active {
  256. visibility: hidden;
  257. }
  258. .chart-hidden {
  259. visibility: hidden;
  260. }
  261. }
  262. &.ready {
  263. max-height: none;
  264. visibility: visible;
  265. .chart-active {
  266. visibility: visible;
  267. position: relative;
  268. z-index: 2;
  269. }
  270. .chart-hidden {
  271. visibility: hidden;
  272. position: absolute;
  273. z-index: 1;
  274. top: -9999px;
  275. }
  276. }
  277. }
  278. // DARK
  279. // -----------------------------------------------------------------------------
  280. html.dark {
  281. .chart-data-selector h2 .multiselect {
  282. background-color: $dark-color-3;
  283. }
  284. }