This commit is contained in:
2026-07-19 18:27:27 +08:00
parent fe4b286ce1
commit 0febcf69f4
170 changed files with 19490 additions and 11878 deletions
-3
View File
@@ -1,3 +0,0 @@
<?php
// Empty placeholder: presence prevents directory listing under Apache
// when no DirectoryIndex match is found in this folder.
+618 -140
View File
@@ -1,151 +1,584 @@
<?php
/**
* Themed dashboard stylesheet — narrow / mobile layout.
*
* Emits CSS to the browser with a `Content-type: text/css` header. Theme
* colours and table-row backgrounds are loaded from `/etc/pistar-css.ini`
* (an INI written by admin/expert/edit_dashboard.php) when that file
* exists, otherwise we fall back to the built-in palette below.
*
* Mobile counterpart of pistar-css.php — config/browserdetect.php picks
* which one to load based on the viewport / User-Agent. The PHP header
* (theme variable load) is identical across the two files; the CSS body
* differs in layout sizing.
*
* Do NOT edit this file by hand — operator-overridable colours live in
* /etc/pistar-css.ini via the expert dashboard editor. Hand edits will
* be overwritten on the next configuration save.
*
* Note: existing variable names like $bannerDropShaddows / $tableHeadDropShaddow
* preserve a long-standing typo ("Shaddow" should be "Shadow", "Headder"
* should be "Header"). Renaming them would break the CSS body below
* which references them by name; keep as-is for compatibility.
*/
// Do not edit this file, instead use the new dashboard editor in the expert section.
// New CSS Overlay for Pi-Star, to allow setting the variables from outside this file.
// Output CSS, not the default text/html.
header('Content-type: text/css');
// Output CSS and not plain text
header("Content-type: text/css");
// Check if the config file exists
if (file_exists('/etc/pistar-css.ini')) {
// Load the operator's theme overrides.
// Use the values from the file
$piStarCssFile = '/etc/pistar-css.ini';
if (fopen($piStarCssFile, 'r')) {
$piStarCss = parse_ini_file($piStarCssFile, true);
}
if (fopen($piStarCssFile,'r')) { $piStarCss = parse_ini_file($piStarCssFile, true); }
// Set the Values from the config file
$backgroundPage = $piStarCss['Background']['Page']; // usually off-white
$backgroundContent = $piStarCss['Background']['Content']; // The White background in the content section
$backgroundBanners = $piStarCss['Background']['Banners']; // The Pi-Star accent colour
$textBanners = $piStarCss['Text']['Banners']; // Usually white
$bannerDropShaddows = $piStarCss['Text']['BannersDrop']; // Banner drop shaddow colour
$tableHeadDropShaddow = $piStarCss['Tables']['HeadDrop']; // Table Headder drop shaddows
$textContent = $piStarCss['Content']['Text']; // Used for the section titles
$tableRowEvenBg = $piStarCss['Tables']['BgEven']; // Table Row BG Colour (Even)
$tableRowOddBg = $piStarCss['Tables']['BgOdd']; // Table Row BG Colour (Odd)
// Map parsed INI values onto the variables the CSS body interpolates.
$backgroundPage = $piStarCss['Background']['Page']; // page background (usually off-white)
$backgroundContent = $piStarCss['Background']['Content']; // white background in the content section
$backgroundBanners = $piStarCss['Background']['Banners']; // the ubiquitous Pi-Star red
$textBanners = $piStarCss['Text']['Banners']; // usually white
$bannerDropShaddows = $piStarCss['Text']['BannersDrop']; // banner drop-shadow colour
$tableHeadDropShaddow = $piStarCss['Tables']['HeadDrop']; // table-header drop-shadow colour
$textContent = $piStarCss['Content']['Text']; // section title colour
$tableRowEvenBg = $piStarCss['Tables']['BgEven']; // table row background (even)
$tableRowOddBg = $piStarCss['Tables']['BgOdd']; // table row background (odd)
} else {
// Fallback palette used when /etc/pistar-css.ini is absent.
$backgroundPage = 'edf0f5'; // page background (usually off-white)
$backgroundContent = 'ffffff'; // white background in the content section
$backgroundBanners = 'dd4b39'; // the ubiquitous Pi-Star red
$textBanners = 'ffffff'; // usually white
$bannerDropShaddows = '303030'; // banner drop-shadow colour
$tableHeadDropShaddow = '8b0000'; // table-header drop-shadow colour
$textContent = '000000'; // section title colour
$tableRowEvenBg = 'f7f7f7'; // table row background (even)
$tableRowOddBg = 'd0d0d0'; // table row background (odd)
// Default values - refreshed neutral/indigo theme (was the red Pi-Star theme)
$backgroundPage = "f3f4f8"; // soft neutral page background
$backgroundContent = "ffffff"; // The White background in the content section
$backgroundBanners = "4f46e5"; // Accent colour (was the red dd4b39)
$textBanners = "ffffff"; // Usually white
$bannerDropShaddows = "1e1b4b"; // Banner drop shaddow colour
$tableHeadDropShaddow = "3730a3"; // Table Headder drop shaddows
$textContent = "111827"; // Used for the section titles
$tableRowEvenBg = "f8fafc"; // Table Row BG Colour (Even)
$tableRowOddBg = "eef0f5"; // Table Row BG Colour (Odd)
}
// Purely cosmetic helper: derives lighter/darker shades of the configured accent
// colour for gradients/hover states. Does not change any stored configuration.
if (!function_exists('pistarShade')) {
function pistarShade($hex, $amount) {
$hex = ltrim(trim($hex), '#');
if (strlen($hex) == 3) { $hex = $hex[0].$hex[0].$hex[1].$hex[1].$hex[2].$hex[2]; }
if (strlen($hex) != 6 || !ctype_xdigit($hex)) { return $hex; }
$r = max(0, min(255, hexdec(substr($hex,0,2)) + $amount));
$g = max(0, min(255, hexdec(substr($hex,2,2)) + $amount));
$b = max(0, min(255, hexdec(substr($hex,4,2)) + $amount));
return sprintf('%02x%02x%02x', $r, $g, $b);
}
}
$backgroundBannersDark = pistarShade($backgroundBanners, -28);
$backgroundBannersLight = pistarShade($backgroundBanners, 20);
?>
:root {
--page-bg: #<?php echo $backgroundPage; ?>;
--content-bg: #<?php echo $backgroundContent; ?>;
--accent: #<?php echo $backgroundBanners; ?>;
--accent-dark: #<?php echo $backgroundBannersDark; ?>;
--accent-light: #<?php echo $backgroundBannersLight; ?>;
--accent-text: #<?php echo $textBanners; ?>;
--banner-drop: #<?php echo $bannerDropShaddows; ?>;
--table-head-drop: #<?php echo $tableHeadDropShaddow; ?>;
--content-text: #<?php echo $textContent; ?>;
--table-even: #<?php echo $tableRowEvenBg; ?>;
--table-odd: #<?php echo $tableRowOddBg; ?>;
--sidebar-bg: #111827;
--sidebar-bg-2: #0b1120;
--sidebar-text: #cbd5e1;
--sidebar-text-dim: #94a3b8;
--sidebar-card-bg: rgba(255,255,255,0.05);
--sidebar-card-strong-bg: rgba(255,255,255,0.09);
--radius: 12px;
--radius-sm: 8px;
--card-border: rgba(15,23,42,0.07);
--shadow-card: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px -14px rgba(15,23,42,0.16);
}
html, body {
margin: 0;
padding: 0;
}
/* Small screens: the rail collapses into a top bar (no fixed sidebar) */
.container {
width: 100%;
text-align: left;
margin: auto;
background : #<?php echo $backgroundContent; ?>;
border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
-khtml-border-radius: 10px 10px 10px 10px;
-ms-border-radius: 10px 10px 10px 10px;
box-shadow: 3px 3px 3px #707070;
background: var(--page-bg);
border-radius: 0;
box-shadow: none;
overflow: visible;
}
body, font {
font: 12px verdana,arial,sans-serif;
font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: #ffffff;
}
.header {
background : #<?php echo $backgroundBanners; ?>;
text-decoration : none;
color : #<?php echo $textBanners; ?>;
font-family : verdana, arial, sans-serif;
text-align : left;
padding : 5px 0px 5px 0px;
border-radius: 10px 10px 0 0;
-moz-border-radius: 10px 10px 0px 0px;
-webkit-border-radius: 10px 10px 0px 0px;
-khtml-border-radius: 10px 10px 0px 0px;
-ms-border-radius: 10px 10px 0px 0px;
}
position: static;
width: auto;
background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
color: var(--sidebar-text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
text-align: left;
padding: 16px 14px;
box-sizing: border-box;
}
.header h1 {
font-size: 1.05em;
line-height: 1.3;
color: #ffffff;
text-shadow: none;
text-align: left;
margin: 0 0 4px 0;
padding: 0;
font-weight: 700;
}
.header > div[style*="font-size: 8px"] {
float: none !important;
text-align: left !important;
color: var(--sidebar-text-dim) !important;
font-size: 10.5px !important;
padding: 0 !important;
margin: 0 0 10px 0;
}
.header p {
font-size: 0;
margin: 6px 0;
padding: 0;
text-align: left !important;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 2px;
}
.header p a, .header p a:link, .header p a:visited {
display: inline-block;
font-size: 13px;
font-weight: 500;
color: var(--sidebar-text) !important;
padding: 8px 10px;
border-radius: 8px;
transition: background 0.15s ease, color 0.15s ease;
}
.header p a:hover {
background: rgba(255,255,255,0.08);
color: #ffffff !important;
}
.header p a.active {
background: var(--accent);
color: var(--accent-text) !important;
font-weight: 700;
}
.header p b {
font-size: 11px;
color: var(--sidebar-text-dim);
display: block;
width: 100%;
margin: 8px 0 2px 2px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* On narrow screens the widgets no longer live in a side column - they
become a full-width panel stacked under the top bar, laid out as a
two-column grid of compact status chips instead of skinny stacked rows. */
.nav {
display: none;
float : left;
margin : 0;
padding : 3px 3px 3px 3px;
width : 160px;
background : #242d31;
font-weight : normal;
min-height : 100%;
display: block;
float: none;
box-sizing: border-box;
margin: 0;
padding: 14px;
width: 100%;
background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
font-weight: normal;
min-height: 0;
}
.nav table {
width: 100%;
margin: 0 0 12px 0;
border-collapse: separate;
border-spacing: 4px;
table-layout: fixed;
white-space: normal;
}
.nav table th[colspan] {
background: transparent;
color: var(--sidebar-text-dim);
text-align: left;
text-transform: uppercase;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.06em;
padding: 10px 2px 6px 2px;
border: none;
}
.nav table:first-child th[colspan] {
padding-top: 0;
}
.nav table th:not([colspan]) {
background: var(--sidebar-card-bg);
color: var(--sidebar-text-dim);
text-align: left;
font-size: 10.5px;
font-weight: 700;
padding: 7px 8px;
border: none;
border-radius: var(--radius-sm);
width: 30%;
}
.nav table td {
color: var(--sidebar-text);
background: var(--sidebar-card-bg);
font-size: 11px;
font-weight: 600;
padding: 7px 8px;
border: none;
border-radius: var(--radius-sm);
}
.nav table td[style*="fff"] {
background: var(--sidebar-card-strong-bg) !important;
color: var(--sidebar-text) !important;
}
.nav table tr:nth-child(even),
.nav table tr:nth-child(odd) {
background: transparent;
}
.nav table a { color: #ffffff; font-weight: 700; }
#lastHerd, #localTxs, #Pages, #sysInfo,
#refLinks, #cssConnects, #lh, #localTx, #bmConnects, #tgifConnects {
margin: 14px;
background: var(--content-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
box-shadow: var(--shadow-card);
padding: 14px 14px 18px 14px;
box-sizing: border-box;
overflow-x: auto;
}
#lastHerd > b, #localTxs > b, #Pages > b, #sysInfo > b,
#refLinks > b, #cssConnects > b, #lh > b, #localTx > b, #bmConnects > b, #tgifConnects > b {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 700;
color: var(--content-text);
margin: 0 0 12px 0;
padding-bottom: 10px;
border-bottom: 1px solid var(--card-border);
}
#lastHerd > b::before, #localTxs > b::before, #Pages > b::before, #sysInfo > b::before,
#refLinks > b::before, #cssConnects > b::before, #lh > b::before, #localTx > b::before, #bmConnects > b::before, #tgifConnects > b::before {
content: "";
width: 8px;
height: 8px;
border-radius: 2px;
background: var(--accent);
flex: none;
}
.content {
padding : 5px 5px 5px 5px;
color : #<?php echo $textContent; ?>;
background : #<?php echo $backgroundContent; ?>;
text-align: center;
padding: 6px 0 5px 0;
color: var(--content-text);
background: var(--page-bg);
text-align: left;
font-size: 1.4em;
}
.contentwide {
padding: 5px 5px 5px 5px;
color: #<?php echo $textContent; ?>;
background: #<?php echo $backgroundContent; ?>;
padding: 16px;
color: var(--content-text);
background: var(--page-bg);
text-align: center;
font-size: 1.4em;
}
.contentwide h2 {
color: #<?php echo $textContent; ?>;
font: 1em verdana,arial,sans-serif;
text-align: center;
font-weight: bold;
padding: 0px;
margin: 0px;
color: var(--content-text);
font: 600 1em -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
text-align: left;
padding: 0 0 8px 10px;
margin: 24px 0 10px 0;
border-left: 4px solid var(--accent);
border-bottom: 1px solid rgba(0,0,0,0.08);
}
.contentwide h2:first-child {
margin-top: 0;
}
/* Inline "Alert: ..." banners used across the dashboard (config warnings etc.) */
.alert-banner-table {
margin: 0 0 16px 0 !important;
width: 100% !important;
}
.alert-banner-table, .alert-banner-table tr {
background: transparent !important;
}
.alert-cell {
text-align: left !important;
border-radius: 8px;
padding: 12px 16px !important;
font-weight: 500;
border: 1px solid transparent;
}
.alert-warning {
background: #fffbeb;
color: #92400e;
border-color: #fde68a;
}
.alert-danger {
background: #fef2f2;
color: #b91c1c;
border-color: #fecaca;
}
.alert-warning a, .alert-danger a {
color: inherit;
text-decoration: underline;
}
/* Settings-card system (mirrors pistar-css.php) - this was missing from the
mobile stylesheet entirely, so every config/editor page rendered as
unstyled plain divs below the 830px breakpoint. Rows stack by default
here since there's no room for the desktop's label+control row. */
.settings-card {
background: var(--content-bg);
border: 1px solid rgba(0,0,0,0.08);
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
padding: 4px 16px;
margin: 0 0 20px 0;
text-align: left;
}
.settings-card > b:first-child {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 700;
color: var(--content-text);
margin: 14px 0 12px 0;
padding-bottom: 10px;
border-bottom: 1px solid var(--card-border);
}
.settings-card > b:first-child::before {
content: "";
width: 8px;
height: 8px;
border-radius: 2px;
background: var(--accent);
flex: none;
}
.field-row {
display: flex;
flex-direction: column;
align-items: flex-start;
row-gap: 6px;
padding: 12px 0;
border-bottom: 1px solid rgba(0,0,0,0.06);
}
.field-row:last-child {
border-bottom: none;
}
.field-label, .field-row > div:first-child {
flex: 0 0 auto;
max-width: none;
font-weight: 500;
font-size: 13px;
color: var(--content-text);
text-align: left;
}
.field-control, .field-row > div:not(:first-child) {
flex: 1 1 auto;
width: 100%;
box-sizing: border-box;
text-align: left;
color: var(--content-text);
font-size: 13px;
}
.field-control input[type="text"], .field-control input[type="password"], .field-control input[type="number"],
.field-row input[type="text"], .field-row input[type="password"], .field-row input[type="number"] {
width: 100%;
box-sizing: border-box;
padding: 6px 8px;
border: 1px solid rgba(0,0,0,0.18);
}
.field-control select, .field-row select {
max-width: 100%;
padding: 5px 6px;
border: 1px solid rgba(0,0,0,0.18);
}
.field-note {
font-weight: 400;
font-size: 12.5px;
color: #6b7280;
}
/* Big icon action buttons (power page, reboot/shutdown) */
.action-tiles {
display: flex;
flex-wrap: wrap;
gap: 12px;
padding: 14px;
}
.action-tile {
flex: 1 1 45%;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 18px 12px;
background: var(--page-bg);
border: 1px solid rgba(0,0,0,0.08);
border-radius: 10px;
cursor: pointer;
font: 500 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: var(--content-text);
}
.action-tile img {
width: 40px;
height: 40px;
}
.action-tile-upload {
cursor: default;
}
.action-tile-upload input[type="file"] {
max-width: 100%;
font-size: 11px;
}
/* Calibration tool control panels */
.cal-grid {
display: flex;
flex-wrap: wrap;
gap: 14px;
align-items: flex-start;
}
.cal-panel {
flex: 1 1 100%;
margin: 0;
}
.cal-panel table {
width: 100%;
}
.cal-btn-row {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 0;
flex-wrap: wrap;
}
/* Raw config-file editors (expert "Full Edit" pages) */
.raw-editor {
width: 100%;
min-height: 360px;
box-sizing: border-box;
background: #10141a;
color: #d1d5db;
border: 1px solid rgba(0,0,0,0.15);
border-radius: 8px;
padding: 10px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size: 12px;
line-height: 1.5;
}
.power-status {
background: #10141a;
color: #3ce87a;
border-radius: 8px;
padding: 16px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
line-height: 1.6;
}
.field-actions {
display: flex;
justify-content: center;
align-items: center;
padding: 18px 0 22px 0;
}
.field-actions input[type="button"], .field-actions input[type="submit"] {
background: var(--accent);
color: var(--accent-text);
border: none;
padding: 11px 40px;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.02em;
border-radius: 999px;
box-shadow: 0 2px 6px rgba(15,23,42,0.16), 0 8px 20px -8px rgba(15,23,42,0.28);
cursor: pointer;
}
.field-actions input[type="button"]:active, .field-actions input[type="submit"]:active {
filter: brightness(0.97);
}
.footer {
background : #<?php echo $backgroundBanners; ?>;
text-decoration : none;
color : #<?php echo $textBanners; ?>;
font-family : verdana, arial, sans-serif;
font-size : 9px;
text-align : center;
padding : 10px 0 10px 0;
border-radius: 0 0 10px 10px;
-moz-border-radius: 0px 0px 10px 10px;
-webkit-border-radius: 0px 0px 10px 10px;
-khtml-border-radius: 0px 0px 10px 10px;
-ms-border-radius: 0px 0px 10px 10px;
clear : both;
background: transparent;
text-decoration: none;
color: #6b7280;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 10.5px;
text-align: left;
padding: 14px 16px 20px 16px;
border-top: 1px solid rgba(0,0,0,0.07);
clear: both;
}
.footer a {
color: var(--accent) !important;
}
#tail {
height: 450px;
width: 805px;
width: 100%;
overflow-y: scroll;
overflow-x: scroll;
color: #00ff00;
background: #000000;
color: #3ce87a;
background: #10141a;
border-radius: 8px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
box-sizing: border-box;
}
#tail::-webkit-scrollbar {
width: 10px;
height: 10px;
}
#tail::-webkit-scrollbar-track {
background: #10141a;
}
#tail::-webkit-scrollbar-thumb {
background: rgba(60, 232, 122, 0.35);
border-radius: 6px;
}
table {
@@ -156,57 +589,72 @@ table {
padding-right: 0px;
padding-top: 0px;
padding-bottom: 0px;
border-collapse:collapse;
border-color: #000000;
border-style: solid;
border-spacing: 4px;
border-width: 2px;
border-collapse: collapse;
border: none;
text-decoration: none;
color: #ffffff;
background: #000000;
font-family: verdana,arial,sans-serif;
background: transparent;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
width: 100%;
white-space: nowrap;
}
table th {
font-family: "Lucidia Console",Monaco,monospace;
text-shadow: 1px 1px #<?php echo $tableHeadDropShaddow; ?>;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
text-shadow: none;
text-decoration: none;
background: #<?php echo $backgroundBanners; ?>;
border: 1px solid #c0c0c0;
background: transparent;
color: var(--content-text);
text-transform: uppercase;
font-size: 10.5px;
font-weight: 700;
letter-spacing: 0.03em;
padding: 9px 10px;
border: none;
border-bottom: 2px solid var(--accent);
}
table tr:nth-child(even) {
background: #<?php echo $tableRowEvenBg; ?>;
background: var(--table-even);
}
table tr:nth-child(odd) {
background: #<?php echo $tableRowOddBg; ?>;
background: var(--table-odd);
}
table td {
color: #000000;
font-family: "Lucidia Console",Monaco,monospace;
color: var(--content-text);
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
text-decoration: none;
border: 1px solid #000000;
padding: 7px 10px;
border: none;
border-bottom: 1px solid var(--card-border);
overflow-x: hidden;
}
table tr:last-child td {
border-bottom: none;
}
body {
background: #<?php echo $backgroundPage; ?>;
color: #000000;
background: var(--page-bg);
color: var(--content-text);
}
a {
text-decoration:none;
}
a:link, a:visited {
text-decoration: none;
color: #0000e0;
color: var(--accent);
font-weight: normal;
transition: color 0.15s ease;
}
a:hover {
color: var(--accent-dark);
text-decoration: underline;
}
a.tooltip, a.tooltip:link, a.tooltip:visited, a.tooltip:active {
@@ -238,10 +686,13 @@ a.tooltip:hover span {
width: 200px;
z-index: 100;
color: #000000;
border:1px solid #000000;
border: none;
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0,0,0,0.25);
background: #f7f7f7;
font: 12px Verdana, sans-serif;
font: 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
text-align: left;
overflow: hidden;
}
a.tooltip span b {
@@ -250,12 +701,12 @@ a.tooltip span b {
display: block;
color: #000000;
margin: 0;
padding: 0;
padding: 4px 8px;
font-size: 12px;
font-weight: bold;
border: 0px;
border-bottom: 1px solid black;
background: #d0d0d0;
border-bottom: 1px solid rgba(0,0,0,0.15);
background: #e2e2e2;
}
a.tooltip2, a.tooltip2:link, a.tooltip2:visited, a.tooltip2:active {
@@ -289,10 +740,13 @@ a.tooltip2:hover span {
width: 200px;
z-index: 100;
color: #000000;
border:1px solid #000000;
border: none;
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0,0,0,0.25);
background: #f7f7f7;
font: 12px Verdana, sans-serif;
font: 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
text-align: left;
overflow: hidden;
}
a.tooltip2 span b {
@@ -301,12 +755,12 @@ a.tooltip2 span b {
display: block;
color: #000000;
margin: 0;
padding: 0;
padding: 4px 8px;
font-size: 12px;
font-weight: bold;
border: 0px;
border-bottom: 1px solid black;
background: #d0d0d0;
border-bottom: 1px solid rgba(0,0,0,0.15);
background: #e2e2e2;
}
ul {
@@ -327,7 +781,8 @@ ul li a {
float:left;
color: #999;
cursor: pointer;
font: 900 14px/22px "Arial", Helvetica, sans-serif;
font: 900 14px/22px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
transition: color 0.15s ease;
}
ul li a span {
@@ -347,7 +802,7 @@ ul.mmenu li a.current span, ul.mmenu li a:hover span {
}
h1 {
text-shadow: 2px 2px #<?php echo $bannerDropShaddows; ?>;
text-shadow: 1px 1px 2px rgba(0,0,0,0.35);
text-align: center;
}
@@ -402,12 +857,35 @@ input.toggle-round-flat + label:after {
}
input.toggle-round-flat:checked + label {
background-color: #<?php echo $backgroundBanners; ?>;
background-color: var(--accent);
}
input.toggle-round-flat:checked + label:after {
margin-left: 14px;
background-color: #<?php echo $backgroundBanners; ?>;
background-color: var(--accent);
}
/* Gentle, geometry-neutral polish for form controls (no size/layout changes) */
input[type="text"], input[type="password"], input[type="number"], input[type="email"], select, textarea {
border-radius: 4px;
transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(79,70,229,0.18);
border-color: var(--accent);
}
input[type="submit"], input[type="button"], button {
cursor: pointer;
border-radius: 4px;
transition: filter 0.15s ease, box-shadow 0.15s ease;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover {
filter: brightness(1.06);
box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
/* Tame Firefox Buttons */
@@ -417,7 +895,7 @@ input.toggle-round-flat:checked + label:after {
margin : 0;
padding : 0;
border-width : 1px;
font : 12px verdana,arial,sans-serif;
font : 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
input[type="button"], button, input[type="submit"] {
padding : 0px 3px 0px 3px;
+797 -143
View File
File diff suppressed because it is too large Load Diff