From 8ce9a09da0d186ad9ee5eadb87ad84f95d388bb6 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Thu, 19 Apr 2018 03:02:38 +0100 Subject: [PATCH] More stylezz --- app/assets/stylesheets/framework/common.scss | 2 + app/assets/stylesheets/pages/labels.scss | 72 +++++++++----------- app/views/shared/_label_row.html.haml | 10 +-- 3 files changed, 39 insertions(+), 45 deletions(-) diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss index d0dda50a835..0db1b78ac9f 100644 --- a/app/assets/stylesheets/framework/common.scss +++ b/app/assets/stylesheets/framework/common.scss @@ -463,11 +463,13 @@ img.emoji { .prepend-left-5 { margin-left: 5px; } .prepend-left-8 { margin-left: 8px; } .prepend-left-10 { margin-left: 10px; } +.prepend-left-15 { margin-left: 15px; } .prepend-left-default { margin-left: $gl-padding; } .prepend-left-20 { margin-left: 20px; } .append-right-5 { margin-right: 5px; } .append-right-8 { margin-right: 8px; } .append-right-10 { margin-right: 10px; } +.append-right-15 { margin-right: 15px; } .append-right-default { margin-right: $gl-padding; } .append-right-20 { margin-right: 20px; } .append-bottom-0 { margin-bottom: 0; } diff --git a/app/assets/stylesheets/pages/labels.scss b/app/assets/stylesheets/pages/labels.scss index 85740b91ba6..c4fb0c2c8e9 100644 --- a/app/assets/stylesheets/pages/labels.scss +++ b/app/assets/stylesheets/pages/labels.scss @@ -57,46 +57,6 @@ border-bottom-left-radius: $border-radius-base; } -.label-row { - display: flex; - - .label-name { - width: 200px; - flex-shrink: 0; - - .label { - overflow: hidden; - text-overflow: ellipsis; - max-width: 100%; - } - } - - .label-type { - display: block; - margin-bottom: 10px; - margin-left: 50px; - } - - .label-description { - display: block; - - .description-text { - margin: 0 0 10px 0; - } - - a { - color: $blue-600; - } - } - - .label { - padding: 4px $grid-size; - font-size: $label-font-size; - position: relative; - top: ($grid-size / 2); - } -} - .color-label { padding: 0 $grid-size; line-height: 16px; @@ -323,4 +283,36 @@ content: none; display: block; } + + .label-name { + width: 150px; + flex-shrink: 0; + + .label { + overflow: hidden; + text-overflow: ellipsis; + max-width: 100%; + } + } + + .label-type { + display: block; + margin-bottom: 10px; + margin-left: 50px; + } + + .label-description { + flex-grow: 1; + + a { + color: $blue-600; + } + } + + .label { + padding: 4px $grid-size; + font-size: $label-font-size; + position: relative; + top: ($grid-size / 2); + } } \ No newline at end of file diff --git a/app/views/shared/_label_row.html.haml b/app/views/shared/_label_row.html.haml index c098c916915..89dea6c6f10 100644 --- a/app/views/shared/_label_row.html.haml +++ b/app/views/shared/_label_row.html.haml @@ -2,12 +2,12 @@ - show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project) - show_label_merge_requests_link = show_label_issuables_link?(label, :merge_requests, project: @project) -.label-row - .label-name - = link_to_label(label, subject: @project, tooltip: false) - .label-description +.label-name + = link_to_label(label, subject: @project, tooltip: false) +.label-description + .append-right-15.prepend-left-15 - if label.description.present? - .description-text + .description-text.append-bottom-10 = markdown_field(label, :description) %ul.label-links - if show_label_issues_link