about summary refs log tree commit diff
path: root/app/javascript/styles/accounts.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/styles/accounts.scss')
-rw-r--r--app/javascript/styles/accounts.scss175
1 files changed, 99 insertions, 76 deletions
diff --git a/app/javascript/styles/accounts.scss b/app/javascript/styles/accounts.scss
index 801817d80..95b097f41 100644
--- a/app/javascript/styles/accounts.scss
+++ b/app/javascript/styles/accounts.scss
@@ -1,41 +1,46 @@
 .card {
+  display: flex;
   background: $ui-base-color;
   background-size: cover;
   background-position: center;
-  padding: 60px 0;
-  padding-bottom: 0;
   border-radius: 4px 4px 0 0;
   box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
   overflow: hidden;
-  position: relative;
 
   @media screen and (max-width: 700px) {
     border-radius: 0;
     box-shadow: none;
   }
 
-  &::after {
-    background: linear-gradient(rgba($base-shadow-color, 0.5), rgba($base-shadow-color, 0.8));
-    display: block;
-    content: "";
-    position: absolute;
-    left: 0;
-    top: 0;
-    width: 100%;
-    height: 100%;
-    z-index: 1;
+  .details {
+    position: relative;
+    padding: 60px 0 0;
+    text-align: center;
+    flex: auto;
+
+    &::after {
+      background: linear-gradient(rgba($base-shadow-color, 0.5), rgba($base-shadow-color, 0.8));
+      display: block;
+      content: "";
+      position: absolute;
+      left: 0;
+      top: 0;
+      width: 100%;
+      height: 100%;
+      z-index: 1;
+    }
   }
 
   .name {
     display: block;
+    position: relative;
     font-size: 20px;
     line-height: 18px * 1.5;
     color: $primary-text-color;
     font-weight: 500;
     text-align: center;
-    position: relative;
-    z-index: 2;
     text-shadow: 0 0 2px $base-shadow-color;
+    z-index: 2;
 
     small {
       display: block;
@@ -46,17 +51,16 @@
   }
 
   .avatar {
-    width: 120px;
+    position: relative;
+    @include avatar-size(120px);
     margin: 0 auto;
     margin-bottom: 15px;
-    position: relative;
     z-index: 2;
 
     img {
-      width: 120px;
-      height: 120px;
+      @include avatar-radius();
+      @include avatar-size(120px);
       display: block;
-      border-radius: 120px;
     }
   }
 
@@ -67,57 +71,36 @@
     z-index: 2;
   }
 
-  .details {
-    display: flex;
-    margin-top: 30px;
-    position: relative;
-    z-index: 2;
-    flex-direction: row;
-  }
-
   .details-counters {
-    display: flex;
+    display: inline-flex;
+    position: relative;
     flex-direction: row;
-    order: 0;
+    margin: 15px 0;
+    z-index: 2;
   }
 
   .counter {
     width: 80px;
     color: $ui-primary-color;
     padding: 5px 10px 0;
-    margin-bottom: 10px;
-    border-right: 1px solid $ui-primary-color;
     cursor: default;
     position: relative;
 
-    a {
-      display: block;
+    & + .counter {
+      border-left: 1px solid $ui-primary-color;
     }
 
-    &::after {
-      display: block;
-      content: "";
-      position: absolute;
-      bottom: -10px;
-      left: 0;
-      width: 100%;
-      border-bottom: 4px solid $ui-primary-color;
-      opacity: 0.5;
-      transition: all 0.8s ease;
+    & > * {
+      opacity: .7;
+      transition: opacity .3s ease;
     }
 
-    &.active {
-      &::after {
-        border-bottom: 4px solid $ui-highlight-color;
-        opacity: 1;
-      }
+    &.active > *, &:hover > * {
+      opacity: 1;
     }
 
-    &:hover {
-      &::after {
-        opacity: 1;
-        transition-duration: 0.2s;
-      }
+    a {
+      display: block;
     }
 
     a {
@@ -141,30 +124,73 @@
   }
 
   .bio {
-    flex: 1;
+    position: relative;
     font-size: 14px;
     line-height: 18px;
+    margin: 15px 0;
     padding: 5px 10px;
     color: $ui-secondary-color;
-    order: 1;
+    z-index: 2;
   }
 
-  @media screen and (max-width: 480px) {
-    .details {
-      display: block;
-    }
+  .metadata {
+    position: relative;
+    min-width: 180px;
+    max-width: 40%;
+    background: rgba($base-shadow-color, 0.8);
+    color: $primary-text-color;
+    text-align: left;
+    overflow-y: auto;
+    white-space: pre-wrap;
+    z-index: 3;
+
+    .metadata-item {
+      border-bottom: 1px $ui-primary-color solid;
+      padding: 15px 10px;
+      font-size: 18px;
+      line-height: 24px;
+      overflow: hidden;
+      text-overflow: ellipsis;
 
-    .bio {
-      text-align: center;
-      margin-bottom: 20px;
-    }
+      a {
+        color: $ui-highlight-color;
+        text-decoration: none;
 
-    .counter {
-      flex: 1 1 auto;
+        &:hover {
+          text-decoration: underline;
+        }
+      }
+
+      b {
+        display: block;
+        font-size: 12px;
+        line-height: 16px;
+        text-transform: uppercase;
+        color: $ui-primary-color;
+
+        a {
+          color: $ui-primary-color;
+        }
+      }
     }
+  }
+}
+
+
+
+@media screen and (max-width: 500px) {
 
-    .counter:last-child {
-      border-right: none;
+  .card {
+    display: block;
+
+    .metadata {
+      max-width: none;
+      background: $base-shadow-color;
+      border-top: 1px $ui-primary-color solid;
+
+      .metadata-item {
+        padding: 15px 20px;
+      }
     }
   }
 }
@@ -283,16 +309,14 @@
     }
 
     .avatar {
-      width: 60px;
-      height: 60px;
+      @include avatar-size(60px);
       float: left;
       margin-right: 15px;
 
       img {
+        @include avatar-radius();
+        @include avatar-size(60px);
         display: block;
-        width: 60px;
-        height: 60px;
-        border-radius: 60px;
       }
     }
 
@@ -359,15 +383,14 @@
     }
 
     & > div {
+      @include avatar-size(48px);
       float: left;
       margin-right: 10px;
-      width: 48px;
-      height: 48px;
     }
 
     .avatar {
+      @include avatar-radius();
       display: block;
-      border-radius: 4px;
     }
 
     .display-name {