2020-07-09 17:09:33 -04:00
|
|
|
@import 'framework/variables';
|
2018-02-06 08:33:18 -05:00
|
|
|
|
|
|
|
.gitlab-embed-snippets {
|
2020-07-09 17:09:33 -04:00
|
|
|
@import 'highlight/embedded';
|
|
|
|
@import 'framework/images';
|
2018-02-06 08:33:18 -05:00
|
|
|
|
|
|
|
$border-style: 1px solid $border-color;
|
|
|
|
|
2018-07-24 17:17:49 -04:00
|
|
|
font-family: $regular-font;
|
2018-02-06 08:33:18 -05:00
|
|
|
font-size: $gl-font-size;
|
2018-07-24 17:17:49 -04:00
|
|
|
line-height: $code-line-height;
|
2018-02-06 08:33:18 -05:00
|
|
|
color: $gl-text-color;
|
|
|
|
margin: 20px;
|
2020-01-17 13:08:41 -05:00
|
|
|
font-weight: $gl-font-weight-normal;
|
2018-02-06 08:33:18 -05:00
|
|
|
|
2018-03-03 04:23:42 -05:00
|
|
|
.gl-snippet-icon {
|
|
|
|
display: inline-block;
|
2020-07-09 17:09:33 -04:00
|
|
|
/* stylelint-disable-next-line function-url-quotes */
|
2018-03-03 04:23:42 -05:00
|
|
|
background: url(asset_path('ext_snippet_icons/ext_snippet_icons.png')) no-repeat;
|
|
|
|
overflow: hidden;
|
|
|
|
text-align: left;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
background-size: cover;
|
|
|
|
|
2018-07-27 05:27:20 -04:00
|
|
|
&.gl-snippet-icon-doc-code { background-position: 0 0; }
|
|
|
|
&.gl-snippet-icon-doc-text { background-position: 0 -16px; }
|
2018-03-07 08:06:16 -05:00
|
|
|
&.gl-snippet-icon-download { background-position: 0 -32px; }
|
2018-03-03 04:23:42 -05:00
|
|
|
}
|
|
|
|
|
2018-02-06 08:33:18 -05:00
|
|
|
.blob-viewer {
|
2020-03-30 20:08:09 -04:00
|
|
|
background-color: $white;
|
2018-02-06 08:33:18 -05:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-content.code {
|
|
|
|
border: $border-style;
|
2020-01-17 13:08:41 -05:00
|
|
|
border-radius: 0 0 $border-radius-default $border-radius-default;
|
2018-02-06 08:33:18 -05:00
|
|
|
display: flex;
|
|
|
|
box-shadow: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
table-layout: fixed;
|
2020-05-19 20:08:20 -04:00
|
|
|
overflow-x: auto;
|
2018-02-06 08:33:18 -05:00
|
|
|
|
|
|
|
.blob-content {
|
|
|
|
pre {
|
|
|
|
padding: 10px;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
white-space: pre;
|
|
|
|
word-wrap: normal;
|
|
|
|
border-left: $border-style;
|
2021-07-14 11:09:57 -04:00
|
|
|
text-size-adjust: 100%;
|
|
|
|
-webkit-text-size-adjust: 100%; /* stylelint-disable-line property-no-vendor-prefix */
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
2020-01-09 13:07:52 -05:00
|
|
|
|
|
|
|
code {
|
|
|
|
font-family: $monospace-font;
|
|
|
|
font-size: $code-font-size;
|
|
|
|
line-height: $code-line-height;
|
2020-05-19 20:08:20 -04:00
|
|
|
display: inline-block;
|
2020-01-09 13:07:52 -05:00
|
|
|
}
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.line-numbers {
|
2021-07-14 11:09:57 -04:00
|
|
|
padding: 10px 10px 10px 0;
|
2018-02-06 08:33:18 -05:00
|
|
|
text-align: right;
|
|
|
|
float: left;
|
|
|
|
|
|
|
|
.diff-line-num {
|
2018-07-24 17:17:49 -04:00
|
|
|
font-family: $monospace-font;
|
2018-02-06 08:33:18 -05:00
|
|
|
display: block;
|
2018-07-24 17:17:49 -04:00
|
|
|
font-size: $code-font-size;
|
2020-05-19 20:08:20 -04:00
|
|
|
line-height: $code-line-height;
|
2018-02-06 08:33:18 -05:00
|
|
|
white-space: nowrap;
|
|
|
|
color: $black-transparent;
|
|
|
|
min-width: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-line-num:hover {
|
|
|
|
color: $almost-black;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-14 11:09:57 -04:00
|
|
|
.file-actions {
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
2018-02-06 08:33:18 -05:00
|
|
|
.file-title-flex-parent {
|
|
|
|
display: flex;
|
2021-07-14 11:09:57 -04:00
|
|
|
align-items: flex-start;
|
2018-02-06 08:33:18 -05:00
|
|
|
justify-content: space-between;
|
|
|
|
background-color: $gray-light;
|
|
|
|
border: $border-style;
|
|
|
|
border-bottom: 0;
|
2021-07-14 11:09:57 -04:00
|
|
|
padding: $gl-padding;
|
2018-02-06 08:33:18 -05:00
|
|
|
margin: 0;
|
|
|
|
border-radius: $border-radius-default $border-radius-default 0 0;
|
|
|
|
|
|
|
|
.file-header-content {
|
2021-07-14 11:09:57 -04:00
|
|
|
max-width: 75%;
|
|
|
|
|
2018-02-06 08:33:18 -05:00
|
|
|
.file-title-name {
|
|
|
|
font-weight: $gl-font-weight-bold;
|
|
|
|
}
|
|
|
|
|
2018-02-21 09:09:33 -05:00
|
|
|
.gitlab-embedded-snippets-title {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $gl-text-color;
|
2021-07-14 11:09:57 -04:00
|
|
|
word-break: break-word;
|
2018-02-21 12:05:10 -05:00
|
|
|
|
|
|
|
&:hover {
|
2018-02-21 09:09:33 -05:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-17 13:08:41 -05:00
|
|
|
.gitlab-logo-wrapper {
|
|
|
|
padding-left: $gl-padding-8;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
2018-02-06 08:33:18 -05:00
|
|
|
|
2020-01-17 13:08:41 -05:00
|
|
|
.gitlab-logo {
|
|
|
|
height: 18px;
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-03 04:23:42 -05:00
|
|
|
img,
|
|
|
|
.gl-snippet-icon {
|
2018-02-06 08:33:18 -05:00
|
|
|
display: inline-block;
|
2020-01-17 13:08:41 -05:00
|
|
|
vertical-align: text-bottom;
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-group {
|
|
|
|
a.btn {
|
2020-03-30 20:08:09 -04:00
|
|
|
background-color: $white;
|
2018-02-06 08:33:18 -05:00
|
|
|
text-decoration: none;
|
2020-01-17 13:08:41 -05:00
|
|
|
padding: 8px 9px;
|
2018-02-06 08:33:18 -05:00
|
|
|
border: $border-style;
|
|
|
|
border-right: 0;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $white-normal;
|
|
|
|
border-color: $border-white-normal;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child {
|
2020-01-17 13:08:41 -05:00
|
|
|
border-radius: $border-radius-default 0 0 $border-radius-default;
|
2018-02-06 08:33:18 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
2020-01-17 13:08:41 -05:00
|
|
|
border-radius: 0 $border-radius-default $border-radius-default 0;
|
2018-02-06 08:33:18 -05:00
|
|
|
border-right: $border-style;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|