phantasmobile/app/static/css/style.css

205 lines
3.3 KiB
CSS
Raw Permalink Normal View History

2023-07-15 07:30:36 +00:00
body {
margin: 0;
2023-08-22 15:55:23 +00:00
background: var(--bg);
color: var(--fg);
2023-07-15 07:30:36 +00:00
font-family: "Noto Sans", "Lucida Grande", "Segoe UI", "DejaVu Sans", "Lucida Sans Unicode", Helvetica, Arial, sans-serif;
line-height: normal;
}
2023-07-16 05:56:14 +00:00
*, *::after, *::before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*:focus {
outline: none;
}
2023-07-15 07:30:36 +00:00
a {
color: var(--fg)
2023-07-15 07:30:36 +00:00
}
iframe {
max-width: 100%;
}
.player {
max-width: 100%;
}
video, .poster {
border-bottom: 1px solid yellow;
}
2023-08-24 17:43:31 +00:00
.fullscreen video {
border-bottom: none;
}
2023-07-15 07:30:36 +00:00
.content {
display: flex;
flex-direction: column;
2023-07-26 10:00:27 +00:00
min-height: 100vh;
2023-07-15 07:30:36 +00:00
max-width: 1000px;
margin: auto;
2023-08-22 15:35:56 +00:00
padding-top: 16px;
}
.item-title {
color: var(--title);
padding-bottom: 0;
2023-09-15 07:45:08 +00:00
text-decoration: underline;
font-size: 18px;
font-weight: bold;
2023-08-22 15:35:56 +00:00
text-wrap: balance;
2023-07-15 07:30:36 +00:00
}
.title {
padding-bottom: 0;
margin-bottom: 4px;
border-bottom: 1px solid pink;
2023-09-15 07:45:08 +00:00
font-size: 16px;
2023-07-15 07:30:36 +00:00
text-wrap: balance;
}
.byline {
padding: 0;
padding-bottom: 16px;
}
.player {
text-align: center;
padding-top: 0px;
padding-bottom: 0px;
}
@media(max-width:768px) {
2023-08-22 15:35:56 +00:00
.item-title,
2023-07-15 07:30:36 +00:00
.title,
.byline {
padding-left: 4px;
padding-right: 4px;
}
.player {
position: sticky;
top: 0px;
}
}
.player video {
z-index: 0;
}
.value {
padding: 4px;
padding-top: 16px;
padding-left: 0;
padding-right: 0;
flex: 1;
}
@media(max-width:768px) {
.value {
padding-left: 4px;
padding-right: 4px;
}
}
.more {
padding-top: 16px;
padding-bottom: 16px;
text-align: center;
2023-07-25 19:18:20 +00:00
font-size: 14px;
}
.more a {
color: rgb(144, 144, 144);
2023-07-15 07:30:36 +00:00
}
.more nav {
margin-top: 24px;
margin-bottom: 24px;
}
2023-07-15 07:30:36 +00:00
.layer.active {
padding-top: 8px;
}
.layer.active:first-child {
padding-top: 0px;
}
2023-07-15 07:34:07 +00:00
.layer h3 {
font-weight: bold;
padding: 4px;
padding-left: 0;
margin: 0;
//display: none;
}
.layer.active h3 {
display: block;
}
2023-07-15 07:30:36 +00:00
.annotation {
padding: 4px;
border-bottom: 1px solid blueviolet;
display: none;
}
.annotation.active {
display: block;
}
2023-12-09 13:30:46 +00:00
.is-subtitles .annotation {
2023-12-09 13:29:00 +00:00
min-height: 4em;
}
2023-07-15 07:30:36 +00:00
.annotation.active.place,
.annotation.active.string {
display: inline-block;
border: 1px solid blueviolet;
margin-bottom: 4px;
}
2023-09-15 16:42:06 +00:00
.annotation img {
max-width: 100%;
}
2023-07-15 07:30:36 +00:00
@media(max-width:768px) {
2023-09-15 16:42:06 +00:00
.annotation img {
2023-07-15 07:30:36 +00:00
width: 100%;
2023-09-15 16:42:06 +00:00
max-width: 100%;
2023-07-15 07:30:36 +00:00
}
}
2023-07-15 07:34:07 +00:00
.layer h3 {
2023-07-15 07:30:36 +00:00
cursor: pointer;
}
2023-07-15 07:34:07 +00:00
.layer .icon svg {
2023-07-15 07:30:36 +00:00
width: 12px;
height: 12px;
}
.layer.collapsed .annotation.active {
display: none;
}
.rotate {
transform: rotate(90deg) translateY(-100%);
transform-origin:bottom left;
}
.document.text {
line-height: 1.5;
letter-spacing: 0.1px;
word-wrap: break-word;
hyphens: auto;
}
.document.text p {
padding-bottom: 1em;
}
.document.text img {
max-width: 100vw;
margin-left: -4px;
margin-right: -4px;
}
figure {
text-align: center;
}
figure img {
max-width: 100vw;
margin-left: -4px;
margin-right: -4px;
}
@media(max-width:768px) {
.document.text {
padding-left: 4px;
padding-right: 4px;
}
}
ol li {
margin-left: 1em;
}
.blocked svg {
width: 64px;
height: 64px;
}