From 37895a9ab7c579983ef1b50ad5cc9e0130c721d3 Mon Sep 17 00:00:00 2001 From: brunosimon Date: Sun, 3 Sep 2017 22:28:39 +0200 Subject: [PATCH] :lipstick: Site > Viewer > Add removed line icon --- site/src/components/files-tree-file/index.vue | 2 +- .../components/files-tree-folder/style.styl | 12 +++++++++++- site/src/components/viewer/style.styl | 17 +++++++++++++++-- site/src/components/viewer/template.html | 4 +++- site/static/svg/removed.svg | 19 +++++++++++++++++++ 5 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 site/static/svg/removed.svg diff --git a/site/src/components/files-tree-file/index.vue b/site/src/components/files-tree-file/index.vue index a6fe49a..246515d 100644 --- a/site/src/components/files-tree-file/index.vue +++ b/site/src/components/files-tree-file/index.vue @@ -1,3 +1,3 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/site/src/components/files-tree-folder/style.styl b/site/src/components/files-tree-folder/style.styl index 5ed3174..37b4cf2 100644 --- a/site/src/components/files-tree-folder/style.styl +++ b/site/src/components/files-tree-folder/style.styl @@ -1,2 +1,12 @@ .name - cursor pointer \ No newline at end of file + cursor pointer + +.icon + display inline-block + width 12px + height 12px + + img + display inline-block + width 100% + height 100% \ No newline at end of file diff --git a/site/src/components/viewer/style.styl b/site/src/components/viewer/style.styl index 70b5d9d..a30fa7e 100644 --- a/site/src/components/viewer/style.styl +++ b/site/src/components/viewer/style.styl @@ -59,8 +59,21 @@ .removed height 1px - background #FD4141 - opacity 0.4 + + &::after + content '' + position absolute + top 0 + left 0 + width 100% + height 100% + background #FD4141 + opacity 0.4 + + .icon + position absolute + left 8px + top -8px .active height 20px diff --git a/site/src/components/viewer/template.html b/site/src/components/viewer/template.html index 6a7988a..08c5794 100644 --- a/site/src/components/viewer/template.html +++ b/site/src/components/viewer/template.html @@ -4,7 +4,9 @@
! - + + + {{ line }}. ?
diff --git a/site/static/svg/removed.svg b/site/static/svg/removed.svg new file mode 100644 index 0000000..8d18ce2 --- /dev/null +++ b/site/static/svg/removed.svg @@ -0,0 +1,19 @@ + + + + Ligne supp + Created with Sketch. + + + + + + + + + + + + + + \ No newline at end of file