diff --git a/app/assets/javascripts/sitewide/avatar_modal.js b/app/assets/javascripts/sitewide/avatar_modal.js index 893ed0c64..7859c54d1 100644 --- a/app/assets/javascripts/sitewide/avatar_modal.js +++ b/app/assets/javascripts/sitewide/avatar_modal.js @@ -31,7 +31,7 @@ var avatarsModal = (function() { reader.readAsDataURL(inputField.files[0]); reader.onload = function() { var avatarContainer = $(modal).find('.avatar-preview-container'); - $(modal).find('.save-button').removeClass('disabled'); + $(modal).find('.save-button').removeClass('disabled').attr('disabled', false); $(modal).find('#new_avatar').val(reader.result); avatarContainer.show().children().remove(); @@ -50,7 +50,7 @@ var avatarsModal = (function() { function initPredefinedAvatars() { $(modal).find('.avatar-collection .avatar').click(function() { - $(modal).find('.save-button').removeClass('disabled'); + $(modal).find('.save-button').removeClass('disabled').attr('disabled', false); $(modal).find('#raw_avatar')[0].value = null; $(modal).find('.avatar-preview-container').hide(); $(modal).find('.current-avatar').show().find('img') @@ -63,7 +63,7 @@ var avatarsModal = (function() { $(modal).find('.save-button').click(function() { if ($(this).hasClass('disabled')) return; - $(this).addClass('disabled'); + $(this).addClass('disabled').attr('disabled', true); $.ajax({ url: $(modal).data('update-url'), type: 'PUT', @@ -76,7 +76,7 @@ var avatarsModal = (function() { location.reload(); }, error: () => { - $(this).removeClass('disabled'); + $(this).removeClass('disabled').attr('disabled', false); } }); }); diff --git a/app/assets/stylesheets/global_activities.scss b/app/assets/stylesheets/global_activities.scss index e6a949b3b..1ef49cded 100644 --- a/app/assets/stylesheets/global_activities.scss +++ b/app/assets/stylesheets/global_activities.scss @@ -34,22 +34,6 @@ display: flex; height: 42px; - .hide-actions { - align-items: center; - color: $color-silver-chalice; - display: flex; - margin-right: 20px; - - &:hover { - text-decoration: none; - } - - .fas { - font-size: 18px; - margin-right: 5px; - } - } - .ga-search-container { display: none; flex-grow: 1; diff --git a/app/assets/stylesheets/protocol_management.scss b/app/assets/stylesheets/protocol_management.scss index a11303793..67573f78c 100644 --- a/app/assets/stylesheets/protocol_management.scss +++ b/app/assets/stylesheets/protocol_management.scss @@ -226,6 +226,7 @@ align-items: center; display: flex; height: 30px; + margin-top: 5px; .info-line.button { flex-grow: 1; @@ -355,15 +356,6 @@ } } - .external-import-btn { - background-color: $brand-primary; - border: 0; - color: $color-white; - font-size: 12px; - padding-bottom: 3px; - padding-top: 3px; - } - .footer { background: $color-white; bottom: -30px; diff --git a/app/assets/stylesheets/shared_styles/constants/fonts.scss b/app/assets/stylesheets/shared_styles/constants/fonts.scss index 0ba864524..0517b6b69 100644 --- a/app/assets/stylesheets/shared_styles/constants/fonts.scss +++ b/app/assets/stylesheets/shared_styles/constants/fonts.scss @@ -6,40 +6,40 @@ $font-family-base: $font-family-lato; $font-family-icons: "Font Awesome 5 Free"; $font-size-base: 16px; +$font-fas-check: "\f00c"; +$font-fas-exclamation-triangle: "\f071"; @mixin font-h1 { - font-family: $font-family-base; font-size: 24px; font-weight: bold; } @mixin font-h2 { - font-family: $font-family-base; font-size: 18px; font-weight: bold; } @mixin font-h3 { - font-family: $font-family-base; font-size: $font-size-base; font-weight: bold; } @mixin font-main { - font-family: $font-family-base; font-size: $font-size-base; } @mixin font-button { - font-family: $font-family-base; font-size: 14px; } @mixin font-small { - font-family: $font-family-base; font-size: 12px; } +@mixin font-awesome { + font-family: "Font Awesome 5 Free"; + font-weight: 501; +} diff --git a/app/assets/stylesheets/shared_styles/elements/buttons.scss b/app/assets/stylesheets/shared_styles/elements/buttons.scss index 446dda727..c7d5e4e0e 100644 --- a/app/assets/stylesheets/shared_styles/elements/buttons.scss +++ b/app/assets/stylesheets/shared_styles/elements/buttons.scss @@ -9,11 +9,11 @@ color: $color-white; cursor: pointer; display: inline-block; - font-size: 14px; line-height: 20px; outline: 0; padding: 7px 16px; position: relative; + text-align: center; text-decoration: none; transition: .3s; user-select: none; @@ -36,7 +36,7 @@ } &:focus { - border: $border-focus; + box-shadow: 0 0 0 1px $brand-focus; color: $color-white; outline: 0; text-decoration: none; @@ -60,7 +60,7 @@ } &:focus { - border: $border-focus; + box-shadow: 0 0 0 1px $brand-focus; color: $color-black; } } @@ -83,7 +83,7 @@ } &:focus { - border: $border-focus; + box-shadow: 0 0 0 1px $brand-focus; color: $color-black; } } @@ -101,7 +101,7 @@ } &:focus { - border: $border-focus; + box-shadow: 0 0 0 1px $brand-focus; color: $color-white; } } @@ -146,7 +146,7 @@ .sci-btn { float: left; - margin: 0 4px 4px 0; + margin: 2px 4px 2px 0; &:nth-last-child(1) { margin-right: 0; diff --git a/app/assets/stylesheets/shared_styles/elements/checkboxes.scss b/app/assets/stylesheets/shared_styles/elements/checkboxes.scss index 311a58139..c7cee3baa 100644 --- a/app/assets/stylesheets/shared_styles/elements/checkboxes.scss +++ b/app/assets/stylesheets/shared_styles/elements/checkboxes.scss @@ -23,15 +23,14 @@ input[type="checkbox"].sci-checkbox { width: var(--sci-checkbox-size); &::before { + @include font-awesome; animation-timing-function: $timing-function-sharp; background: $color-white; border: $border-default; border-radius: 1px; color: $color-white; content: ""; - font-family: "Font Awesome 5 Free"; font-size: calc(var(--sci-checkbox-size) - var(--sci-checkbox-size) * .375); - font-weight: 501; height: var(--sci-checkbox-size); left: 0; line-height: calc(var(--sci-checkbox-size) - 2px); @@ -51,7 +50,7 @@ input[type="checkbox"].sci-checkbox { &::before { background: $brand-primary; border: 1px solid $brand-primary; - content: "\f00c"; + content: $font-fas-check; } } diff --git a/app/assets/stylesheets/shared_styles/elements/input_fields.scss b/app/assets/stylesheets/shared_styles/elements/input_fields.scss index 29b584bfa..c86571b5d 100644 --- a/app/assets/stylesheets/shared_styles/elements/input_fields.scss +++ b/app/assets/stylesheets/shared_styles/elements/input_fields.scss @@ -40,7 +40,6 @@ } &.left-icon { - .sci-input-field { padding: 0 0 0 30px; } @@ -51,7 +50,6 @@ } &.right-icon { - .sci-input-field { padding: 0 30px 0 10px; } @@ -63,15 +61,13 @@ &.success, &.error { - .sci-input-field { padding: 0 30px 0 10px; } &::after { + @include font-awesome; bottom: 0; - font-family: "Font Awesome 5 Free"; - font-weight: 501; line-height: 36px; position: absolute; right: 5px; @@ -93,7 +89,7 @@ &.success { &::after { color: $brand-success; - content: "\f00c"; + content: $font-fas-check; } } @@ -104,7 +100,7 @@ &::after { color: $brand-danger; - content: "\f071"; + content: $font-fas-exclamation-triangle; } &::before { diff --git a/app/assets/stylesheets/shared_styles/elements/radio_buttons.scss b/app/assets/stylesheets/shared_styles/elements/radio_buttons.scss index 0536573ae..706e8a12e 100644 --- a/app/assets/stylesheets/shared_styles/elements/radio_buttons.scss +++ b/app/assets/stylesheets/shared_styles/elements/radio_buttons.scss @@ -28,9 +28,7 @@ input[type="radio"].sci-radio { border-radius: 50%; color: $color-white; content: ""; - font-family: "Font Awesome 5 Free"; font-size: calc(var(--sci-radio-size) - var(--sci-radio-size) * .375); - font-weight: 501; height: var(--sci-radio-size); left: 0; line-height: calc(var(--sci-radio-size) - 2px); diff --git a/app/assets/stylesheets/themes/main_navigation.scss b/app/assets/stylesheets/themes/main_navigation.scss index 888adb874..2a42b27ff 100644 --- a/app/assets/stylesheets/themes/main_navigation.scss +++ b/app/assets/stylesheets/themes/main_navigation.scss @@ -43,6 +43,10 @@ align-items: center; display: flex; padding: 0 15px; + + #logo { + max-height: 22px; + } } .dropdown-notifications { @@ -392,10 +396,6 @@ #search-bar { padding-right: 0; - - .btn-default[type="submit"] { - height: 34px; - } } @media (max-width: 768px) { diff --git a/app/assets/stylesheets/themes/scinote.scss b/app/assets/stylesheets/themes/scinote.scss index 0aceee0de..57fb236e3 100644 --- a/app/assets/stylesheets/themes/scinote.scss +++ b/app/assets/stylesheets/themes/scinote.scss @@ -1855,6 +1855,14 @@ th.custom-field .modal-tooltiptext { color: $color-white; font: bold; } + + .res-description { + color: $color-white; + } + + .res-type { + border-color: $color-white; + } } ul { diff --git a/app/views/global_activities/_top_pane.html.erb b/app/views/global_activities/_top_pane.html.erb index e7c06eb6c..7c1ca2073 100644 --- a/app/views/global_activities/_top_pane.html.erb +++ b/app/views/global_activities/_top_pane.html.erb @@ -2,12 +2,14 @@ <%= t('activities.index.global_activities_title') %>