Commit a3a68f7d authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Merge branch '_acet-discussion-redesign-fix-for-draft-comments' into 'master'

Update draft comments design to match new design

Closes #8345

See merge request gitlab-org/gitlab-ee!8405
parents 8667dec1 f2eb12a0
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
<template> <template>
<article <article
:class="componentClasses" :class="componentClasses"
class="draft-note-component" class="draft-note-component note-wrapper"
> >
<header class="draft-note-header"> <header class="draft-note-header">
<strong class="badge draft-pending-label"> <strong class="badge draft-pending-label">
......
$draft-actions-left-margin: 40px + $gl-padding;
.draft-note-component { .draft-note-component {
margin: 0; margin: 0;
background: $orange-50; background: $orange-50;
...@@ -21,13 +23,18 @@ ...@@ -21,13 +23,18 @@
.referenced-commands.draft-note-commands { .referenced-commands.draft-note-commands {
background: $orange-100; background: $orange-100;
font-size: $label-font-size; font-size: $label-font-size;
margin-top: $gl-padding; margin: 0 0 $gl-padding $draft-actions-left-margin;
margin-left: 40px + $gl-padding;
} }
.timeline-entry { .timeline-entry {
background-color: transparent; background-color: transparent;
} }
.draft-note-actions {
@include notes-media('min', map-get($grid-breakpoints, sm)) {
margin-left: $draft-actions-left-margin;
}
}
} }
button[disabled] { button[disabled] {
...@@ -41,14 +48,13 @@ button[disabled] { ...@@ -41,14 +48,13 @@ button[disabled] {
} }
.draft-note-header { .draft-note-header {
padding: $gl-padding-8 $gl-padding;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.draft-note-resolution { .draft-note-resolution {
padding: $gl-padding-4 $gl-padding; padding: 0 $gl-padding;
line-height: 1; line-height: 1;
font-size: $label-font-size; font-size: $label-font-size;
color: $theme-gray-700; color: $theme-gray-700;
...@@ -78,34 +84,32 @@ button[disabled] { ...@@ -78,34 +84,32 @@ button[disabled] {
vertical-align: text-top; vertical-align: text-top;
} }
.draft-note-actions {
padding: $gl-padding;
}
.discussion-body, .discussion-body,
.diff-file { .diff-file {
.notes .note { .notes .note {
&.draft-note { &.draft-note {
background-color: $white-light; margin: $gl-padding-8 0 $gl-padding;
margin: 0 $gl-padding; padding: 0;
border: 1px solid $border-color; border: 0;
.timeline-entry-inner { .note-actions {
padding-top: 0; margin-top: -26px;
padding-bottom: 0; }
padding-right: 0;
&.is-editing {
margin-bottom: 0;
} }
} }
} }
.notes_holder { .notes_holder {
.notes_content { .notes_content {
&.parallel ul.draft-notes > li {
padding-left: 40px;
}
.notes { .notes {
&.draft-notes { &.draft-notes {
&::before {
border: 0;
}
background-color: transparent; background-color: transparent;
} }
} }
......
---
title: Update draft comments design to match new design
merge_request: 8405
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment