Skip to content

Commit

Permalink
Update login and signup forms UI, including Hyrax logo in top nav bar
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjarling committed Oct 31, 2018
1 parent 42adf60 commit 0378059
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 20 deletions.
Binary file added app/assets/images/hyrax_logo-bw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions app/assets/stylesheets/hyrax/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ legend small {
padding-left:1.2em;
}

.form-group { margin-bottom: 2em; }

.form-group.has-error input,
.form-group.has-error option,
.form-group.has-error textarea {
Expand Down
16 changes: 11 additions & 5 deletions app/assets/stylesheets/hyrax/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ header > .navbar {

.searchbar-right {
margin-right: 0;

label {
color: #ffffff;
}
}

// We need these ancestor selectors to override Bootstrap and push
Expand All @@ -30,7 +26,17 @@ header > .navbar {
}

.dropdown-toggle:focus {
outline: 2px auto Highlight; // FireFox
outline: 2px auto Highlight; // FireFox
outline: 5px auto -webkit-focus-ring-color; // Chrome, Safari
outline: -2px;
}

.navbar-brand {
padding-top: 12px;
padding-right: 0px;
padding-bottom: 12px;

img {
height: 28px;
}
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/hyrax/_home-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

.navbar {
background-color: $navbar-transparent-bg;
color: #fff;
margin-bottom: 0;

.navbar-nav {
Expand Down
20 changes: 10 additions & 10 deletions app/assets/stylesheets/hyrax/_hyrax.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@import 'hydra-editor/multi_value_fields';
@import 'hyrax/variables', 'hyrax/file_sets', 'hyrax/settings', 'hyrax/header',
'hyrax/styles', 'hyrax/file-listing', 'hyrax/browse_everything_overrides',
'hyrax/nestable', 'hyrax/collections', 'hyrax/collection_types', 'hyrax/batch-edit',
'hyrax/home-page', 'hyrax/featured', 'hyrax/usage-stats', 'hyrax/catalog',
'hyrax/buttons', 'hyrax/tinymce', 'hyrax/proxy-rights', 'hyrax/file-show',
'hyrax/work-show', 'hyrax/modal', 'hyrax/forms', 'hyrax/form',
'hyrax/file_manager', 'hyrax/form-progress', 'hyrax/positioning',
'hyrax/fixedsticky', 'hyrax/file_upload', 'hyrax/representative-media',
'hyrax/footer', 'hyrax/select_work_type', 'hyrax/users', 'hyrax/dashboard',
'hyrax/sidebar', 'hyrax/controlled_vocabulary', 'hyrax/accessibility',
'hyrax/recent', 'hyrax/viewer', 'hyrax/breadcrumbs';
'hyrax/styles', 'hyrax/file-listing', 'hyrax/browse_everything_overrides',
'hyrax/nestable', 'hyrax/collections', 'hyrax/collection_types',
'hyrax/batch-edit', 'hyrax/home-page', 'hyrax/featured', 'hyrax/usage-stats',
'hyrax/catalog', 'hyrax/buttons', 'hyrax/tinymce', 'hyrax/proxy-rights',
'hyrax/file-show', 'hyrax/work-show', 'hyrax/modal', 'hyrax/forms',
'hyrax/form', 'hyrax/file_manager', 'hyrax/form-progress', 'hyrax/positioning',
'hyrax/fixedsticky', 'hyrax/file_upload', 'hyrax/representative-media',
'hyrax/footer', 'hyrax/select_work_type', 'hyrax/users', 'hyrax/dashboard',
'hyrax/sidebar', 'hyrax/controlled_vocabulary', 'hyrax/accessibility',
'hyrax/recent', 'hyrax/viewer', 'hyrax/breadcrumbs', 'hyrax/login_signup';
@import 'typeahead';
@import 'sharing_buttons';

Expand Down
20 changes: 20 additions & 0 deletions app/assets/stylesheets/hyrax/_login_signup.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Login / Sign up styles needed because Devise gem controls the markup
form.new_user {
margin-bottom: 1rem;

.field {
@extend .form-group;

input[type='email'],
input[type='input'],
input[type='password'] {
@extend .form-control;
width: 300px;
}
}

input[type='submit'] {
@extend .btn;
@extend .btn-primary;
}
}
3 changes: 1 addition & 2 deletions app/views/_logo.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<a id="logo" class="navbar-brand" href="<%= hyrax.root_path %>" data-no-turbolink="true">
<span class="glyphicon glyphicon-globe" role="img" aria-label="<%= application_name %>" aria-hidden="true"></span>
<span class="institution_name"><%= application_name %></span>
<%= image_tag("hyrax_logo-bw.png", alt: application_name) %>
</a>
2 changes: 1 addition & 1 deletion lib/generators/hyrax/templates/config/locales/hyrax.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ en:
directory:
suffix: "@example.org"
footer:
copyright_html: "<strong>Copyright &copy; 2018 Samvera</strong> Licensed under the Apache License, Version 2.0"
copyright_html: "&copy; 2018 Samvera - Licensed under the Apache License, Version 2.0"
service_html: A service of <a href="http://samvera.org/" class="navbar-link" target="_blank">Samvera</a>.
institution_name: Institution
institution_name_full: The Institution Name
Expand Down

0 comments on commit 0378059

Please sign in to comment.