Skip to content

Commit 6280b8c

Browse files
fwolanskichrisvfritz
authored andcommitted
Prevent language name from sliding with the code; always keep it in the top right (vuejs#1060)
1 parent 5a84a04 commit 6280b8c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

themes/vue/source/css/_common.styl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ a.button
6262

6363
.highlight
6464
overflow-x: auto
65-
position: relative
6665
padding: 0
6766
background-color: $codebg
6867
padding: .8em .8em .4em
@@ -84,9 +83,9 @@ a.button
8483
.line
8584
min-height: $code-line-height
8685
&.html, &.js, &.bash, &.css
87-
.code:after
86+
.code:before
8887
position: absolute
89-
top: 0
88+
margin-top: -1em
9089
right: 0
9190
color: #ccc
9291
text-align: right
@@ -95,13 +94,13 @@ a.button
9594
line-height: 15px
9695
height: 15px
9796
font-weight: 600
98-
&.html .code:after
97+
&.html .code:before
9998
content: 'HTML'
100-
&.js .code:after
99+
&.js .code:before
101100
content: 'JS'
102-
&.bash .code:after
101+
&.bash .code:before
103102
content: 'Shell'
104-
&.css .code:after
103+
&.css .code:before
105104
content: 'CSS'
106105

107106
#main

0 commit comments

Comments
 (0)