Known bugs: - Date of first item is not displayed properly; - Need to get rid of text-shadow on x-repost-dropdowns. Motivation for changes: - odd/even backgrounds on posts looked like dropshadows - flat colours look cleaner; - white text-shadows on links make them stand out slightly better; - unlabelling mentions make for easier reading and looks cleaner - normally these are used to display mentions in writing areas (publishers); - right-border on hover is less intrusive than background-color changing; - date-tab can be fiddly and get in your way by overlapping other posts - first post was inconsistent; - font looks slightly better. Changes that should go with this commit: - Shorter TimeAgo (7s, 30m, 3h, 4d, 19 jan); - Time should always be visible; - Removing the "from SourceApp" from the date pane; - Putting a picture of a more vertically aligned ^ or a @ in front of names. Personally I am really a sucker for the @ as people are so familiar with it. Additional changes (requiring more work): - Show SourceApp below the post upon clicking the post; - Show "view conversation" link there as well; - Eventually have a map there for posts with locations. Last but not least, I rest my case: Green is more awesome! But I have been so kind to leave all the blue in. ;-)
329 lines
4.5 KiB
CSS
329 lines
4.5 KiB
CSS
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: "Open Sans", Tahoma, sans-serif;
|
|
font-size: 11px;
|
|
background: #dedede url(../img/background.png) center center no-repeat;
|
|
border-right: 1px solid #ddd;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #00317a;
|
|
text-shadow: 1px 1px white;
|
|
}
|
|
|
|
ol {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
ol li, .error, header.profile {
|
|
clear: both;
|
|
padding: 8px;
|
|
background: #eee;
|
|
border-top: 1px solid #fefefe;
|
|
border-bottom: 1px solid #c9c9c9;
|
|
position: relative;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.error h1 {
|
|
color: red;
|
|
}
|
|
|
|
body > ol > li:first-child {
|
|
border-top: 0;
|
|
}
|
|
|
|
body > ol > li:nth-child(odd), .error, header.profile {
|
|
background: #fafafa;
|
|
border-right: 1px solid #fafafa;
|
|
}
|
|
|
|
body > ol > li:nth-child(even) {
|
|
background: #f2f2f2;
|
|
border-right: 1px solid #f2f2f2;
|
|
}
|
|
|
|
body > ol > li:hover {
|
|
border-right: 1px solid #ccc;
|
|
}
|
|
|
|
body > ol > li:after, header.profile:after {
|
|
content: ".";
|
|
display: block;
|
|
clear: both;
|
|
visibility: hidden;
|
|
line-height: 0;
|
|
height: 0;
|
|
}
|
|
|
|
header.profile img {
|
|
float: left;
|
|
margin: 0 10px 10px 0;
|
|
max-width: 100px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
header.profile table {
|
|
border-collapse: collapse;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
header.profile th {
|
|
text-align: left;
|
|
padding-right: 1em;
|
|
}
|
|
|
|
header.profile h1 + p {
|
|
color: #aaa;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.highlight {
|
|
border-right: 3px solid #f17779;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1em;
|
|
font-weight: bold;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
h1 img {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
padding: 0;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.image {
|
|
float: left;
|
|
margin-left: 2px;
|
|
width: 48px;
|
|
height: 48px;
|
|
border: 0px solid #f00;
|
|
-webkit-border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.image a {
|
|
display: block;
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
|
|
.images:empty {
|
|
display: none;
|
|
}
|
|
|
|
.images {
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.images img {
|
|
border-radius: 5px;
|
|
max-height: 75px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.images img.photo {
|
|
max-width: 100%;
|
|
max-height: inherit;
|
|
margin-right: 0;
|
|
border-radius: 3px;
|
|
box-shadow: 0 0 1px black;
|
|
}
|
|
|
|
.data {
|
|
margin-left: 62px;
|
|
}
|
|
|
|
li .name:first-child {
|
|
margin-left: -3px;
|
|
}
|
|
|
|
.name {
|
|
font-weight: normal;
|
|
text-shadow: none;
|
|
padding-left: 2px;
|
|
}
|
|
|
|
li:hover .name {
|
|
}
|
|
|
|
.is_private {
|
|
color: white;
|
|
font-size: 8px;
|
|
padding: 0 3px 0 3px;
|
|
background: #09F;
|
|
border-radius: 3px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
li .date {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 3px;
|
|
display: none;
|
|
padding: 0.3em 0.9em;
|
|
border-bottom: 0;
|
|
font-size: 10px;
|
|
}
|
|
|
|
li:hover .date {
|
|
display: block;
|
|
}
|
|
|
|
|
|
li:first-child:hover .date {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 10px;
|
|
display: none;
|
|
padding: 0.3em 0.9em;
|
|
border-bottom: 0;
|
|
font-size: 10px;
|
|
}
|
|
|
|
aside {
|
|
width: 15px;
|
|
float: right;
|
|
margin-top: 20px;
|
|
margin-left: 3px;
|
|
margin-right: 3px;
|
|
margin-bottom: 3px;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.reply_to, .repost, .remove {
|
|
width: 15px;
|
|
height: 12px;
|
|
background: url(../img/sprite-icons.png) no-repeat -16px 0;
|
|
display: inline-block;
|
|
}
|
|
|
|
li:hover aside {
|
|
visibility: visible;
|
|
}
|
|
|
|
.repost {
|
|
background-position: -192px 0;
|
|
}
|
|
|
|
.remove {
|
|
background-position: -128px 0;
|
|
}
|
|
|
|
li.mentioned {
|
|
border-right: 1px solid #00317a;
|
|
}
|
|
|
|
.mentions li.mentioned {
|
|
border-right: 0;
|
|
}
|
|
|
|
.reposted_by:before {
|
|
content: " ";
|
|
display: inline-block;
|
|
background: url(../img/sprite-icons.png) no-repeat -192px 0;
|
|
height: 12px;
|
|
width: 15px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.reposted_by {
|
|
position: relative;
|
|
color: #00317a;
|
|
}
|
|
|
|
.reposted_by ul {
|
|
display: none;
|
|
position: absolute;
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 3px 6px;
|
|
background: black;
|
|
border-radius: 3px;
|
|
box-shadow: 0 0 5px rgba(0,0,0,0.7);
|
|
z-index: 2;
|
|
text-shadow: none;
|
|
}
|
|
|
|
.reposted_by:hover ul {
|
|
display: block;
|
|
}
|
|
|
|
.reposted_by:hover ul:empty {
|
|
display: none;
|
|
}
|
|
|
|
.reposted_by li {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: black;
|
|
text-align: center;
|
|
border: 0;
|
|
}
|
|
|
|
.reposted_by li:hover {
|
|
background: black;
|
|
}
|
|
|
|
.reposted_by li a {
|
|
color: white;
|
|
background: black;
|
|
font-weight: normal;
|
|
text-decoration: none;
|
|
border: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.reposted_by ul:after {
|
|
bottom: 100%;
|
|
border: solid transparent;
|
|
content: " ";
|
|
height: 0;
|
|
width: 0;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.reposted_by ul:after {
|
|
border-color: rgba(0, 0, 0, 0);
|
|
border-bottom-color: #000000;
|
|
border-width: 5px;
|
|
left: 50%;
|
|
margin-left: -5px;
|
|
}
|
|
|
|
header.profile button {
|
|
background: #09F;
|
|
float: right;
|
|
color: white;
|
|
cursor: pointer;
|
|
padding: 6px 10px;
|
|
border: 0;
|
|
border-radius: 3px;
|
|
font-weight: bold;
|
|
clear: right;
|
|
}
|
|
|
|
header.profile button.following {
|
|
background: #D84A38;
|
|
}
|