Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Nov 27, 2024
1 parent 0054689 commit 330dc4b
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 8 deletions.
16 changes: 15 additions & 1 deletion src/admin/assets/src/css/admin.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
:root {
--primary-color: #cb11ab; /*Главный цвет ссылок и главных кнопок*/
/*--primary-color: #cb11ab;*/ /*Главный цвет ссылок и главных кнопок*/
--primary-color: #2067b0; /*Главный цвет ссылок и главных кнопок*/
--bg-gray: #f3f3f3; /*Главный цвет ссылок и главных кнопок*/
}
html {
Expand Down Expand Up @@ -281,6 +282,10 @@ a:hover {
{
background: #f9f9f9;
}
table.sx-table thead tr th a.asc, table.sx-table thead tr th a.desc
{
color: var(--primary-color)
}

table.sx-table thead tr th {
background: #f9f9f9;
Expand Down Expand Up @@ -702,6 +707,10 @@ iframe {
/*.btn {
padding: 10px 25px;
}*/
.btn {
/*padding: .575rem 2rem;*/
}

.btn:visited,
.btn:active,
.btn:focus {
Expand Down Expand Up @@ -951,4 +960,9 @@ pre {
background-size: 400%;
animation: loading 1.2s ease-in-out infinite;
opacity: 1 !important;
}


.sx-content-actions .nav-link.active {
color: var(--primary-color);
}
6 changes: 3 additions & 3 deletions src/assets/src/css/unify-custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ body {

.form-control {
border-color: #ced4da;
padding: 10px;
height: 43px;
padding: 0.625rem;
height: 2.6rem;
/*height: auto;*/
}

Expand Down Expand Up @@ -603,7 +603,7 @@ body {
background-color: var(--primary-color);
}
.select2-container .select2-selection--single {
height: 43px;
height: 2.6rem;

border-radius: 4px;
/*display: flex;*/
Expand Down
4 changes: 2 additions & 2 deletions src/views/widgets/ContentElementsCmsWidget/news-masonry.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
'tag' => false
],
'layout' => '
<div class="row list-view">{items}</div>
<div class="row"><div class="col-md-12">{pager}</div></div>',
<div class="row no-gutters list-view">{items}</div>
<div class="row no-gutters"><div class="col-md-12">{pager}</div></div>',
'pager' => [
'class' => \skeeks\cms\themes\unify\widgets\ScrollAndSpPager::class
],
Expand Down
4 changes: 2 additions & 2 deletions src/views/widgets/ContentElementsCmsWidget/stock-carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\skeeks\cms\themes\unify\assets\components\UnifyThemeStickAsset::register($this);
\skeeks\cms\themes\unify\assets\VanillaLazyLoadAsset::register($this);
?>
<div class="js-carousel sx-stick"
<div class="js-carousel sx-stick"
data-infinite="true"
data-autoplay="true"
data-speed="7000"
Expand All @@ -24,7 +24,7 @@
<? if ($banner_url = $model->relatedPropertiesModel->getAttribute("url")) : ?>
<a href="<?php echo $banner_url; ?>">
<? endif; ?>
<img data-src="<?= $model->image->src; ?>" alt=" " class="img-fluid lazy" style="width: 100%;">
<img data-lazy="<?= $model->image->src; ?>" alt=" " class="img-fluid" style="width: 100%;">
<? if ($banner_url) : ?>
</a>
<? endif; ?>
Expand Down
30 changes: 30 additions & 0 deletions src/widgets/auth/views/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,35 @@

$this->registerJs(<<<JS
new sx.classes.Auth({$js});
$("body").on("click", ".sx-view-pass", function() {
var jIcon = $(this);
var jInput = jIcon.parent("div").find("input");
if (jInput.attr("type") == 'password') {
jInput.attr('type', 'text');
jIcon.addClass("fa-eye-slash");
jIcon.removeClass("fa-eye");
} else {
jInput.attr('type', 'password');
jIcon.addClass("fa-eye");
jIcon.removeClass("fa-eye-slash");
}
});
JS
);
$this->registerCss(<<<CSS
.sx-view-pass {
position: absolute;
right: 1rem;
z-index: 1;
cursor: pointer;
top: 50% !important;
transform: translateY(-50%);
}
CSS
);
?>

<?php echo \yii\helpers\Html::beginTag("div", $widget->options); ?>
Expand Down Expand Up @@ -94,6 +121,7 @@ function (ActiveFormAjaxSubmit) {

<div class="form-group">
<div class="input-group">
<i class="far fa-eye sx-view-pass"></i>
<input type="password" class="form-control" name="password" value="" placeholder="Ваш пароль">
<!--<button class="btn btn-primary sx-btn-submit" type="submit">Войти</button>-->
</div>
Expand Down Expand Up @@ -207,6 +235,7 @@ function (ActiveFormAjaxSubmit) {

<div class="form-group">
<div class="input-group">
<i class="far fa-eye sx-view-pass"></i>
<input type="password" class="form-control" name="password" value="" placeholder="Ваш пароль">
<!--<button class="btn btn-primary sx-btn-submit" type="submit">Войти</button>-->
</div>
Expand Down Expand Up @@ -329,6 +358,7 @@ function (ActiveFormAjaxSubmit) {

<div class="form-group">
<div class="input-group">
<i class="far fa-eye sx-view-pass"></i>
<input type="password" class="form-control" name="password" value="" placeholder="Ваш пароль">
<!--<button class="btn btn-primary sx-btn-submit" type="submit">Войти</button>-->
</div>
Expand Down

0 comments on commit 330dc4b

Please sign in to comment.