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

250 lines
3.9 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;
border-bottom: none;
border-radius: 2px;
background: $gray-normal;
}
2016-06-02 11:05:42 +05:30
#editor {
2014-09-02 18:07:02 +05:30
border: none;
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 {
2017-08-17 22:00:37 +05:30
color: $editor-cancel-color;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
&:hover {
2017-08-17 22:00:37 +05:30
color: $editor-cancel-color;
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;
2016-06-02 11:05:42 +05:30
.pull-right {
height: 20px;
}
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;
2017-08-17 22:00:37 +05:30
max-width: 450px;
2015-12-23 02:04:40 +05:30
float: left;
2017-08-17 22:00:37 +05:30
@media(max-width: $screen-md-max) {
width: 280px;
}
@media(max-width: $screen-sm-max) {
width: 180px;
}
}
.file-buttons {
font-size: 0;
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;
font-family: $regular_font;
}
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
}
@media(max-width: $screen-xs-max){
.file-editor {
.file-title {
.pull-right {
height: auto;
}
}
.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%;
}
}
}
}
}
.blob-new-page-title,
.blob-edit-page-title {
margin: 19px 0 21px;
vertical-align: top;
display: inline-block;
@media(max-width: $screen-sm-max) {
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;
@media(max-width: $screen-sm-max) {
display: block;
width: 100%;
margin: 5px 0;
padding: 0;
border-left: none;
}
}
.templates-selectors-label {
display: inline-block;
vertical-align: top;
margin-top: 6px;
line-height: 21px;
@media(max-width: $screen-sm-max) {
display: block;
margin: 5px 0;
}
}
.template-selector-dropdowns-wrap {
display: inline-block;
margin-left: 8px;
vertical-align: top;
margin: 5px 0 0 8px;
@media(max-width: $screen-sm-max) {
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;
@media(max-width: $screen-sm-max) {
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
@media(max-width: $screen-sm-max) {
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;
@media(max-width: $screen-sm-max) {
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
}