fanstuff.garden/public/css/index.css

172 lines
3.1 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;
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: #3c8f4b;
}
/* 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.2);
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;
}
#wrapper {
margin: 0 auto;
max-width: 800px;
}
header {
border-radius:3px;
margin:12px 12px 3px;
}
header h1 {
text-align: center;
}
header h1 a[href] {
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;
}
@media screen and (max-width:580px) {
header h1 a {
font-size: 4rem;
}
}
@media screen and (max-width:480px) {
header h1 a {
font-size: 3rem;
}
}
@media screen and (max-width:350px) {
html {
font-size: 0.8rem;
}
header h1 a {
font-size: 3rem;
}
}
main {
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;
}