377 lines
7.2 KiB
CSS
377 lines
7.2 KiB
CSS
:root {
|
|
--gMainColor: 0, 99, 155;
|
|
--gSecondColor: 7, 220, 98;
|
|
--gTextColor: 0, 0, 0;
|
|
}
|
|
|
|
.informations {
|
|
margin-top : 0.5em;
|
|
}
|
|
|
|
.informations dt::after {
|
|
content: ' :';
|
|
}
|
|
|
|
.informations dl.describe {
|
|
border: 0px;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.informations dl.describe > dt {
|
|
float: left;
|
|
clear: left;
|
|
width: 200px;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
color: green;
|
|
}
|
|
|
|
.informations dl.describe > dd {
|
|
margin: 0 0 0 110px;
|
|
padding: 0 0 0.5em 0;;
|
|
}
|
|
|
|
.nombre {
|
|
text-align: right !important;
|
|
}
|
|
|
|
.resaactionbutton {
|
|
z-index: 1;
|
|
position: absolute;
|
|
top: 15%;
|
|
right: 05%;
|
|
}
|
|
|
|
/* Image style leboncoin */
|
|
figure.leboncoin {
|
|
border: thin silver solid;
|
|
display: flex;
|
|
flex-flow: column;
|
|
padding: 5px;
|
|
max-width: 170px;
|
|
height: 261px;
|
|
margin: auto;
|
|
}
|
|
|
|
img.leboncoin {
|
|
max-width: 150px;
|
|
max-height: 150px;
|
|
}
|
|
|
|
figcaption.leboncoin {
|
|
background-color: #dce7dc;
|
|
color: white;
|
|
font: italic smaller sans-serif;
|
|
padding: 3px;
|
|
text-align: center;
|
|
height: 179px;
|
|
}
|
|
|
|
/** Image vignette */
|
|
|
|
/* Styles par défaut (mobile first) */
|
|
.imagemateriel {
|
|
display: block;
|
|
object-fit: cover;
|
|
width: 100%; /* L'image prendra 100% de la largeur de son conteneur */
|
|
height: auto; /* Maintient le ratio */
|
|
max-width: 250px;
|
|
max-height: 150px;
|
|
}
|
|
/* Pour les écrans de plus de 768px (tablettes/ordinateurs) */
|
|
@media (min-width: 768px) {
|
|
.imagemateriel {
|
|
display: block;
|
|
object-fit: cover;
|
|
width: 100%; /* L'image prendra 100% de la largeur de son conteneur */
|
|
height: auto; /* Maintient le ratio */
|
|
max-width: 670px;
|
|
max-height: 150px;
|
|
}
|
|
}
|
|
|
|
/* Datepicker */
|
|
dialog.datepicker {
|
|
user-select: none;
|
|
position: absolute;
|
|
left: 0;
|
|
padding: .3rem;
|
|
border: none;
|
|
box-shadow: 0 0 5px #000;
|
|
border-radius: .5rem;
|
|
z-index: 1000;
|
|
}
|
|
|
|
/* Bouton Link */
|
|
nav.tabs aside {
|
|
float: right;
|
|
max-width: 50%;
|
|
text-align: right;
|
|
clear: right;
|
|
margin-top: .5em;
|
|
}
|
|
|
|
.main.icn-btn {
|
|
padding: 13px 20px;
|
|
display: inline-block;
|
|
}
|
|
.icn-btn {
|
|
appearance: none;
|
|
backface-visibility: hidden;
|
|
background-color: rgba(255, 255, 255, 0.7);
|
|
border-radius: 5px;
|
|
border-style: none;
|
|
box-shadow: rgb(0, 148, 133) 0 4px 9px;
|
|
box-sizing: border-box;
|
|
color: #4cb130;
|
|
cursor: pointer;
|
|
font-family: Inter,-apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
letter-spacing: normal;
|
|
line-height: 1.5;
|
|
outline: none;
|
|
overflow: hidden;
|
|
position: relative;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
transform: translate3d(0, 0, 0);
|
|
transition: all .3s;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
touch-action: manipulation;
|
|
vertical-align: top;
|
|
white-space: nowrap;
|
|
|
|
a:visited {
|
|
color: black;
|
|
}
|
|
}
|
|
|
|
.icn-btn:hover {
|
|
background-color: #1e8449;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
transition-duration: .35s;
|
|
}
|
|
|
|
.icn-btn:active {
|
|
transform: translateY(2px);
|
|
transition-duration: .35s;
|
|
}
|
|
|
|
.icn-btn:hover {
|
|
color: #dfadad;
|
|
box-shadow: rgba(39, 174, 96, .2) 0 6px 12px;
|
|
}
|
|
|
|
/* Datepicker button (.main[data-icon]:after, [data-icon].right:after) */
|
|
.datepicker.icn-btn[data-icon]:before {
|
|
display: inline-block;
|
|
font-family: "paheko", sans-serif;
|
|
text-shadow: 1px 1px 1px var(--gLightBorderColor);
|
|
font-size: 1.2em;
|
|
line-height: .8em;
|
|
vertical-align: middle;
|
|
content: attr(data-icon);
|
|
font-weight: normal;
|
|
text-decoration: none;
|
|
}
|
|
|
|
|
|
/** Table.list */
|
|
|
|
.list{width:100%;border-collapse:collapse}
|
|
.list td,.list th {padding:12px 15px;border:1px solid #ddd;text-align:center;font-size:16px}
|
|
.list th {background-color:rgba(var(--gSecondColor), 0.5); color:rgb(var(--gTextColor));}
|
|
.list tbody tr:nth-child(even) {background-color:rgba(var(--gSecondColor), 0.2);}
|
|
@media (max-width:768px){
|
|
.list thead {display:none}
|
|
.list,.list tbody,.list tr, .list td {display:block;width:100%}
|
|
.list tr {margin-bottom:15px}
|
|
.list td {padding-left:50%;text-align:left; position:relative}
|
|
.list td::before{content:attr(data-label); position:absolute;left:0;width:50%;padding-left:15px;font-size:15px;font-weight:bold;text-align:left}
|
|
}
|
|
|
|
/** Table Pagination */
|
|
.pagination {
|
|
clear: both;
|
|
list-style-type: none;
|
|
padding: 0.4em 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.pagination li {
|
|
display: inline-block;
|
|
margin: 0 0.3em;
|
|
}
|
|
|
|
.pagination li.current {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.pagination li a {
|
|
color: rgb(var(--gTextColor));
|
|
}
|
|
|
|
.pagination li button {
|
|
color: rgb(var(--gTextColor));
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
box-shadow: none;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/** Calendar */
|
|
|
|
/* Base mobile styles (no media query needed) */
|
|
#calendar {
|
|
display: none; /* Utiliser !important peut être nécessaire ici */
|
|
}
|
|
#calendar_light {
|
|
display: block;
|
|
}
|
|
|
|
/* Tablet and up */
|
|
@media screen and (min-width: 768px) {
|
|
#calendar {
|
|
display: block;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
|
|
font-size: 14px;
|
|
max-width: 800px;
|
|
margin: 10px auto;
|
|
}
|
|
|
|
#calendar_light {
|
|
display: none;
|
|
}
|
|
}
|
|
/* Desktop and up
|
|
@media screen and (min-width: 1024px) {
|
|
|
|
}*/
|
|
|
|
/** Dropdown NEW */
|
|
/**
|
|
* Dropdown, eg. interactive <select>
|
|
*/
|
|
nav.dropdown {
|
|
position: relative;
|
|
height: 2.3rem;
|
|
width: 20em;
|
|
border: 1px solid rgb(var(--gMainColor));
|
|
border-radius: .25rem;
|
|
z-index: 100;
|
|
}
|
|
|
|
nav.dropdown ul {
|
|
background-color: rgb(var(--gBgColor));
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
position: absolute;
|
|
border-radius: .5em;
|
|
}
|
|
|
|
nav.dropdown ul::after {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1.5em;
|
|
height: 1.5em;
|
|
font-size: 1.5em;
|
|
content: "↓";
|
|
font-family: "paheko";
|
|
cursor: pointer;
|
|
}
|
|
|
|
nav.dropdown li {
|
|
display: none;
|
|
}
|
|
|
|
html.js nav.dropdown:not(.open) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
nav.dropdown li.selected, html.nojs nav.dropdown:hover li, nav.dropdown.open li {
|
|
display: block;
|
|
}
|
|
|
|
html.js nav.dropdown:not(.open) li a {
|
|
pointer-events: none;
|
|
}
|
|
|
|
nav.dropdown li > a {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
padding: .4rem .6rem;
|
|
text-decoration: none;
|
|
height: 1.5em;
|
|
color: unset;
|
|
cursor: pointer;
|
|
}
|
|
|
|
nav.dropdown li a strong {
|
|
font-weight: normal;
|
|
text-align: left;
|
|
margin-right: auto;
|
|
}
|
|
|
|
nav.dropdown li a small {
|
|
color: var(--gBorderColor);
|
|
text-align: right;
|
|
white-space: pre;
|
|
}
|
|
|
|
nav.dropdown li.label {
|
|
display: none;
|
|
}
|
|
|
|
nav.dropdown.open {
|
|
border-color: transparent;
|
|
}
|
|
|
|
nav.dropdown.open li:nth-child(even) a {
|
|
background: rgba(var(--gSecondColor), 0.2);
|
|
}
|
|
|
|
nav.dropdown.open ul {
|
|
box-shadow: 0 0 5px .2rem rgba(var(--gMainColor), 0.5);
|
|
border-radius: .25rem;
|
|
}
|
|
|
|
nav.dropdown.open .selected a {
|
|
box-shadow: 0 0 5px .2rem rgba(var(--gMainColor), 0.5);
|
|
color: rgb(var(--gHoverLinkColor));
|
|
}
|
|
|
|
nav.dropdown.open li a strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
nav.dropdown.open li a:hover {
|
|
background: rgba(var(--gMainColor), 0.2);
|
|
}
|
|
|
|
nav.dropdown li a > span {
|
|
width: 2em;
|
|
text-align: center;
|
|
}
|
|
|
|
@media handheld, screen and (max-width:981px) {
|
|
nav.dropdown.open li.default {
|
|
display: block;
|
|
}
|
|
|
|
nav.home ul {
|
|
justify-content: center;
|
|
}
|
|
} |