#1048 - Исправление ошибок верстки в Блоге.

parent 9a758ef8
......@@ -51,6 +51,11 @@ class SearchSession extends Session
$dataProvider = new ActiveDataProvider([
'query' => $query,
'sort' => [
'defaultOrder' => [
'created_at' => SORT_DESC
]
]
]);
$this->load($params);
......
......@@ -30,9 +30,11 @@ use yii\helpers\Url;
</div>
<div class="article_short_txt">
<?php if($model->preview) :
echo Html::img($model->preview);
endif; ?>
<div class="preview-image">
<?php if($model->preview) :
echo Html::img($model->preview);
endif; ?>
</div>
<?=$model->lang->cutText(650)?>
</div>
......
......@@ -37,9 +37,11 @@ use yii\helpers\Url;
</div>
<div class="article_short_txt">
<?php if($model->preview) :
echo Html::img($model->preview);
endif; ?>
<div class="preview-image">
<?php if($model->preview) :
echo Html::img($model->preview);
endif; ?>
</div>
<?=$model->lang->text?>
</div>
......
......@@ -269,6 +269,12 @@ a.toggle_bottom:hover .icon-arrowDown2:after, a.toggle_bottom:active .icon-arrow
pre code {
font-size: 14px;
}
.article_short_txt ol li {
line-height: 30px;
}
.preview-image {
text-align: center;
}
/* ------------ BLOG MODAL ------------------ */
......@@ -469,6 +475,9 @@ pre code {
.gen_mail_top a.toggle_bottom {
margin-top: 50px;
}
.article_short_txt iframe {
width: 100%;
}
}
@media (max-width: 768px) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment