Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Jul 2, 2021
1 parent e16439d commit b12ff05
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/UnifyTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static public function initThemeSettings()
$content = str_replace("{css_content}", $css_content, $content);


$cache = md5(serialize(ArrayHelper::toArray(\Yii::$app->view->theme))) . "-v3";
$cache = md5(serialize(ArrayHelper::toArray(\Yii::$app->view->theme))) . "-v7";

$newDir = \Yii::getAlias("@webroot/assets/unify");
$newFile = \Yii::getAlias("@webroot/assets/unify/unify-default-template-".$cache.".css");
Expand Down
11 changes: 11 additions & 0 deletions src/assets/src/css/unify-custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ body {
-o-transition: .2s ease;
transition: .2s ease;
cursor: pointer;
border: 0;
}

.btn:focus, .btn:active, .btn:active:focus, .btn.active:focus, .btn-primary:focus, .btn-primary.focus {
Expand Down Expand Up @@ -613,3 +614,13 @@ body {
}
}



/**
* Кастомизация кнопок
*/
.btn-primary:focus, .btn-primary.focus, .btn-outline-primary:focus, .btn-outline-primary.focus {
box-shadow: none;
border-color: transparent;
background-color: transparent;
}
10 changes: 8 additions & 2 deletions src/assets/src/css/unify-default-template.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
.g-color-primary--hover:hover {
color: #72c02c !important;
}

/*------------------------------------
Custom BG
------------------------------------*/
Expand Down Expand Up @@ -157,12 +158,12 @@ a:hover {
background-color: #6db82a;
border-color: #6db82a;
}
.btn-primary:focus,
/*.btn-primary:focus,
.btn-primary.focus,
.btn-outline-primary:focus,
.btn-outline-primary.focus {
box-shadow: 0 0 0 2px rgba(114, 192, 44, 0.5);
}
}*/
/*------------------------------------
Background colors
------------------------------------*/
Expand Down Expand Up @@ -1595,6 +1596,11 @@ h6,
background: linear-gradient(150deg, #0185c8, #e1082c);
border-color: #0185c8;
}
a.btn:focus,
a.btn:hover
{
color: #fff;
}

a {
color: #0185c8;
Expand Down

0 comments on commit b12ff05

Please sign in to comment.