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

@ -578,6 +578,11 @@ header[role="banner"]{
color: #fff;
background-color: $color-main-text;
}
body.path-user & {
color: #fff;
background-color: $color-base;
text-transform: lowercase;
}
}
@include col-mediaquery-max(3){
body.path-frontpage &, body.path-home & {
@ -735,13 +740,24 @@ aside.messages{
}
// content top
// #content-top{
// &:after{
// content:"";
// clear:both;
// display: block;
// }
// }
#content-top{
#block-tabs{
nav.tabs{
ul.tabs.primary{
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{
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
*/