fixes and updates
This commit is contained in:
parent
2326c05d12
commit
792c51a78b
@ -4,7 +4,7 @@ namespace handler\admin;
|
|||||||
|
|
||||||
use Response;
|
use Response;
|
||||||
|
|
||||||
class IndexIndex extends AdminRequestHandler {
|
class IndexHandler extends AdminRequestHandler {
|
||||||
|
|
||||||
public function get(): Response {
|
public function get(): Response {
|
||||||
return $this->skin->renderPage('admin/index');
|
return $this->skin->renderPage('admin/index');
|
@ -4,31 +4,29 @@ textarea {
|
|||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head {
|
.head, .head-inner, .head-logo-wrap, .head-items {
|
||||||
padding: 0;
|
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 {
|
.head-items {
|
||||||
float: none;
|
text-align: left;
|
||||||
padding: 0 $side-padding 0 $side-padding - 2px;
|
padding: 0 $side-padding 0 $side-padding - 2px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
margin-left: -10px;
|
||||||
a.head-item {
|
margin-right: -10px;
|
||||||
float: none;
|
max-width: 100%;
|
||||||
display: inline-block;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
a.head-item:hover,
|
a.head-item:hover,
|
||||||
a.head-item:active {
|
a.head-item:active {
|
||||||
@ -36,7 +34,6 @@ a.head-item:active {
|
|||||||
}
|
}
|
||||||
a.head-item:last-child > span {
|
a.head-item:last-child > span {
|
||||||
border-right: 0;
|
border-right: 0;
|
||||||
//padding-right: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// blog
|
// blog
|
||||||
|
@ -5,7 +5,7 @@ $ffMono: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
|
|||||||
|
|
||||||
$base-width: 900px;
|
$base-width: 900px;
|
||||||
$wide_width: 1240px;
|
$wide_width: 1240px;
|
||||||
$side-padding: 25px;
|
$side-padding: 20px;
|
||||||
$base-padding: 18px;
|
$base-padding: 18px;
|
||||||
$footer-height: 64px;
|
$footer-height: 64px;
|
||||||
|
|
||||||
|
@ -171,10 +171,10 @@ function getStaticVersion(string $name): string {
|
|||||||
|
|
||||||
function renderHeader(SkinContext $ctx, string $theme): string {
|
function renderHeader(SkinContext $ctx, string $theme): string {
|
||||||
$items = [
|
$items = [
|
||||||
['url' => 'javascript:void(0)', 'label' => $theme, 'label_id' => 'theme-switcher-label', 'theme_switcher' => true],
|
|
||||||
//['url' => '/articles/', 'label' => 'articles'],
|
//['url' => '/articles/', 'label' => 'articles'],
|
||||||
['url' => 'https://files.4in1.ws', 'label' => 'materials'],
|
['url' => 'https://files.4in1.ws', 'label' => 'materials'],
|
||||||
['url' => '/about/', 'label' => 'about'],
|
['url' => '/about/', 'label' => 'about'],
|
||||||
|
['url' => 'javascript:void(0)', 'label' => $theme, 'label_id' => 'theme-switcher-label', 'theme_switcher' => true],
|
||||||
];
|
];
|
||||||
if (\admin::isAdmin())
|
if (\admin::isAdmin())
|
||||||
$items[] = ['url' => '/admin/', 'label' => 'admin'];
|
$items[] = ['url' => '/admin/', 'label' => 'admin'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user