about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/components/metadata.scss
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-05-09 22:11:59 +0200
committerThibaut Girka <thib@sitedethib.com>2018-05-10 00:03:34 +0200
commit30bb530c7062f001e8198d0eaca6b7f78acbadad (patch)
tree9c8edacdaba473bcd4bc0ba5d4ab96a6f9e4ce0d /app/javascript/flavours/glitch/styles/components/metadata.scss
parenta8be40933d5001272d8b527f9848beb494c9bcbb (diff)
Update glitch-soc style to match new bio fields markup
Diffstat (limited to 'app/javascript/flavours/glitch/styles/components/metadata.scss')
-rw-r--r--app/javascript/flavours/glitch/styles/components/metadata.scss32
1 files changed, 16 insertions, 16 deletions
diff --git a/app/javascript/flavours/glitch/styles/components/metadata.scss b/app/javascript/flavours/glitch/styles/components/metadata.scss
index fa1a4bc34..29a6330e9 100644
--- a/app/javascript/flavours/glitch/styles/components/metadata.scss
+++ b/app/javascript/flavours/glitch/styles/components/metadata.scss
@@ -2,7 +2,6 @@
   font-size: 15px;
   line-height: 20px;
   overflow: hidden;
-  border-collapse: collapse;
   margin: 20px -10px -20px;
   border-bottom: 0;
 
@@ -14,35 +13,36 @@
     }
   }
 
-  tr {
+  dl {
     border-top: 1px solid lighten($ui-base-color, 8%);
-    text-align: center;
+    display: flex;
   }
 
-  th, td {
+  dt,
+  dd {
+    box-sizing: border-box;
     padding: 14px 20px;
-    vertical-align: middle;
-
-    & > div {
-      max-height: 40px;
-      overflow-y: auto;
-      white-space: pre-wrap;
-      text-overflow: ellipsis;
-    }
+    text-align: center;
+    max-height: 48px;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
   }
 
-  th {
+  dt {
     color: $darker-text-color;
     background: lighten($ui-base-color, 13%);
-    max-width: 120px;
+    width: 120px;
+    flex: 0 0 auto;
+    font-weight: 500;
 
     a {
       color: $primary-text-color;
     }
   }
 
-  td {
-    flex: auto;
+  dd {
+    flex: 1 1 auto;
     color: $primary-text-color;
     background: $ui-base-color;