improved user edits pages display

This commit is contained in:
Bachir Soussi Chiadmi 2021-07-28 15:58:33 +02:00
parent 422819a11b
commit b67c88dfa7
5 changed files with 41 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -577,6 +577,11 @@ header[role="banner"]{
body.path-tos & { body.path-tos & {
color: #fff; color: #fff;
background-color: $color-main-text; background-color: $color-main-text;
}
body.path-user & {
color: #fff;
background-color: $color-base;
text-transform: lowercase;
} }
} }
@include col-mediaquery-max(3){ @include col-mediaquery-max(3){
@ -735,13 +740,24 @@ aside.messages{
} }
// content top // content top
// #content-top{ #content-top{
// &:after{ #block-tabs{
// content:""; nav.tabs{
// clear:both; ul.tabs.primary{
// display: block; li{
// } background-color: change-color($color-base, $alpha: 0.5);
// } color:#fff;
&.is-active{
background-color: $color-base;
}
a{
background-color: transparent;
}
}
}
}
}
}
#main-content.loading{ #main-content.loading{
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;

View File

@ -203,6 +203,21 @@ function materiotheme_preprocess_page(&$vars){
// } // }
/**
* Implements THEME_preprocess_page_title()
*/
function materiotheme_preprocess_page_title(&$variables) {
$current_url = \Drupal\Core\Url::fromRoute('<current>');
$url = $current_url->getInternalPath();
if(preg_match('/^user\/\d+\/*/', $url)) {
$userCurrent = \Drupal::currentUser();
$user = \Drupal\user\Entity\User::load($userCurrent->id());
$email = $user->getEmail();
$variables['title'] = $email;
}
}
/** /**
* Implements hook_form_alter * Implements hook_form_alter
*/ */