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