sonicgarden/public/css/index.css
2024-09-01 11:16:36 +02:00

265 lines
No EOL
4.8 KiB
CSS

@font-face {
font-family: "NiseSegaSonic";
src: local("NiseSegaSonic"),
url("/fonts/NiseSegaSonic.ttf") format("truetype");
}
:root {
--color-gray-20: #e0e0e0;
--color-gray-50: #C0C0C0;
--color-gray-90: #333;
/* --text-color is assigned to --color-gray-_ above */
--text-color-link: #f87000;
--text-color-link-active: #f89000;
--text-color-link-visited: #f87000;
--background-color: #fff;
--background-menu: #001d6b;
--text-color: var(--color-gray-90);
--font-family: -apple-system, system-ui, sans-serif;
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
--font-family-logo:"NiseSegaSonic", system-ui, sans-serif;
--font-family-title:vipnagorgialla, system-ui, sans-serif;
}
* {
box-sizing: border-box;
}
html,
body {
padding: 0;
margin: 0 auto;
min-height:100%;
font-family: var(--font-family);
color: var(--text-color);
width:1280px;
}
html {
overflow-y: scroll;
background: center top fixed url("/img/erratu18.png");
background-color:#181849;
}
/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
a[href] {
color: var(--text-color-link);
}
a[href]:visited {
color: var(--text-color-link-visited);
}
a[href]:hover,
a[href]:active {
color: var(--text-color-link-active);
}
blockquote {
opacity: 75%;
border-left: 3px solid currentColor;
padding-left: 12px;
}
/* Direct Links / Markdown Headers */
.header-anchor {
text-decoration: none;
font-style: normal;
font-size: 1em;
margin-left: .1em;
}
a[href].header-anchor,
a[href].header-anchor:visited {
color: transparent;
}
a[href].header-anchor:focus,
a[href].header-anchor:hover {
text-decoration: underline;
}
a[href].header-anchor:focus,
:hover > a[href].header-anchor {
color: #aaa;
}
.wrapper {
display:flex;
}
header {
background:left -1rem top -4rem url("/img/silver.webp"), right -1rem top -0.5rem url("/img/sonic.webp"), center center url("/img/back2.png");
background-repeat: no-repeat, no-repeat, no-repeat;
background-size: 20rem, 20rem, cover;
border-radius:3px;
height:240px;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.8), inset 0px 0px 0px 1px rgba(0, 0, 0, 0.8);
margin:12px 12px 3px;
display:flex;
align-items: center;
justify-content: center;
}
header h1 {
text-align: center;
}
header h1 a {
font-size:5rem;
text-shadow:-2px -2px 0 #000,
0 -2px 0 #000,
2px -2px 0 #000,
2px 0 0 #000,
2px 2px 0 #000,
0 2px 0 #000,
-2px 2px 0 #000,
-2px 0 0 #000,
.05em .1em 0 #000;
color:white!important;
text-decoration: none;
text-transform: uppercase;
display: block;
font-family: var(--font-family-logo);
line-height: 1;
margin: 0;
padding: 0;
}
main,
.card,
#sidebar ul > li,
#links ul > li {
border:1px solid rgba(0,0,0,0.1);
box-shadow:0px 1px 3px 1px rgba(0, 0, 0, 0.4);
border-radius:3px;
padding:12px;
margin:12px;
}
#sidebar > ul,
#links > ul {
margin:0;
padding:0;
}
main {
background-color: var(--background-color);
padding-left: 24px;
padding-right: 24px;
line-height:1.5rem;
flex-grow:1;
box-shadow: 0px 1px 1px 1px rgba(0, 0, 0, 0.3),
0px 0px 0px 5px #f87000,
0px 1px 3px 6px rgba(0, 0, 0, 0.4);
}
.card,
#sidebar ul>li,
#links ul>li {
color:white;
background-color: var(--background-menu);
}
#sidebar ul > li,
#links ul > li {
list-style: none;
font-weight: bold;
}
#more-info ol > li,
#more-info ul > li {
list-style: none;
}
#sidebar ul > li li,
#links ul>li li,
#more-info li {
border-radius:0px;
padding:0px;
margin:0px;
font-weight: normal;
border:0;
box-shadow: none;
}
ul.nav,
#sidebar ul li ul,
#links ul li ul,
#more-info ol {
padding:0;
margin:0;
list-style: none;
}
#sidebar ul li a,
#links ul li a,
#more-info ol li a {
display:block;
width:100%;
text-decoration:none;
color:white!important;
border-radius:3px;
padding:3px;
}
#links ul li > p {
padding: 3px;
margin:0;
}
#more-info h2 {
padding: 3px;
margin: 0;
font-size: 1rem;
}
#sidebar ul li li a,
#links ul li li a,
#more-info ol li a {
padding-left:18px;
}
#sidebar ul li a.active,
#more-info ol li a.active {
background-color:rgba(255,255,255,0.1);
}
#sidebar ul li a:hover,
#links ul li a:hover,
#more-info ol li a:hover {
background-color:rgba(255,255,255,0.2);
}
#more-info,
#sidebar {
min-width:240px;
width:240px;
}
footer {
text-align:right;
padding:12px;
margin: auto;
width: 800px;
}
iframe {
border: none;
}
p img:only-child {
display:block;
margin-left: auto;
margin-right: auto;
text-align: center;
}