From fecef2ec2a47b73c0eae8e080468c3a6316d055d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Geuken?= Date: Mon, 17 Dec 2018 10:52:34 +0100 Subject: [PATCH] Cleanup breadcrumb CSS Style any link within the breadcrumbs the same, regardless of having the 'breadcrumb-item' class or not. This is just a follow up of #6592 which was already merged when I realized that the CSS could be written in a simpler way. --- .../assets/stylesheets/webui2/breadcrumbs-component.scss | 9 +-------- .../views/webui2/webui/main/_breadcrumb_items.html.haml | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/api/app/assets/stylesheets/webui2/breadcrumbs-component.scss b/src/api/app/assets/stylesheets/webui2/breadcrumbs-component.scss index c87d5c94a88..ef0c866a906 100644 --- a/src/api/app/assets/stylesheets/webui2/breadcrumbs-component.scss +++ b/src/api/app/assets/stylesheets/webui2/breadcrumbs-component.scss @@ -1,18 +1,11 @@ ol.breadcrumb { padding-top: 0.5rem; - & li.breadcrumb-item { + & li { font-size: 0.9rem; & a { color: $gray-600; } } - - & li.breadcrumb-anchor { - font-size: 0.9rem; - & a { - color: $gray-600; - } - } } diff --git a/src/api/app/views/webui2/webui/main/_breadcrumb_items.html.haml b/src/api/app/views/webui2/webui/main/_breadcrumb_items.html.haml index 3baa26afd35..c09a67b0e6e 100644 --- a/src/api/app/views/webui2/webui/main/_breadcrumb_items.html.haml +++ b/src/api/app/views/webui2/webui/main/_breadcrumb_items.html.haml @@ -1,5 +1,5 @@ - home_title = @configuration ? @configuration['title'] : 'Open Build Service' - unless current_page?(root_path) - %li.breadcrumb-anchor + %li = link_to(root_path, title: home_title) do %i.fas.fa-home.mr-2