debian-mirror-gitlab/app/assets/stylesheets/pages/editor.scss
2021-06-08 01:23:25 +05:30

205 lines
3.5 KiB
SCSS

.file-editor {
.nav-links {
border-top: 1px solid $border-color;
border-right: 1px solid $border-color;
border-left: 1px solid $border-color;
border-bottom: 0;
border-radius: $border-radius-small $border-radius-small 0 0;
background: $gray-normal;
}
#editor,
.editor {
@include gl-border-0;
@include gl-m-0;
@include gl-p-0;
@include gl-relative;
@include gl-w-full;
height: 500px;
.editor-loading-content {
@include gl-h-full;
@include gl-border-0;
}
}
.ace_gutter-cell {
background-color: $gray-light;
}
.cancel-btn {
color: $red-600;
&:hover {
color: $red-600;
}
}
.file-title {
@include gl-font-monospace;
}
.editor-ref {
background: $gray-light;
padding-right: $gl-padding;
border-right: 1px solid $border-color;
display: block;
float: left;
margin-right: 10px;
max-width: 250px;
}
.new-file-name,
.new-file-path {
display: inline-block;
max-width: 250px;
float: left;
@media(max-width: map-get($grid-breakpoints, lg)-1) {
width: 180px;
}
@media (max-width: 1360px) {
width: auto;
}
}
.file-buttons {
flex: 1;
}
.soft-wrap-toggle {
font-family: $regular-font;
margin-left: $gl-padding-8;
.soft-wrap {
display: inline-flex;
}
.no-wrap {
display: none;
}
&.soft-wrap-active {
.soft-wrap {
display: none;
}
.no-wrap {
display: inline-flex;
}
}
}
}
@include media-breakpoint-down(md) {
.file-editor {
.file-title {
display: block;
}
.new-file-name,
.new-file-path {
max-width: none;
width: 100%;
margin-top: $gl-padding-8;
}
.file-buttons {
display: flex;
flex-direction: column;
width: 100%;
.md-header-toolbar {
margin: $gl-padding 0;
}
.soft-wrap-toggle {
width: 100%;
margin-left: 0;
}
@media(max-width: map-get($grid-breakpoints, md)-1) {
clear: both;
}
}
}
}
.blob-new-page-title,
.blob-edit-page-title {
margin: 19px 0 21px;
vertical-align: top;
display: inline-block;
@media(max-width: map-get($grid-breakpoints, lg)-1) {
display: block;
margin: 19px 0 12px;
}
}
.template-selectors-menu {
display: flex;
vertical-align: top;
@media(max-width: map-get($grid-breakpoints, lg)-1) {
display: inline-block;
width: 100%;
padding: 0;
border-left: 0;
}
}
.template-selector-dropdowns-wrap {
display: flex;
vertical-align: top;
@media(max-width: map-get($grid-breakpoints, lg)-1) {
display: block;
width: 100%;
margin: 0 0 16px;
}
.license-selector,
.gitignore-selector,
.gitlab-ci-yml-selector,
.dockerfile-selector,
.template-type-selector,
.metrics-dashboard-selector {
display: inline-block;
vertical-align: top;
font-family: $regular_font;
margin: 0 8px 0 0;
@media(max-width: map-get($grid-breakpoints, lg)-1) {
display: block;
width: 100%;
margin: 5px 0;
}
.dropdown {
line-height: 21px;
}
.dropdown-menu-toggle {
width: 200px;
vertical-align: top;
@media (max-width: map-get($grid-breakpoints, xl)-1) {
width: auto;
}
@media(max-width: map-get($grid-breakpoints, lg)-1) {
display: block;
width: 100%;
margin: 5px 0;
}
}
}
}
.popover.suggest-gitlab-ci-yml {
z-index: $header-zindex - 1;
}