Skip to content

Commit

Permalink
improved grp-navigation layout, #1030 #1028
Browse files Browse the repository at this point in the history
  • Loading branch information
parsch committed Sep 15, 2023
1 parent 6d91888 commit 42c9357
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
32 changes: 19 additions & 13 deletions grappelli/sass/screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ body {
@extend .grp-font-color;
@extend .grp-font-family;
@extend .grp-font-size;
font-size: $grp-font-size;
@extend .grp-line-height;
background: #fff;
overflow: visible;
Expand Down Expand Up @@ -244,7 +245,6 @@ body.grp-login {
------------------------------------------------------------------------------------------------------ */

header#grp-header {
// display: none;
position: fixed;
z-index: 1000;
float: left;
Expand All @@ -255,8 +255,10 @@ header#grp-header {

#grp-navigation {
position: relative;
float: left;
clear: both;
display: flex;
flex: 1 auto;
flex-flow: row nowrap;
justify-content: space-between;
width: 100%;
padding: 0 20px;
box-sizing: border-box;
Expand Down Expand Up @@ -284,6 +286,7 @@ header#grp-header {
&.grp-open {
>ul {
position: absolute;
right: 0;
z-index: 1010;
display: block;
margin: -1px 0 0 -1px;
Expand All @@ -300,11 +303,6 @@ header#grp-header {
&:last-child {
border-bottom: 0;
}

// a {
// display: block;
// @include grp-padding($grp-padding-size $grp-padding-size);
// }
}
}
}
Expand All @@ -314,24 +312,29 @@ header#grp-header {

div#grp-branding {
position: relative;
float: left;
margin: 0 10px 0 -20px;
max-height: 36px;
overflow: hidden;
flex: 0 0 1;
}

h1#grp-admin-title {
position: relative;
float: left;
flex: 1 1 auto;
margin: 0;
padding: 10px 0;
padding: 10px 10px 10px 0;
font-size: 12px;
line-height: 16px;
@include ellipsis;
}

#grp-user-tools {
position: relative;
float: right;
display: flex;
flex: 0 1 auto;
flex-flow: row nowrap;
justify-content: space-end;
align-items: stretch;
font-weight: bold;
margin: 0 -10px 0 0;
border-left: 1px solid darken(#222, 10);
Expand All @@ -342,7 +345,9 @@ h1#grp-admin-title {
border-right: 1px solid darken(#222, 10);

&.grp-user-options-container {
width: 200px;
width: auto;
min-width: 200px;
max-width: 600px;

&:last-child {
margin-right: 11px;
Expand All @@ -356,6 +361,7 @@ h1#grp-admin-title {
a {
display: block;
@include grp-padding($grp-padding-size $grp-padding-size);
@include ellipsis;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion grappelli/static/grappelli/stylesheets/screen.css

Large diffs are not rendered by default.

0 comments on commit 42c9357

Please sign in to comment.