Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align label and data on show page #1522

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -3,7 +3,7 @@
clear: left;
float: left;
margin-bottom: $base-spacing;
margin-top: 0;
margin-top: $top-space;
text-align: right;
width: calc(15% - 1rem);
}
Expand Down
2 changes: 2 additions & 0 deletions app/assets/stylesheets/administrate/components/_cells.scss
@@ -1,4 +1,6 @@
.cell-label {
padding-top: $top-space;

pablobm marked this conversation as resolved.
Show resolved Hide resolved
&:hover {
a {
color: $action-color;
Expand Down
Expand Up @@ -15,6 +15,7 @@ $heading-line-height: 1.2 !default;
$base-border-radius: 4px !default;
$base-spacing: $base-line-height * 1em !default;
$small-spacing: $base-spacing / 2 !default;
$top-space: 0.39em !default;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that top-space it a bit generic a name. Should this be something else? I guess it'll depend on whether cell-label needs to be altered (see my comment above).


// Colors
$white: #fff !default;
Expand Down