cohost/html/one-post.less

180 lines
3.1 KiB
Text
Raw Permalink Normal View History

2023-09-30 15:31:18 -04:00
@longan: rgb(var(--color-longan));
@not-white: rgb(var(--color-notWhite));
@not-black: rgb(var(--color-notBlack));
@fg: rgb(var(--color-foreground));
@bg: rgb(var(--color-background));
@height: 20rem;
* {
margin: 0;
}
hr {
border-color: rgb(191 186 181);
margin: 0 0.75rem;
}
.hrish {
background-color: @not-white;
}
#fake-main {
height: @height;
margin: -1rem 0;
}
#main {
position: absolute;
top: 0;
left: 0;
right: 0;
width: 100%;
height: @height;
display: flex;
background-color: @bg;
flex-direction: column;
}
.bottom {
background: @not-white;
font-size: 0.875rem;
color: gray;
padding: 0.75rem;
2023-09-30 15:44:05 -04:00
//width: 100%;
//max-width: 100%;
2023-09-30 15:31:18 -04:00
border-bottom-right-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
box-shadow: 0px 4px 5px rgba(25,25,25,.14),0px 1px 10px rgba(25,25,25,.12),0px 2px 4px rgba(0,0,0,.2);
}
.bottom-inner {
display: flex;
justify-content: space-between;
2023-09-30 15:44:05 -04:00
//vertical-align: middle;
2023-09-30 15:31:18 -04:00
}
// V compromise V
a {
text-decoration: none;
}
.comments {
2023-09-30 15:44:05 -04:00
//width: max-content;
//flex: none;
2023-09-30 15:31:18 -04:00
}
.interactions {
display: flex;
align-items: center;
2023-09-30 15:44:05 -04:00
//justify-content: flex-end;
2023-09-30 15:31:18 -04:00
gap: 0.75rem;
}
.content {
background-color: white;
padding: 0 0.75rem;
display: flex;
min-height: min-content;
flex-grow: 1;
padding-top: 0.5rem;
}
.middle {
// V the main feed uses gap: 3rem V
height: 3rem;
}
.top {
display: flex;
2023-09-30 15:44:05 -04:00
//width: 100%;
//max-width: 100%;
//flex-direction: row;
2023-09-30 15:31:18 -04:00
align-items: center;
2023-09-30 15:44:05 -04:00
//justify-content: space-between;
//gap: 0.5rem;
2023-09-30 15:31:18 -04:00
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
background-color: @not-white;
padding: 0.75rem;
box-shadow: 0px -4px 5px rgba(25,25,25,.14),0px -1px 10px rgba(25,25,25,.12),0px -2px 4px rgba(0,0,0,.2);
}
.top-info {
display: flex;
2023-09-30 15:44:05 -04:00
//min-width: 0;
2023-09-30 15:31:18 -04:00
flex: 1 1 0%;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
line-height: 1;
}
.display-name {
2023-09-30 15:44:05 -04:00
//max-width: 100%;
//flex-shrink: 1;
//overflow: hidden;
//text-overflow: ellipsis;
//white-space: nowrap;
2023-09-30 15:31:18 -04:00
font-weight: 700;
2023-09-30 15:44:05 -04:00
//color: @not-black;
2023-09-30 15:31:18 -04:00
}
.username {
color: rgb(104 102 100);
}
.posted {
2023-09-30 15:44:05 -04:00
//display: block;
//flex: none;
2023-09-30 15:31:18 -04:00
font-size: 0.75rem;
2023-09-30 15:44:05 -04:00
//line-height: 1rem;
2023-09-30 15:31:18 -04:00
// not doing the weird tabular-nums thing, i don't get it
color: rgb(130 127 124);
}
.headline {
padding: 0.75rem;
2023-09-30 15:44:05 -04:00
//display: flex;
//width: 100%;
//flex-direction: row;
2023-09-30 15:31:18 -04:00
}
.headline > a {
2023-09-30 15:44:05 -04:00
//flex-grow: 1;
//align-self: center;
//overflow-wrap: break-word;
2023-09-30 15:31:18 -04:00
font-size: 1.25rem;
line-height: 1.75rem;
}
.headline > a > h1 {
color: black;
font-size: inherit;
}
.post-content {
padding-left: 0.75rem;
padding-right: 0.75rem;
2023-09-30 15:44:05 -04:00
//position: relative;
//overflow: hidden;
//isolation: isolate;
2023-09-30 15:31:18 -04:00
margin-top: 1rem;
margin-bottom: 1rem;
color: @not-black;
2023-09-30 15:31:18 -04:00
}
.post-inner {
box-shadow: 0px 4px 5px rgba(0,0,0,.14),0px 1px 10px rgba(0,0,0,.12),0px 2px 4px rgba(0,0,0,.2);
2023-09-30 15:44:05 -04:00
//z-index: -413;
background-color: white;
2023-09-30 15:31:18 -04:00
}
.posts {
display: flex;
flex-direction: column;
//box-shadow: 0px 4px 5px rgba(0,0,0,.14),0px 1px 10px rgba(0,0,0,.12),0px 2px 4px rgba(0,0,0,.2);
gap: 2rem;
}