debian-mirror-gitlab/app/assets/stylesheets/framework/highlight.scss

71 lines
1.2 KiB
SCSS
Raw Normal View History

2015-04-26 12:48:37 +05:30
.file-content.code {
2014-09-02 18:07:02 +05:30
border: none;
box-shadow: none;
margin: 0px;
padding: 0px;
table-layout: fixed;
pre {
padding: 10px;
border: none;
border-radius: 0;
font-family: $monospace_font;
2015-04-26 12:48:37 +05:30
font-size: $code_font_size !important;
line-height: $code_line_height !important;
2014-09-02 18:07:02 +05:30
margin: 0;
2015-04-26 12:48:37 +05:30
overflow: auto;
overflow-y: hidden;
white-space: pre;
word-wrap: normal;
2014-09-02 18:07:02 +05:30
code {
2015-04-26 12:48:37 +05:30
font-family: $monospace_font;
2014-09-02 18:07:02 +05:30
white-space: pre;
word-wrap: normal;
padding: 0;
.line {
display: inline;
}
}
}
.line-numbers {
padding: 10px;
text-align: right;
float: left;
a {
font-family: $monospace_font;
display: block;
2015-04-26 12:48:37 +05:30
font-size: $code_font_size !important;
line-height: $code_line_height !important;
2014-09-02 18:07:02 +05:30
white-space: nowrap;
i {
visibility: hidden;
@extend .pull-left;
}
&:hover i {
visibility: visible;
}
}
}
2015-04-26 12:48:37 +05:30
}
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
.note-text .code {
border: none;
box-shadow: none;
background: $background-color;
padding: 1em;
overflow-x: auto;
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
code {
font-family: $monospace_font;
white-space: pre;
word-wrap: normal;
padding: 0;
2014-09-02 18:07:02 +05:30
}
}