fixes and updates

This commit is contained in:
E. S. 2023-12-30 23:46:25 +00:00
parent 2326c05d12
commit 792c51a78b
4 changed files with 19 additions and 22 deletions

View File

@ -4,7 +4,7 @@ namespace handler\admin;
use Response;
class IndexIndex extends AdminRequestHandler {
class IndexHandler extends AdminRequestHandler {
public function get(): Response {
return $this->skin->renderPage('admin/index');

View File

@ -4,31 +4,29 @@ textarea {
-webkit-overflow-scrolling: touch;
}
.head {
padding: 0;
.head, .head-inner, .head-logo-wrap, .head-items {
display: block;
}
.head-logo {
margin: 0 $side-padding - 14px;
}
.head-inner {
padding-bottom: 8px;
}
.head-logo-wrap {
padding-bottom: 4px;
}
// header
.head-logo {
position: static;
display: block;
overflow: hidden;
white-space: nowrap;
padding: 18px $side-padding 7px;
}
.head-logo::after {
display: none;
}
.head-items {
float: none;
text-align: left;
padding: 0 $side-padding 0 $side-padding - 2px;
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
}
a.head-item {
float: none;
display: inline-block;
margin-left: -10px;
margin-right: -10px;
max-width: 100%;
box-sizing: border-box;
}
a.head-item:hover,
a.head-item:active {
@ -36,7 +34,6 @@ a.head-item:active {
}
a.head-item:last-child > span {
border-right: 0;
//padding-right: 12px;
}
// blog

View File

@ -5,7 +5,7 @@ $ffMono: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
$base-width: 900px;
$wide_width: 1240px;
$side-padding: 25px;
$side-padding: 20px;
$base-padding: 18px;
$footer-height: 64px;

View File

@ -171,10 +171,10 @@ function getStaticVersion(string $name): string {
function renderHeader(SkinContext $ctx, string $theme): string {
$items = [
['url' => 'javascript:void(0)', 'label' => $theme, 'label_id' => 'theme-switcher-label', 'theme_switcher' => true],
//['url' => '/articles/', 'label' => 'articles'],
['url' => 'https://files.4in1.ws', 'label' => 'materials'],
['url' => '/about/', 'label' => 'about'],
['url' => 'javascript:void(0)', 'label' => $theme, 'label_id' => 'theme-switcher-label', 'theme_switcher' => true],
];
if (\admin::isAdmin())
$items[] = ['url' => '/admin/', 'label' => 'admin'];