Skip to content

Commit

Permalink
Added some design tweaks related to the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jun 6, 2020
1 parent c8d227f commit 403d0ae
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 21 deletions.
2 changes: 1 addition & 1 deletion assets/css/app-custom-rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ html[dir="rtl"] .page-item:last-child .page-link {
border-bottom-right-radius: 0;
}

@media (min-width: 992px) {
@media (min-width: 1024px) {
html[dir="rtl"].ea-sidebar-width-compact .sidebar-menu > li:hover > .treeview-menu,
html[dir="rtl"].ea-sidebar-width-compact .sidebar-menu > li:hover > a > span {
left: unset;
Expand Down
24 changes: 15 additions & 9 deletions assets/css/easyadmin-theme/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ pre {
;
margin: 20px 15px;

@media(min-width: 992px) {
grid-template-columns: fit-content(var(--sidebar-width)) auto;
grid-column-gap: 35px;
@media(min-width: 1024px) {
grid-template-columns: var(--sidebar-width) auto;
grid-column-gap: 15px;
grid-template-areas:
"header header"
"sidebar content-wrapper"
Expand All @@ -66,21 +66,27 @@ pre {
margin-right: auto;
width: calc(100% - 2 * 20px);
}

@media(min-width: 1280px) {
grid-column-gap: 35px;
}
}

body:not(.ea-content-width-full) .wrapper {
max-width: var(--body-max-width);
}
body.ea-sidebar-width-compact .wrapper {
@media(min-width: 992px) {
grid-column-gap: 25px;

@media(min-width: 1024px) {
grid-template-columns: 24px auto;
}
}

.main-header {
display: flex;
justify-content: space-between;
@media(min-width: 992px) {
@media(min-width: 1024px) {
padding-right: 10px; // same as the width of #content-resizer-handler
}
}
Expand Down Expand Up @@ -114,7 +120,7 @@ body.ea-sidebar-width-compact .wrapper {
padding: 0;
width: 24px;

@media(min-width: 992px) {
@media(min-width: 1024px) {
display: none;
}
}
Expand All @@ -132,7 +138,7 @@ body.ea-sidebar-width-compact .wrapper {
z-index: $zindex-modal-backdrop + 1;
width: calc(2 * 20px + var(--sidebar-width));

@media(min-width: 992px) {
@media(min-width: 1024px) {
height: unset;
padding: 0;
position: static;
Expand Down Expand Up @@ -200,7 +206,7 @@ body.ea-mobile-sidebar-visible .main-sidebar {
grid-template-columns: 0 auto 0;
margin-top: -14px;

@media(min-width: 992px) {
@media(min-width: 1024px) {
grid-template-columns: 10px auto 10px;
}
}
Expand All @@ -218,7 +224,7 @@ body.ea-mobile-sidebar-visible .main-sidebar {
background: rgba(0, 0, 0, 0.1) center no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" viewBox="0 0 320 512"><path fill="rgba(0, 0, 0, 0.7)" d="M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"></path></svg>');
}

@media(min-width: 992px) {
@media(min-width: 1024px) {
display: block;
}
}
Expand Down
4 changes: 2 additions & 2 deletions assets/css/easyadmin-theme/datalists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dl.datalist .data-row {
align-items: flex-start;
padding: 15px 20px;
}
@media(min-width: 992px) {
@media(min-width: 1024px) {
dl.datalist .data-row {
flex-wrap: nowrap;
}
Expand All @@ -31,7 +31,7 @@ dl.datalist dd {
margin-bottom: 0;
padding-right: 10px;
}
@media(min-width: 992px) {
@media(min-width: 1024px) {
dl.datalist dd {
flex: 20% 0 0;
}
Expand Down
6 changes: 3 additions & 3 deletions assets/css/easyadmin-theme/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ input[disabled] {
align-self: self-start;
}

@media(min-width: 992px) {
@media(min-width: 1024px) {
.form-group label,
.form-group legend.col-form-label {
flex: 30% 0 0;
Expand Down Expand Up @@ -73,7 +73,7 @@ label.form-check-label {
flex-direction: column;
}

@media(min-width: 992px) {
@media(min-width: 1024px) {
.form-widget {
flex: 0 0 55%;
padding-left: 5px;
Expand Down Expand Up @@ -149,7 +149,7 @@ label.form-check-label {
position: static;
}

@media(min-width: 992px) {
@media(min-width: 1024px) {
.field-boolean .form-widget {
margin-left: calc(30% + 5px);
}
Expand Down
4 changes: 2 additions & 2 deletions assets/css/easyadmin-theme/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@
body.ea-sidebar-width-compact .main-sidebar {
overflow: visible;

@media(min-width: 992px) {
@media(min-width: 1024px) {
width: 24px;
}
}

@media(min-width: 992px) {
@media(min-width: 1024px) {
body.ea-sidebar-width-compact .sidebar-menu a {
padding: 7px 5px 7px 0;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/css/easyadmin-theme/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
--------------------------------------------------------------------------- */
:root {
--body-max-width: 1440px;
--sidebar-width: 200px;
--sidebar-width: 180px;

--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/app-custom-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Resources/public/app.css

Large diffs are not rendered by default.

0 comments on commit 403d0ae

Please sign in to comment.