style.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. @font-face {
  2. font-family: Lato;
  3. src: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/176026/ProximaNova-Regular.otf);
  4. font-weight: 300;
  5. }
  6. body, html {
  7. font-family: Lato;
  8. }
  9. h1 {
  10. font-size: 28px;
  11. line-height: 40px;
  12. margin-top: 20px;
  13. }
  14. h1 a {
  15. text-decoration: none;
  16. color: #48c15e;
  17. }
  18. h1 p {
  19. font-size: 22px;
  20. }
  21. #grid {
  22. -moz-transform: translate(1px, 0px);
  23. -ms-transform: translate(1px, 0px);
  24. -webkit-transform: translate(1px, 0px);
  25. transform: translate(1px, 0px);
  26. }
  27. /* GRAPH - 1 */
  28. #graph-1 {
  29. stroke: url(#gradient-1);
  30. stroke-width: 1.5;
  31. fill: transparent;
  32. stroke-linecap: round;
  33. stroke-linejoin: round;
  34. -moz-animation: lineani 1.3s linear forwards;
  35. -webkit-animation: lineani 1.3s linear forwards;
  36. animation: lineani 1.3s linear forwards;
  37. }
  38. #graph-2 {
  39. stroke: url(#gradient-2);
  40. stroke-width: 1.5;
  41. fill: transparent;
  42. stroke-linecap: round;
  43. stroke-linejoin: round;
  44. -moz-animation: lineani 1.3s linear forwards;
  45. -webkit-animation: lineani 1.3s linear forwards;
  46. animation: lineani 1.3s linear forwards;
  47. }
  48. #poly-1 {
  49. fill: url(#gradient-3);
  50. }
  51. #poly-2 {
  52. fill: url(#gradient-4);
  53. }
  54. @-moz-keyframes lineani {
  55. to {
  56. stroke-dashoffset: 0;
  57. }
  58. }
  59. @-webkit-keyframes lineani {
  60. to {
  61. stroke-dashoffset: 0;
  62. }
  63. }
  64. @keyframes lineani {
  65. to {
  66. stroke-dashoffset: 0;
  67. }
  68. }
  69. .underlay {
  70. stroke-width: 5;
  71. fill: transparent;
  72. stroke-linecap: round;
  73. stroke-linejoin: round;
  74. stroke: #24303a;
  75. }
  76. #circle-graph-1 {
  77. stroke: url(#gradient-1);
  78. stroke-width: 5;
  79. fill: transparent;
  80. stroke-linecap: round;
  81. stroke-linejoin: round;
  82. }
  83. .chart-circle {
  84. -moz-transform: rotate(90deg);
  85. -ms-transform: rotate(90deg);
  86. -webkit-transform: rotate(90deg);
  87. transform: rotate(90deg);
  88. }
  89. #circle-graph-2 {
  90. stroke: url(#gradient-2);
  91. stroke-width: 5;
  92. fill: transparent;
  93. stroke-linecap: round;
  94. stroke-linejoin: round;
  95. }
  96. body {
  97. background-color: #24303a;
  98. color: white;
  99. text-align: center;
  100. }
  101. .charts-container {
  102. padding: 20px;
  103. width: 100%;
  104. max-width: 1024px;
  105. display: inline-block;
  106. -moz-box-sizing: border-box;
  107. -webkit-box-sizing: border-box;
  108. box-sizing: border-box;
  109. }
  110. .chart {
  111. color: #4a667a;
  112. text-align: left;
  113. position: relative;
  114. height: auto;
  115. background-color: #1e2730;
  116. display: inline-block;
  117. float: left;
  118. position: relative;
  119. -moz-box-sizing: border-box;
  120. -webkit-box-sizing: border-box;
  121. box-sizing: border-box;
  122. margin: 10px;
  123. padding: 15px 20px 65px 20px;
  124. }
  125. .chart.circle {
  126. padding: 15px 20px 40px 20px;
  127. }
  128. @media screen and (max-width: 700px) {
  129. .chart {
  130. width: calc(100% - 20px);
  131. }
  132. }
  133. @media screen and (min-width: 700px) {
  134. .chart {
  135. width: calc(50% - 20px);
  136. }
  137. }
  138. .title {
  139. font-size: 22px;
  140. margin-bottom: 12px;
  141. }
  142. .chart-circle {
  143. display: inline-block;
  144. position: relative;
  145. }
  146. .chart-svg {
  147. position: relative;
  148. }
  149. .circle-percentage {
  150. position: absolute;
  151. color: white;
  152. font-size: 48px;
  153. left: 50%;
  154. top: 50%;
  155. -moz-transform: translate(-50%, -50%);
  156. -ms-transform: translate(-50%, -50%);
  157. -webkit-transform: translate(-50%, -50%);
  158. transform: translate(-50%, -50%);
  159. }
  160. @media screen and (max-width: 480px) {
  161. .circle-percentage {
  162. font-size: 32px;
  163. }
  164. }
  165. .align-center {
  166. text-align: center;
  167. }
  168. .chart-line {
  169. width: 80%;
  170. }
  171. .valueX {
  172. font-size: 14px;
  173. }
  174. .chart-values {
  175. text-align: right;
  176. font-size: 18px;
  177. position: absolute;
  178. right: 0;
  179. bottom: 0;
  180. padding: 15px;
  181. }
  182. .h-value {
  183. -moz-transition: 700ms ease-in-out;
  184. -o-transition: 700ms ease-in-out;
  185. -webkit-transition: 700ms ease-in-out;
  186. transition: 700ms ease-in-out;
  187. opacity: 0;
  188. }
  189. .h-value.visible {
  190. opacity: 1;
  191. }
  192. .percentage-value {
  193. -moz-transition: 700ms ease-in-out;
  194. -o-transition: 700ms ease-in-out;
  195. -webkit-transition: 700ms ease-in-out;
  196. transition: 700ms ease-in-out;
  197. color: #48c15e;
  198. margin-top: 2px;
  199. opacity: 0;
  200. }
  201. .percentage-value.negative {
  202. color: #ef6670;
  203. }
  204. .percentage-value.visible {
  205. opacity: 1;
  206. }
  207. .total-gain {
  208. color: white;
  209. font-size: 48px;
  210. }
  211. .triangle {
  212. width: 0;
  213. height: 0;
  214. border-style: solid;
  215. border-width: 28px 0 0 28px;
  216. position: absolute;
  217. left: 0;
  218. bottom: 0;
  219. }
  220. .triangle.red {
  221. border-color: transparent transparent transparent #ef6670;
  222. }
  223. .triangle.green {
  224. border-color: transparent transparent transparent #48c15e;
  225. }
  226. .horizontal,
  227. .vertical {
  228. stroke-width: 0.1;
  229. stroke: #4a667a;
  230. }
  231. /* CLEARFIX HELPER */
  232. .cf:before,
  233. .cf:after {
  234. content: " ";
  235. /* 1 */
  236. display: table;
  237. /* 2 */
  238. }
  239. .cf:after {
  240. clear: both;
  241. }
  242. /**
  243. * For IE 6/7 only
  244. * Include this rule to trigger hasLayout and contain floats.
  245. */
  246. .cf {
  247. *zoom: 1;
  248. }
  249. /*IRRELEVANT CSS*/
  250. .followlinks {
  251. position: fixed;
  252. right: 35px;
  253. bottom: 15px;
  254. display: table;
  255. }
  256. .followlinks a {
  257. display: table-cell;
  258. vertical-align: middle;
  259. padding-left: 10px;
  260. color: white;
  261. }
  262. .followlinks a svg path {
  263. fill: white;
  264. }
  265. .heartIt {
  266. margin-top: 50px;
  267. margin-bottom: 80px;
  268. }
  269. .heartIt p {
  270. font-size: 24px;
  271. line-height: 40px;
  272. }
  273. .heartIt img {
  274. width: 64px;
  275. height: auto;
  276. opacity: 0.7;
  277. -webkit-filter: invert(100%);
  278. filter: invert(100%);
  279. }
  280. .original {
  281. color: #ef6670;
  282. font-size: 14px;
  283. }