Sélectionner une révision Git
-
Nicolas Quiniou-Briand a rédigéNicolas Quiniou-Briand a rédigé
style.css 6,57 Kio
@font-face {
font-family:'DejaVu Sans';
src:url("/fonts/DejaVuSans-ExtraLight.woff2") format('woff2'),
url("/fonts/DejaVuSans-ExtraLight.woff") format('woff');
font-weight:200;
font-style:normal
}
*, ::before, ::after {
box-sizing: inherit;
}
body, button, input, select, optgroup, textarea {
font-family: 'DejaVu Sans', sans-serif;
font-weight: 100;
font-size: 16px;
font-size: 1rem;
line-height: 1.5;
color: #1c2f82;
}
body {
min-height: 100vh;
max-width: 800px;
margin: 0 auto;
display: flex;
flex-direction: column;
background-color: #fff;
}
a, a:visited {
color: #1c2f82;
background-color: transparent;
text-decoration: none;
}
p {
margin-bottom: .5em;
text-align: justify;
}
img {
display: block;
height: auto;
max-width: 100%;
margin: 0 auto;
}
nav {
position: sticky;
top: 0;
display: flex;
justify-content: space-between;
align-items: center;
width: 800px;
padding: 25px 0;
background-color: inherit;
border-bottom: solid #333 1px;
}
nav .logo {
content: url("https://le-filament.com/img/logo-lefilament-H.svg");
position: relative;
bottom: 5px;
width: 155px;
margin-top: 10px;
z-index: 2;
}
main {
margin: 50px auto;
}
section {
margin: 100px 0;
}
article a {
text-decoration: underline;
}
table {
margin: 0 auto;
border-collapse: collapse;
}
table thead {
border-bottom: solid 2px;
}
table th,
table td {
border-left: solid 1px;
}
table tr th:first-child,
table tr td:first-child {
border-left: none;
}
table tr {
border-bottom: thin;
}
table th,
table td {
padding: 5px 10px;
}
ul {
margin: 0;
}
blockquote {
background-color: #0001;
padding-left: 25px;
padding-right: 5px;
border-radius: 4px;
}
blockquote p {
padding: 5px;
}
#menu-toggle input, #menu-toggle span {
display: none;
}
#menu {
display: flex;
justify-content: space-between;
align-items: center;
width: 50%;
}
.menu-item {
margin: 10px;
}
.menu-item a {
text-decoration: none;
font-size: 13px;
color: #1C2F82;
border: 1px solid #1C2F82;
padding-bottom: 7px;
padding-right: 17px;
padding-left: 15px;
padding-top: 8px;
background-color: transparent;
font-family: monospace;
}
.menu-shadow {
display: block;
width: 85%;
cursor: pointer;
background-color: #FFD14C;
padding-left: 6px;
padding-top: 10px;
}
.post {
margin: 50px 0;
}
.post a, .post a:visited {
color: #1c2f82;
}
.post-title {
background-color: #ffd14c;
border-radius: 1.2em;
padding: 0 10px;
font-size: 1.2em;
font-weight: bold;
}
.post-info {
font-size: 0.8em;
font-weight: lighter;
}
.post-summary {
padding-left: 25px;
}
.taxonomy {
color: #1c2f82;
background-color: #ffd14c;
border-radius: 1em;
padding: 2px 12px;
}
.taxonomy:visited {
color: #1c2f82;
}
.mastodon_button {
display: block;
width: 400px;
margin: 20px auto;
padding: 5px 10px;
border-radius: 4px;
background-color: #2b90d9;
color: #fff;
font-family: sans-serif;
font-weight: bold;
text-transform: uppercase;
text-decoration: none;
text-align: center;
cursor: pointer;
}
.mastodon_button:visited {
color: #fff;
}
.comment {
display: block;
padding: 10px;
margin: 20px;
border: solid #1c2f82 2px;
border-radius: 4px;
}
.comment > .author {
font-weight: bold;
}
footer {
margin-top: auto;
padding-bottom: 10px;
text-align: center;
font-size: 12px;
}
footer p {
text-align: center;
}
footer .logo {
display: inline-block;
height: 20px;
margin: 10px;
}
#logo-gitlab {
content: url("https://le-filament.com/img/logo-gitlab.svg");
}
#logo-github {
content: url("https://le-filament.com/img/logo-github.svg");
}
#logo-docker {
content: url("https://le-filament.com/img/logo-docker.svg");
}
#logo-mastodon {
content: url("https://le-filament.com/img/logo-mastodon.svg");
}
@media only screen and (any-hover: none) and (max-width: 980px) {
nav {
width: auto;
padding: 10px 30px;
}
.menu {
flex-flow: column;
margin-left: 0;
margin-top: 20px;
}
main {
width: auto;
margin: 0 20px;
}
section {
margin: auto;
}
blockquote {
margin-left: 0;
margin-right: 0;
}
.post-info {
display: block;
margin-left: 20px;
}
.mastodon_button {
width: auto;
}
#menu-toggle {
display: block;
background-color: inherit;
user-select: none;
}
#menu-toggle input {
display: block;
width: 33px;
height: 26px;
position: absolute;
top: 16px;
right: 25px;
cursor: pointer;
opacity: 0;
z-index: 2;
}
#menu-toggle span {
position: relative;
display: block;
width: 33px;
height: 4px;
margin-bottom: 5px;
background: #cdcdcd;
border-radius: 3px;
z-index: 1;
transform-origin: 4px 0px;
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
opacity 0.55s ease;
}
#menu-toggle span:first-child {
transform-origin: 0% 0%;
}
#menu-toggle span:nth-last-child(2) {
transform-origin: 0% 100%;
}
#menu-toggle input:checked ~ span {
opacity: 1;
transform: rotate(45deg) translate(-2px, -1px);
}
#menu-toggle input:checked ~ span:nth-last-child(3) {
opacity: 0;
transform: rotate(0deg) scale(0.2, 0.2);
}
#menu-toggle input:checked ~ span:nth-last-child(2) {
transform: rotate(-45deg) translate(0, -1px);
}
#menu {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100vw;
padding-top: 75px;
padding-bottom: 10px;
background-color: inherit;
border-bottom: solid #333 1px;
transform-origin: 0% 0%;
transform: translate(0, -100%);
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}
.menu-item {
margin: 10px auto;
width: max-content;
}
#menu-toggle input:checked ~ #menu {
transform: none;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #000;
}
body, button, input, select, optgroup, textarea, a, a:visited {
color: #fff;
}
nav .logo {
content: url("/images/logo-lefilament-H-blanc.svg");
}
.menu-item a, .menu-item a:visited {
color: #fff;
}
blockquote {
background-color: #fff1
}
.menu-shadow {
background: none;
cursor: auto;
}
.menu-item a {
border-color: #33b899;
}
#logo-gitlab {
content: url("/images/logo-gitlab-blanc.svg");
}
#logo-github {
content: url("/images/logo-github-blanc.svg");
}
#logo-docker {
content: url("/images/logo-docker-blanc.svg");
}
#logo-mastodon {
content: url("/images/logo-mastodon-blanc.svg");
}
}