flex
This commit is contained in:
parent
88228aedae
commit
e74d49e34c
@ -1,18 +1,20 @@
|
|||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
<html lang='fr'>
|
<html lang='fr'>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Schémas des VLANs</title>
|
<title>Schémas des VLANs</title>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
|
||||||
<h1>Schémas des VLANs</h1>
|
<h1>Schémas des VLANs</h1>
|
||||||
<div class="file-list">
|
<div class="file-list">
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
$basedir = __DIR__ . "/confs";
|
$basedir = __DIR__ . "/confs";
|
||||||
|
|
||||||
function recursive_ls($path) {
|
function recursive_ls($path)
|
||||||
|
{
|
||||||
global $basedir;
|
global $basedir;
|
||||||
|
|
||||||
if (substr(basename($path), 0, 1) == '.') {
|
if (substr(basename($path), 0, 1) == '.') {
|
||||||
@ -46,6 +48,6 @@
|
|||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
4
show.php
4
show.php
@ -46,7 +46,6 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
|
||||||
<header>
|
<header>
|
||||||
<h1>
|
<h1>
|
||||||
<div><?= $sysname[1] ?? "Switch sans nom" ?></div>
|
<div><?= $sysname[1] ?? "Switch sans nom" ?></div>
|
||||||
@ -117,12 +116,11 @@
|
|||||||
</main>
|
</main>
|
||||||
<footer>
|
<footer>
|
||||||
<label id="colorSliderLabel" for="colorSlider" class="no-print">Changer les couleurs</label>
|
<label id="colorSliderLabel" for="colorSlider" class="no-print">Changer les couleurs</label>
|
||||||
<input id="colorSlider" type="range" min="0" max="360" step="0.000000001" value="15"
|
<input id="colorSlider" type="range" min="0" max="360" step="0.000000001" value="58.3"
|
||||||
oninput="document.documentElement.style.setProperty('--hue', this.value);" class="no-print" />
|
oninput="document.documentElement.style.setProperty('--hue', this.value);" class="no-print" />
|
||||||
<a href="<?= str_replace(__DIR__ . "/", "", $path) ?>" target="_blank" class="link no-print">Télécharger la configuration</a>
|
<a href="<?= str_replace(__DIR__ . "/", "", $path) ?>" target="_blank" class="link no-print">Télécharger la configuration</a>
|
||||||
<a href="index.php" class="link no-print">← Retour à la liste</a>
|
<a href="index.php" class="link no-print">← Retour à la liste</a>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
32
style.css
32
style.css
@ -1,5 +1,5 @@
|
|||||||
:root {
|
:root {
|
||||||
--hue: 15;
|
--hue: 58.3;
|
||||||
--saturation: 80%;
|
--saturation: 80%;
|
||||||
--lightness: 65%;
|
--lightness: 65%;
|
||||||
}
|
}
|
||||||
@ -8,21 +8,19 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
overflow: visible !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 2rem auto;
|
||||||
|
padding: 0 1rem;
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
|
||||||
max-width: 1200px;
|
|
||||||
margin: 2rem auto;
|
|
||||||
padding: 0 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
@ -97,8 +95,11 @@ h2 {
|
|||||||
main {
|
main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: wrap;
|
flex-flow: wrap;
|
||||||
gap: 1rem;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
row-gap: 1rem;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
@ -109,10 +110,6 @@ details {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
main > table {
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
td {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@ -151,7 +148,6 @@ td {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
min-width: 2em;
|
min-width: 2em;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
mix-blend-mode: darken;
|
|
||||||
cursor: help;
|
cursor: help;
|
||||||
transition: 0.2s background-color;
|
transition: 0.2s background-color;
|
||||||
border: 2px inset #476079;
|
border: 2px inset #476079;
|
||||||
@ -223,7 +219,6 @@ td {
|
|||||||
|
|
||||||
.poe::before {
|
.poe::before {
|
||||||
content: "⚡";
|
content: "⚡";
|
||||||
font-size: 0.7em;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -0.5em;
|
top: -0.5em;
|
||||||
right: -0.5em;
|
right: -0.5em;
|
||||||
@ -231,10 +226,9 @@ td {
|
|||||||
|
|
||||||
.voice_vlan::after {
|
.voice_vlan::after {
|
||||||
content: "📞";
|
content: "📞";
|
||||||
font-size: 0.7em;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -0.5em;
|
bottom: -0.4em;
|
||||||
left: -0.5em;
|
left: -0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.legend {
|
.legend {
|
||||||
@ -256,10 +250,6 @@ footer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
* {
|
|
||||||
overflow: visible !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.no-print {
|
.no-print {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user