237 lines
4.2 KiB
CSS
237 lines
4.2 KiB
CSS
/* Article */
|
|
|
|
header:has(+ article) {
|
|
background-color: rgb(var(--movim-background-main));
|
|
position: sticky;
|
|
z-index: 1;
|
|
top: 0;
|
|
}
|
|
|
|
article {
|
|
overflow: hidden;
|
|
}
|
|
|
|
article header {
|
|
position: relative;
|
|
}
|
|
|
|
article footer {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
article>ul.list.thick:first-child>li>span {
|
|
align-self: start;
|
|
top: 2rem;
|
|
}
|
|
|
|
article>ul.list.thick:first-child>li>span.control {
|
|
top: 0;
|
|
}
|
|
|
|
article header ul:not(:first-child) {
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
@media print {
|
|
article footer {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
article section {
|
|
font-size: 2rem;
|
|
line-height: 3rem;
|
|
font-weight: 500;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
article section[dir=rtl] {
|
|
text-align: right;
|
|
}
|
|
|
|
article section.limited {
|
|
display: block;
|
|
max-height: 60rem;
|
|
overflow: hidden;
|
|
margin: 0;
|
|
mask-image: linear-gradient(to bottom, black calc(100% - 10rem), transparent);
|
|
}
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
article section.limited {
|
|
max-height: 40rem;
|
|
}
|
|
}
|
|
|
|
article img,
|
|
article video {
|
|
max-width: 100%;
|
|
height: auto;
|
|
animation: fadeIn 0.2s;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
article pre {
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
/* Some CSS to style the quote XHTML generated by Movim */
|
|
|
|
article section>div div.quote {
|
|
display: block;
|
|
border-radius: 2px;
|
|
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
padding: 1rem 2rem;
|
|
margin-bottom: 1rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
article section>div div.quote:before,
|
|
article section>div div.quote:after {
|
|
content: '';
|
|
display: none;
|
|
}
|
|
|
|
article section>div div.quote ul {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
}
|
|
|
|
article section>div div.quote ul:not(.list):not(.tabs):not(.grid)>li {
|
|
list-style-type: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
article section>div div.quote ul li>* {
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
article section>div div.quote li:first-child {
|
|
flex: 1 75%;
|
|
padding-right: 2rem;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
article section>div div.quote li {
|
|
flex: 1 100%;
|
|
}
|
|
}
|
|
|
|
article section>div div.quote li img {
|
|
max-height: 10rem;
|
|
max-width: 100%;
|
|
float: right;
|
|
}
|
|
|
|
article section>div img.big_picture {
|
|
display: block;
|
|
margin-bottom: 1rem;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
article section>div img.big_picture:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
article section>div img.active:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
article section>div div.video_embed {
|
|
position: relative;
|
|
padding-bottom: 56.25%;
|
|
/* 16:9 */
|
|
margin-bottom: 2rem;
|
|
border-radius: 0.25rem;
|
|
overflow: hidden;
|
|
height: 0;
|
|
}
|
|
|
|
article section>div div.video_embed iframe {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
article ul li.pic img {
|
|
max-width: 30rem;
|
|
max-height: 30rem;
|
|
}
|
|
|
|
article section>div div hr {
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
/* Spoiler */
|
|
|
|
article input[type=checkbox].spoiler {
|
|
display: none;
|
|
}
|
|
|
|
article input[type=checkbox].spoiler:not(:checked)+section {
|
|
position: relative;
|
|
}
|
|
|
|
article input[type=checkbox].spoiler:not(:checked)+section>div>* {
|
|
opacity: 0.05;
|
|
pointer-events: none;
|
|
filter: blur(1rem);
|
|
}
|
|
|
|
article section label.spoiler,
|
|
article input[type=checkbox].spoiler:checked+section label.spoiler {
|
|
display: none;
|
|
}
|
|
|
|
article input[type=checkbox].spoiler+section label.spoiler {
|
|
text-align: center;
|
|
display: block;
|
|
position: absolute;
|
|
top: calc(50% - 5rem);
|
|
left: calc(50% - 5rem);
|
|
width: 10rem;
|
|
height: 10rem;
|
|
line-height: 10rem;
|
|
font-size: 4rem;
|
|
border-radius: 100%;
|
|
background-color: var(--movim-accent);
|
|
color: rgba(var(--movim-font), 0.87);
|
|
box-shadow: var(--elevation-1);
|
|
}
|
|
|
|
article section label.spoiler:hover {
|
|
cursor: pointer;
|
|
font-variation-settings: 'FILL' 1;
|
|
box-shadow: var(--elevation-2);
|
|
}
|
|
|
|
/* Table */
|
|
|
|
.dialog>section table,
|
|
article table {
|
|
border-collapse: collapse;
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.dialog>section table tbody tr:nth-child(even),
|
|
article table tbody tr:nth-child(even) {
|
|
background-color: rgba(var(--movim-font), 0.05);
|
|
}
|
|
|
|
.dialog>section table td,
|
|
article table td {
|
|
padding: 0.5rem;
|
|
font-size: 1.9rem;
|
|
line-height: 2.5rem;
|
|
}
|
|
|
|
.dialog>section table th,
|
|
article table th {
|
|
padding: 0.5rem;
|
|
font-size: 1.8rem;
|
|
line-height: 2.5rem;
|
|
text-align: left;
|
|
} |