FIX: Админ-панель (SLUG ссылки)
+ коррекция дизайна Light.
This commit is contained in:
parent
11a0896327
commit
59b3c5be08
|
@ -90,7 +90,7 @@
|
|||
<h3 class="mb5"><?= __('admin.pages'); ?></h3>
|
||||
<?php foreach ($data['pages'] as $page) : ?>
|
||||
<div class="mb5">
|
||||
<a href="<?= url('facet.article', ['facet_slug' => 'info', 'slug' => $page['post_slug']]); ?>">
|
||||
<a href="<?= url('facet.article', ['facet_slug' => $data['facets'][0]['facet_slug'], 'slug' => $page['post_slug']]); ?>">
|
||||
<svg class="icons">
|
||||
<use xlink:href="/assets/svg/icons.svg#info"></use>
|
||||
</svg> <?= $page['post_title']; ?> <sup class="gray-600">id:<?= $page['post_id']; ?></sup>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
body{background-color:var(--gray-100)}.box,.box-flex,.indent-body{background-color:var(--white)}.indent-body{padding:15px}ul.nav>li.active{background-color:var(--black);color:var(--white)}ul.nav>li.active>a{color:var(--white)}.user-nav li:hover,.menu li.active,.menu li:hover{background-color:var(--white)}
|
File diff suppressed because one or more lines are too long
|
@ -13,10 +13,10 @@
|
|||
<ul class="last-content content-tabs active" id="home">
|
||||
<?php foreach ($latest_answers as $answer) : ?>
|
||||
<li>
|
||||
<div class="gray-600 text-sm">
|
||||
<a class="flex gray items-center" title="<?= $answer['login']; ?>" href="<?= url('profile', ['login' => $answer['login']]); ?>">
|
||||
<?= Img::avatar($answer['avatar'], $answer['login'], 'img-sm mr5', 'small'); ?>
|
||||
<span class="mr5"><?= $answer['login']; ?></span>
|
||||
<div class="gray-600 flex items-center gap-min text-sm">
|
||||
<a class="flex gray-600 gap-min items-center" title="<?= $answer['login']; ?>" href="<?= url('profile', ['login' => $answer['login']]); ?>">
|
||||
<?= Img::avatar($answer['avatar'], $answer['login'], 'img-sm', 'small'); ?>
|
||||
<span class="nickname"><?= $answer['login']; ?></span>
|
||||
</a>
|
||||
<span class="lowercase"><?= Html::langDate($answer['answer_date']); ?></span>
|
||||
</div>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<div class="flex items-center gap-min text-sm mb5">
|
||||
<a class="gray-600 flex gap-min items-center" href="<?= url('profile', ['login' => $post['login']]); ?>">
|
||||
<?= Img::avatar($post['avatar'], $post['login'], 'img-sm', 'max'); ?>
|
||||
<span<?php if (Html::loginColor($post['created_at'] ?? false)) : ?> class="green" <?php endif; ?>>
|
||||
<span class="nickname<?php if (Html::loginColor($post['created_at'] ?? false)) : ?> green<?php endif; ?>">
|
||||
<?= $post['login']; ?>
|
||||
</span>
|
||||
</a>
|
||||
|
|
|
@ -70,7 +70,7 @@ use Hleb\Constructor\Handlers\Request; ?>
|
|||
<?= Html::votes($post, 'post'); ?>
|
||||
|
||||
<a class="gray-600" href="<?= url('profile', ['login' => $post['login']]); ?>">
|
||||
<span<?php if (Html::loginColor($post['created_at'] ?? false)) : ?> class="green" <?php endif; ?>>
|
||||
<span class="nickname<?php if (Html::loginColor($post['created_at'] ?? false)) : ?> green<?php endif; ?>">
|
||||
<?= $post['login']; ?>
|
||||
</span>
|
||||
</a>
|
||||
|
|
|
@ -285,11 +285,6 @@ details[open] > summary {
|
|||
|
||||
ul.last-content li { margin-bottom: 15px; }
|
||||
|
||||
ul.last-content li a {
|
||||
display: inline;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ul.last-content a.last-content_telo {
|
||||
display: block;
|
||||
word-wrap: break-word;
|
||||
|
|
|
@ -4,16 +4,19 @@
|
|||
* Дополнительные стили
|
||||
*/
|
||||
|
||||
body { background-color: #f3f3f3; }
|
||||
body { background-color: var(--gray-100); }
|
||||
|
||||
.box,
|
||||
.indent-body { background-color: #fff; }
|
||||
.box-flex,
|
||||
.indent-body { background-color: var(--white); }
|
||||
|
||||
.indent-body { padding: 15px; }
|
||||
|
||||
ul.nav > li.active {
|
||||
background-color: #111;
|
||||
color: #fff;
|
||||
background-color: var(--black);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
ul.nav > li.active > a { color: #fff; }
|
||||
ul.nav > li.active > a { color: var(--white); }
|
||||
|
||||
.user-nav li:hover, .menu li.active, .menu li:hover { background-color: var(--white); }
|
Loading…
Reference in New Issue