improved user edits pages display
This commit is contained in:
parent
422819a11b
commit
b67c88dfa7
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue