This repository has been archived on 2023-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
web/style.less

407 lines
5.2 KiB
Plaintext
Raw Normal View History

2021-04-05 18:32:22 +02:00
@light: ~"(prefers-color-scheme: light)";
@dark: ~"(prefers-color-scheme: dark)";
@darkColor: #2a2a2a;
@darkerColor: #222222;
@lightColor: white;
@lightlessColor: #eeeeee;
@mainColor: red;
::selection {
@media @light {
color: @lightColor;
background-color: @darkColor;
}
@media @dark {
color: @darkColor;
background-color: @lightColor;
}
}
2021-04-05 18:32:22 +02:00
html {
@media @light {
scrollbar-color: @darkColor @lightColor;
}
@media @dark {
scrollbar-color: @lightColor @darkColor;
}
}
2021-04-05 18:32:22 +02:00
body {
font-family: system-ui, sans-serif;
padding: 0px;
margin: 0px;
font-size: 30px;
line-height: 42px;
@media @light {
background-color: @lightlessColor;
color: @darkColor;
}
@media @dark {
background-color: @darkerColor;
color: @lightColor;
}
}
main {
margin: 0px;
padding: 30px;
padding-top: 15px;
@media (max-width: 500px) {
padding-left: 10px;
padding-right: 10px;
}
@media @light {
background-color: @lightColor;
}
@media @dark {
background-color: @darkColor;
}
}
a, a:visited {
text-decoration: underline;
transition: color 0.1s linear;
@media @light {
color: @darkColor;
}
@media @dark {
color: @lightColor;
}
&:hover {
text-decoration: none;
color: @mainColor;
}
2019-08-14 22:38:32 +02:00
}
.bouton {
border: 2px solid grey;
padding: 10px;
padding-left: 15px;
padding-right: 15px;
margin: 5px;
display: inline-block;
border-radius: 14px;
text-decoration: none;
&:hover {
2021-04-05 18:32:22 +02:00
color: @mainColor;
border: 2px solid @mainColor;
}
}
2020-08-02 14:15:06 +02:00
.petit-bouton {
border: 2px solid grey;
padding: 2px;
padding-left: 10px;
padding-right: 10px;
margin: 5px;
font-size: 80%;
display: inline-block;
border-radius: 14px;
text-decoration: none;
&:hover {
2021-04-05 18:32:22 +02:00
color: @mainColor;
border: 2px solid @mainColor;
}
}
.logo {
margin-bottom: 10px;
}
2020-08-02 14:15:06 +02:00
img {
height: auto;
max-width: 100%;
2019-12-31 18:43:40 +01:00
}
2020-08-02 14:15:06 +02:00
.imgArticle {
display: block;
margin: auto;
margin-top: 20px;
2021-04-05 18:32:22 +02:00
margin-bottom: 20px;
2021-09-18 19:08:26 +02:00
}
.border {
2021-04-05 18:32:22 +02:00
border-width: 1px;
border-style: solid;
border-radius: 5px;
@media @light {
border-color: @darkColor;
}
@media @dark {
border-color: @lightColor;
}
}
strong {
font-weight: bold;
}
2019-12-31 18:43:40 +01:00
2021-04-05 18:32:22 +02:00
pre, code, var, samp {
font-family: monospace;
overflow: scroll;
padding: 5px;
border-radius: 10px;
font-style: normal;
2021-04-05 18:32:22 +02:00
@media @dark {
background-color: @darkerColor;
}
@media @light {
background-color: @lightlessColor;
}
}
2019-12-31 18:43:40 +01:00
2021-04-05 18:32:22 +02:00
abbr[title] {
text-decoration: dotted underline;
}
2019-10-21 00:50:54 +02:00
address {
font-style: normal;
}
2020-08-02 14:15:06 +02:00
ul {
padding-left: 35px;
margin: 0px;
}
dt {
font-weight: 500;
}
dd {
margin-left: 25px;
padding-bottom: 10px;
}
p {
margin: 0px;
padding-top: 10px;
padding-bottom: 10px;
}
2019-08-14 22:38:32 +02:00
.grille-services {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-gap: 30px;
@media (max-width: 1500px) {
grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 1000px) {
grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
grid-template-columns: 1fr;
}
}
2019-12-31 18:43:40 +01:00
.metaService {
2021-09-18 19:08:26 +02:00
margin: 6px;
margin-bottom: 0px;
2019-12-31 18:43:40 +01:00
}
.metasService {
display: flex;
flex-direction: row;
justify-content: center;
2021-09-18 19:08:26 +02:00
font-size: 0.7em;
2019-12-31 18:43:40 +01:00
}
2019-08-14 22:38:32 +02:00
.logoService {
text-align: center;
}
.elLogoServ {
max-width: 150px;
max-height: 100px;
2019-08-14 22:38:32 +02:00
}
.descService {
padding-top: 5px;
padding-bottom: 10px;
text-align: left;
}
2020-08-23 00:32:57 +02:00
.domService {
2021-04-05 18:32:22 +02:00
font-family: monospace;
2020-08-23 00:32:57 +02:00
overflow-wrap: anywhere;
margin-top: -6px;
font-size: 0.8em;
2021-04-05 18:32:22 +02:00
@media @light {
color: @darkerColor;
}
@media @dark {
color: @lightlessColor;
}
}
.centre {
text-align: center;
justify-content: center;
}
article {
margin-left: 20%;
margin-right: 20%;
@media (max-width: 1400px) {
margin-left: 10%;
margin-right: 10%;
}
@media (max-width: 800px) {
margin-left: 0px;
margin-right: 0px;
}
}
// FOOTER
.textefooter {
2020-08-02 14:15:06 +02:00
margin: 30px;
line-height: 1.5em;
2020-08-02 14:15:06 +02:00
text-align: center;
2019-08-14 22:38:32 +02:00
}
.interlude {
display: flex;
justify-content: center;
}
2020-02-09 14:06:54 +01:00
.traitinterlude > hr {
display: none;
}
.traitinterlude {
border-top: 2px gray dashed;
2020-08-23 00:32:57 +02:00
width: 450px;
2019-08-14 22:38:32 +02:00
}
footer {
2021-04-05 18:32:22 +02:00
text-align: center;
}
footer.antopie {
display: flex;
flex-direction: column;
}
.logofooter {
padding-left: 6%;
margin-top: 20px;
text-align: center;
2019-08-14 22:38:32 +02:00
}
.liensfooter {
display: flex;
flex-direction: row;
padding: 20px;
}
.lienfooter {
margin: 10px;
}
2019-08-14 22:38:32 +02:00
/* ----------------------- HEADER ------------------------ */
#lienHeader {
2019-08-30 19:37:43 +02:00
margin: 0px;
padding: 30px;
padding-bottom: 20px;
margin-left: 35px;
margin-right: 35px;
2019-08-14 22:38:32 +02:00
@media (max-width: 600px) {
padding: 0px;
margin-top: 20px;
margin-left: 20px;
margin-right: 20px;
2019-11-05 23:08:10 +01:00
}
}
2019-08-14 22:38:32 +02:00
header {
display: flex;
justify-content: center;
}
2019-08-14 22:38:32 +02:00
// ----- TITRES -----
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
line-height: 100%;
}
2021-09-18 19:08:26 +02:00
h1:not(.titreService) {
font-size: 250%;
text-align: center;
2020-08-02 14:15:06 +02:00
margin: 0px;
padding-bottom: 20px;
padding-top: 15px;
}
2021-09-18 19:08:26 +02:00
h1.titreService {
font-size: 1.3em;
text-align: center;
margin: 0px;
}
h2 {
2020-08-02 14:15:06 +02:00
font-size: 200%;
margin-top: 50px;
margin-bottom: 20px;
}
h3 {
font-size: 160%;
2020-08-02 14:15:06 +02:00
margin-top: 30px;
margin-bottom: 10px;
}
h4 {
2020-08-02 14:15:06 +02:00
font-size: 130%;
margin-top: 0px;
margin-bottom: 0px;
}
h5 {
2020-08-02 14:15:06 +02:00
font-size: 115%;
}
h6 {
2020-08-02 14:15:06 +02:00
font-size: 107%;
2019-10-21 00:50:54 +02:00
}
2020-08-02 14:15:06 +02:00
@media (max-width: 800px) {
2020-08-02 14:15:06 +02:00
.basfooter {
flex-direction: column;
}
2020-08-02 14:15:06 +02:00
.logofooter {
padding: 0px;
}
}