labolyon.fr/css/style.css

406 lines
6.1 KiB
CSS
Raw Normal View History

2023-06-13 17:21:54 +02:00
html {
font-family: 'arial', sans-serif;
font-weight: 400;
font-size: 1em;
2023-08-16 10:36:18 +02:00
color: #cfcfcf;
2023-06-13 17:21:54 +02:00
max-width: 100%;
overflow-x: hidden;
2023-06-13 17:35:55 +02:00
background: url("../images/world_network.muted.jpg");
background-color: black;
background-repeat: no-repeat;
background-size: 100% auto;
2023-06-13 17:21:54 +02:00
}
body {
width: 100%;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}
2023-06-13 17:21:54 +02:00
/* global items */
img {
max-width: 100%;
}
2023-06-13 17:21:54 +02:00
a:link {
color: yellow;
text-decoration: none;
}
2023-06-13 17:21:54 +02:00
a:hover, a:focus {
color: white;
text-decoration: underline;
}
2023-06-13 17:21:54 +02:00
a:visited {
color:yellow;
}
hr {
border: none;
height: 2em;
}
2023-06-13 17:21:54 +02:00
/* Header */
2023-06-13 17:21:54 +02:00
#main-header {
display: grid;
grid-template-columns: 95px 1fr 400px;
grid-template-rows: min-content;
align-items: center;
2023-06-13 17:21:54 +02:00
gap: 15px;
padding: 50px 10px 10px;
2023-06-13 18:21:47 +02:00
position: relative;
margin-bottom: 25px;
}
#main-header > * {
grid-row: 1;
}
#main-header h1 {
line-height: 25px;
font-size: 20px;
font-weight: normal;
font-family: monospace;
color: yellow;
2023-06-13 17:21:54 +02:00
flex: 1;
grid-column: 2;
}
#main-header nav {
grid-column: 3;
}
2023-06-13 17:21:54 +02:00
@media screen and (max-width: 600px) {
#main-header {
grid-template-columns: 1fr 1fr;
grid-auto-rows: min-content;
}
#main-header img {
grid-column: 1;
margin-left: auto;
2023-06-13 17:21:54 +02:00
}
#main-header h1 {
grid-column: 2;
}
#main-header #main-nav {
grid-row: 2;
grid-column: 1 / 3;
2023-06-13 17:21:54 +02:00
}
}
/* main area */
2023-06-10 22:24:21 +02:00
#homepage {
2023-06-13 17:21:54 +02:00
display: grid;
grid-template-columns: 1fr 400px;
grid-auto-rows: min-content;
row-gap: 15px;
column-gap: 10px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 15vh;
}
main #main-info {
grid-column: 2;
2024-01-13 16:39:11 +01:00
grid-row: 1 / 3;
}
main #events {
2024-01-13 16:39:11 +01:00
grid-column: 1 / 3;
grid-row: 3;
display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-flow: 1fr;
2024-01-13 16:45:10 +01:00
grid-auto-flow: row;
}
main #description {
grid-column: 1;
2024-01-13 16:39:11 +01:00
grid-row: 2;
margin-bottom: 50px;
}
2023-06-10 22:24:21 +02:00
#homepage .toolbar {
2024-01-13 16:39:11 +01:00
grid-column: 1;
grid-row: 1;
2023-06-13 17:21:54 +02:00
text-align: right;
}
2023-06-13 17:21:54 +02:00
@media screen and (max-width: 889px){
2023-06-10 22:24:21 +02:00
#homepage {
2023-06-13 17:21:54 +02:00
grid-template-columns: 1fr;
row-gap: 50px;
2023-06-13 17:21:54 +02:00
}
main #main-info {
2023-06-13 17:21:54 +02:00
grid-row: 3;
grid-column: 1;
2023-06-13 17:21:54 +02:00
}
main #events {
grid-column: 1;
grid-row: 5;
2024-01-13 16:45:10 +01:00
grid-template-columns: 1fr;
}
main #description {
grid-column: 1;
grid-row: 2;
}
main .toolbar {
grid-column: 1;
2023-06-13 17:21:54 +02:00
grid-row: 1;
}
}
2023-11-04 17:40:09 +01:00
/* status page */
.status-page main {
width: 90%;
max-width: 300px;
margin-left: auto;
margin-right: auto;
margin-top: 15vh;
margin-bottom: 15vh;
}
/* status block */
.status-container {
text-align: left;
display: grid;
grid-template-columns: minmax(min-content, 75px) 1fr;
align-items: center;
column-gap: 5px;
border: solid 1px white;
background: black;
padding: 15px;
}
.status-container > * {
grid-column: span 2;
text-align: center;
font-size: 0.8em;
}
.status-container > *:first-child:not(img) {
grid-column: 2;
text-align: left;
font-size: inherit;
}
.status-container .status-icon {
grid-column: 1;
grid-row: 1;
align-self: center;
}
2024-01-13 16:39:11 +01:00
/* Join steps */
#join-steps {
padding: 0;
list-style-type: none;
text-align: left;
counter-reset: join-step;
}
#join-steps li {
position: relative;
counter-increment: join-step;
margin-bottom: 1em;
}
#join-steps li::before {
content: counter(join-step) ".";
font-size: 1.5em;
margin-right: 0.5em;
}
#join-steps li:nth-child(2)::before {
position: absolute;
bottom: 100px;
}
2023-06-13 17:21:54 +02:00
/* toolbar */
2023-06-10 22:24:21 +02:00
#homepage .toolbar button {
2023-06-13 17:21:54 +02:00
border: none;
background: none;
color: white;
font-size: 1.5em;
cursor: pointer;
}
2023-06-10 22:24:21 +02:00
#homepage .toolbar button img {
2023-06-13 17:21:54 +02:00
height: 1em;
display: inline-block;
}
2023-06-10 22:24:21 +02:00
#homepage .toolbar button img[hidden] {
2023-06-13 17:21:54 +02:00
display: none;
}
2023-06-13 17:21:54 +02:00
/* description */
2023-06-13 17:21:54 +02:00
#description {
2023-08-16 10:36:18 +02:00
text-align: left;
line-height: 1.5;
grid-column: 1;
}
2023-06-13 17:21:54 +02:00
#description > *:first-child {
margin-top: 0;
}
2023-08-16 10:36:18 +02:00
dl.definitions > * {
display: inline;
padding: 0;
margin: 0;
}
dl.definitions > dt:not(:first-child)::before {
content: "";
display: block;
margin-top: 1em;
}
dl.definitions > dt {
font-weight: bold;
}
2023-06-13 17:21:54 +02:00
.hackerspace-logo {
float: right;
width: 100px;
}
2023-06-13 17:21:54 +02:00
#description marquee {
height:25px;
max-width:400px;
background-color:none;
font-family:arial;
font-size:12pt;
color:#ffffff;
}
2023-06-13 17:21:54 +02:00
/* side */
main > aside {
grid-column: 2;
text-align: center;
}
#main-info address {
2023-06-13 17:21:54 +02:00
display: inline;
}
#main-info > * {
2023-06-13 17:21:54 +02:00
margin: 1.33em 0;
font-weight: bold;
color: yellow;
}
2023-06-13 17:21:54 +02:00
@media screen and (max-width: 889px){
#main-info {
2023-06-13 17:21:54 +02:00
text-align: center;
}
}
2023-06-13 17:21:54 +02:00
/* background */
2023-06-13 17:35:55 +02:00
.fullscreen-background {
2023-06-13 17:21:54 +02:00
display: block !important;
position: absolute;
left: 0;
top: 0;
height: 100vh;
overflow: hidden;
z-index: -1;
width: 100%;
2023-06-13 17:35:55 +02:00
background: black;
}
2023-06-13 17:35:55 +02:00
.fullscreen-background img, .fullscreen-background video {
2023-06-13 17:21:54 +02:00
width: 100%;
height: 100%;
object-fit: cover;
}
2023-06-13 17:35:55 +02:00
.fullscreen-background video {
opacity: 0.3;
}
.fullscreen-background img {
2023-06-13 17:21:54 +02:00
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transition: linear 1s opacity;
}
2023-06-13 17:35:55 +02:00
.fullscreen-background img[hidden]{
2023-06-13 17:21:54 +02:00
display: block;
opacity: 0;
}
2023-06-13 17:21:54 +02:00
2023-06-13 17:35:55 +02:00
.fullscreen-background::after {
2023-06-13 17:21:54 +02:00
content: "";
width: 100%;
height: 25vh;
position: absolute;
bottom: 0;
left: 0;
background: linear-gradient(to top, black, rgba(0,0,0,0));
2023-06-10 22:24:21 +02:00
}
/* nav */
2023-06-10 22:24:21 +02:00
#main-nav {
text-align: center;
2023-06-10 22:24:21 +02:00
}
#main-nav > *:not(:last-child)::after {
content: " | ";
content: " | " / "";
text-decoration: none !important;
2023-06-10 22:24:21 +02:00
}
/* Affiches */
.affiche {
border: solid 1px currentColor;
padding: 10px;
background: black;
position: relative;
2023-06-10 22:24:21 +02:00
}
.affiche:not(:last-child){
margin-bottom: 25px;
2023-06-10 22:24:21 +02:00
}
.affiche .credits {
font-size: 0.5em;
text-align: right;
}
.affiche .credits, .affiche .credits * {
color: inherit;
2023-06-13 17:21:54 +02:00
}