mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
Fixed multiple issues in admin panel: 1. CSS path: modern-normalize.css → modern-normalize.min.css (File is actually named .min.css) 2. Icon path: assets/icon.svg → /assets/admin_favicon.svg (Was relative, now absolute; correct filename) 3. Navigation: /admin/list.php → /admin/ (list.php was renamed to index.php) 4. Short PHP tags: <? → <?php (Better compatibility, some servers don't enable short_open_tag) 5. Quirks mode warning was due to CSS not loading, not DOCTYPE (DOCTYPE was already present) Files modified: - public/admin/inc/head.php (main fixes) - public/admin/index.php (short tags) - public/admin/add.php (short tags) - public/admin/import.php (short tags) Need to redeploy for production: just deploy
102 lines
1.4 KiB
CSS
102 lines
1.4 KiB
CSS
body {
|
|
margin: 0;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
header {
|
|
height: 20vh;
|
|
}
|
|
main {
|
|
height: 60vh;
|
|
}
|
|
footer {
|
|
height: 20vh;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
header, main, footer {
|
|
padding: 1rem;
|
|
margin: 0;
|
|
border-radius: 40px;
|
|
}
|
|
|
|
header {
|
|
font-family: "police1";
|
|
background: #9557b5ff;
|
|
color: white;
|
|
font-size: 2rem;
|
|
display: flex;
|
|
gap: 6%;
|
|
padding: 1rem 4rem;
|
|
.title {
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
header section p:not(:first-child) {
|
|
font-size: 14px;
|
|
}
|
|
|
|
header .title, header section, header nav {
|
|
text-decoration: none;
|
|
outline: none;
|
|
font-size: 18px;
|
|
text-decoration: none;
|
|
line-height: 2.5rem;
|
|
}
|
|
main {
|
|
height: 60vh;
|
|
|
|
display: grid;
|
|
grid-template-rows: repeat(2, minmax(0, 1fr));
|
|
grid-auto-flow: column;
|
|
|
|
/* critical: force column width so new columns form */
|
|
grid-auto-columns: 260px;
|
|
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
box-sizing: border-box;
|
|
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
.card {
|
|
background: #eee;
|
|
border-radius: 10px;
|
|
padding: 1rem;
|
|
}
|
|
|
|
main {
|
|
background: #3c856bff;
|
|
}
|
|
|
|
footer {
|
|
background: #222222ff;
|
|
}
|
|
|
|
/* .card { */
|
|
/* width: 20%; */
|
|
/* border: 1px solid white; */
|
|
/* color: white; */
|
|
/* margin: 1ch; */
|
|
/* padding: 2ch; */
|
|
/* } */
|
|
main {
|
|
scroll-snap-type: x mandatory;
|
|
}
|
|
|
|
.card {
|
|
scroll-snap-align: start;
|
|
}
|
|
.item {
|
|
width: 50%;
|
|
}
|