From ac4532eea3e1cc08508b7fc6c41cecc5b093e0ae Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Tue, 19 May 2020 10:29:07 +0200 Subject: [PATCH] Update fonts --- .../my_modules/protocols/index.scss | 7 ++++++- .../_module_header_details_popover.html.erb | 20 +++++-------------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/app/assets/stylesheets/my_modules/protocols/index.scss b/app/assets/stylesheets/my_modules/protocols/index.scss index 776dc2c97..9d70a66a2 100644 --- a/app/assets/stylesheets/my_modules/protocols/index.scss +++ b/app/assets/stylesheets/my_modules/protocols/index.scss @@ -471,12 +471,17 @@ } .dropdown-menu { + @include font-button; min-width: 500px; padding: 1em 2em; + .task-details-value { + @include font-h3; + } + .row-v-margin { margin-bottom: .5em; - margin-top: .5em + margin-top: .5em; } } } diff --git a/app/views/my_modules/_module_header_details_popover.html.erb b/app/views/my_modules/_module_header_details_popover.html.erb index 1b57f9e03..1c06c69c2 100644 --- a/app/views/my_modules/_module_header_details_popover.html.erb +++ b/app/views/my_modules/_module_header_details_popover.html.erb @@ -3,30 +3,24 @@
<%= t('my_modules.module_header.details_popover.project_label') %>
-
- +
<%= @my_module.experiment.project.name.truncate(Constants::MAX_NAME_TRUNCATION) %> -
<%= t('my_modules.module_header.details_popover.experiment_label') %>
-
- +
<%= @my_module.experiment.name.truncate(Constants::MAX_NAME_TRUNCATION) %> -
<%= t('my_modules.module_header.details_popover.creator_label') %>
-
- +
<%= @my_module.created_by&.full_name&.truncate(Constants::MAX_NAME_TRUNCATION) %> - <%= t('my_modules.module_header.details_popover.creator_same_user_label') if current_user == @my_module.created_by %>
@@ -34,18 +28,15 @@
<%= t('my_modules.module_header.details_popover.created_label') %>
-
- +
<%= l(@my_module.created_at, format: :full_date) %> -
<%= t('my_modules.module_header.details_popover.modified_label') %>
-
- +
<% if @my_module.last_modified_by.present? %> <%= t('my_modules.module_header.details_popover.modified_value', date: l(@my_module.updated_at, format: :full_date), @@ -54,7 +45,6 @@ <%= t('my_modules.module_header.details_popover.modified_value_without_user', date: l(@my_module.updated_at, format: :full_date)) %> <% end %> -