💄 Site > Versions > Add style

This commit is contained in:
brunosimon
2017-09-03 21:53:59 +02:00
parent b1dc8bb2ee
commit 71863894b8
8 changed files with 82 additions and 18 deletions
@@ -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,
+2 -1
View File
@@ -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)
+53
View File
@@ -1,2 +1,55 @@
.version
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
+2 -1
View File
@@ -6,7 +6,8 @@
{{ fromNow }}
</div>
<div class="repartition">
<span v-for="added in repartition.added">1</span><span v-for="removed in repartition.removed">0</span>
<span class="block added" v-for="block in repartition.added"></span>
<span class="block removed" v-for="block in repartition.removed"></span>
</div>
<div class="modified-lines">
{{ modifiedLines }}
+5
View File
@@ -29,6 +29,11 @@ export default
})
return versions
},
scrollbarWidth()
{
return this.$store.state.scrollbarWidth
}
},
+4 -4
View File
@@ -2,7 +2,7 @@
position absolute
top 30px
left 0
width 25%
height 100%
overflow-y scroll
background rgba(255, 0, 0, 0.3)
width 202px
bottom 0
overflow hidden
background #1E202F
@@ -1,3 +1,5 @@
<div class="versions">
<div class="scroll-hack" :style="`bottom:-${scrollbarWidth}px;right:-${scrollbarWidth}px;`">
<version v-for="(version, key) of versions" :key="version.date" :content="version" @click.native.prevent="onVersionClick(version, key)"></version>
</div>
</div>
+1 -10
View File
@@ -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