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

223 lines
3.5 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
2015-09-11 14:41:01 +05:30
.md-area {
position: relative;
}
2016-06-02 11:05:42 +05:30
.md-header {
.nav-links {
a {
padding-top: 0;
2017-08-17 22:00:37 +05:30
line-height: 19px;
2016-08-24 12:49:21 +05:30
&.btn.btn-xs {
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
}
}
}
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
}
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;
border: 1px solid $md-area-border;
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
.md {
&.md-preview-holder {
2016-08-24 12:49:21 +05:30
// Reset ul style types since we're nested inside a ul already
2016-06-22 15:30:34 +05:30
@include bulleted-list;
2016-06-02 11:05:42 +05:30
}
2016-08-24 12:49:21 +05:30
// On diffs code should wrap nicely and not overflow
code {
white-space: pre-wrap;
word-break: keep-all;
}
hr {
// Darken 'whitesmoke' a bit to make it more visible in note bodies
2017-08-17 22:00:37 +05:30
border-color: darken($gray-normal, 8%);
2016-08-24 12:49:21 +05:30
margin: 10px 0;
}
// Border around images in issue and MR comments.
img:not(.emoji) {
2017-08-17 22:00:37 +05:30
border: 1px solid $white-normal;
2016-08-24 12:49:21 +05:30
padding: 5px;
margin: 5px 0;
// Ensure that image does not exceed viewport
max-height: calc(100vh - 100px);
}
2017-08-17 22:00:37 +05:30
table {
@include markdown-table;
}
2016-08-24 12:49:21 +05:30
}
.toolbar-group {
float: left;
margin-right: -5px;
margin-left: $gl-padding;
&:first-child {
margin-left: 0;
}
}
.toolbar-btn {
float: left;
padding: 0 5px;
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
2016-08-24 12:49:21 +05:30
background: transparent;
border: 0;
outline: 0;
&:hover,
&:focus {
color: $gl-link-color;
}
2016-06-02 11:05:42 +05:30
}
2016-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
.atwho-view {
overflow-y: auto;
overflow-x: hidden;
small.description {
float: right;
padding: 3px 5px;
}
.avatar-inline {
margin-bottom: 0;
}
.cur {
.avatar {
@include disableAllAnimation;
2017-09-10 17:25:29 +05:30
border: 1px solid $white-light;
2017-08-17 22:00:37 +05:30
}
}
ul > li {
white-space: nowrap;
}
2016-09-13 17:45:13 +05:30
}
2017-09-10 17:25:29 +05:30
@media(max-width: $screen-xs-max) {
.atwho-view-ul {
width: 350px;
}
.atwho-view ul li {
overflow: hidden;
text-overflow: ellipsis;
}
}
// TODO: fallback to global style
.atwho-view {
.atwho-view-ul {
padding: 8px 1px;
li {
padding: 8px 16px;
border: 0;
&.cur {
background-color: $gray-darker;
color: $gl-text-color;
small {
color: inherit;
}
}
div.avatar {
display: inline-flex;
justify-content: center;
align-items: center;
.center {
line-height: 14px;
}
}
strong {
color: $gl-text-color;
}
}
}
}