gitlab-org--gitlab-foss/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-01-15 01:42:58 -05:00
/**
* Note Form
*/
.diff-file .diff-content {
.diff-tr.line_holder:hover > .diff-td .line_note_link,
2015-01-15 01:42:58 -05:00
tr.line_holder:hover > td .line_note_link {
opacity: 1;
filter: alpha(opacity = 100);
2015-01-15 01:42:58 -05:00
}
}
2015-01-15 01:42:58 -05:00
.diff-file,
.discussion {
2016-03-29 13:17:31 -04:00
.new-note {
2015-01-15 01:42:58 -05:00
margin: 0;
2017-11-02 19:59:51 -04:00
border: 0;
2015-01-15 01:42:58 -05:00
}
}
2016-03-29 13:17:31 -04:00
.new-note,
.note-edit-form {
.note-form-actions {
position: relative;
margin: $gl-padding 0 0;
2015-01-15 01:42:58 -05:00
}
img {
max-width: 100%;
}
2015-01-15 01:42:58 -05:00
}
2016-03-30 03:28:06 -04:00
.note-textarea {
2016-04-13 04:08:34 -04:00
display: block;
padding: 10px 1px;
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2018-07-24 17:17:49 -04:00
font-family: $regular-font;
2016-03-30 05:00:43 -04:00
border: 0;
2016-03-30 03:28:06 -04:00
&:focus {
outline: 0;
}
2015-01-15 01:42:58 -05:00
}
.note-image-attach {
margin-left: 45px;
float: none;
}
.common-note-form {
2016-03-30 05:00:43 -04:00
.md-area {
padding: 0 $gl-padding;
2016-12-12 17:26:21 -05:00
border: 1px solid $border-color;
2016-03-30 05:00:43 -04:00
border-radius: $border-radius-base;
transition: border-color ease-in-out 0.15s,
box-shadow ease-in-out 0.15s;
background-color: $white;
2016-03-30 05:19:58 -04:00
2016-04-13 04:08:34 -04:00
&.is-dropzone-hover {
border-color: $green-500;
2016-04-13 04:09:10 -04:00
box-shadow: 0 0 2px $black-transparent,
0 0 4px $green-500-focus;
2016-04-13 04:08:34 -04:00
.comment-toolbar,
.nav-links {
border-color: $green-500;
2016-04-13 04:08:34 -04:00
}
}
// Disable inner focus
textarea:focus {
@include gl-shadow-none;
}
2016-03-30 05:00:43 -04:00
}
.comment-warning-wrapper:focus-within {
@include gl-focus;
}
2015-01-15 01:42:58 -05:00
}
.md-area:focus-within {
@include gl-focus;
}
.md-header .nav-links {
display: flex;
flex-flow: row wrap;
width: 100%;
2018-04-09 11:26:28 -04:00
.float-right {
// Flexbox quirk to make sure right-aligned items stay right-aligned.
margin-left: auto;
}
}
2017-09-14 07:01:07 -04:00
.issuable-note-warning {
2017-08-07 19:56:16 -04:00
color: $orange-600;
background-color: $orange-50;
2017-08-07 19:56:16 -04:00
border-radius: $border-radius-default $border-radius-default 0 0;
2017-06-20 09:58:30 -04:00
padding: 3px 12px;
margin: auto;
align-items: center;
2017-10-06 07:32:39 -04:00
a {
color: $orange-600;
text-decoration: underline;
}
2017-11-05 18:13:11 -05:00
.icon {
margin-right: $issuable-warning-icon-margin;
vertical-align: text-bottom;
fill: $orange-600;
2017-11-05 18:13:11 -05:00
}
2017-07-12 05:50:26 -04:00
+ .md-area {
border-top-left-radius: 0;
border-top-right-radius: 0;
2017-09-27 10:46:09 -04:00
}
2017-11-05 18:13:11 -05:00
.disabled-comment {
2017-11-06 18:51:23 -05:00
border: 0;
2017-11-05 18:13:11 -05:00
border-radius: $label-border-radius;
padding-top: $gl-vert-padding;
padding-bottom: $gl-vert-padding;
}
2017-09-27 10:46:09 -04:00
}
.sidebar-item-icon {
border-radius: $border-radius-default;
margin: 0 5px 0 0;
vertical-align: text-bottom;
&.is-active {
fill: $orange-600;
2017-06-20 09:58:30 -04:00
}
.sidebar-collapsed-icon & {
margin: 0;
}
.sidebar-item-value & {
fill: $gray-500;
}
}
2017-09-14 07:01:07 -04:00
.sidebar-item-warning-message {
2017-08-07 19:56:16 -04:00
line-height: 1.5;
padding: 16px;
2017-09-15 05:19:43 -04:00
.text {
2017-09-14 07:01:07 -04:00
color: $text-color;
}
.sidebar-item-warning-message-actions {
2017-08-07 19:56:16 -04:00
display: flex;
2017-09-15 05:19:43 -04:00
.btn {
2017-08-07 19:56:16 -04:00
flex-grow: 1;
}
2017-06-20 09:58:30 -04:00
}
}
2016-03-30 08:39:41 -04:00
.discussion-form {
background-color: $white;
@include media-breakpoint-down(xs) {
.user-avatar-link {
display: none;
}
.note-edit-form {
margin-left: 0;
}
}
}
2018-11-13 15:53:10 -05:00
table {
.discussion-form-container {
2018-11-16 12:05:34 -05:00
padding: $gl-padding;
2018-11-13 15:53:10 -05:00
}
2017-10-07 00:25:17 -04:00
}
.discussion-notes .disabled-comment {
padding: 6px 0;
}
.notes.notes-form > li.timeline-entry {
2018-04-16 13:28:52 -04:00
@include notes-media('max', map-get($grid-breakpoints, md) - 1) {
padding: 0;
}
.timeline-content {
2018-04-16 13:28:52 -04:00
@include notes-media('max', map-get($grid-breakpoints, md) - 1) {
margin: 0;
}
}
.timeline-entry-inner {
border: 0;
}
}
// Snippets are the only non-vue form left
.snippets.note-edit-form {
2015-01-15 01:42:58 -05:00
display: none;
}
.note-edit-form {
2016-12-02 14:43:33 -05:00
font-size: 14px;
2015-01-15 01:42:58 -05:00
.md-area {
background-color: $white;
2015-01-15 01:42:58 -05:00
}
}
.js-note-attachment-delete {
display: none;
}
.error-alert > .alert {
margin-top: 5px;
margin-bottom: 5px;
&.alert-dismissable {
.close {
color: $white;
opacity: 0.85;
font-weight: $gl-font-weight-normal;
&:hover {
opacity: 1;
}
}
}
2015-01-15 01:42:58 -05:00
}
2018-11-16 12:05:34 -05:00
.discussion-body,
2018-11-20 05:22:08 -05:00
.diff-file,
2018-11-16 12:05:34 -05:00
.commit-diff {
2015-01-15 01:42:58 -05:00
.discussion-reply-holder {
background-color: $gray-light;
2018-11-14 12:09:43 -05:00
border-radius: 0 0 3px 3px;
2018-11-16 12:05:34 -05:00
padding: $gl-padding;
border-top: 1px solid $gray-50;
+ .new-note {
background-color: $gray-light;
border-top: 1px solid $gray-50;
}
&.is-replying {
padding-bottom: $gl-padding;
}
.user-avatar-link {
img {
margin-top: -3px;
}
}
}
}
.discussion-with-resolve-btn {
2018-11-08 02:58:45 -05:00
@include media-breakpoint-up(sm) {
display: flex;
}
.discussion-actions {
display: table;
2018-11-08 02:58:45 -05:00
svg {
fill: $gray-500;
}
.btn-group {
display: table-cell;
&:first-child {
padding-right: 0;
}
&:first-child:not(:last-child) > div {
border-right: 0;
}
}
2015-01-15 01:42:58 -05:00
}
}
.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-11-08 02:58:45 -05:00
@include media-breakpoint-down(xs) {
margin-bottom: $gl-padding-8;
}
}
2015-01-15 01:42:58 -05:00
}
2016-03-30 05:00:43 -04:00
.comment-toolbar {
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
2016-03-30 05:00:43 -04:00
border-top: 1px solid $border-color;
}
.toolbar-button {
padding: 0;
background: none;
border: 0;
font-size: 14px;
line-height: 16px;
&:hover,
&:focus {
2018-08-14 12:44:08 -04:00
color: $blue-600;
2016-03-30 05:00:43 -04:00
outline: 0;
}
2018-04-09 11:26:28 -04:00
@include media-breakpoint-up(md) {
2016-03-30 05:19:58 -04:00
float: left;
margin-right: $gl-padding;
&:last-child {
float: right;
margin-right: 0;
}
2016-03-30 05:00:43 -04:00
}
}
.toolbar-text {
font-size: 14px;
line-height: $gl-spacing-scale-7;
2016-03-30 05:19:58 -04:00
2018-04-09 11:26:28 -04:00
@include media-breakpoint-up(md) {
2016-03-30 05:19:58 -04:00
float: left;
}
}
2016-06-20 03:47:38 -04:00
.note-form-actions {
color: $gl-text-color;
2018-04-09 11:26:28 -04:00
@include media-breakpoint-down(xs) {
2016-06-20 03:47:38 -04:00
.btn {
float: none;
width: 100%;
}
}
}
.note-edit-warning.settings-message {
display: none;
padding: 5px 10px;
position: absolute;
left: 127px;
top: 2px;
2018-04-09 11:26:28 -04:00
@include media-breakpoint-down(xs) {
position: relative;
top: 0;
left: 0;
margin-bottom: 10px;
}
}
2017-04-05 11:58:01 -04:00
.comment-type-dropdown {
2018-04-09 11:26:28 -04:00
@include media-breakpoint-down(xs) {
2017-04-07 14:37:12 -04:00
display: flex;
width: 100%;
margin-bottom: 10px;
2017-04-07 14:37:12 -04:00
.btn-success {
2017-04-07 14:37:12 -04:00
flex-grow: 1;
flex-shrink: 0;
width: auto;
}
.dropdown-toggle {
flex-grow: 0;
flex-shrink: 1;
width: auto;
}
}
2017-04-05 11:58:01 -04:00
}
.uploading-container {
float: right;
2018-04-09 11:26:28 -04:00
@include media-breakpoint-down(xs) {
float: left;
margin-top: 5px;
}
}
.uploading-error-icon,
.uploading-error-message {
2018-08-14 12:44:08 -04:00
color: $red-500;
}
.uploading-error-message {
2018-04-09 11:26:28 -04:00
@include media-breakpoint-down(xs) {
&::after {
content: '\a';
white-space: pre;
}
}
}
.uploading-progress {
margin-right: 5px;
}
.markdown-selector {
2018-08-14 12:44:08 -04:00
color: $blue-600;
}
.comment-warning-wrapper {
transition: border-color ease-in-out 0.15s,
box-shadow ease-in-out 0.15s;
.md-area {
border: 0;
box-shadow: none;
}
}