From 989c10872cd0da5ed6f067f6811922b4b944fa55 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Thu, 4 Jul 2019 18:22:51 +0200 Subject: [PATCH 1/2] Fixes visual bugs on protocols.io and home page --- app/assets/stylesheets/protocol_management.scss | 9 ++++----- app/assets/stylesheets/themes/scinote.scss | 8 +++++++- .../protocols/index/_external_protocols_tab.html.erb | 3 ++- app/views/shared/_navigation.html.erb | 4 +++- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/protocol_management.scss b/app/assets/stylesheets/protocol_management.scss index cfe41640f..e4c2d18dc 100644 --- a/app/assets/stylesheets/protocol_management.scss +++ b/app/assets/stylesheets/protocol_management.scss @@ -86,7 +86,6 @@ } .protocolsio-title { - color: $brand-primary; font-size: 14px; margin-left: 3px; vertical-align: middle; @@ -135,8 +134,8 @@ .protocol-list-side-panel { background-color: $color-white; - border-right: 1px solid $color-silver-chalice; - border-top: 1px solid $color-silver-chalice; + border-right: 1px solid $color-alto; + border-top: 1px solid $color-alto; height: 600px; padding-right: 0; @@ -165,7 +164,7 @@ &.active { border: 2px solid $brand-primary; border-radius: 2px; - box-shadow: 0 1px 4px 0 $color-black; + box-shadow: 0 1px 4px 0 $color-alto; padding-bottom: 7px; } @@ -200,7 +199,7 @@ .protocol-preview-panel { background-color: $color-concrete; - border-top: 1px solid $color-silver-chalice; + border-top: 1px solid $color-alto; height: 600px; padding-left: 0; padding-right: 0; diff --git a/app/assets/stylesheets/themes/scinote.scss b/app/assets/stylesheets/themes/scinote.scss index 311ebd57b..af2b7496d 100644 --- a/app/assets/stylesheets/themes/scinote.scss +++ b/app/assets/stylesheets/themes/scinote.scss @@ -154,6 +154,13 @@ body { width: 100% !important; } +.input-group { + .form-control:not(:focus) { + -webkit-box-shadow: inset 0 1px 1px $color-white; + box-shadow: inset 0 1px 1px $color-white; + } +} + // Makes blue selected element line fill parent (as it should, fixes sci-2672) .repository-dropdown { .selected { @@ -403,7 +410,6 @@ a[data-toggle="tooltip"] { border-left: 1px solid $color-alto; border-right: 1px solid $color-alto; border-bottom: 1px solid $color-alto; - margin-bottom: 50px; } .breadcrumb-teams { diff --git a/app/views/protocols/index/_external_protocols_tab.html.erb b/app/views/protocols/index/_external_protocols_tab.html.erb index 20044e4e2..000e56097 100644 --- a/app/views/protocols/index/_external_protocols_tab.html.erb +++ b/app/views/protocols/index/_external_protocols_tab.html.erb @@ -8,7 +8,8 @@
<%= image_tag 'external_protocols/protocolsio_logo.png', class: 'protocolsio-logo' %> - <%= t('protocols.index.external_protocols.protocolsio_title') %> + + <%= t('protocols.index.external_protocols.protocolsio_title') %> <%= hidden_field_tag 'protocol_source', 'protocolsio/v3' %>
diff --git a/app/views/shared/_navigation.html.erb b/app/views/shared/_navigation.html.erb index 3d42fb328..41754d4da 100644 --- a/app/views/shared/_navigation.html.erb +++ b/app/views/shared/_navigation.html.erb @@ -53,7 +53,9 @@ <% if current_user.teams.length > 0 %>
  • - +