diff --git a/app/assets/stylesheets/protocols/protocol.scss b/app/assets/stylesheets/protocols/protocol.scss index e62240747..1550e34b2 100644 --- a/app/assets/stylesheets/protocols/protocol.scss +++ b/app/assets/stylesheets/protocols/protocol.scss @@ -17,104 +17,61 @@ box-shadow: $flyout-shadow; margin: 0 auto; max-width: 900px; - padding: 10px; + padding: 10px 10px 10px 26px; } -} -.protocol-repository-header { + .protocol-metadata { + margin-bottom: 2em; - .protocol-info { - align-items: center; - display: flex; - flex-wrap: wrap; - min-height: 40px; - position: relative; + .authors-data { + align-items: center; + display: flex; - .created-at-block, - .last-modified-block, - .edit-authors-block, - .keywords-block, - .added-by-block, { - flex-grow: 1; - margin-bottom: 10px; - margin-right: 20px; - - .block-icon { - color: $color-silver; - font-size: 18px; - margin-right: 5px; + .authors-list { + flex-basis: calc(100% - 70px); + flex-grow: 1; + margin-left: .5em; } - .block-label { - align-items: center; - display: flex; + * { flex-shrink: 0; } } - .edit-authors-block { + .keywords-data { align-items: center; display: flex; - flex-basis: 30%; - .edit-authors-container { - display: flex; + .keywords-list { + flex-basis: calc(100% - 90px); flex-grow: 1; - margin-left: 10px; - position: relative; + margin-left: .5em; - .view-mode, .input-field { - font-weight: bold; - } - } - } + border-color: transparent; - .protocol-description { - flex-basis: 100%; - margin-bottom: 10px; - - .form-group { - margin: 0; - } - } - - .keywords-block { - align-items: center; - display: flex; - flex-basis: 100%; - - .key-words-container { - display: inline-block; - flex-grow: 1; - margin: 0 40px 0 5px; - - .dropdown-selector-container { - .input-field { - border-color: transparent; - - &:hover { - border-color: $color-alto; - } - } - - &.active { - .input-field { - border-color: $color-alto; - } - } - - &.view-mode { - .input-field { - border-color: transparent; - } + &:hover { + border-color: initial; } } } + + * { + flex-shrink: 0; + } } } + + .protocol-description { + margin-bottom: 2em; + } + + .protocol-step-actions { + margin-top: 2em; + } } + .protocol-content { .protocol-name { font-size: 1.7em; diff --git a/app/assets/stylesheets/shared/inline_edit.scss b/app/assets/stylesheets/shared/inline_edit.scss index 137ed83fb..09ff22fa0 100644 --- a/app/assets/stylesheets/shared/inline_edit.scss +++ b/app/assets/stylesheets/shared/inline_edit.scss @@ -52,12 +52,6 @@ } } - &:hover { - .sci-inline-edit__content { - border: $border-default; - } - } - &.editing { .sci-inline-edit__content { diff --git a/app/assets/stylesheets/steps/components/checklist.scss b/app/assets/stylesheets/steps/components/checklist.scss index 482e96a15..093d1f6fe 100644 --- a/app/assets/stylesheets/steps/components/checklist.scss +++ b/app/assets/stylesheets/steps/components/checklist.scss @@ -21,14 +21,13 @@ &:hover.done .step-checklist-text { text-decoration: none; } - - .step-checklist-add-item { - margin-left: 9px; - margin-top: 2px; - } } } + .step-checklist-add-item { + margin-left: 9px; + } + .step-checklist-item-ghost { border: 1px solid $brand-primary; } diff --git a/app/assets/stylesheets/steps/components/text.scss b/app/assets/stylesheets/steps/components/text.scss index 7c2b59fc4..415407fa9 100644 --- a/app/assets/stylesheets/steps/components/text.scss +++ b/app/assets/stylesheets/steps/components/text.scss @@ -1,8 +1,7 @@ .step-text-container { display: block; margin-bottom: 16px; - margin-left: -16px; - padding-left: 36px; + padding-left: 1.5em; position: relative; width: calc(100% + 16px); @@ -30,13 +29,13 @@ .element-grip { align-items: center; - color: $color-alto; + color: $color-silver-chalice; display: none; height: 100%; justify-content: center; left: 0; + padding: .5em; position: absolute; - width: 36px; } .tinymce-container { @@ -44,7 +43,7 @@ display: flex; min-height: 36px; width: 100%; - + .tinymce-status-badge { display: none; } diff --git a/app/assets/stylesheets/steps/step.scss b/app/assets/stylesheets/steps/step.scss index dd367c79d..58c46a416 100644 --- a/app/assets/stylesheets/steps/step.scss +++ b/app/assets/stylesheets/steps/step.scss @@ -6,7 +6,7 @@ .step-container { border: $border-transparent; margin: 20px 0 20px -1.5em; - padding: 8px 24px; + padding: 8px 24px 8px 0; .step-header { align-items: center; @@ -93,6 +93,10 @@ } } + .step-elements { + padding-left: 24px; + } + .comments-counter { @include font-small; align-items: center; @@ -172,7 +176,6 @@ align-items: center; display: flex; min-height: 40px; - padding: 0 0 0 8px; position: relative; &.editing-name { @@ -215,7 +218,7 @@ .step-element-grip { color: $color-silver-chalice; cursor: grab; - margin-right: 8px; + padding: .5em; } .step-element-controls, diff --git a/app/javascript/vue/protocol/attachments.vue b/app/javascript/vue/protocol/attachments.vue index 213cee09c..54a011f66 100644 --- a/app/javascript/vue/protocol/attachments.vue +++ b/app/javascript/vue/protocol/attachments.vue @@ -15,6 +15,12 @@ :data-step-id="step.id" >