FIX: don't send out elided message in email notifications

UX: improved details tag for elided messages
This commit is contained in:
Régis Hanol
2016-03-11 17:51:16 +01:00
parent bf209d8344
commit 6d84a8a1b3
6 changed files with 56 additions and 12 deletions

View File

@@ -23,4 +23,6 @@
return text;
});
Discourse.Markdown.whiteListTag("details", "class", "elided");
})();

View File

@@ -7,6 +7,11 @@ details .lightbox-wrapper {
display: none;
}
details,
summary {
outline: none;
}
summary:first-of-type {
cursor: pointer;
display: block;
@@ -36,3 +41,33 @@ summary::-webkit-details-marker {
details .lazyYT-container {
display: none;
}
.elided {
color: dark-light-choose(scale-color($primary, $lightness: 65%), scale-color($secondary, $lightness: 35%));
summary:before {
content: '' !important;
}
summary {
@include unselectable;
box-sizing: border-box;
margin: 0;
padding: 0;
color: #aaa;
background: #f1f1f1;
border: 1px solid #ddd;
width: 20px;
display: flex;
text-align: center;
vertical-align: middle;
line-height: 12px;
}
summary:hover {
color: #222;
background: #d8d8d8;
border-color: #cdcdcd;
}
}