diff --git a/site/src/components/application/style.styl b/site/src/components/application/style.styl index d0ddd9a..5f2bf32 100644 --- a/site/src/components/application/style.styl +++ b/site/src/components/application/style.styl @@ -6,6 +6,17 @@ width 100% height 100% overflow hidden + font-family Helvetica, Arial + +a + text-decoration none + +// Scroll hack +.scroll-hack + position absolute + top 0 + left 0 + overflow scroll // Reset html, body, div, span, applet, object, iframe, diff --git a/site/src/components/file/style.styl b/site/src/components/file/style.styl index e4d0d75..758f01c 100644 --- a/site/src/components/file/style.styl +++ b/site/src/components/file/style.styl @@ -2,7 +2,8 @@ position absolute top 0 right 0 - width 75% + left 315px + right 0 height 100% background rgba(0, 255, 0, 0.3) diff --git a/site/src/components/version/style.styl b/site/src/components/version/style.styl index e7d4f5c..8608430 100644 --- a/site/src/components/version/style.styl +++ b/site/src/components/version/style.styl @@ -1,2 +1,55 @@ .version - display block \ No newline at end of file + position relative + display block + width 200px + height 50px + background #232733 + margin-top 1px + margin-bottom 2px + margin-left 1px + color #F6F6F6 + + &.active + width 202px + margin-left 0 + background #2D2D49 + + .date + position absolute + top 14px + left 8px + opacity 0.6 + font-size 10px + + .from-now + position absolute + top 28px + left 8px + opacity 0.6 + font-size 7px + text-transform uppercase + + .modified-lines + position absolute + top 25px + right 8px + opacity 0.6 + font-size 10px + + .repartition + position absolute + top 17px + right 6px + font-size 0 + + .block + display inline-block + width 4px + height 4px + margin-right 2px + + &.added + background #41FF79 + + &.removed + background #FD4141 \ No newline at end of file diff --git a/site/src/components/version/template.html b/site/src/components/version/template.html index 74360ff..f146eb1 100644 --- a/site/src/components/version/template.html +++ b/site/src/components/version/template.html @@ -6,7 +6,8 @@ {{ fromNow }}
- 10 + +
{{ modifiedLines }} diff --git a/site/src/components/versions/script.js b/site/src/components/versions/script.js index f8a212e..2928e33 100644 --- a/site/src/components/versions/script.js +++ b/site/src/components/versions/script.js @@ -29,6 +29,11 @@ export default }) return versions + }, + + scrollbarWidth() + { + return this.$store.state.scrollbarWidth } }, diff --git a/site/src/components/versions/style.styl b/site/src/components/versions/style.styl index 11ccf48..27c0079 100644 --- a/site/src/components/versions/style.styl +++ b/site/src/components/versions/style.styl @@ -2,7 +2,7 @@ position absolute top 30px left 0 - width 25% - height 100% - overflow-y scroll - background rgba(255, 0, 0, 0.3) \ No newline at end of file + width 202px + bottom 0 + overflow hidden + background #1E202F \ No newline at end of file diff --git a/site/src/components/versions/template.html b/site/src/components/versions/template.html index 295d21d..1668e4a 100644 --- a/site/src/components/versions/template.html +++ b/site/src/components/versions/template.html @@ -1,3 +1,5 @@
- +
+ +
\ No newline at end of file diff --git a/site/src/components/viewer/style.styl b/site/src/components/viewer/style.styl index 73390ec..3ccc78c 100644 --- a/site/src/components/viewer/style.styl +++ b/site/src/components/viewer/style.styl @@ -26,16 +26,7 @@ overflow hidden .version-active & - width 75% - -.scroll-hack - position absolute - top 0 - left 0 - bottom -15px - right -15px - overflow scroll - + width calc(100% - 202px) .lines position absolute