Merge pull request #2 from artzhuchka/patch-1

Terminal code fix
This commit is contained in:
Oleg Korobenko 2015-12-09 18:23:16 +03:00
commit 7f8471924e

View File

@ -7,19 +7,17 @@
} }
&_code { &_code {
clear: left; display: table;
min-height: 42px; min-height: 42px;
padding: 15px 0; padding: 10px 0;
color: #F1F1F1; color: #f1f1f1;
font-family: monospace; font-family: monospace;
font-size: 12px; font-size: 12px;
line-height: 19px; line-height: 18px;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
background-color: #2a2a2a; background-color: #2a2a2a;
counter-reset: line-numbering; counter-reset: line-numbering;
margin-top: 0;
overflow-y: scroll;
} }
&_footer { &_footer {
@ -28,24 +26,24 @@
} }
.code-line { .code-line {
position: relative; display: table-row;
padding: 0 15px 0 55px;
margin: 0;
min-height: 16px;
&_counter { &_counter {
display: inline-block; display: table-cell;
vertical-align: top;
width: 1px;
text-align: right; text-align: right;
min-width: 40px;
margin-left: -33px;
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
color: darken(@gray-lighter, 15%); color: darken(@gray-lighter, 15%);
padding: 0 10px;
border-right: 1px solid rgba(255, 255, 255, 0.1);
&:before { &:before {
content: counter(line-numbering); content: counter(line-numbering);
counter-increment: line-numbering; counter-increment: line-numbering;
padding-right: 1em;
} }
&:hover { &:hover {
text-decoration: none; text-decoration: none;
color: @gray-lighter; color: @gray-lighter;
@ -53,7 +51,9 @@
} }
&_body { &_body {
display: inline-block; display: table-cell;
vertical-align: top;
padding: 0 10px;
} }
&:hover { &:hover {