Update 13 files
- /html/src/css/style.css - /html/admin.php - /html/compte.php - /html/editpage.php - /html/index.php - /html/login.php - /html/news.php - /html/register.php - /html/upload.php - /html/users.php - /html/about.php - /include/functions.php - /config/global.ini
This commit is contained in:
parent
a48b868c69
commit
30e7b2cf48
@ -27,5 +27,5 @@ A propos = "about.php"
|
||||
3 = "Directeur"
|
||||
|
||||
[themes]
|
||||
0 = 'dark'
|
||||
1 = 'light'
|
||||
0 = '--hue: 0; --saturation: 0%'
|
||||
1 = '--hue: 60; --saturation: 80%'
|
@ -9,10 +9,11 @@ require "../include/functions.php";
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="./src/css/style.css">
|
||||
<style>.body {<?=$theme?>}</style>
|
||||
<link rel="icon" href="src/img/favicon.ico">
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -18,7 +18,7 @@ if($_SESSION['role'] < 3) {
|
||||
<link rel="icon" href="src/img/favicon.ico">
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -31,7 +31,7 @@ if(isset($_POST['delete_account'])) {
|
||||
<link rel="icon" href="src/img/favicon.ico">
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -70,7 +70,7 @@ if(isset($fichier)) {
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -12,7 +12,7 @@ require "../include/functions.php";
|
||||
<link rel="icon" href="src/img/favicon.ico">
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -43,7 +43,7 @@ if(isset($_POST['username']) && isset($_POST['password'])) {
|
||||
<link rel="icon" href="src/img/favicon.ico">
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -17,7 +17,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
||||
<link rel="icon" href="src/img/favicon.ico">
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -43,7 +43,7 @@ if(isset($_POST['username']) && isset($_POST['password']) && isset($_POST['passw
|
||||
<link rel="icon" href="src/img/favicon.ico">
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -1,28 +1,28 @@
|
||||
:root {
|
||||
--text: #000000;
|
||||
--background: hsl(0, 0%, 100%);
|
||||
--dark-background: hsl(0, 0%, 100%);
|
||||
--darker-background: hsl(0, 0%, 100%);
|
||||
--article-background: hsl(0, 0%, 100%);
|
||||
--article-text: hsl(0, 0%, 0%);
|
||||
--saturation: 0%;
|
||||
--hue: 0;
|
||||
}
|
||||
|
||||
.light {
|
||||
--text: #373737;
|
||||
--background: hsl(0, 0%, 100%);
|
||||
--dark-background: hsl(0, 0%, 100%);
|
||||
--darker-background: hsl(0, 0%, 100%);
|
||||
--article-background: hsl(0, 0%, 100%);
|
||||
--article-text: hsl(0, 0%, 0%);
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.body {
|
||||
--text: hsl(var(--hue), var(--saturation), 80%);
|
||||
--background: hsl(var(--hue), var(--saturation), 15%);
|
||||
--dark-background: hsl(var(--hue), var(--saturation), 10%);
|
||||
--darker-background: hsl(var(--hue), var(--saturation), 5%);
|
||||
--article-background: hsl(var(--hue), var(--saturation), 15%);
|
||||
--article-text: hsl(var(--hue), var(--saturation), 100%);
|
||||
}
|
||||
}
|
||||
|
||||
.dark {
|
||||
--text: #b3b3b3;
|
||||
--background: hsl(0, 0%, 15%);
|
||||
--dark-background: hsl(0, 0%, 10%);
|
||||
--darker-background: hsl(0, 0%, 5%);
|
||||
--article-background: hsl(0, 0%, 15%);
|
||||
--article-text: hsl(0, 0%, 100%);
|
||||
@media (prefers-color-scheme: light) {
|
||||
.body {
|
||||
--text: hsl(var(--hue), var(--saturation), 20%);
|
||||
--background: hsl(var(--hue), var(--saturation), 100%);
|
||||
--dark-background: hsl(var(--hue), var(--saturation), 100%);
|
||||
--darker-background: hsl(var(--hue), var(--saturation), 100%);
|
||||
--article-background: hsl(var(--hue), var(--saturation), 100%);
|
||||
--article-text: hsl(var(--hue), var(--saturation), 0%);
|
||||
}
|
||||
}
|
||||
|
||||
@font-face {
|
||||
|
@ -47,7 +47,7 @@ if(isset($_POST['page-content'])) {
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -32,7 +32,7 @@ if(isset($_POST['userid']) && isset($_POST['role']) && isset($_POST['accreditati
|
||||
<link rel="icon" href="src/img/favicon.ico">
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body class='<?=$_SESSION['theme']?>'>
|
||||
<body class="body">
|
||||
<header>
|
||||
<div class="pancontent">
|
||||
<div class="athena-container">
|
||||
|
@ -9,13 +9,8 @@ if(!isset($_SESSION['role'])) {
|
||||
$_SESSION['role'] = 0;
|
||||
}
|
||||
|
||||
if(!isset($_SESSION['theme'])) {
|
||||
$_SESSION['theme'] = $themes[0];
|
||||
}
|
||||
$theme = isset($_GET['theme']) ? $themes[$_GET['theme']] : $themes[0];
|
||||
|
||||
if(isset($_GET['theme'])) {
|
||||
$_SESSION['theme'] = $themes[(int)$_GET['theme'] % 2];
|
||||
}
|
||||
|
||||
function nav($nav) {
|
||||
foreach($nav as $name => $url) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user