Skip to content
Snippets Groups Projects
style.css 5.43 KiB
Newer Older
:root {
	--color-bg: #fefefe;
Dorian Lesbre's avatar
Dorian Lesbre committed
	--color_bg_1: #4c4c7c;
	--color_bg_2: #26263c;
	--color_bg_3: #39395c;
Dorian Lesbre's avatar
Dorian Lesbre committed
	--color_sep: #eb811b;
html, body {
Dorian Lesbre's avatar
Dorian Lesbre committed
	background-color: #dddddd;
Dorian Lesbre's avatar
Dorian Lesbre committed
	color: #333;
	font-weight: 300;
Dorian Lesbre's avatar
Dorian Lesbre committed
	line-height: 1.5;
	font-family: Arial, Roboto, Helvetica, sans-serif;
	align-items: center;
}

html {
	position: relative;
	min-height: 100%;
body {
	min-height: 100%;
	margin: 0px 0px 50px;
}

	display: flex;
	background-color: var(--color_bg_1);
Dorian Lesbre's avatar
Dorian Lesbre committed
	border-bottom: 2px solid var(--color_sep);
	align-items: center;
Dorian Lesbre's avatar
Dorian Lesbre committed
	padding: 0px 40px;
Dorian Lesbre's avatar
Dorian Lesbre committed
	width: calc(100% - 80px);
Dorian Lesbre's avatar
Dorian Lesbre committed
}

header > * {
Dorian Lesbre's avatar
Dorian Lesbre committed
	color: #ddd;
header h1, header h1 a, header h1 a:visited, header h1 a:active {
	color: inherit;
	font-size: 70px;
	text-decoration: none;
Dorian Lesbre's avatar
Dorian Lesbre committed
	margin: 10px 0;
}

header #head_main_infos {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-size: 20pt;
	flex: 1;
}

@media (max-width: 800px) {
	header h1, header h1 a {
		font-size: 50px;
	}
	header #head_main_infos {
		font-size: 10pt;
	}
}
@media (max-width: 600px) {
	header h1, header h1 a {
		font-size: 30px;
	}
	header #head_main_infos {
		font-size: 8pt;
	}
	text-align: center;
	display: flex;
	justify-content: center space-around;
	background-color: var(--color_bg_2);
	color: white;
	margin: 0;
Dorian Lesbre's avatar
Dorian Lesbre committed
	padding: 0 20px;
	border-bottom: 6px solid var(--color_bg_1);
Dorian Lesbre's avatar
Dorian Lesbre committed
	padding: 5px;
	font-size: 20px;
	color: white;
	text-decoration: none;
	text-emphasis: bold;
	width: 100%;
Dorian Lesbre's avatar
Dorian Lesbre committed
	cursor: pointer;
}

