diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-07-25 21:46:09 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-07-25 21:46:09 +0000 |
commit | 5035250337427baa1f6462ee4b1c004f529d765c (patch) | |
tree | a564b7983ff2b404e5cfc02b08e7dc4ea022a534 /app/assets/stylesheets | |
parent | ac202fff47b121817b75a593339bcc413b2b2810 (diff) | |
parent | 63c25a452e97374ca95d533b20344735c6c9e7b0 (diff) | |
download | gitlab-ce-5035250337427baa1f6462ee4b1c004f529d765c.tar.gz |
Merge branch 'jivl-redesign-contributors-graph' into 'master'
Add bar chart component
See merge request gitlab-org/gitlab-ce!20082
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r-- | app/assets/stylesheets/pages/graph.scss | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/graph.scss b/app/assets/stylesheets/pages/graph.scss index 84da9180f93..49d8a5d959b 100644 --- a/app/assets/stylesheets/pages/graph.scss +++ b/app/assets/stylesheets/pages/graph.scss @@ -31,3 +31,61 @@ color: $gl-text-red; } } + +.svg-graph-container { + width: 100%; + + .axis-tick { + opacity: 0.4; + } + + .tick-text { + fill: $gl-text-color-secondary; + } + + .x-axis-text { + fill: $theme-gray-900; + } + + .bar-rect { + fill: rgba($blue-500, 0.1); + stroke: $blue-500; + } + + .bar-rect:hover { + fill: rgba($blue-700, 0.3); + } + + .y-axis-label { + line { + stroke: $stat-graph-axis-fill; + } + + text { + font-weight: bold; + font-size: 12px; + fill: $theme-gray-800; + } + } +} + +.svg-graph-container-with-grab { + cursor: grab; + cursor: -webkit-grab; +} + +.svg-graph-container-grabbed { + cursor: grabbing; + cursor: -webkit-grabbing; +} + +@keyframes flickerAnimation { + 0% { opacity: 1; } + 50% { opacity: 0; } + 100% { opacity: 1; } +} + +.animate-flicker { + animation: flickerAnimation 1.5s infinite; + fill: $theme-gray-500; +} |