stacker.news/components/item.module.css

248 lines
3.8 KiB
CSS
Raw Permalink Normal View History

2021-04-14 00:57:32 +00:00
.title {
2021-04-14 23:56:29 +00:00
white-space: normal;
max-width: 100%;
2023-07-14 16:07:03 +00:00
display: inline-block;
vertical-align: middle;
2024-01-17 23:39:39 +00:00
margin-bottom: .15rem;
2023-07-14 16:07:03 +00:00
}
.summaryText {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.notification {
position: absolute;
2023-08-06 19:31:24 +00:00
padding: 3px;
background-color: var(--bs-info);
2023-08-06 19:31:24 +00:00
top: -3px;
right: -4px;
border: 1px solid var(--bs-body-bg);
}
2023-07-14 16:07:03 +00:00
.icon {
2023-07-15 16:35:10 +00:00
display: inline-block;
2021-04-14 00:57:32 +00:00
}
a.title:visited {
color: var(--theme-grey) !important;
}
2021-04-28 19:30:14 +00:00
.upvote {
2021-11-12 22:39:52 +00:00
margin-top: 3px;
2023-07-25 18:32:48 +00:00
padding-right: .2rem;
2021-04-28 19:30:14 +00:00
}
2021-04-14 00:57:32 +00:00
.link {
font-size: 80%;
2021-04-14 23:56:29 +00:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1 0 128px;
2024-03-26 13:32:22 +00:00
max-width: fit-content;
2024-01-17 23:39:39 +00:00
margin-bottom: .15rem;
2021-04-14 00:57:32 +00:00
}
.badge {
vertical-align: middle;
margin-top: -1px;
margin-left: 0.1rem;
}
.newComment {
color: var(--theme-grey) !important;
background: var(--theme-clickToContextColor) !important;
2022-09-27 21:19:15 +00:00
vertical-align: middle;
2023-07-24 18:35:05 +00:00
margin-top: -1px;
margin-left: 0.1rem;
}
2022-01-07 16:32:31 +00:00
.pin {
2022-01-10 18:53:26 +00:00
fill: #a5a5a5;
2023-07-25 18:32:48 +00:00
margin-right: .4rem;
2023-07-26 13:48:46 +00:00
margin-left: -.2rem;
2023-08-16 22:53:51 +00:00
flex-shrink: 0;
}
.ad {
fill: #a5a5a5ac;
margin-right: .4rem;
margin-left: -.2rem;
flex-shrink: 0;
2022-01-07 16:32:31 +00:00
}
2022-09-21 19:57:36 +00:00
.dontLike {
fill: #a5a5a5;
2023-08-16 22:53:51 +00:00
margin-right: .35rem;
margin-left: -.2rem;
flex-shrink: 0;
cursor: pointer;
2022-09-21 19:57:36 +00:00
}
2022-02-17 17:23:43 +00:00
.case {
fill: #a5a5a5;
margin-right: .2rem;
margin-top: .2rem;
padding: 0 2px;
}
2021-09-15 23:42:44 +00:00
.linkSmall {
width: 128px;
display: inline-block;
vertical-align: text-top;
}
2021-09-11 16:45:20 +00:00
a.link:visited {
color: var(--theme-linkVisited) !important;
2021-09-11 16:45:20 +00:00
}
2021-04-14 00:57:32 +00:00
.other {
font-size: 80%;
color: var(--theme-grey);
2023-07-24 18:35:05 +00:00
vertical-align: text-top;
margin-bottom: .125rem;
word-break: break-word;
2023-07-24 18:35:05 +00:00
}
.other svg {
vertical-align: text-top;
}
.other .dropdown svg {
margin-top: -1px;
2021-04-14 23:56:29 +00:00
}
.other :global(.dropdown-item) {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
2021-04-14 23:56:29 +00:00
.item {
display: flex;
justify-content: flex-start;
min-width: 0;
2024-07-11 21:58:55 +00:00
padding-top: .5rem;
2022-07-21 22:55:05 +00:00
}
.item .companyImage {
border-radius: 100%;
align-self: center;
margin-right: 0.5rem;
margin-left: 0.3rem;
2021-12-05 17:37:55 +00:00
}
2022-06-02 23:25:21 +00:00
.itemDead {
pointer-events: none;
opacity: .5;
}
2021-12-05 17:37:55 +00:00
.item .cover {
top: 4px;
2021-04-14 23:56:29 +00:00
}
.hunk {
2022-09-21 19:57:36 +00:00
min-width: 0;
2021-04-28 16:30:02 +00:00
width: 100%;
line-height: 1.06rem;
2021-04-14 23:56:29 +00:00
}
2023-01-26 16:11:55 +00:00
.bountyIcon {
margin-left: 5px;
margin-right: 5px;
margin-top: -2px;
}
.grid {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
}
.details {
display: grid;
grid-template-columns: auto auto;
column-gap: 1rem;
}
2022-07-21 22:55:05 +00:00
/* .itemJob .hunk {
align-self: center;
}
.itemJob .rank {
align-self: center;
} */
2021-04-14 23:56:29 +00:00
.main {
display: flex;
align-items: baseline;
word-break: break-word;
2021-04-14 23:56:29 +00:00
}
.children {
2024-07-12 20:18:13 +00:00
margin-left: 27px;
2024-07-11 21:58:55 +00:00
padding-top: .5rem;
2021-04-22 22:14:32 +00:00
}
.rank {
font-weight: 600;
margin-top: .25rem;
2021-04-22 22:14:32 +00:00
display: flex;
color: var(--theme-grey);
2021-04-22 22:14:32 +00:00
font-size: 90%;
margin-right: .75rem;
2021-04-22 22:14:32 +00:00
}
.skeleton .other {
2021-11-12 22:39:52 +00:00
height: 14px;
2021-04-22 22:14:32 +00:00
align-items: center;
}
.skeleton .title {
background-color: var(--theme-grey);
2021-04-22 22:14:32 +00:00
width: 500px;
border-radius: .4rem;
2024-01-17 23:39:39 +00:00
}
.skeleton .title::after {
content: "\00a0";
2021-04-22 22:14:32 +00:00
}
2022-10-25 21:35:32 +00:00
.skeleton .name {
background-color: var(--theme-grey);
width: 100px;
border-radius: .4rem;
height: 17px;
margin: 0;
}
2024-01-17 23:39:39 +00:00
.skeleton .hunk {
margin: 2px 0;
}
2021-04-22 22:14:32 +00:00
.skeleton .link {
background-color: var(--theme-grey);
2021-04-22 22:14:32 +00:00
width: 800px;
2021-04-28 22:52:03 +00:00
border-radius: .3rem;
2024-01-17 23:39:39 +00:00
line-height: .8rem;
2024-05-23 15:07:33 +00:00
max-width: 256px;
2024-01-17 23:39:39 +00:00
}
.skeleton .link::after {
content: "\00a0";
2021-04-22 22:14:32 +00:00
}
.skeleton .otherItem {
display: inline-flex;
width: 42px;
height: 70%;
2021-04-28 22:52:03 +00:00
border-radius: .27rem;
background-color: var(--theme-grey);
2021-04-22 22:14:32 +00:00
margin-right: .5rem;
}
.skeleton .otherItemLonger {
width: 60px;
2024-03-26 13:32:22 +00:00
}