diff --git a/web/apps/docs/docs.css b/web/apps/docs/docs.css new file mode 100644 index 00000000..46306a3e --- /dev/null +++ b/web/apps/docs/docs.css @@ -0,0 +1,39 @@ +/* + * Documentation Table Styles + */ + +/* General table styling */ +table { + width: 100%; + border-collapse: collapse; /* Cleaner borders */ + margin: 1.5em 0; + font-size: 1rem; + box-shadow: 0 2px 3px rgba(0,0,0,0.1); + border: 1px solid #ddd; +} + +/* Table header styling */ +th { + background-color: #5156be; /* A primary color from the site */ + color: #ffffff; + padding: 12px 15px; + text-align: left; + font-weight: 600; + border-bottom: 2px solid #404496; +} + +/* Table cell styling */ +td { + padding: 12px 15px; + border: 1px solid #ddd; +} + +/* Zebra-striping for table rows */ +tr:nth-child(even) { + background-color: #f9f9f9; +} + +/* Hover effect for rows */ +tr:hover { + background-color: #f1f1f1; +} diff --git a/web/apps/docs/index.php b/web/apps/docs/index.php index 8c879502..a44b6f99 100644 --- a/web/apps/docs/index.php +++ b/web/apps/docs/index.php @@ -78,7 +78,7 @@ protected function inlineLink($Excerpt) } } - $link['element']['attributes']['href'] = "/apps/docs/index.php?doc=".$newDoc; + $link['element']['attributes']['href'] = "/apps/docs/?doc=".$newDoc; return $link; } } @@ -139,6 +139,7 @@ protected function inlineLink($Excerpt) define("PAGE", "Docs"); define("APP_NAME", "Docs"); +define("HEAD_CSS", "/apps/docs/docs.css"); ?>