mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 14:58:27 -05:00
Disable word-wrapping in link flair.
This commit is contained in:
committed by
Neil Williams
parent
f2384d0257
commit
35c3378852
@@ -554,4 +554,4 @@ a.author { margin-right: 0.5em; }
|
||||
|
||||
.flair, .linkflair { margin-top: 2px; margin-right: 0.5em; padding: 0px 2px; display: inline-block; background: whiteSmoke; color: #545454; border: 1px solid #dedede; font-size: 9px; -moz-border-radius: 2px; -webkit-border-radius: 2px; -o-border-radius: 2px; -ms-border-radius: 2px; -khtml-border-radius: 2px; border-radius: 2px; -moz-box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.9); -webkit-box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.9); -o-box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.9); box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.9); }
|
||||
|
||||
.linkflair { font-weight: normal; max-width: 10em; overflow: hidden; text-overflow: ellipsis; }
|
||||
.linkflair { font-weight: normal; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
@@ -148,5 +148,5 @@ ul {
|
||||
.md ol, .md ul { margin: 10px 2em; }
|
||||
.md pre { margin: 10px; }
|
||||
.flair, .linkflair { color: #545454; background-color: #F5F5F5; border: 1px solid #DEDEDE; }
|
||||
.linkflair { font-size: small; max-width: 10em; overflow: hidden; text-overflow: ellipsis; }
|
||||
.linkflair { display: inline-block; font-size: small; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
a.author, .flair, .linkflair { margin-right: 0.5em }
|
||||
|
||||
@@ -689,6 +689,7 @@ a.author { margin-right: 0.5em; }
|
||||
max-width: 10em;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.link .flair {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<%def name="flair()">
|
||||
<span class="linkflair"
|
||||
${optionalstyle("color: #545454; background-color: #f5f5f5; border: 1px solid #dedede; display: inline-block; font-size: x-small; margin-right: 0.5em; padding: 0 2px; max-width: 10em; overflow: hidden; text-overflow: ellipsis;")}>
|
||||
${optionalstyle("color: #545454; background-color: #f5f5f5; border: 1px solid #dedede; display: inline-block; font-size: x-small; margin-right: 0.5em; padding: 0 2px; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;")}>
|
||||
${thing.flair_text}
|
||||
</span>
|
||||
</%def>
|
||||
|
||||
Reference in New Issue
Block a user