Skip to content

Commit

Permalink
With nicer styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcharlton committed Jan 4, 2020
1 parent 5ef139a commit 8c9e95f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/administrate/components/_buttons.scss
Expand Up @@ -41,3 +41,11 @@ input[type="submit"],
}
}
}

.button--alt {
border: $base-border;
border-color: $blue;
background-color: transparent;
color: $blue;
margin-bottom: $base-spacing;
}
Expand Up @@ -2,9 +2,8 @@ $_navigation-link-padding: 0.6em;

.navigation {
flex: 1 0 10rem;
padding-bottom: $base-spacing;
padding-right: calc(#{$base-spacing} - #{$_navigation-link-padding});
padding-top: $base-spacing;
padding: $base-spacing;
padding-left: 0;
}

.navigation__link {
Expand Down
2 changes: 1 addition & 1 deletion app/views/administrate/application/_navigation.html.erb
Expand Up @@ -8,7 +8,7 @@ as defined by the routes in the `admin/` namespace
%>

<nav class="navigation" role="navigation">
<%= link_to "Back to main application", root_url, class: "navigation__link" %>
<%= link_to "Back to main app", root_url, class: "button button--alt" %>
<% Administrate::Namespace.new(namespace).resources.each do |resource| %>
<%= link_to(
Expand Down

0 comments on commit 8c9e95f

Please sign in to comment.