stacker.news/components/item.module.css

108 lines
1.5 KiB
CSS

.title {
font-weight: 500;
white-space: normal;
max-width: 100%;
}
.upvote {
margin-top: 3px;
}
.link {
font-size: 80%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1 0 128px;
}
.pin {
fill: var(--theme-body);
stroke: var(--theme-color);
margin-right: .2rem;
}
.linkSmall {
width: 128px;
display: inline-block;
vertical-align: text-top;
}
a.link:visited {
color: #7acaf5;
}
.other {
font-size: 70%;
color: grey;
}
.item {
display: flex;
justify-content: flex-start;
min-width: 0;
margin-bottom: .2rem;
}
.item .cover {
top: 4px;
}
.hunk {
overflow: hidden;
width: 100%;
margin-bottom: .3rem;
line-height: 1rem;
}
.main {
display: flex;
align-items: baseline;
}
.children {
margin-top: .25rem;
margin-left: 28px;
}
.rank {
font-weight: 600;
margin-top: 4px;
display: flex;
color: grey;
font-size: 90%;
}
.skeleton .other {
height: 14px;
align-items: center;
}
.skeleton .title {
background-color: grey;
width: 500px;
border-radius: .4rem;
height: 17px;
margin: 0;
}
.skeleton .link {
height: 14px;
background-color: grey;
width: 800px;
border-radius: .3rem;
margin: 2px 0px;
}
.skeleton .otherItem {
display: inline-flex;
width: 42px;
height: 70%;
border-radius: .27rem;
background-color: grey;
margin-right: .5rem;
}
.skeleton .otherItemLonger {
width: 60px;
}