264 lines
5.2 KiB
CSS
264 lines
5.2 KiB
CSS
.forum__post {
|
|
display: flex;
|
|
margin: 2px 0;
|
|
}
|
|
.forum__post--deleted {
|
|
opacity: .5;
|
|
transition: opacity .2s;
|
|
}
|
|
.forum__post--deleted:hover,
|
|
.forum__post--deleted:focus,
|
|
.forum__post--deleted:focus-within {
|
|
opacity: .8;
|
|
}
|
|
|
|
.forum__post__content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
word-wrap: break-word;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.forum__post__details {
|
|
font-size: .9em;
|
|
line-height: 1.7em;
|
|
padding: 0 2px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
color: #888;
|
|
}
|
|
|
|
.forum__post__datetime,
|
|
.forum__post__id,
|
|
.forum__post__mode {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
.forum__post__datetime:hover,
|
|
.forum__post__datetime:focus,
|
|
.forum__post__id:hover,
|
|
.forum__post__id:focus,
|
|
.forum__post__mode:hover,
|
|
.forum__post__mode:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.forum__post__text {
|
|
padding: 2px;
|
|
line-height: 1.4em;
|
|
flex: 1 1 auto;
|
|
}
|
|
.forum__post__text--edit {
|
|
margin: 2px 2px 0;
|
|
min-height: 400px;
|
|
height: 100%;
|
|
border: 0;
|
|
padding: 2px 5px;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
background-color: rgba(0, 0, 0, .2);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.forum__post__text img {
|
|
vertical-align: middle;
|
|
max-width: 100%;
|
|
max-height: 900px
|
|
}
|
|
|
|
.forum__post__info__content {
|
|
width: 150px;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 15px;
|
|
flex: 0 0 auto;
|
|
margin-right: 4px;
|
|
}
|
|
.forum__post__info__background {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
mask-image: linear-gradient(270deg, transparent 10%, var(--background-colour) 100%);
|
|
-webkit-mask-image: linear-gradient(270deg, transparent 10%, var(--background-colour) 100%);
|
|
background: var(--background-pattern);
|
|
background-color: var(--accent-colour);
|
|
background-blend-mode: multiply;
|
|
}
|
|
|
|
.forum__post__icons {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.forum__post__posts-count {
|
|
font-size: .9em;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.forum__post__joined {
|
|
flex: 1 1 auto;
|
|
max-width: 170px;
|
|
font-size: .9em;
|
|
justify-self: flex-end;
|
|
}
|
|
|
|
.forum__post__avatar {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
width: 120px;
|
|
height: 120px;
|
|
}
|
|
|
|
.forum__post__username {
|
|
color: inherit;
|
|
font-size: 1.4em;
|
|
line-height: 2em;
|
|
text-decoration: none;
|
|
}
|
|
.forum__post__username[href]:hover,
|
|
.forum__post__username[href]:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.forum__post__usertitle {
|
|
font-size: .9em;
|
|
line-height: 1.5em;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.forum__post__options {
|
|
margin: 5px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.forum__post__settings {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.forum__post__dropdown {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.forum__post__actions {
|
|
display: flex;
|
|
padding: 1px;
|
|
}
|
|
|
|
.forum__post__action {
|
|
background-color: transparent;
|
|
border: 0;
|
|
display: block;
|
|
padding: 5px 10px;
|
|
margin: 1px;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: background-color .2s;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
}
|
|
.forum__post__action:hover,
|
|
.forum__post__action:focus {
|
|
background-color: rgba(0, 0, 0, .2);
|
|
}
|
|
|
|
.forum__post__signature {
|
|
background-color: rgba(0, 0, 0, .2);
|
|
padding: 2px;
|
|
max-height: 150px;
|
|
overflow: hidden;
|
|
}
|
|
.forum__post__signature img {
|
|
vertical-align: middle;
|
|
max-width: 100%;
|
|
max-height: 150px;
|
|
}
|
|
|
|
.forum__post__badge {
|
|
background-color: var(--accent-colour);
|
|
border-radius: 12px;
|
|
width: 100%;
|
|
padding: 2px;
|
|
box-shadow: 0 2px 3px #000A;
|
|
margin: 4px;
|
|
overflow: hidden;
|
|
}
|
|
.forum__post__badge__desktop {
|
|
display: block;
|
|
}
|
|
.forum__post__badge__mobile {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.forum__post {
|
|
flex-direction: column;
|
|
}
|
|
.forum__post__text {
|
|
margin: 4px;
|
|
font-size: 1.2em;
|
|
line-height: 1.3em;
|
|
}
|
|
.forum__post__info {
|
|
flex-direction: row;
|
|
margin: 0;
|
|
padding: 5px;
|
|
}
|
|
.forum__post__info__content {
|
|
width: 100%;
|
|
flex-direction: row;
|
|
padding: 10px;
|
|
}
|
|
.forum__post__info__background {
|
|
mask-image: linear-gradient(0deg, transparent 10%, var(--background-colour) 100%);
|
|
-webkit-mask-image: linear-gradient(0deg, transparent 10%, var(--background-colour) 100%);
|
|
}
|
|
.forum__post__icons {
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
}
|
|
.forum__post__joined {
|
|
display: none;
|
|
}
|
|
.forum__post__avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-right: 4px;
|
|
}
|
|
.forum__post__username {
|
|
flex: 1 1 auto;
|
|
text-align: left;
|
|
margin: 0 4px;
|
|
}
|
|
.forum__post__usertitle {
|
|
display: none;
|
|
}
|
|
.forum__post__options {
|
|
flex-direction: column;
|
|
}
|
|
.forum__post__badge {
|
|
width: auto;
|
|
padding: 2px 10px;
|
|
margin: 0;
|
|
align-self: flex-start;
|
|
margin-left: 5px;
|
|
font-size: .9em;
|
|
}
|
|
.forum__post__badge__desktop {
|
|
display: none;
|
|
}
|
|
.forum__post__badge__mobile {
|
|
display: block;
|
|
}
|
|
}
|