debian-mirror-gitlab/app/assets/stylesheets/snippets.scss

157 lines
3.4 KiB
SCSS
Raw Normal View History

2018-10-15 14:42:47 +05:30
@import "framework/variables";
.gitlab-embed-snippets {
@import "highlight/embedded";
@import "framework/images";
$border-style: 1px solid $border-color;
2018-11-18 11:00:15 +05:30
font-family: $regular-font;
2018-10-15 14:42:47 +05:30
font-size: $gl-font-size;
2018-11-18 11:00:15 +05:30
line-height: $code-line-height;
2018-10-15 14:42:47 +05:30
color: $gl-text-color;
margin: 20px;
2020-03-13 15:44:24 +05:30
font-weight: $gl-font-weight-normal;
2018-10-15 14:42:47 +05:30
.gl-snippet-icon {
display: inline-block;
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-11-18 11:00:15 +05:30
&.gl-snippet-icon-doc-code { background-position: 0 0; }
&.gl-snippet-icon-doc-text { background-position: 0 -16px; }
2018-10-15 14:42:47 +05:30
&.gl-snippet-icon-download { background-position: 0 -32px; }
}
.blob-viewer {
2020-04-22 19:07:51 +05:30
background-color: $white;
2018-10-15 14:42:47 +05:30
text-align: left;
}
.file-content.code {
border: $border-style;
2020-03-13 15:44:24 +05:30
border-radius: 0 0 $border-radius-default $border-radius-default;
2018-10-15 14:42:47 +05:30
display: flex;
box-shadow: none;
margin: 0;
padding: 0;
table-layout: fixed;
2020-05-24 23:13:21 +05:30
overflow-x: auto;
2018-10-15 14:42:47 +05:30
.blob-content {
pre {
2020-03-13 15:44:24 +05:30
height: 100%;
2018-10-15 14:42:47 +05:30
padding: 10px;
border: 0;
border-radius: 0;
margin: 0;
overflow: auto;
overflow-y: hidden;
white-space: pre;
word-wrap: normal;
border-left: $border-style;
}
2020-03-13 15:44:24 +05:30
code {
font-family: $monospace-font;
font-size: $code-font-size;
line-height: $code-line-height;
2020-05-24 23:13:21 +05:30
display: inline-block;
2020-03-13 15:44:24 +05:30
}
2018-10-15 14:42:47 +05:30
}
.line-numbers {
padding: 10px;
text-align: right;
float: left;
.diff-line-num {
2018-11-18 11:00:15 +05:30
font-family: $monospace-font;
2018-10-15 14:42:47 +05:30
display: block;
2018-11-18 11:00:15 +05:30
font-size: $code-font-size;
2020-05-24 23:13:21 +05:30
line-height: $code-line-height;
2018-10-15 14:42:47 +05:30
white-space: nowrap;
color: $black-transparent;
min-width: 30px;
}
.diff-line-num:hover {
color: $almost-black;
cursor: pointer;
}
}
}
.file-title-flex-parent {
display: flex;
align-items: center;
justify-content: space-between;
background-color: $gray-light;
border: $border-style;
border-bottom: 0;
padding: $gl-padding-top $gl-padding;
margin: 0;
border-radius: $border-radius-default $border-radius-default 0 0;
.file-header-content {
.file-title-name {
font-weight: $gl-font-weight-bold;
}
.gitlab-embedded-snippets-title {
text-decoration: none;
color: $gl-text-color;
&:hover {
text-decoration: underline;
}
}
2020-03-13 15:44:24 +05:30
.gitlab-logo-wrapper {
padding-left: $gl-padding-8;
position: relative;
top: 2px;
2018-10-15 14:42:47 +05:30
2020-03-13 15:44:24 +05:30
.gitlab-logo {
height: 18px;
2018-10-15 14:42:47 +05:30
}
}
}
img,
.gl-snippet-icon {
display: inline-block;
2020-03-13 15:44:24 +05:30
vertical-align: text-bottom;
2018-10-15 14:42:47 +05:30
}
}
.btn-group {
a.btn {
2020-04-22 19:07:51 +05:30
background-color: $white;
2018-10-15 14:42:47 +05:30
text-decoration: none;
2020-03-13 15:44:24 +05:30
padding: 8px 9px;
2018-10-15 14:42:47 +05:30
border: $border-style;
border-right: 0;
&:hover {
background-color: $white-normal;
border-color: $border-white-normal;
text-decoration: none;
}
&:first-child {
2020-03-13 15:44:24 +05:30
border-radius: $border-radius-default 0 0 $border-radius-default;
2018-10-15 14:42:47 +05:30
}
&:last-child {
2020-03-13 15:44:24 +05:30
border-radius: 0 $border-radius-default $border-radius-default 0;
2018-10-15 14:42:47 +05:30
border-right: $border-style;
}
}
}
}