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

228 lines
3.7 KiB
SCSS
Raw Normal View History

2012-10-09 13:11:49 -04: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 19:59:51 -04:00
border-bottom: 0;
border-radius: $border-radius-small $border-radius-small 0 0;
background: $gray-normal;
}
#editor {
2017-11-02 19:59:51 -04:00
border: 0;
2016-09-09 12:59:36 -04:00
border-radius: 0;
2012-10-09 13:11:49 -04:00
height: 500px;
2012-11-16 19:00:26 -05:00
margin: 0;
padding: 0;
2012-10-09 13:11:49 -04:00
position: relative;
2012-11-16 19:00:26 -05:00
width: 100%;
2012-10-09 13:11:49 -04:00
}
2012-11-17 09:43:13 -05:00
.ace_gutter-cell {
2016-12-12 17:26:21 -05:00
background-color: $gray-light;
}
2012-11-17 09:43:13 -05:00
.cancel-btn {
color: $red-600;
2012-11-17 09:43:13 -05:00
&:hover {
color: $red-600;
2012-11-17 09:43:13 -05:00
}
}
2015-01-26 23:57:42 -05:00
.file-title {
@extend .monospace;
line-height: 35px;
padding-top: 7px;
padding-bottom: 7px;
display: flex;
2015-01-26 23:57:42 -05:00
}
.editor-ref {
2016-12-12 17:26:21 -05:00
background: $gray-light;
padding-right: $gl-padding;
border-right: 1px solid $border-color;
display: block;
float: left;
2015-01-26 23:57:42 -05:00
margin-right: 10px;
}
.new-file-name,
.new-file-path {
display: inline-block;
max-width: 250px;
float: left;
2018-04-09 11:26:28 -04:00
@media(max-width: map-get($grid-breakpoints, lg)-1) {
width: 180px;
}
@media (max-width: 1360px) {
width: auto;
}
}
2016-11-02 14:34:17 -04:00
.file-buttons {
display: flex;
flex: 1;
justify-content: flex-end;
2016-11-02 14:34:17 -04:00
}
.select2 {
float: right;
2015-01-26 23:57:42 -05:00
}
.encoding-selector,
.soft-wrap-toggle {
display: inline-block;
vertical-align: top;
2018-07-24 17:17:49 -04:00
font-family: $regular-font;
}
2016-09-27 17:08:05 -04:00
.soft-wrap-toggle {
margin: 0 $btn-side-margin;
2016-09-27 17:08:05 -04:00
.soft-wrap {
display: block;
}
2016-09-27 17:08:05 -04:00
.no-wrap {
display: none;
}
2016-09-27 17:08:05 -04:00
&.soft-wrap-active {
.soft-wrap {
display: none;
}
2016-09-27 17:08:05 -04:00
.no-wrap {
display: block;
}
}
}
2012-10-09 13:11:49 -04: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 09:57:48 -05:00
margin-bottom: 3px;
}
.file-buttons {
display: block;
width: 100%;
2016-12-15 09:57:48 -05:00
margin-bottom: 10px;
.soft-wrap-toggle {
width: 100%;
2016-12-15 09:57:48 -05:00
margin: 3px 0;
}
.encoding-selector {
display: block;
2016-12-15 09:57:48 -05:00
margin: 3px 0;
button {
width: 100%;
}
}
@media(max-width: map-get($grid-breakpoints, md)-1) {
clear: both;
}
}
.editor-ref {
max-width: 250px;
}
}
}
.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: block;
width: 100%;
margin: 5px 0;
padding: 0;
2017-11-02 19:59:51 -04: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 {
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;
}