Browse Source

improved user edits pages display

bach 2 years ago
parent
commit
b67c88dfa7

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.css


BIN
web/themes/custom/materiotheme/assets/dist/main.css.gz


File diff suppressed because it is too large
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 23 - 7
web/themes/custom/materiotheme/assets/styles/main.scss

@@ -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;

+ 15 - 0
web/themes/custom/materiotheme/materiotheme.theme

@@ -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
  */

Some files were not shown because too many files changed in this diff