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

247 lines
4 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;
}
2016-06-02 11:05:42 +05:30
#editor {
2018-03-17 18:26:18 +05:30
border: 0;
2016-11-03 12:29:30 +05:30
border-radius: 0;
2014-09-02 18:07:02 +05:30
height: 500px;
margin: 0;
padding: 0;
position: relative;
width: 100%;
}
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 {
@extend .monospace;
2015-12-23 02:04:40 +05:30
2016-06-02 11:05:42 +05:30
line-height: 35px;
2015-12-23 02:04:40 +05:30
padding-top: 7px;
padding-bottom: 7px;
2018-11-20 20:47:30 +05:30
display: flex;
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;
}
.editor-file-name {
2015-12-23 02:04:40 +05:30
@extend .monospace;
2016-06-02 11:05:42 +05:30
2015-12-23 02:04:40 +05:30
float: left;
margin-right: 10px;
}
2015-09-25 12:07:36 +05:30
2015-12-23 02:04:40 +05:30
.new-file-name {
display: inline-block;
2018-11-20 20:47:30 +05:30
max-width: 420px;
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;
}
}
.file-buttons {
2018-11-20 20:47:30 +05:30
display: flex;
flex: 1;
justify-content: flex-end;
2015-09-25 12:07:36 +05:30
}
2015-12-23 02:04:40 +05:30
.select2 {
float: right;
2015-04-26 12:48:37 +05:30
}
2016-06-02 11:05:42 +05:30
.encoding-selector,
2017-08-17 22:00:37 +05:30
.soft-wrap-toggle {
2016-06-02 11:05:42 +05:30
display: inline-block;
vertical-align: top;
2018-11-18 11:00:15 +05:30
font-family: $regular-font;
2016-06-02 11:05:42 +05:30
}
2016-11-03 12:29:30 +05:30
.soft-wrap-toggle {
margin: 0 $btn-side-margin;
.soft-wrap {
display: block;
}
.no-wrap {
display: none;
}
&.soft-wrap-active {
.soft-wrap {
display: none;
}
.no-wrap {
display: block;
}
}
}
2017-08-17 22:00:37 +05:30
}
2018-11-20 20:47:30 +05:30
@include media-breakpoint-down(sm) {
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
}
.new-file-name {
max-width: none;
width: 100%;
margin-bottom: 3px;
}
.file-buttons {
display: block;
width: 100%;
margin-bottom: 10px;
.soft-wrap-toggle {
width: 100%;
margin: 3px 0;
}
.encoding-selector {
display: block;
margin: 3px 0;
button {
width: 100%;
}
}
}
2018-11-20 20:47:30 +05:30
.editor-ref {
max-width: 250px;
}
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;
2018-11-08 19:23:39 +05:30
@media(max-width: map-get($grid-breakpoints, md)-1) {
2017-08-17 22:00:37 +05:30
display: block;
margin: 19px 0 12px;
}
}
.template-selectors-menu {
display: inline-block;
vertical-align: top;
margin: 14px 0 0 16px;
padding: 0 0 0 14px;
border-left: 1px solid $border-color;
2018-11-08 19:23:39 +05:30
@media(max-width: map-get($grid-breakpoints, md)-1) {
2017-08-17 22:00:37 +05:30
display: block;
width: 100%;
margin: 5px 0;
padding: 0;
2018-03-17 18:26:18 +05:30
border-left: 0;
2017-08-17 22:00:37 +05:30
}
}
.templates-selectors-label {
display: inline-block;
vertical-align: top;
margin-top: 6px;
line-height: 21px;
2018-11-08 19:23:39 +05:30
@media(max-width: map-get($grid-breakpoints, md)-1) {
2017-08-17 22:00:37 +05:30
display: block;
margin: 5px 0;
}
}
.template-selector-dropdowns-wrap {
display: inline-block;
margin-left: 8px;
vertical-align: top;
margin: 5px 0 0 8px;
2018-11-08 19:23:39 +05:30
@media(max-width: map-get($grid-breakpoints, md)-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,
.template-type-selector {
display: inline-block;
vertical-align: top;
font-family: $regular_font;
margin-top: -5px;
2018-11-08 19:23:39 +05:30
@media(max-width: map-get($grid-breakpoints, md)-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 {
2017-08-17 22:00:37 +05:30
width: 250px;
2016-06-02 11:05:42 +05:30
vertical-align: top;
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
@media(max-width: map-get($grid-breakpoints, md)-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-02 11:05:42 +05:30
}
2017-08-17 22:00:37 +05:30
}
2016-06-22 15:30:34 +05:30
2017-08-17 22:00:37 +05:30
.template-selectors-undo-menu {
display: inline-block;
margin: 7px 0 0 10px;
2018-11-08 19:23:39 +05:30
@media(max-width: map-get($grid-breakpoints, md)-1) {
2017-08-17 22:00:37 +05:30
display: block;
width: 100%;
margin: 20px 0;
}
button {
margin: -4px 0 0 15px;
2016-06-22 15:30:34 +05:30
}
2014-09-02 18:07:02 +05:30
}