mirror of
https://github.com/alexgo-io/OPI.git
synced 2026-01-12 22:43:27 +08:00
271 lines
3.5 KiB
CSS
271 lines
3.5 KiB
CSS
:root {
|
|
--common: grey;
|
|
--dark-bg: #131516;
|
|
--dark-fg: #98a3ad;
|
|
--epic: darkorchid;
|
|
--legendary: gold;
|
|
--light-bg: #292c2f;
|
|
--light-fg: #a1adb8;
|
|
--link: #4169e1;
|
|
--mythic: #f2a900;
|
|
--rare: cornflowerblue;
|
|
--search-bg: #b7b7b7;
|
|
--search-border: #aaaaaa;
|
|
--search-fg: #000000;
|
|
--uncommon: forestgreen;
|
|
}
|
|
|
|
html {
|
|
background-color: var(--dark-bg);
|
|
color: var(--dark-fg);
|
|
}
|
|
|
|
main {
|
|
margin: 0 auto;
|
|
max-width: 100%;
|
|
padding: 0 1rem 1rem;
|
|
width: 50rem;
|
|
}
|
|
|
|
h1 {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
}
|
|
|
|
h1 a {
|
|
color: var(--light-fg);
|
|
}
|
|
|
|
h1 a:visited {
|
|
color: var(--light-fg);
|
|
}
|
|
|
|
iframe {
|
|
aspect-ratio: 1 / 1;
|
|
border: none;
|
|
}
|
|
|
|
a {
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
a:visited {
|
|
color: var(--link);
|
|
}
|
|
|
|
dt {
|
|
font-weight: bold;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
nav {
|
|
align-items: center;
|
|
background-color: var(--light-bg);
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
nav > :first-child {
|
|
color: var(--light-fg);
|
|
font-weight: bold;
|
|
}
|
|
|
|
form {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
gap: 1rem;
|
|
margin-left: auto;
|
|
padding-bottom: 0.25rem;
|
|
width: 100%;
|
|
}
|
|
|
|
input[type=text] {
|
|
background-color: var(--search-bg);
|
|
border-radius: 3px;
|
|
border: 1px solid var(--search-border);
|
|
color: var(--search-fg);
|
|
flex-grow: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
input[type=image] {
|
|
margin-top: 0.2rem;
|
|
}
|
|
|
|
dl {
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
ol, ul {
|
|
overflow: hidden;
|
|
}
|
|
|
|
@media (max-width: 38rem) {
|
|
nav {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
.block-list {
|
|
font-family: monospace, monospace;
|
|
list-style-position: inside;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.block {
|
|
background-color: var(--light-bg);
|
|
border-radius: 0.5%;
|
|
margin: 3%;
|
|
padding: 0.5%;
|
|
text-align: center;
|
|
}
|
|
|
|
.block a {
|
|
color: var(--light-fg);
|
|
margin-top: 1%;
|
|
}
|
|
|
|
.block h2 {
|
|
margin: 1%;
|
|
}
|
|
|
|
.center {
|
|
text-align: center;
|
|
}
|
|
|
|
.monospace {
|
|
font-family: monospace, monospace;
|
|
}
|
|
|
|
span.common, span.uncommon, span.rare, span.epic, span.legendary, span.mythic {
|
|
border-radius: 0.25rem;
|
|
color: white;
|
|
padding: 0.125rem 0.25rem;
|
|
}
|
|
|
|
span.common {
|
|
background-color: var(--common);
|
|
}
|
|
|
|
span.uncommon {
|
|
background-color: var(--uncommon);
|
|
}
|
|
|
|
span.rare {
|
|
background-color: var(--rare);
|
|
}
|
|
|
|
span.epic {
|
|
background-color: var(--epic);
|
|
}
|
|
|
|
span.legendary {
|
|
background-color: var(--legendary);
|
|
}
|
|
|
|
span.mythic {
|
|
background-color: var(--mythic);
|
|
}
|
|
|
|
a.common {
|
|
color: var(--common);
|
|
}
|
|
|
|
a.uncommon {
|
|
color: var(--uncommon);
|
|
}
|
|
|
|
a.rare {
|
|
color: var(--rare);
|
|
}
|
|
|
|
a.epic {
|
|
color: var(--epic);
|
|
}
|
|
|
|
a.legendary {
|
|
color: var(--legendary);
|
|
}
|
|
|
|
a.mythic {
|
|
color: var(--mythic);
|
|
}
|
|
|
|
.thumbnails {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.thumbnails > a {
|
|
border-radius: 2%;
|
|
margin: 1%;
|
|
overflow: hidden;
|
|
width: 23%;
|
|
}
|
|
|
|
.thumbnails iframe {
|
|
height: 100%;
|
|
pointer-events: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.inscription {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.inscription > *:nth-child(1), .inscription > *:nth-child(3) {
|
|
align-items: center;
|
|
color: var(--dark-bg);
|
|
display: flex;
|
|
flex: 1;
|
|
font-size: 200%;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.inscription > a:nth-child(1):hover, .inscription > a:nth-child(3):hover {
|
|
color: var(--dark-fg);
|
|
}
|
|
|
|
.inscription > *:nth-child(2) {
|
|
flex: 0 75%;
|
|
}
|
|
|
|
.inscription > a > iframe {
|
|
width: 100%;
|
|
}
|
|
|
|
.tabs {
|
|
align-items: center;
|
|
display: flex;
|
|
}
|
|
|
|
.tabs > a {
|
|
color: var(--light-fg);
|
|
padding: 1rem;
|
|
}
|
|
|
|
.tabs > *:first-child {
|
|
flex: 1;
|
|
text-align: right;
|
|
}
|
|
|
|
.tabs > *:last-child {
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
.icon {
|
|
height: 1rem;
|
|
width: 1rem;
|
|
}
|