Skip to content

Commit

Permalink
SPOS-541: Add styling profile dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvdwalle committed Dec 18, 2024
1 parent 9a39a74 commit 1f1155e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All Notable changes to `StadGent/drupal_theme_gent-base`.
### Added

- DMD09LEAFL-4: Add css for leaflet maps.
- SPOS-541: Add styling profile dropdown

## [6.x]

Expand Down
2 changes: 1 addition & 1 deletion gent_base.theme
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ function gent_base_preprocess_oidc_menu_anonymous(&$variables) {
function gent_base_preprocess_oidc_menu_authenticated(&$variables) {
$variables['logout_link']->getUrl()->mergeOptions([
'attributes' => [
'class' => ['button', 'button-small', 'button-primary'],
'class' => ['button', 'button-primary', 'icon-sign-out', 'icon-left'],
],
]);

Expand Down
7 changes: 3 additions & 4 deletions source/package-lock.json

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

29 changes: 23 additions & 6 deletions source/sass/31-molecules/oidc-menu/_oidc-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

.oidc-menu--wrapper {
display: flex;
position: relative;
position: static;
justify-content: flex-end;

.avatar {
Expand Down Expand Up @@ -89,22 +89,29 @@
@include theme('background-color', 'color-none');

position: absolute;
top: 100%;
right: 0;
top: calc(100% - 40px);
width: calc(100vw - 2 * #{$gutter-width});
max-width: $bp-mobile;
margin-top: .5rem;
transition: max-height .3s ease-in-out;
border-radius: border-radius('radius-1');
box-shadow: 0 0 20px 0 rgba(color('gray-medium'), 0.25);
z-index: 6;

@media (max-width: 400px) {
left: -20px;
right: -20px;
width: calc(100vw + 40px);
max-width: 400px;
box-shadow: 0 10px 10px 0 rgba(color('gray-medium'), 0.25);
}
}

.content {
padding: 1.2rem;

h2 {
@extend %h3;
@extend %h4;
}

> h2 {
Expand All @@ -126,18 +133,28 @@

.links {
margin: 0;

a {
font-size: .8rem;
}
}
}

.profile {
display: flex;
padding-bottom: 20px;
padding-bottom: 25px;
border-top: 0;

&-info {
span {
@include bold-text;

display: block;
font-size: .7rem;
font-size: .9rem;
}

a {
font-size: .8rem;
}
}

Expand Down

0 comments on commit 1f1155e

Please sign in to comment.