472 lines
7.1 KiB
SCSS
472 lines
7.1 KiB
SCSS
/**
|
|
* Note Form
|
|
*/
|
|
.comment-btn {
|
|
@extend .btn-create;
|
|
}
|
|
|
|
.diff-file .diff-content {
|
|
tr.line_holder:hover > td .line_note_link {
|
|
opacity: 1;
|
|
filter: alpha(opacity = 100);
|
|
}
|
|
}
|
|
|
|
.diff-file,
|
|
.discussion {
|
|
.new-note {
|
|
margin: 0;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
.new-note,
|
|
.note-edit-form {
|
|
.note-form-actions {
|
|
position: relative;
|
|
margin: $gl-padding 0 0;
|
|
}
|
|
|
|
.note-preview-holder {
|
|
> p {
|
|
overflow-x: auto;
|
|
}
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.note-textarea {
|
|
display: block;
|
|
padding: 10px 0;
|
|
color: $gl-text-color;
|
|
font-family: $regular_font;
|
|
border: 0;
|
|
|
|
&:focus {
|
|
outline: 0;
|
|
}
|
|
}
|
|
|
|
.note-image-attach {
|
|
@extend .col-lg-4;
|
|
margin-left: 45px;
|
|
float: none;
|
|
}
|
|
|
|
.common-note-form {
|
|
.md-area {
|
|
padding: $gl-padding-top $gl-padding;
|
|
border: 1px solid $border-color;
|
|
border-radius: $border-radius-base;
|
|
transition: border-color ease-in-out 0.15s,
|
|
box-shadow ease-in-out 0.15s;
|
|
|
|
&.is-focused {
|
|
@extend .form-control:focus;
|
|
|
|
.comment-toolbar,
|
|
.nav-links {
|
|
border-color: $focus-border-color;
|
|
}
|
|
}
|
|
|
|
&.is-dropzone-hover {
|
|
border-color: $gl-success;
|
|
box-shadow: 0 0 2px $black-transparent,
|
|
0 0 4px $gl-success-focus;
|
|
|
|
.comment-toolbar,
|
|
.nav-links {
|
|
border-color: $gl-success;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.md-header .nav-links {
|
|
display: flex;
|
|
display: -webkit-flex;
|
|
flex-flow: row wrap;
|
|
-webkit-flex-flow: row wrap;
|
|
width: 100%;
|
|
|
|
.float-right {
|
|
// Flexbox quirk to make sure right-aligned items stay right-aligned.
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
.issuable-note-warning {
|
|
color: $orange-600;
|
|
background-color: $orange-100;
|
|
border-radius: $border-radius-default $border-radius-default 0 0;
|
|
border: 1px solid $border-gray-normal;
|
|
border-bottom: 0;
|
|
padding: 3px 12px;
|
|
margin: auto;
|
|
align-items: center;
|
|
|
|
.icon {
|
|
margin-right: $issuable-warning-icon-margin;
|
|
vertical-align: text-bottom;
|
|
fill: $orange-600;
|
|
}
|
|
|
|
+ .md-area {
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
|
|
.disabled-comment {
|
|
border: 0;
|
|
border-radius: $label-border-radius;
|
|
padding-top: $gl-vert-padding;
|
|
padding-bottom: $gl-vert-padding;
|
|
|
|
.icon svg {
|
|
position: relative;
|
|
top: 2px;
|
|
margin-right: $btn-xs-side-margin;
|
|
width: $gl-font-size;
|
|
height: $gl-font-size;
|
|
fill: $orange-600;
|
|
}
|
|
}
|
|
}
|
|
|
|
.sidebar-item-icon {
|
|
border-radius: $border-radius-default;
|
|
margin: 0 5px 0 0;
|
|
vertical-align: text-bottom;
|
|
|
|
&.is-active {
|
|
fill: $orange-600;
|
|
}
|
|
|
|
.sidebar-collapsed-icon & {
|
|
margin: 0;
|
|
}
|
|
|
|
.sidebar-item-value & {
|
|
fill: $theme-gray-700;
|
|
}
|
|
}
|
|
|
|
.sidebar-item-warning-message {
|
|
line-height: 1.5;
|
|
padding: 16px;
|
|
|
|
.text {
|
|
color: $text-color;
|
|
}
|
|
|
|
.sidebar-item-warning-message-actions {
|
|
display: flex;
|
|
|
|
.btn {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.discussion-form {
|
|
background-color: $white-light;
|
|
}
|
|
|
|
.discussion-form-container {
|
|
padding: $gl-padding-top $gl-padding $gl-padding;
|
|
}
|
|
|
|
.discussion-notes .disabled-comment {
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.notes.notes-form > li.timeline-entry {
|
|
@include notes-media('max', map-get($grid-breakpoints, md) - 1) {
|
|
padding: 0;
|
|
}
|
|
|
|
.timeline-content {
|
|
@include notes-media('max', map-get($grid-breakpoints, md) - 1) {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.timeline-entry-inner {
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
.note-edit-form {
|
|
display: none;
|
|
font-size: 14px;
|
|
|
|
.md-area {
|
|
background-color: $white-light;
|
|
}
|
|
}
|
|
|
|
.js-note-attachment-delete {
|
|
display: none;
|
|
}
|
|
|
|
.parallel-comment {
|
|
padding: 6px;
|
|
}
|
|
|
|
.error-alert > .alert {
|
|
margin-top: 5px;
|
|
margin-bottom: 5px;
|
|
|
|
&.alert-dismissable {
|
|
.close {
|
|
color: $white-light;
|
|
opacity: 0.85;
|
|
font-weight: $gl-font-weight-normal;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.discussion-body,
|
|
.diff-file {
|
|
.discussion-reply-holder {
|
|
background-color: $white-light;
|
|
padding: 10px 16px;
|
|
|
|
&.is-replying {
|
|
padding-bottom: $gl-padding;
|
|
}
|
|
}
|
|
}
|
|
|
|
.discussion-with-resolve-btn {
|
|
display: table;
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
table-layout: auto;
|
|
|
|
.btn-group {
|
|
display: table-cell;
|
|
float: none;
|
|
width: 1%;
|
|
|
|
&:first-child {
|
|
width: 100%;
|
|
padding-right: 5px;
|
|
}
|
|
}
|
|
|
|
.discussion-actions {
|
|
display: table;
|
|
|
|
.btn-default path {
|
|
fill: $gray-darkest;
|
|
}
|
|
|
|
.btn-group {
|
|
display: table-cell;
|
|
|
|
&:first-child {
|
|
padding-right: 0;
|
|
}
|
|
|
|
&:first-child:not(:last-child) > div {
|
|
border-right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.discussion-notes-count {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.edit_note {
|
|
.markdown-area {
|
|
min-height: 140px;
|
|
max-height: 500px;
|
|
}
|
|
|
|
.note-form-actions {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
.comment-toolbar {
|
|
padding-top: $gl-padding-top;
|
|
color: $gl-text-color-secondary;
|
|
border-top: 1px solid $border-color;
|
|
}
|
|
|
|
.md-helper {
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.toolbar-button {
|
|
padding: 0;
|
|
background: none;
|
|
border: 0;
|
|
font-size: 14px;
|
|
line-height: 16px;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $gl-link-color;
|
|
outline: 0;
|
|
}
|
|
|
|
@include media-breakpoint-up(md) {
|
|
float: left;
|
|
margin-right: $gl-padding;
|
|
|
|
&:last-child {
|
|
float: right;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.toolbar-button-icon {
|
|
position: relative;
|
|
top: 1px;
|
|
margin-right: 3px;
|
|
color: inherit;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.toolbar-text {
|
|
font-size: 14px;
|
|
line-height: 16px;
|
|
margin-top: 2px;
|
|
|
|
@include media-breakpoint-up(md) {
|
|
float: left;
|
|
}
|
|
}
|
|
|
|
.note-form-actions {
|
|
@include media-breakpoint-down(xs) {
|
|
.btn {
|
|
float: none;
|
|
width: 100%;
|
|
|
|
&:not(:last-child) {
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.note-edit-warning.settings-message {
|
|
display: none;
|
|
padding: 5px 10px;
|
|
position: absolute;
|
|
left: 127px;
|
|
top: 2px;
|
|
|
|
@include media-breakpoint-down(xs) {
|
|
position: relative;
|
|
top: 0;
|
|
left: 0;
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
.comment-type-dropdown {
|
|
.comment-btn {
|
|
width: auto;
|
|
}
|
|
|
|
.dropdown-toggle {
|
|
float: right;
|
|
|
|
i {
|
|
color: $white-light;
|
|
padding-right: 2px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
&[disabled] {
|
|
i {
|
|
color: $gl-text-color-disabled;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropdown-menu {
|
|
top: initial;
|
|
bottom: 100%;
|
|
width: 298px;
|
|
}
|
|
|
|
@include media-breakpoint-down(xs) {
|
|
display: flex;
|
|
width: 100%;
|
|
margin-bottom: 10px;
|
|
|
|
.comment-btn {
|
|
flex-grow: 1;
|
|
flex-shrink: 0;
|
|
width: auto;
|
|
}
|
|
|
|
.dropdown-toggle {
|
|
flex-grow: 0;
|
|
flex-shrink: 1;
|
|
width: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.uploading-container {
|
|
float: right;
|
|
|
|
@include media-breakpoint-down(xs) {
|
|
float: left;
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
.uploading-error-icon,
|
|
.uploading-error-message {
|
|
color: $gl-text-red;
|
|
}
|
|
|
|
.uploading-error-message {
|
|
@include media-breakpoint-down(xs) {
|
|
&::after {
|
|
content: "\a";
|
|
white-space: pre;
|
|
}
|
|
}
|
|
}
|
|
|
|
.uploading-progress {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.attach-new-file,
|
|
.button-attach-file,
|
|
.retry-uploading-link {
|
|
color: $gl-link-color;
|
|
padding: 0;
|
|
background: none;
|
|
border: 0;
|
|
font-size: 14px;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.markdown-selector {
|
|
color: $gl-link-color;
|
|
}
|