nav a:hover {
	transition-property: background-color;
	background-color: var(--color_bg_3);
	transition-duration: 0.5s;
nav a.current {
	background-color: var(--color_bg_1);
}
nav a.icon {
  display: none;
	width: 40px;
}
 /* hide all links except home and display menu icon */
@media (max-width: 600px) {
	nav {
		padding: 0;
	}
  nav a:not(:first-child) {display: none;}
  nav a.icon {
    float: right;
    display: block;
  }
	/* The "responsive" class is added bu JS when the user click the menu icon */
  nav.responsive {
		position: relative;
    flex-direction: column;
		justify-content: start;
	}
  nav.responsive a.icon {
    position: absolute;
    right: 0px;
    top: 0;
  }
  nav.responsive a {
		float: none;
		display: block;
  }

}

main {
	background-color: var(--color-bg);
  justify-content: center;
	text-align: justify;
	padding: 1px 30px 50px;
	max-width: 920px;
Dorian Lesbre's avatar
Dorian Lesbre committed
	margin: 0 auto 0 auto;
Dorian Lesbre's avatar
Dorian Lesbre committed
	min-height: calc(100vh - 370px); /* viewport-height - (header+footer+nav bar) */
main h2 {
	color: var(--color_bg_2);
Dorian Lesbre's avatar
Dorian Lesbre committed
	padding-top: 20px;
	font-size: 1.5rem;
	font-weight: bold;
	text-align: left;
	border-bottom: 2px solid var(--color_bg_1);
	border-image-source: linear-gradient(to right, var(--color_bg_1) 0%, transparent 75%);
	border-image-slice: 1;
}
main h3 {
	color: var(--color_bg_2);
	font-size: 1.2rem;
	font-weight: 300;
	text-align: left;
Dorian Lesbre's avatar
Dorian Lesbre committed
	border-bottom: 2px solid var(--color_bg_1);
	border-image-source: linear-gradient(to right, var(--color_bg_1) 0%, transparent 75%);
	border-image-slice: 1;
main p {
	font-size: 1rem;
main a:link {
	text-decoration: underline;
	color: rgb(62, 62, 255);
Dorian Lesbre's avatar
Dorian Lesbre committed
}
Dorian Lesbre's avatar
Dorian Lesbre committed
.lines {
	border-top: 2px solid #333;
	border-bottom: 2px solid #333;
	justify-content: left
}
.stat {
	min-width: 120px;
	text-align: center;
	padding: 5px;
}
.stat .qty {
	font-size: 1.2em;
}
.stat .nb_big {
	font-size: 3em;
}
.stat .nb_small {
	font-size: 2em;
}
Dorian Lesbre's avatar
Dorian Lesbre committed

dl {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 4fr;
}
dl dt {
	grid-column: 1 / span 1;
	justify-self: end;
	text-align: right;
	font-weight: bold;
}
dl dd {
	justify-self: start;
	text-align: left;
}

span.helptext {
	color: #444444;
	font-size: 0.8em;
	font-style: italic;
}

Dorian Lesbre's avatar
Dorian Lesbre committed
.flex {
	display: flex;
}
Dorian Lesbre's avatar
Dorian Lesbre committed
.wrap {
	flex-flow: row wrap;
	flex-wrap: wrap;
}
Dorian Lesbre's avatar
Dorian Lesbre committed

.antispam {
	unicode-bidi: bidi-override;
	direction: rtl;
}

Dorian Lesbre's avatar
Dorian Lesbre committed
.button, .button:link, .button:visited, input[type=submit] {
Dorian Lesbre's avatar
Dorian Lesbre committed
	color: white;
Dorian Lesbre's avatar
Dorian Lesbre committed
	text-decoration: none;
	font-size: 1em;
Dorian Lesbre's avatar
Dorian Lesbre committed
	background-color: var(--color_bg_1);
Dorian Lesbre's avatar
Dorian Lesbre committed
	padding: 7px 10px;
	margin: 5px;
Dorian Lesbre's avatar
Dorian Lesbre committed
	border-width: 0;
	cursor: pointer;
}
Dorian Lesbre's avatar
Dorian Lesbre committed
.button:hover, input[type=submit]:hover {
Dorian Lesbre's avatar
Dorian Lesbre committed
	background-color: var(--color_bg_2);
}

ul.errorlist {
	color: red;
	font-size: 0.8em;
	list-style-type: none;
	padding: 0 5px 0 0;
	margin: 0;
}
div.formfield {
	padding-top: 5px
}
div.label_line {
	font-weight: bold;
	padding: 5px;
Dorian Lesbre's avatar
Dorian Lesbre committed
div.error {
	color: red;
	border: 2px solid red;
	border-radius: 5px;
	padding: 5px;
	margin: 10px;
}

Dorian Lesbre's avatar
Dorian Lesbre committed
ul.messagelist {
	padding: 0;
	margin-top: 20px;
}

ul.messagelist li {
	display: block;
	font-weight: 400;
	padding: 10px 10px 10px 50px;
Dorian Lesbre's avatar
Dorian Lesbre committed
	margin: 0 0 10px 0;
	color: #333;
}
ul.messagelist li:before {
	font-family: "Font Awesome 5 Free";
	padding-right: 10px;
	margin-left: -30px;
	font-weight: 900;
}
ul.messagelist li.success {
	background: #dfd;
}
ul.messagelist li.success:before {
	content: "\f058";
}
Dorian Lesbre's avatar
Dorian Lesbre committed
ul.messagelist li.warning {
	background: #ffc;
}
ul.messagelist li.warning:before {
	content: "\f071";
}
Dorian Lesbre's avatar
Dorian Lesbre committed
ul.messagelist li.error {
	background: #ffefef;
ul.messagelist li.error:before {
	content: "\f057";
}
ul.messagelist li.info {
	background: #ddf;
ul.messagelist li.info:before {
	content: "\f05a";
}
Dorian Lesbre's avatar
Dorian Lesbre committed
footer {
	position: absolute;
	bottom: 0;
	width: 100%;
	text-align: center;
	padding: 10px 0;
Dorian Lesbre's avatar
Dorian Lesbre committed
	height: 50px;
Dorian Lesbre's avatar
Dorian Lesbre committed
	color: white;
	display: flex;
	background-color: var(--color_bg_1);
	border-top: 5px solid var(--color_bg_2);
	align-items: center;
	justify-content: space-around;
Dorian Lesbre's avatar
Dorian Lesbre committed
}

footer #sponsors img {
	margin: 0;
	height: 40px;
	margin-right: 20px;