about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-06-25 13:57:52 -0700
committerkibigo! <marrus-sh@users.noreply.github.com>2017-06-25 13:57:52 -0700
commitefacfec3ed37c200bf5bad05b59e04a9f97d0d08 (patch)
tree006ad166c0451bbbbe26adcdbe87c070d3ce5ea3 /app/javascript/styles
parent8ea779e59a516d96e3320aaaaf1cda987752c5e6 (diff)
Media previews for collapsed toots
Diffstat (limited to 'app/javascript/styles')
-rw-r--r--app/javascript/styles/components.scss16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss
index af9da6c37..c1cf5a8c3 100644
--- a/app/javascript/styles/components.scss
+++ b/app/javascript/styles/components.scss
@@ -454,6 +454,7 @@
 
 .status__content,
 .reply-indicator__content {
+  position: relative;
   font-size: 15px;
   line-height: 20px;
   color: $primary-text-color;
@@ -604,6 +605,19 @@
 
   &.status-collapsed {
     height: 48px;
+    background-position: center;
+    background-size: cover;
+
+    &::before {
+      display: block;
+      position: absolute;
+      left: 0;
+      right: 0;
+      top: 0;
+      bottom: 0;
+    	background-image: linear-gradient(to bottom, transparentize($ui-base-color, .15), transparentize($ui-base-color, .3) 24px, transparentize($ui-base-color, .35));
+      content: "";
+    }
 
     .status__content {
       height: 20px;
@@ -644,6 +658,7 @@
 }
 
 .status__collapse-button {
+  position: relative;
   float: right;
 }
 
@@ -1162,6 +1177,7 @@
 
 .display-name {
   display: block;
+  position: relative;
   max-width: 100%;
   overflow: hidden;
   text-overflow: ellipsis;