Skip to content

Commit

Permalink
Extract a magic value into a proper CSS variable
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Apr 16, 2024
1 parent 96404d8 commit 43cc094
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/css/easyadmin-theme/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ a.user-menu-wrapper .user-details:hover {
.content-wrapper {
display: grid;
grid-template-columns: auto var(--resize-handler-width);
padding: 0 var(--lg-content-padding-right) 45px var(--lg-content-padding-left);
padding: 0 var(--lg-content-padding-right) var(--lg-content-padding-bottom) var(--lg-content-padding-left);
}
}

Expand Down Expand Up @@ -315,7 +315,7 @@ a.user-menu-wrapper .user-details:hover {
}

#content-resizer-handler {
min-height: calc(100vh - 56px - 45px);
min-height: calc(100vh - 56px - var(--lg-content-padding-bottom));
}

.content-top {
Expand Down
1 change: 1 addition & 0 deletions assets/css/easyadmin-theme/variables-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
--content-padding-right: 15px;
--lg-content-padding-left: 35px;
--lg-content-padding-right: 25px;
--lg-content-padding-bottom: 45px;
--user-avatar-icon-bg: var(--gray-200);
--user-avatar-icon-color: var(--gray-500);
--user-name-color: var(--gray-500);
Expand Down

0 comments on commit 43cc094

Please sign in to comment.