kobold.cafe/public/css/index.css
2024-05-24 20:31:45 +02:00

152 lines
2.9 KiB
CSS

:root {
--color-gray-20: #586e75;
--color-gray-50: #073642;
--color-gray-90: #002b36;
/* --text-color is assigned to --color-gray-_ above */
--text-color-link: #1864ab;
--text-color-link-active: #1864ab;
--text-color-link-visited: #1864ab;
--background-color: #fdf6e3;
--background-menu: #001d6b;
--text-color: var(--color-gray-90);
--font-family: serif;
--font-family-monospace: serif;
--font-family-logo: serif;
--font-family-title: serif;
}
* {
box-sizing: border-box;
}
html,
body {
padding: 0;
margin: 0;
min-height:100%;
font-family: var(--font-family);
color: var(--text-color);
}
html {
overflow-y: scroll;
background-image: url("img/back3.gif"), url("img/back2.gif"), url("img/back.gif"); /* Une petite image de fond pour éviter d'avoir un vieux fond blanc :p */
background-attachment: scroll;
background-position: top center, top center;
background-repeat: no-repeat, repeat-y, repeat;
background-color: #1d2c33;
}
/* 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);
text-decoration: dashed;
padding: 0.05rem;
border-radius: 0.1rem;
text-decoration: underline dashed 1px;
text-underline-offset: 0.1rem;
}
a[href]:visited {
color: var(--text-color-link);
}
a[href]:hover,
a[href]:active {
color: var(--text-color-link);
background-color: rgba(0, 0, 0, 0.075);
text-decoration: none;
}
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;
}
header img {
display:block;
margin: 48px auto 24px auto;
filter: drop-shadow(0px 1px 2px rgba(0 0 0 / 0.3));
}
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:#fdf6e3!important;
text-decoration: none;
text-transform: uppercase;
display: block;
font-family: var(--font-family-logo);
line-height: 1;
margin: 0;
padding: 0;
}
main {
margin: 12px auto;
max-width: 800px;
}
.card {
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;
background-color: var(--background-color);
padding-left: 24px;
padding-right: 24px;
line-height: 1.5rem;
flex-grow: 1;
}
footer {
text-align:right;
margin: 12px auto;
padding: 0 12px;
max-width: 800px;
}