diff options
author | silverwind <me@silverwind.io> | 2020-02-07 18:09:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 18:09:30 +0100 |
commit | fdf6d25915637184081c821105ed3a59059fd5e2 (patch) | |
tree | 496120af10ea0e97098875077272353b7e717516 /web_src/less | |
parent | 6e6da2c2765ef7b350a7c9139ffb2444f2383151 (diff) | |
download | gitea-fdf6d25915637184081c821105ed3a59059fd5e2.tar.gz gitea-fdf6d25915637184081c821105ed3a59059fd5e2.zip |
Reorganize frontend files and tooling (#10168)
- move "vendor" files to js/vendor and less/vendor
- move swagger to js/standalone (meant for standalone pages)
- move gitgraph to features and streamline its loading
- add linting configs to webpack dependencies in make
- set ignored files for eslint/stylelint directly in their configs
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'web_src/less')
-rw-r--r-- | web_src/less/index.less | 5 | ||||
-rw-r--r-- | web_src/less/vendor/gitGraph.css | 15 |
2 files changed, 18 insertions, 2 deletions
diff --git a/web_src/less/index.less b/web_src/less/index.less index a8ef18953d..1b93024329 100644 --- a/web_src/less/index.less +++ b/web_src/less/index.less @@ -1,3 +1,6 @@ +@import "~highlight.js/styles/github.css"; +@import "./vendor/gitGraph.css"; + @import "_tribute"; @import "_emojify"; @import "_base"; @@ -13,5 +16,3 @@ @import "_admin"; @import "_explore"; @import "_review"; -@import "~highlight.js/styles/github.css"; -@import "../css/gitGraph.css"; diff --git a/web_src/less/vendor/gitGraph.css b/web_src/less/vendor/gitGraph.css new file mode 100644 index 0000000000..bb7e708101 --- /dev/null +++ b/web_src/less/vendor/gitGraph.css @@ -0,0 +1,15 @@ +/* This is a customized version of https://github.com/bluef/gitgraph.js/blob/master/gitgraph.css + Changes include the removal of `body` and `em` styles */ +#git-graph-container, #rel-container {float:left;} +#rel-container {max-width:30%; overflow-x:auto;} +#git-graph-container {overflow-x:auto; width:100%} +#git-graph-container li {list-style-type:none;height:20px;line-height:20px; white-space:nowrap;} +#git-graph-container li .node-relation {font-family:'Bitstream Vera Sans Mono', 'Courier', monospace;} +#git-graph-container li .author {color:#666666;} +#git-graph-container li .time {color:#999999;font-size:80%} +#git-graph-container li a {color:#000000;} +#git-graph-container li a:hover {text-decoration:underline;} +#git-graph-container li a em {color:#BB0000;border-bottom:1px dotted #BBBBBB;text-decoration:none;font-style:normal;} +#rev-container {width:100%} +#rev-list {margin:0;padding:0 5px 0 5px;min-width:95%} +#graph-raw-list {margin:0px;} |