gearheads
/
mastodon
Archived
2
0
Fork 0
This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
mastodon/app/assets/stylesheets/stream_entries.scss

233 lines
3.6 KiB
SCSS
Raw Normal View History

.activity-stream {
clear: both;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
.entry {
border-bottom: 1px solid #d9e1e8;
background: #fff;
border-left: 2px solid #fff;
2016-02-26 21:11:52 +01:00
&.entry-reblog {
border-left-color: #2b90d9;
}
&.entry-predecessor, &.entry-successor {
background: #d9e1e8;
border-left-color: #d9e1e8;
2016-03-26 14:42:05 +01:00
border-bottom-color: darken(#d9e1e8, 10%);
.header {
.header__right {
.counter-btn {
color: darken(#d9e1e8, 15%);
}
}
}
}
2016-03-26 14:42:05 +01:00
&.entry-center {
border-bottom-color: darken(#d9e1e8, 10%);
}
2016-02-28 15:46:29 +01:00
&.entry-follow, &.entry-favourite {
.content {
padding-top: 10px;
padding-bottom: 10px;
strong {
font-weight: 500;
}
2016-02-28 15:46:29 +01:00
}
}
&:last-child {
border-bottom: 0;
border-radius: 0 0 4px 4px;
}
}
2016-10-06 22:00:56 +02:00
.entry:first-child {
border-radius: 4px 4px 0 0;
2016-10-06 22:00:56 +02:00
&:last-child {
border-radius: 4px;
}
}
@media screen and (max-width: 700px) {
border-radius: 0;
box-shadow: none;
2016-10-03 16:10:17 +02:00
.entry {
&:last-child {
border-radius: 0;
}
&:first-child {
border-radius: 0;
&:last-child {
border-radius: 0;
}
}
}
}
.entry__container {
overflow: hidden;
}
.avatar {
width: 56px;
padding: 15px;
float: left;
img {
width: 56px;
height: 56px;
display: block;
border-radius: 4px;
}
}
.entry__container__container {
margin-left: 86px;
}
.header {
margin-bottom: 10px;
padding: 15px;
2016-02-26 21:11:52 +01:00
padding-bottom: 0;
padding-left: 8px;
display: flex;
.header__left {
flex: 1;
}
.header__right {
}
2016-02-26 21:11:52 +01:00
.name {
text-decoration: none;
color: #9baec8;
2016-02-26 21:11:52 +01:00
strong {
color: #282c37;
font-weight: 500;
2016-02-26 21:11:52 +01:00
}
&:hover {
strong {
text-decoration: underline;
}
}
}
}
2016-02-26 21:11:52 +01:00
.pre-header {
border-bottom: 1px solid #d9e1e8;
color: #2b90d9;
2016-02-26 21:11:52 +01:00
padding: 5px 10px;
padding-left: 8px;
clear: both;
2016-02-26 21:11:52 +01:00
.name {
color: #2b90d9;
font-weight: 500;
2016-02-26 21:11:52 +01:00
text-decoration: none;
2016-02-26 21:11:52 +01:00
&:hover {
text-decoration: underline;
}
}
}
.content {
font-size: 14px;
padding: 0 15px;
2016-02-26 21:11:52 +01:00
padding-left: 8px;
padding-bottom: 15px;
color: #282c37;
word-wrap: break-word;
overflow: hidden;
2016-02-28 15:46:29 +01:00
2016-09-10 10:14:36 +02:00
p {
margin-bottom: 18px;
&:last-child {
margin-bottom: 0;
}
}
2016-02-28 15:46:29 +01:00
a {
color: #2b90d9;
2016-02-28 15:46:29 +01:00
text-decoration: none;
&:hover {
text-decoration: underline;
}
&.mention {
&:hover {
text-decoration: none;
span {
text-decoration: underline;
}
}
}
2016-02-28 15:46:29 +01:00
}
}
.time {
text-decoration: none;
color: #9baec8;
&:hover {
text-decoration: underline;
}
}
.media-attachments {
list-style: none;
margin: 0;
padding: 0;
display: block;
overflow: hidden;
padding-left: 10px;
2016-10-03 16:10:17 +02:00
margin-bottom: 21px;
li {
display: block;
float: left;
width: 120px;
height: 100px;
border-radius: 4px;
margin-right: 4px;
2016-10-03 16:10:17 +02:00
margin-bottom: 4px;
a {
display: block;
width: 120px;
height: 100px;
border-radius: 4px;
background-position: center;
background-repeat: none;
background-size: cover;
}
}
}
2016-10-06 22:00:56 +02:00
@media screen and (max-width: 360px) {
.avatar {
display: none;
}
.entry__container__container {
margin-left: 7px;
}
}
}