gitlab-org--gitlab-foss/app/assets/stylesheets/pages/editor.scss

230 lines
3.8 KiB
SCSS
Raw Normal View History

2012-10-09 17:11:49 +00:00
.file-editor {
.nav-links {
border-top: 1px solid $border-color;
border-right: 1px solid $border-color;
border-left: 1px solid $border-color;
2017-11-02 23:59:51 +00:00
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;
2012-10-09 17:11:49 +00:00
height: 500px;
.editor-loading-content {
@include gl-h-full;
@include gl-border-0;
}
2012-10-09 17:11:49 +00:00
}
2012-11-17 14:43:13 +00:00
.ace_gutter-cell {
2016-12-12 22:26:21 +00:00
background-color: $gray-light;
}
2012-11-17 14:43:13 +00:00
.cancel-btn {
color: $red-600;
2012-11-17 14:43:13 +00:00
&:hover {
color: $red-600;
2012-11-17 14:43:13 +00:00
}
}
2015-01-27 04:57:42 +00:00
.file-title {
@extend .monospace;
line-height: 35px;
padding-top: 7px;
padding-bottom: 7px;
display: flex;
2015-01-27 04:57:42 +00:00
}
.editor-ref {
2016-12-12 22:26:21 +00:00
background: $gray-light;
padding-right: $gl-padding;
border-right: 1px solid $border-color;
display: block;
float: left;
2015-01-27 04:57:42 +00:00
margin-right: 10px;
max-width: 250px;
2015-01-27 04:57:42 +00:00
}
.new-file-name,
.new-file-path {
display: inline-block;
max-width: 250px;
float: left;
2018-04-09 15:26:28 +00:00
@media(max-width: map-get($grid-breakpoints, lg)-1) {
width: 180px;
}
@media (max-width: 1360px) {
width: auto;
}
}
2016-11-02 18:34:17 +00:00
.file-buttons {
display: flex;
flex: 1;
justify-content: flex-end;
2016-11-02 18:34:17 +00:00
}
.select2 {
float: right;
2015-01-27 04:57:42 +00:00
}
.encoding-selector,
.soft-wrap-toggle {
display: inline-block;
vertical-align: top;
2018-07-24 21:17:49 +00:00
font-family: $regular-font;
}
2016-09-27 21:08:05 +00:00
.soft-wrap-toggle {
margin: 0 $btn-side-margin;
2016-09-27 21:08:05 +00:00
.soft-wrap {
display: block;
}
2016-09-27 21:08:05 +00:00
.no-wrap {
display: none;
}
2016-09-27 21:08:05 +00:00
&.soft-wrap-active {
.soft-wrap {
display: none;
}
2016-09-27 21:08:05 +00:00
.no-wrap {
display: block;
}
}
}
2012-10-09 17:11:49 +00:00
}
@include media-breakpoint-down(md) {
.file-editor {
.file-title {
display: block;
}
.new-file-name,
.new-file-path {
max-width: none;
width: 100%;
2016-12-15 14:57:48 +00:00
margin-bottom: 3px;
}
.file-buttons {
display: block;
width: 100%;
2016-12-15 14:57:48 +00:00
margin-bottom: 10px;
.soft-wrap-toggle {
width: 100%;
2016-12-15 14:57:48 +00:00
margin: 3px 0;
}
.encoding-selector {
display: block;
2016-12-15 14:57:48 +00:00
margin: 3px 0;
button {
width: 100%;
}
}
@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;
2017-11-02 23:59:51 +00:00
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;
}
}
}
}
.editor-title-row {
margin-bottom: 20px;
}
.popover.suggest-gitlab-ci-yml {
z-index: $header-zindex - 1;
}