debian-mirror-gitlab/app/assets/stylesheets/pages/editor.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

205 lines
3.5 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.file-editor {
2017-08-17 22:00:37 +05:30
.nav-links {
border-top: 1px solid $border-color;
border-right: 1px solid $border-color;
border-left: 1px solid $border-color;
2018-03-17 18:26:18 +05:30
border-bottom: 0;
border-radius: $border-radius-small $border-radius-small 0 0;
2017-08-17 22:00:37 +05:30
background: $gray-normal;
}
2021-01-29 00:20:46 +05:30
#editor,
.editor {
@include gl-border-0;
@include gl-m-0;
@include gl-p-0;
@include gl-relative;
@include gl-w-full;
2014-09-02 18:07:02 +05:30
height: 500px;
2020-10-24 23:57:45 +05:30
.editor-loading-content {
2021-01-29 00:20:46 +05:30
@include gl-h-full;
@include gl-border-0;
2020-10-24 23:57:45 +05:30
}
2014-09-02 18:07:02 +05:30
}
2015-09-25 12:07:36 +05:30
.ace_gutter-cell {
2017-08-17 22:00:37 +05:30
background-color: $gray-light;
2015-09-25 12:07:36 +05:30
}
2014-09-02 18:07:02 +05:30
.cancel-btn {
2018-11-20 20:47:30 +05:30
color: $red-600;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
&:hover {
2018-11-20 20:47:30 +05:30
color: $red-600;
2014-09-02 18:07:02 +05:30
}
}
2015-04-26 12:48:37 +05:30
.file-title {
2021-04-29 21:17:54 +05:30
@include gl-font-monospace;
2015-04-26 12:48:37 +05:30
}
.editor-ref {
2017-08-17 22:00:37 +05:30
background: $gray-light;
2015-12-23 02:04:40 +05:30
padding-right: $gl-padding;
2015-09-25 12:07:36 +05:30
border-right: 1px solid $border-color;
2015-12-23 02:04:40 +05:30
display: block;
float: left;
2015-04-26 12:48:37 +05:30
margin-right: 10px;
2020-07-28 23:09:34 +05:30
max-width: 250px;
2015-04-26 12:48:37 +05:30
}
2019-12-21 20:55:43 +05:30
.new-file-name,
.new-file-path {
2015-12-23 02:04:40 +05:30
display: inline-block;
2019-12-21 20:55:43 +05:30
max-width: 250px;
2015-12-23 02:04:40 +05:30
float: left;
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
@media(max-width: map-get($grid-breakpoints, lg)-1) {
2017-08-17 22:00:37 +05:30
width: 180px;
}
2019-12-21 20:55:43 +05:30
@media (max-width: 1360px) {
width: auto;
}
2017-08-17 22:00:37 +05:30
}
.file-buttons {
2018-11-20 20:47:30 +05:30
flex: 1;
2015-09-25 12:07:36 +05:30
}
2017-08-17 22:00:37 +05:30
.soft-wrap-toggle {
2018-11-18 11:00:15 +05:30
font-family: $regular-font;
2021-06-08 01:23:25 +05:30
margin-left: $gl-padding-8;
2016-11-03 12:29:30 +05:30
.soft-wrap {
2021-06-08 01:23:25 +05:30
display: inline-flex;
2016-11-03 12:29:30 +05:30
}
.no-wrap {
display: none;
}
&.soft-wrap-active {
.soft-wrap {
display: none;
}
.no-wrap {
2021-06-08 01:23:25 +05:30
display: inline-flex;
2016-11-03 12:29:30 +05:30
}
}
}
2017-08-17 22:00:37 +05:30
}
2019-12-21 20:55:43 +05:30
@include media-breakpoint-down(md) {
2017-08-17 22:00:37 +05:30
.file-editor {
.file-title {
2018-11-20 20:47:30 +05:30
display: block;
2017-08-17 22:00:37 +05:30
}
2019-12-21 20:55:43 +05:30
.new-file-name,
.new-file-path {
2017-08-17 22:00:37 +05:30
max-width: none;
width: 100%;
2021-06-08 01:23:25 +05:30
margin-top: $gl-padding-8;
2017-08-17 22:00:37 +05:30
}
.file-buttons {
2021-06-08 01:23:25 +05:30
display: flex;
flex-direction: column;
2017-08-17 22:00:37 +05:30
width: 100%;
2021-06-08 01:23:25 +05:30
.md-header-toolbar {
margin: $gl-padding 0;
}
2017-08-17 22:00:37 +05:30
.soft-wrap-toggle {
width: 100%;
2021-06-08 01:23:25 +05:30
margin-left: 0;
2017-08-17 22:00:37 +05:30
}
2019-02-15 15:39:39 +05:30
@media(max-width: map-get($grid-breakpoints, md)-1) {
clear: both;
}
2017-08-17 22:00:37 +05:30
}
}
}
.blob-new-page-title,
.blob-edit-page-title {
margin: 19px 0 21px;
vertical-align: top;
display: inline-block;
2019-12-21 20:55:43 +05:30
@media(max-width: map-get($grid-breakpoints, lg)-1) {
2017-08-17 22:00:37 +05:30
display: block;
margin: 19px 0 12px;
}
}
.template-selectors-menu {
2019-12-21 20:55:43 +05:30
display: flex;
2017-08-17 22:00:37 +05:30
vertical-align: top;
2019-12-21 20:55:43 +05:30
@media(max-width: map-get($grid-breakpoints, lg)-1) {
2020-10-24 23:57:45 +05:30
display: inline-block;
2017-08-17 22:00:37 +05:30
width: 100%;
padding: 0;
2018-03-17 18:26:18 +05:30
border-left: 0;
2017-08-17 22:00:37 +05:30
}
}
.template-selector-dropdowns-wrap {
2020-01-01 13:55:28 +05:30
display: flex;
2019-07-07 11:18:12 +05:30
vertical-align: top;
2017-08-17 22:00:37 +05:30
2019-12-21 20:55:43 +05:30
@media(max-width: map-get($grid-breakpoints, lg)-1) {
2017-08-17 22:00:37 +05:30
display: block;
width: 100%;
margin: 0 0 16px;
}
.license-selector,
.gitignore-selector,
.gitlab-ci-yml-selector,
.dockerfile-selector,
2020-10-24 23:57:45 +05:30
.template-type-selector,
.metrics-dashboard-selector {
2017-08-17 22:00:37 +05:30
display: inline-block;
vertical-align: top;
font-family: $regular_font;
2020-01-01 13:55:28 +05:30
margin: 0 8px 0 0;
2017-08-17 22:00:37 +05:30
2019-12-21 20:55:43 +05:30
@media(max-width: map-get($grid-breakpoints, lg)-1) {
2017-08-17 22:00:37 +05:30
display: block;
width: 100%;
margin: 5px 0;
}
2016-11-03 12:29:30 +05:30
2016-06-02 11:05:42 +05:30
.dropdown {
line-height: 21px;
}
.dropdown-menu-toggle {
2019-12-21 20:55:43 +05:30
width: 200px;
2016-06-02 11:05:42 +05:30
vertical-align: top;
2017-08-17 22:00:37 +05:30
2019-12-21 20:55:43 +05:30
@media (max-width: map-get($grid-breakpoints, xl)-1) {
width: auto;
}
@media(max-width: map-get($grid-breakpoints, lg)-1) {
2017-08-17 22:00:37 +05:30
display: block;
width: 100%;
margin: 5px 0;
}
2016-06-02 11:05:42 +05:30
}
}
2017-08-17 22:00:37 +05:30
}
2016-06-22 15:30:34 +05:30
2020-04-22 19:07:51 +05:30
.popover.suggest-gitlab-ci-yml {
z-index: $header-zindex - 1;
}