💄 Site > Versions > Improve font-size and active
This commit is contained in:
@@ -1,20 +1,19 @@
|
|||||||
.version
|
.version
|
||||||
position relative
|
position relative
|
||||||
display block
|
display block
|
||||||
width 200px
|
width 202px
|
||||||
height 50px
|
height 50px
|
||||||
background #232733
|
|
||||||
margin-top 1px
|
|
||||||
margin-bottom 2px
|
|
||||||
margin-left 1px
|
|
||||||
color #F6F6F6
|
color #F6F6F6
|
||||||
-webkit-font-smoothing initial
|
-webkit-font-smoothing initial
|
||||||
-moz-osx-font-smoothing initial
|
-moz-osx-font-smoothing initial
|
||||||
|
|
||||||
&.active
|
.background
|
||||||
width 202px
|
position absolute
|
||||||
margin-left 0
|
top 0
|
||||||
background #2D2D49
|
right 1px
|
||||||
|
bottom 1px
|
||||||
|
left 1px
|
||||||
|
background #232733
|
||||||
|
|
||||||
.date
|
.date
|
||||||
position absolute
|
position absolute
|
||||||
@@ -28,7 +27,7 @@
|
|||||||
top 28px
|
top 28px
|
||||||
left 8px
|
left 8px
|
||||||
opacity 0.6
|
opacity 0.6
|
||||||
font-size 7px
|
font-size 8px
|
||||||
text-transform uppercase
|
text-transform uppercase
|
||||||
|
|
||||||
.modified-lines
|
.modified-lines
|
||||||
@@ -56,8 +55,13 @@
|
|||||||
&.removed
|
&.removed
|
||||||
background #FD4141
|
background #FD4141
|
||||||
|
|
||||||
&:hover
|
&.active
|
||||||
|
.background
|
||||||
|
background #2D2D49
|
||||||
|
right 0
|
||||||
|
left 0
|
||||||
|
|
||||||
|
&:hover
|
||||||
.date
|
.date
|
||||||
.from-now
|
.from-now
|
||||||
// .modified-lines
|
// .modified-lines
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<a href="#" class="version" :class="[isActive ? 'active' : '']">
|
<a href="#" class="version" :class="[isActive ? 'active' : '']">
|
||||||
|
<span class="background"></span>
|
||||||
<div class="date">
|
<div class="date">
|
||||||
{{ date }}
|
{{ date }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user