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

506 lines
7.6 KiB
SCSS
Raw Normal View History

2015-04-26 12:48:37 +05:30
/**
* Note Form
*/
.diff-file .diff-content {
tr.line_holder:hover > td .line_note_link {
2018-03-17 18:26:18 +05:30
opacity: 1;
2017-08-17 22:00:37 +05:30
filter: alpha(opacity = 100);
2015-04-26 12:48:37 +05:30
}
}
2016-11-03 12:29:30 +05:30
2015-04-26 12:48:37 +05:30
.diff-file,
.discussion {
2016-06-02 11:05:42 +05:30
.new-note {
2015-04-26 12:48:37 +05:30
margin: 0;
2018-03-17 18:26:18 +05:30
border: 0;
2015-04-26 12:48:37 +05:30
}
}
2016-06-02 11:05:42 +05:30
2017-08-17 22:00:37 +05:30
.new-note,
.note-edit-form {
2015-12-23 02:04:40 +05:30
.note-form-actions {
2017-08-17 22:00:37 +05:30
position: relative;
2017-09-10 17:25:29 +05:30
margin: $gl-padding 0 0;
2015-04-26 12:48:37 +05:30
}
.note-preview-holder {
> p {
overflow-x: auto;
}
}
img {
max-width: 100%;
}
2016-06-02 11:05:42 +05:30
}
2015-04-26 12:48:37 +05:30
2016-06-02 11:05:42 +05:30
.note-textarea {
display: block;
padding: 10px 0;
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2018-11-18 11:00:15 +05:30
font-family: $regular-font;
2016-06-02 11:05:42 +05:30
border: 0;
2015-11-26 14:37:03 +05:30
2016-06-02 11:05:42 +05:30
&:focus {
outline: 0;
2015-11-26 14:37:03 +05:30
}
2015-04-26 12:48:37 +05:30
}
.note-image-attach {
2018-11-08 19:23:39 +05:30
@extend .col-lg-4;
2015-04-26 12:48:37 +05:30
margin-left: 45px;
float: none;
}
.common-note-form {
2016-06-02 11:05:42 +05:30
.md-area {
padding: $gl-padding-top $gl-padding;
2017-08-17 22:00:37 +05:30
border: 1px solid $border-color;
2016-06-02 11:05:42 +05:30
border-radius: $border-radius-base;
transition: border-color ease-in-out 0.15s,
2019-07-07 11:18:12 +05:30
box-shadow ease-in-out 0.15s;
2020-04-22 19:07:51 +05:30
background-color: $white;
2016-06-02 11:05:42 +05:30
&.is-focused {
@extend .form-control:focus;
.comment-toolbar,
.nav-links {
2018-11-20 20:47:30 +05:30
border-color: $blue-300;
2016-06-02 11:05:42 +05:30
}
}
2015-04-26 12:48:37 +05:30
2016-06-02 11:05:42 +05:30
&.is-dropzone-hover {
2018-11-20 20:47:30 +05:30
border-color: $green-500;
2016-06-02 11:05:42 +05:30
box-shadow: 0 0 2px $black-transparent,
2019-07-07 11:18:12 +05:30
0 0 4px $green-500-focus;
2015-04-26 12:48:37 +05:30
2016-06-02 11:05:42 +05:30
.comment-toolbar,
.nav-links {
2018-11-20 20:47:30 +05:30
border-color: $green-500;
2016-06-02 11:05:42 +05:30
}
2015-04-26 12:48:37 +05:30
}
}
}
.md-header .nav-links {
display: flex;
flex-flow: row wrap;
width: 100%;
2018-11-08 19:23:39 +05:30
.float-right {
// Flexbox quirk to make sure right-aligned items stay right-aligned.
margin-left: auto;
}
}
2018-03-17 18:26:18 +05:30
.issuable-note-warning {
2017-09-10 17:25:29 +05:30
color: $orange-600;
2018-03-17 18:26:18 +05:30
background-color: $orange-100;
2017-09-10 17:25:29 +05:30
border-radius: $border-radius-default $border-radius-default 0 0;
border: 1px solid $border-gray-normal;
2018-03-17 18:26:18 +05:30
border-bottom: 0;
padding: 3px 12px;
margin: auto;
2017-09-10 17:25:29 +05:30
align-items: center;
2018-03-17 18:26:18 +05:30
2019-09-04 21:01:54 +05:30
a {
color: $orange-600;
text-decoration: underline;
}
2018-03-17 18:26:18 +05:30
.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;
2018-11-08 19:23:39 +05:30
margin-right: $btn-margin-5;
2018-03-17 18:26:18 +05:30
width: $gl-font-size;
height: $gl-font-size;
fill: $orange-600;
}
}
2017-09-10 17:25:29 +05:30
}
2018-03-17 18:26:18 +05:30
.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 & {
2019-03-02 22:35:43 +05:30
fill: $gray-700;
2017-09-10 17:25:29 +05:30
}
}
2018-03-17 18:26:18 +05:30
.sidebar-item-warning-message {
2017-09-10 17:25:29 +05:30
line-height: 1.5;
padding: 16px;
2018-03-17 18:26:18 +05:30
.text {
color: $text-color;
}
.sidebar-item-warning-message-actions {
2017-09-10 17:25:29 +05:30
display: flex;
2018-03-17 18:26:18 +05:30
.btn {
2017-09-10 17:25:29 +05:30
flex-grow: 1;
}
}
}
2018-03-17 18:26:18 +05:30
.discussion-form {
2020-04-22 19:07:51 +05:30
background-color: $white;
2019-09-04 21:01:54 +05:30
@include media-breakpoint-down(xs) {
.user-avatar-link {
display: none;
}
.note-edit-form {
margin-left: 0;
}
}
2017-09-10 17:25:29 +05:30
}
2018-12-13 13:39:08 +05:30
table {
.discussion-form-container {
2019-02-15 15:39:39 +05:30
padding: $gl-padding;
2018-12-13 13:39:08 +05:30
}
2016-06-02 11:05:42 +05:30
}
2017-09-10 17:25:29 +05:30
.discussion-notes .disabled-comment {
padding: 6px 0;
}
.notes.notes-form > li.timeline-entry {
2018-11-08 19:23:39 +05:30
@include notes-media('max', map-get($grid-breakpoints, md) - 1) {
2017-09-10 17:25:29 +05:30
padding: 0;
}
.timeline-content {
2018-11-08 19:23:39 +05:30
@include notes-media('max', map-get($grid-breakpoints, md) - 1) {
2017-09-10 17:25:29 +05:30
margin: 0;
}
}
.timeline-entry-inner {
border: 0;
}
}
2015-04-26 12:48:37 +05:30
.note-edit-form {
display: none;
2017-08-17 22:00:37 +05:30
font-size: 14px;
2015-04-26 12:48:37 +05:30
.md-area {
2020-04-22 19:07:51 +05:30
background-color: $white;
2015-04-26 12:48:37 +05:30
}
}
.js-note-attachment-delete {
display: none;
}
.parallel-comment {
padding: 6px;
}
.error-alert > .alert {
margin-top: 5px;
margin-bottom: 5px;
2017-08-17 22:00:37 +05:30
&.alert-dismissable {
.close {
2020-04-22 19:07:51 +05:30
color: $white;
2017-08-17 22:00:37 +05:30
opacity: 0.85;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-08-17 22:00:37 +05:30
&:hover {
opacity: 1;
}
}
}
2015-04-26 12:48:37 +05:30
}
.discussion-body,
2019-02-15 15:39:39 +05:30
.diff-file,
.commit-diff {
2015-04-26 12:48:37 +05:30
.discussion-reply-holder {
2019-09-04 21:01:54 +05:30
background-color: $gray-light;
2018-12-13 13:39:08 +05:30
border-radius: 0 0 3px 3px;
2019-02-15 15:39:39 +05:30
padding: $gl-padding;
2019-09-04 21:01:54 +05:30
border-top: 1px solid $gray-100;
+ .new-note {
background-color: $gray-light;
border-top: 1px solid $gray-100;
}
2018-03-17 18:26:18 +05:30
&.is-replying {
padding-bottom: $gl-padding;
}
2019-09-04 21:01:54 +05:30
.user-avatar-link {
img {
margin-top: -3px;
}
}
2015-04-26 12:48:37 +05:30
}
}
2016-09-13 17:45:13 +05:30
.discussion-with-resolve-btn {
2018-12-13 13:39:08 +05:30
@include media-breakpoint-up(sm) {
display: flex;
}
2017-08-17 22:00:37 +05:30
.discussion-actions {
display: table;
2018-12-13 13:39:08 +05:30
svg {
2020-04-22 19:07:51 +05:30
fill: $gray-700;
2017-08-17 22:00:37 +05:30
}
.btn-group {
display: table-cell;
&:first-child {
padding-right: 0;
}
&:first-child:not(:last-child) > div {
border-right: 0;
}
2016-09-13 17:45:13 +05:30
}
}
2019-02-15 15:39:39 +05:30
@include media-breakpoint-down(xs) {
.btn {
width: 100%;
}
2016-09-13 17:45:13 +05:30
}
2018-12-13 13:39:08 +05:30
.btn-text-field {
@include media-breakpoint-down(xs) {
margin-bottom: $gl-padding-8;
}
}
2016-09-13 17:45:13 +05:30
}
2015-04-26 12:48:37 +05:30
.discussion-notes-count {
font-size: 16px;
}
.edit_note {
.markdown-area {
min-height: 140px;
2016-02-05 20:25:01 +05:30
max-height: 500px;
2015-04-26 12:48:37 +05:30
}
2016-11-03 12:29:30 +05:30
2015-04-26 12:48:37 +05:30
.note-form-actions {
background: transparent;
}
}
2016-06-02 11:05:42 +05:30
.comment-toolbar {
padding-top: $gl-padding-top;
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
2016-06-02 11:05:42 +05:30
border-top: 1px solid $border-color;
}
2016-08-24 12:49:21 +05:30
.md-helper {
padding-top: 10px;
}
2016-06-02 11:05:42 +05:30
.toolbar-button {
padding: 0;
background: none;
border: 0;
font-size: 14px;
line-height: 16px;
&:hover,
&:focus {
2018-11-20 20:47:30 +05:30
color: $blue-600;
2016-06-02 11:05:42 +05:30
outline: 0;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
2016-06-02 11:05:42 +05:30
float: left;
margin-right: $gl-padding;
&:last-child {
float: right;
margin-right: 0;
}
}
}
.toolbar-button-icon {
position: relative;
top: 1px;
2019-09-04 21:01:54 +05:30
margin-right: $gl-padding-4;
2016-06-02 11:05:42 +05:30
color: inherit;
font-size: 16px;
}
.toolbar-text {
font-size: 14px;
line-height: 16px;
2017-09-10 17:25:29 +05:30
margin-top: 2px;
2016-06-02 11:05:42 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
2016-06-02 11:05:42 +05:30
float: left;
}
2015-04-26 12:48:37 +05:30
}
2016-06-22 15:30:34 +05:30
.note-form-actions {
2018-12-13 13:39:08 +05:30
color: $gl-text-color;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2016-06-22 15:30:34 +05:30
.btn {
float: none;
width: 100%;
&:not(:last-child) {
margin-bottom: 10px;
}
}
}
}
2017-08-17 22:00:37 +05:30
.note-edit-warning.settings-message {
display: none;
padding: 5px 10px;
position: absolute;
left: 127px;
top: 2px;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-08-17 22:00:37 +05:30
position: relative;
top: 0;
left: 0;
margin-bottom: 10px;
}
}
.comment-type-dropdown {
2019-03-02 22:35:43 +05:30
.btn-success {
2017-08-17 22:00:37 +05:30
width: auto;
}
.dropdown-toggle {
float: right;
2018-03-17 18:26:18 +05:30
i {
2020-04-22 19:07:51 +05:30
color: $white;
2017-08-17 22:00:37 +05:30
padding-right: 2px;
margin-top: 2px;
}
2018-03-17 18:26:18 +05:30
&[disabled] {
i {
color: $gl-text-color-disabled;
}
}
2017-08-17 22:00:37 +05:30
}
.dropdown-menu {
top: initial;
2018-03-17 18:26:18 +05:30
bottom: 100%;
2017-08-17 22:00:37 +05:30
width: 298px;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-08-17 22:00:37 +05:30
display: flex;
width: 100%;
margin-bottom: 10px;
2019-03-02 22:35:43 +05:30
.btn-success {
2017-08-17 22:00:37 +05:30
flex-grow: 1;
flex-shrink: 0;
width: auto;
}
.dropdown-toggle {
flex-grow: 0;
flex-shrink: 1;
width: auto;
}
}
}
2017-09-10 17:25:29 +05:30
.uploading-container {
float: right;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-09-10 17:25:29 +05:30
float: left;
margin-top: 5px;
}
}
.uploading-error-icon,
.uploading-error-message {
2018-11-20 20:47:30 +05:30
color: $red-500;
2017-09-10 17:25:29 +05:30
}
.uploading-error-message {
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-09-10 17:25:29 +05:30
&::after {
2019-07-07 11:18:12 +05:30
content: '\a';
2017-09-10 17:25:29 +05:30
white-space: pre;
}
}
}
.uploading-progress {
margin-right: 5px;
}
.attach-new-file,
.button-attach-file,
.retry-uploading-link {
2018-11-20 20:47:30 +05:30
color: $blue-600;
2017-09-10 17:25:29 +05:30
padding: 0;
background: none;
border: 0;
font-size: 14px;
line-height: 16px;
2019-09-04 21:01:54 +05:30
&:hover,
&:focus {
text-decoration: none;
.text-attach-file {
text-decoration: underline;
}
}
2017-09-10 17:25:29 +05:30
}
.markdown-selector {
2018-11-20 20:47:30 +05:30
color: $blue-600;
2017-09-10 17:25:29 +05:30
}