2022-05-10 15:56:50 +00:00
|
|
|
.citizen-personalMenu {
|
2022-05-10 16:55:20 +00:00
|
|
|
position: relative; // anchor card
|
2022-05-10 15:56:50 +00:00
|
|
|
|
2022-05-10 16:55:20 +00:00
|
|
|
&__card {
|
|
|
|
position: absolute;
|
|
|
|
top: 100%;
|
|
|
|
right: 0;
|
|
|
|
overflow: hidden; // rounded corner
|
|
|
|
min-width: var( --size-dialog-min--header );
|
|
|
|
font-size: 0.875rem;
|
|
|
|
.citizen-card;
|
|
|
|
.citizen-card-hide( 100% 0 );
|
2021-01-19 20:56:42 +00:00
|
|
|
}
|
|
|
|
|
2022-05-10 16:55:20 +00:00
|
|
|
// TODO: This mess needs refactor
|
2021-01-22 00:16:21 +00:00
|
|
|
li:not( #pt-usergroups ):not( #pt-userpage ) {
|
|
|
|
a {
|
|
|
|
.menu-item-link;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2022-05-10 16:55:20 +00:00
|
|
|
padding: 0.625rem 1.25rem;
|
2021-01-19 20:56:42 +00:00
|
|
|
|
|
|
|
&:after {
|
2021-01-22 00:16:21 +00:00
|
|
|
.resource-loader-list-icon;
|
|
|
|
display: block;
|
|
|
|
margin-left: @icon-padding;
|
|
|
|
background-size: contain;
|
|
|
|
opacity: var( --opacity-icon-base );
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-opacity;
|
2021-01-19 20:56:42 +00:00
|
|
|
}
|
|
|
|
|
2021-01-22 00:16:21 +00:00
|
|
|
&:hover {
|
|
|
|
.menu-item-link-hover;
|
2021-01-19 20:56:42 +00:00
|
|
|
|
2021-01-22 00:16:21 +00:00
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
.menu-item-link-active;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: var( --opacity-icon-base--active );
|
|
|
|
}
|
2021-01-19 20:56:42 +00:00
|
|
|
}
|
|
|
|
}
|
2021-01-26 19:37:22 +00:00
|
|
|
|
|
|
|
// Need to be specific to override
|
|
|
|
&#pt-login {
|
|
|
|
a {
|
|
|
|
.button-blue;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.button-blue-hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
.button-blue-active;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&#pt-logout {
|
|
|
|
a {
|
|
|
|
.button-red;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.button-red-hover;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
.button-red-active;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-19 20:56:42 +00:00
|
|
|
}
|
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
#pt {
|
|
|
|
&-user {
|
|
|
|
&page {
|
2022-05-10 16:55:20 +00:00
|
|
|
padding: 1rem 0.75rem 0 0.75rem;
|
2021-06-15 14:25:59 +00:00
|
|
|
|
|
|
|
a {
|
|
|
|
justify-content: flex-start;
|
2022-05-10 16:55:20 +00:00
|
|
|
padding: 0.25rem 0.5rem;
|
2021-06-15 14:25:59 +00:00
|
|
|
color: var( --color-base--emphasized ) !important;
|
2022-05-10 16:55:20 +00:00
|
|
|
font-size: 1rem;
|
2021-06-15 14:25:59 +00:00
|
|
|
font-weight: 600;
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
2021-03-09 20:04:48 +00:00
|
|
|
}
|
2021-01-19 20:56:42 +00:00
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
&groups {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2022-05-10 16:55:20 +00:00
|
|
|
padding: 0 1rem;
|
|
|
|
margin-bottom: 0.5rem;
|
2021-01-22 00:16:21 +00:00
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
a {
|
2022-05-10 16:55:20 +00:00
|
|
|
padding: 0.125rem 0.25rem;
|
2021-06-15 14:25:59 +00:00
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
2021-03-09 20:04:48 +00:00
|
|
|
}
|
2021-01-22 00:16:21 +00:00
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
&page,
|
|
|
|
&groups {
|
|
|
|
line-height: 1;
|
2021-01-22 00:16:21 +00:00
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
a {
|
|
|
|
display: block;
|
2022-05-01 23:14:17 +00:00
|
|
|
transition: @transition-color;
|
2021-01-22 00:16:21 +00:00
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
&:hover {
|
|
|
|
color: var( --color-primary--hover ) !important;
|
|
|
|
}
|
2021-01-22 00:16:21 +00:00
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
&:active {
|
|
|
|
color: var( --color-primary--active ) !important;
|
|
|
|
}
|
2021-03-09 20:04:48 +00:00
|
|
|
}
|
2021-01-19 20:56:42 +00:00
|
|
|
}
|
2021-03-09 20:04:48 +00:00
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
&contris {
|
2022-05-10 16:55:20 +00:00
|
|
|
padding: 0 1.25rem 0.625rem 1.25rem;
|
2021-06-15 14:25:59 +00:00
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
2022-05-10 16:55:20 +00:00
|
|
|
font-weight: 500;
|
2021-06-15 14:25:59 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-15 14:27:00 +00:00
|
|
|
|
2021-06-15 14:25:59 +00:00
|
|
|
&-anonuserpage {
|
|
|
|
display: none;
|
2021-03-09 20:04:48 +00:00
|
|
|
}
|
2021-01-19 20:56:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-10 16:55:20 +00:00
|
|
|
// Checkbox hack
|
|
|
|
#citizen-personalMenu__checkbox:checked {
|
|
|
|
~ .citizen-personalMenu__card {
|
|
|
|
.citizen-card-show();
|
2021-01-19 20:56:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-02 02:12:47 +00:00
|
|
|
.citizen-animations-ready {
|
2022-05-10 16:55:20 +00:00
|
|
|
.citizen-personalMenu__card {
|
2022-05-02 02:12:47 +00:00
|
|
|
.citizen-card-transition();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-10 16:55:20 +00:00
|
|
|
@media ( max-width: @width-breakpoint-tablet ) {
|
|
|
|
.citizen-personalMenu {
|
|
|
|
&__card {
|
|
|
|
position: fixed;
|
|
|
|
top: var( --height-header );
|
|
|
|
right: var( --padding-page );
|
|
|
|
left: var( --padding-page );
|
|
|
|
}
|
2021-01-19 20:56:42 +00:00
|
|
|
}
|
|
|
|
}
|