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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

431 lines
6.7 KiB
SCSS
Raw Normal View History

2015-04-26 12:48:37 +05:30
/**
* Note Form
*/
.diff-file .diff-content {
2021-01-29 00:20:46 +05:30
.diff-tr.line_holder:hover > .diff-td .line_note_link,
2015-04-26 12:48:37 +05:30
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
}
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;
2021-11-11 11:23:49 +05:30
padding: 10px 1px;
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 {
margin-left: 45px;
float: none;
}
.common-note-form {
2016-06-02 11:05:42 +05:30
.md-area {
2022-10-11 01:57:18 +05:30
padding: 0 $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-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
}
2022-07-23 23:45:48 +05:30
// Disable inner focus
textarea:focus {
@include gl-shadow-none;
}
}
.comment-warning-wrapper:focus-within {
@include gl-focus;
2015-04-26 12:48:37 +05:30
}
}
2022-07-23 23:45:48 +05:30
.md-area:focus-within {
@include gl-focus;
}
.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;
2020-11-24 15:15:51 +05:30
background-color: $orange-50;
2017-09-10 17:25:29 +05:30
border-radius: $border-radius-default $border-radius-default 0 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;
}
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 & {
2020-10-24 23:57:45 +05:30
fill: $gray-500;
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;
}
}
2021-03-11 19:13:27 +05:30
// Snippets are the only non-vue form left
.snippets.note-edit-form {
2015-04-26 12:48:37 +05:30
display: none;
2021-03-11 19:13:27 +05:30
}
.note-edit-form {
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;
}
.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;
2020-06-23 00:09:42 +05:30
border-top: 1px solid $gray-50;
2019-09-04 21:01:54 +05:30
+ .new-note {
background-color: $gray-light;
2020-06-23 00:09:42 +05:30
border-top: 1px solid $gray-50;
2019-09-04 21:01:54 +05:30
}
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-10-24 23:57:45 +05:30
fill: $gray-500;
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
}
}
2021-04-17 20:07:23 +05:30
}
.discussion-reply-holder {
.reply-placeholder-text-field {
font-family: $monospace-font;
font-size: $gl-font-size-monospace;
border-radius: $gl-border-radius-base;
width: 100%;
resize: none;
padding: $gl-padding-8 $gl-padding-12;
line-height: 1;
border: 1px solid $border-color;
background-color: $white;
overflow: hidden;
2018-12-13 13:39:08 +05:30
@include media-breakpoint-down(xs) {
margin-bottom: $gl-padding-8;
}
}
2016-09-13 17:45:13 +05:30
}
2016-06-02 11:05:42 +05:30
.comment-toolbar {
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;
}
.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-text {
font-size: 14px;
2022-10-11 01:57:18 +05:30
line-height: $gl-spacing-scale-7;
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%;
}
}
}
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 {
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;
}
.markdown-selector {
2018-11-20 20:47:30 +05:30
color: $blue-600;
2017-09-10 17:25:29 +05:30
}
2021-03-08 18:12:59 +05:30
.comment-warning-wrapper {
2022-07-23 23:45:48 +05:30
transition: border-color ease-in-out 0.15s,
box-shadow ease-in-out 0.15s;
2021-03-08 18:12:59 +05:30
.md-area {
border: 0;
2022-07-23 23:45:48 +05:30
box-shadow: none;
2021-03-08 18:12:59 +05:30
}
}