From af48cede1fa9a287a78e13ec2d00c1ae4a00cc89 Mon Sep 17 00:00:00 2001 From: sboursen-scinote Date: Mon, 27 Feb 2023 09:58:28 +0100 Subject: [PATCH 01/41] Update protocol repository default view styles [SCI-7996] --- app/assets/stylesheets/extend/datatable.scss | 2 +- app/assets/stylesheets/partials/_sidebar.scss | 5 +++-- app/assets/stylesheets/shared/content_pane.scss | 2 +- app/assets/stylesheets/shared_styles/elements/buttons.scss | 4 ++++ app/views/protocols/index/_general_toolbar.html.erb | 2 +- config/locales/en.yml | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/extend/datatable.scss b/app/assets/stylesheets/extend/datatable.scss index 8e5fa96d8..5fdc55233 100644 --- a/app/assets/stylesheets/extend/datatable.scss +++ b/app/assets/stylesheets/extend/datatable.scss @@ -54,7 +54,7 @@ } td { - padding-left: 10px; + padding: 14px 8px; .nowrap { white-space: nowrap; diff --git a/app/assets/stylesheets/partials/_sidebar.scss b/app/assets/stylesheets/partials/_sidebar.scss index bc180e478..2ac4e8e3d 100644 --- a/app/assets/stylesheets/partials/_sidebar.scss +++ b/app/assets/stylesheets/partials/_sidebar.scss @@ -149,7 +149,7 @@ margin-left: -2.5em; max-width: var(--wrapper-width); overflow: hidden; - padding: 1em 2.5em; + padding: 1em; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; @@ -162,7 +162,8 @@ &.selected { background: $color-white; color: $brand-primary; - font-weight: bold; + font-weight: normal; + padding-left: 2.5em; } .fas { diff --git a/app/assets/stylesheets/shared/content_pane.scss b/app/assets/stylesheets/shared/content_pane.scss index c0914267b..6c4aa3400 100644 --- a/app/assets/stylesheets/shared/content_pane.scss +++ b/app/assets/stylesheets/shared/content_pane.scss @@ -9,7 +9,7 @@ &.flexible { margin: 0; - padding: 0 1em; + padding: 0 9px; } .content-header { diff --git a/app/assets/stylesheets/shared_styles/elements/buttons.scss b/app/assets/stylesheets/shared_styles/elements/buttons.scss index 608087c51..fb31a9346 100644 --- a/app/assets/stylesheets/shared_styles/elements/buttons.scss +++ b/app/assets/stylesheets/shared_styles/elements/buttons.scss @@ -233,6 +233,10 @@ float: left; margin: 2px 4px 2px 0; + .fas { + margin-right: 8px; + } + &:nth-last-child(1) { margin-right: 0; } diff --git a/app/views/protocols/index/_general_toolbar.html.erb b/app/views/protocols/index/_general_toolbar.html.erb index 1e41b9c3c..17d331f92 100644 --- a/app/views/protocols/index/_general_toolbar.html.erb +++ b/app/views/protocols/index/_general_toolbar.html.erb @@ -14,7 +14,7 @@ data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> - + <% if can_create_protocols_in_repository?(@current_team) %>