about summary refs log tree commit diff
diff options
context:
space:
mode:
authorblackle <isabelle@blackle-mori.com>2017-01-24 20:14:20 -0500
committerblackle <isabelle@blackle-mori.com>2017-01-24 20:14:20 -0500
commitca13ec04a8643399f4f2d2fa2ca919d23a19e14d (patch)
treee0f31e18a48a1cbc4b57b7109f21dfe5dcd37f97
parentca28d9c2aec0764dc9190e2802e5e6e23cf6d8c3 (diff)
fix up spoilers
-rw-r--r--app/assets/javascripts/components/components/status_content.jsx2
-rw-r--r--app/assets/stylesheets/components.scss34
2 files changed, 1 insertions, 35 deletions
diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx
index ff90226d8..fbb413465 100644
--- a/app/assets/javascripts/components/components/status_content.jsx
+++ b/app/assets/javascripts/components/components/status_content.jsx
@@ -92,7 +92,7 @@ const StatusContent = React.createClass({
 
       return (
         <div className='status__content' style={{ cursor: 'pointer' }} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}>
-          <p>
+          <p style={{ marginBottom: hidden ? '0px' : '' }} >
             <span dangerouslySetInnerHTML={spoilerContent} /> <a onClick={this.handleSpoilerClick}>{toggleText}</a>
           </p>
 
diff --git a/app/assets/stylesheets/components.scss b/app/assets/stylesheets/components.scss
index dee53dcc7..2a8093be7 100644
--- a/app/assets/stylesheets/components.scss
+++ b/app/assets/stylesheets/components.scss
@@ -679,42 +679,8 @@
   }
 }
 
-.spoiler-helper {
-  margin-bottom: -20px !important;
-}
-
-.spoiler {
-  &::before {
-    margin-top: 20px;
-    display: block;
-    content: '';
-  }
-
-  display: inline;
-  cursor: pointer;
-  border-bottom: 1px dashed white;
-  .light & {
-    border-bottom: 1px dashed black;
-  }
-
-  &.spoiler-on {
-    &, & * {
-      color: transparent !important;
-    }
-    background: white;
-    .light & {
-      background: black;
-    }
-
-    .emojione {
-      opacity: 0;
-    }
-  }
-}
-
 @import 'boost';
 
-
 button i.fa-retweet {
   height: 19px;
   width: 22px;