mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2024-11-22 08:31:28 +00:00
224 lines
3.3 KiB
SCSS
224 lines
3.3 KiB
SCSS
|
|
.chronicles {
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.chronicles .heading {
|
|
text-align: center;
|
|
margin-bottom: 3em;
|
|
}
|
|
|
|
.chronicles .links {
|
|
width: 160px;
|
|
height: 130px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.chronicles .section-title h4 {
|
|
color: $black;
|
|
text-align: center;
|
|
}
|
|
|
|
.chronicles .urgent {
|
|
position: absolute;
|
|
top: 8em;
|
|
right: 13em;
|
|
width: 450px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chronicles .urgent .section-title {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.post {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.post__preview {
|
|
padding: .8em 1.5em;
|
|
border: 1px solid $grey;
|
|
border-radius: 10px;
|
|
position: relative;
|
|
margin-top: 1em;
|
|
&:hover {
|
|
border: 1px solid $black;
|
|
}
|
|
}
|
|
|
|
.post__preview.featured,
|
|
.post__preview a.oneliner {
|
|
padding: 0;
|
|
background: none;
|
|
}
|
|
|
|
.post__preview:not(.featured) a:focus > p {
|
|
color: $pink;
|
|
}
|
|
|
|
.post__preview:nth-child(n+4) {
|
|
margin-top: 2em;
|
|
}
|
|
|
|
.post__preview:not(.featured) {
|
|
flex: 32% 0 0;
|
|
height: 290px;
|
|
}
|
|
|
|
.post__preview:not(.featured) .post__meta {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 80%;
|
|
margin: .5em 0;
|
|
}
|
|
|
|
.post__preview .post__meta span:last-child {
|
|
position: absolute;
|
|
right: 0;
|
|
}
|
|
|
|
.post__preview .post__meta i:last-child {
|
|
display: none;
|
|
}
|
|
|
|
.post__preview:not(.featured) .post__content {
|
|
width: 80%;
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.post__preview.featured {
|
|
border: none;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin: 4em 0;
|
|
max-height: 300px;
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
color: inherit;
|
|
opacity: .85;
|
|
}
|
|
}
|
|
|
|
.post__preview.featured p {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.post__preview.featured:hover p:first-child,
|
|
.post__preview.featured:focus p:first-child {
|
|
color: $grey;
|
|
}
|
|
|
|
.post__preview.featured > .post__image,
|
|
.post__preview.featured .post__content {
|
|
flex: 48% 0 0;
|
|
}
|
|
|
|
.post__preview.featured img {
|
|
border-radius: 10px;
|
|
height: 220px;
|
|
}
|
|
|
|
.post__preview.featured .post__content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.post__content > .post__text {
|
|
flex: 1 0 auto;
|
|
}
|
|
|
|
.post__preview.featured .post__meta {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.news {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.post__preview .oneliner:hover,
|
|
.post__preview .oneliner:focus,
|
|
.post__preview .oneliner:active {
|
|
color: $black;
|
|
}
|
|
|
|
.page-nav {
|
|
margin: 2em 0;
|
|
}
|
|
|
|
.page-number {
|
|
margin: 0 .3em;
|
|
}
|
|
|
|
.page-number.current {
|
|
font-weight: bold;
|
|
color: $golden;
|
|
}
|
|
|
|
@media screen and (max-width: $mq-large) {
|
|
.chronicles .urgent {
|
|
right: 9em;
|
|
}
|
|
|
|
.post__preview:not(.featured) {
|
|
flex: 46% 0 0;
|
|
}
|
|
|
|
.post__preview:nth-child(n+4) {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.post__preview.featured {
|
|
flex-wrap: wrap;
|
|
max-height: inherit;
|
|
margin: 1.5em 0;
|
|
}
|
|
|
|
.post__preview.featured > .post__image,
|
|
.post__preview.featured .post__content {
|
|
flex: 100% 0 0;
|
|
margin-bottom: 2em;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: $mq-medium) {
|
|
.chronicles {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.chronicles .urgent {
|
|
position: inherit;
|
|
width: auto;
|
|
margin: -90px auto 3em;
|
|
}
|
|
|
|
.post__preview:not(.featured) {
|
|
flex: 100% 0 0;
|
|
height: 230px;
|
|
}
|
|
|
|
.post__preview:not(.featured) .post__meta {
|
|
margin: .5em 0;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: $mq-small) {
|
|
.contents.chronicles {
|
|
padding-top: 7em;
|
|
}
|
|
|
|
.post__preview:not(.featured) {
|
|
height: 240px;
|
|
}
|
|
|
|
.page-number {
|
|
margin: 0 .9em;
|
|
}
|
|
}
|