gitlab-org--gitlab-foss/app/assets/stylesheets/framework/highlight.scss

94 lines
1.7 KiB
SCSS
Raw Normal View History

.file-content.code {
2017-11-02 19:59:51 -04:00
border: 0;
box-shadow: none;
margin: 0;
padding: 0;
table-layout: fixed;
pre {
2016-07-05 08:52:20 -04:00
padding: 10px 0;
2017-11-02 19:59:51 -04:00
border: 0;
border-radius: 0 0 $border-radius-default;
2018-07-24 17:17:49 -04:00
font-family: $monospace-font;
font-size: $code-font-size;
line-height: 1.5;
margin: 0;
overflow: auto;
overflow-y: hidden;
white-space: pre;
word-wrap: normal;
2016-01-25 05:42:47 -05:00
border-left: 1px solid;
code {
display: inline-block;
min-width: 100%;
2018-07-24 17:17:49 -04:00
font-family: $monospace-font;
white-space: normal;
word-wrap: normal;
padding: 0;
.line {
display: block;
2016-07-05 08:52:20 -04:00
width: 100%;
padding-left: 10px;
padding-right: 10px;
white-space: pre;
&:empty::before {
content: '\200b';
}
}
}
}
.line-numbers {
padding: 10px;
text-align: right;
float: left;
border-bottom-left-radius: $border-radius-default;
a {
2018-07-24 17:17:49 -04:00
font-family: $monospace-font;
display: block;
2014-01-30 20:12:41 -05:00
white-space: nowrap;
i,
svg {
float: left;
margin-top: 3px;
margin-right: 5px;
2014-01-30 20:12:41 -05:00
visibility: hidden;
}
&:hover,
&:focus {
outline: none;
i,
svg {
visibility: visible;
}
}
}
}
pre .line,
.line-numbers a {
font-size: 0.8125rem;
line-height: 1.1875rem;
min-height: 1.1875rem;
}
}
// Vertically aligns <table> line numbers (eg. blame view)
// see https://gitlab.com/gitlab-org/gitlab-foss/issues/54048
td.line-numbers {
line-height: 1;
}
.project-highlight-puc .unicode-bidi::before {
content: '<EFBFBD>';
cursor: pointer;
text-decoration: underline wavy $red-500;
}