debian-mirror-gitlab/app/assets/stylesheets/framework/markdown_area.scss

192 lines
3.2 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.div-dropzone-wrapper {
.div-dropzone {
position: relative;
.div-dropzone-hover {
position: absolute;
top: 50%;
left: 50%;
2016-06-02 11:05:42 +05:30
margin-top: -11.5px;
margin-left: -15px;
2014-09-02 18:07:02 +05:30
opacity: 0;
2016-06-02 11:05:42 +05:30
font-size: 30px;
2014-09-02 18:07:02 +05:30
transition: opacity 200ms ease-in-out;
2015-04-26 12:48:37 +05:30
pointer-events: none;
2014-09-02 18:07:02 +05:30
}
.div-dropzone-spinner {
position: absolute;
2016-06-02 11:05:42 +05:30
bottom: 10px;
right: 5px;
2014-09-02 18:07:02 +05:30
opacity: 0;
2016-06-02 11:05:42 +05:30
font-size: 20px;
2014-09-02 18:07:02 +05:30
transition: opacity 200ms ease-in-out;
}
.div-dropzone-icon {
display: block;
text-align: center;
font-size: inherit;
}
2015-09-11 14:41:01 +05:30
.div-dropzone-progress {
position: absolute;
top: 7px;
left: -40px;
width: 35px;
font-size: 13px;
text-align: right;
}
2014-09-02 18:07:02 +05:30
.dz-preview {
display: none;
}
}
}
.div-dropzone-alert {
margin-top: 5px;
margin-bottom: 0;
transition: opacity 200ms ease-in-out;
}
2015-04-26 12:48:37 +05:30
2016-06-02 11:05:42 +05:30
.md-header {
.nav-links {
a {
2018-03-17 18:26:18 +05:30
width: 100%;
2016-06-02 11:05:42 +05:30
padding-top: 0;
2017-08-17 22:00:37 +05:30
line-height: 19px;
2016-08-24 12:49:21 +05:30
2019-07-07 11:18:12 +05:30
&.btn.btn-sm {
padding: 2px 5px;
}
2017-08-17 22:00:37 +05:30
&:focus {
margin-top: -10px;
padding-top: 10px;
}
2016-06-02 11:05:42 +05:30
}
}
}
2018-03-17 18:26:18 +05:30
.md-header-tab {
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2018-03-17 18:26:18 +05:30
flex: 1;
2018-12-13 13:39:08 +05:30
flex-direction: column;
2018-03-17 18:26:18 +05:30
width: 100%;
border-bottom: 1px solid $border-color;
text-align: center;
}
}
.nav-links {
li.md-header-toolbar {
margin-left: auto;
display: none;
&.active {
display: block;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2018-03-17 18:26:18 +05:30
flex: none;
display: flex;
justify-content: center;
width: 100%;
padding-top: $gl-padding-top;
padding-bottom: $gl-padding-top;
}
}
}
}
2015-09-11 14:41:01 +05:30
.referenced-users {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2015-12-23 02:04:40 +05:30
padding-top: 10px;
2015-09-11 14:41:01 +05:30
}
2018-10-15 14:42:47 +05:30
.referenced-commands {
background: $blue-50;
padding: $gl-padding-8 $gl-padding;
border-radius: $border-radius-default;
p {
margin: 0;
}
}
2015-04-26 12:48:37 +05:30
.md-preview-holder {
2016-06-02 11:05:42 +05:30
min-height: 167px;
padding: 10px 0;
overflow-x: auto;
2015-04-26 12:48:37 +05:30
}
.markdown-area {
2016-11-03 12:29:30 +05:30
border-radius: 0;
2017-08-17 22:00:37 +05:30
background: $white-light;
2018-12-05 23:21:45 +05:30
border: 1px solid $gray-100;
2015-09-25 12:07:36 +05:30
min-height: 140px;
2016-02-05 20:25:01 +05:30
max-height: 500px;
2015-04-26 12:48:37 +05:30
padding: 5px;
box-shadow: none;
width: 100%;
}
2016-06-02 11:05:42 +05:30
2016-08-24 12:49:21 +05:30
.toolbar-btn {
float: left;
2018-03-17 18:26:18 +05:30
padding: 0 7px;
2016-08-24 12:49:21 +05:30
background: transparent;
border: 0;
outline: 0;
2018-03-17 18:26:18 +05:30
svg {
width: 14px;
height: 14px;
2019-02-15 15:39:39 +05:30
vertical-align: middle;
2018-03-17 18:26:18 +05:30
fill: $gl-text-color-secondary;
}
2016-08-24 12:49:21 +05:30
&:hover,
&:focus {
2018-03-17 18:26:18 +05:30
svg {
2018-11-20 20:47:30 +05:30
fill: $blue-600;
2018-03-17 18:26:18 +05:30
}
}
}
.toolbar-fullscreen-btn {
margin-right: -5px;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2018-03-17 18:26:18 +05:30
margin-right: 0;
2016-08-24 12:49:21 +05:30
}
2016-06-02 11:05:42 +05:30
}
2016-09-13 17:45:13 +05:30
2019-02-15 15:39:39 +05:30
.md-suggestion-diff {
display: table !important;
border: 1px solid $border-color !important;
2019-03-02 22:35:43 +05:30
width: 100% !important;
font-family: $monospace-font !important;
2019-02-15 15:39:39 +05:30
}
.md-suggestion-header {
height: $suggestion-header-height;
display: flex;
align-items: center;
justify-content: space-between;
background-color: $gray-light;
border: 1px solid $border-color;
padding: $gl-padding;
border-radius: $border-radius-default $border-radius-default 0 0;
svg {
vertical-align: middle;
margin-bottom: 3px;
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2019-02-15 15:39:39 +05:30
.referenced-users {
margin-right: 0;
}
2018-03-17 18:26:18 +05:30
}