mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 10:56:12 +03:00
fix
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
--kit-color-error-w2: hsl(0, 100%, 65%);
|
||||
--kit-color-error-w1: hsl(0, 100%, 60%);
|
||||
--kit-color-error: hsl(0, 100%, 55%);
|
||||
--kit-color-error-b1: hsl(0, 100%, 50%);
|
||||
--kit-color-error-b2: hsl(0, 100%, 45%);
|
||||
--kit-color-error-b3: hsl(0, 100%, 40%);
|
||||
--kit-color-error-b4: hsl(0, 100%, 35%);
|
||||
--kit-color-error-b5: hsl(0, 100%, 30%);
|
||||
--kit-color-error-b1: hsl(0, 100%, 48%);
|
||||
--kit-color-error-b2: hsl(0, 100%, 41%);
|
||||
--kit-color-error-b3: hsl(0, 100%, 34%);
|
||||
--kit-color-error-b4: hsl(0, 100%, 30%);
|
||||
--kit-color-error-b5: hsl(0, 100%, 25%);
|
||||
|
||||
--kit-color-error-text: #FFF;
|
||||
|
||||
|
||||
@@ -34,12 +34,7 @@
|
||||
.kit-field--text {
|
||||
|
||||
}
|
||||
input[type="color"] ~ .kit-field__color {
|
||||
display: flex;
|
||||
}
|
||||
.kit-field__color {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.kit-field__color {
|
||||
display: none;
|
||||
}
|
||||
@@ -54,6 +49,39 @@ input[type="color"] ~ .kit-field__color {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.kit-field input[type="color"] ~ .kit-field__color {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
order: 110;
|
||||
}
|
||||
|
||||
.kit-field input[type="color"] {
|
||||
height: calc(1.5em + var(--kit-field-line-padding));
|
||||
flex: 0 0 calc(1.5em + var(--kit-field-line-padding));
|
||||
cursor: pointer;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.kit-field input[type="color"]::-webkit-color-swatch {
|
||||
border-radius: 3px;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(26, 26, 26, 0.40);
|
||||
}
|
||||
.kit-field input[type="color"]::-moz-color-swatch {
|
||||
border-radius: 3px;
|
||||
padding: 0;
|
||||
border: 1px solid rgba(26, 26, 26, 0.40);
|
||||
}
|
||||
.kit-field input[type="color"]::-webkit-color-swatch-wrapper{
|
||||
|
||||
}
|
||||
.kit-field input[type="color"]::-moz-color-swatch-wrapper {
|
||||
|
||||
}
|
||||
|
||||
.kit-field input[type="radio"]:checked ~ .kit-field__hr {
|
||||
|
||||
@@ -828,6 +856,16 @@ input[type="color"] ~ .kit-field__color {
|
||||
transition: inherit;
|
||||
}
|
||||
|
||||
.kit-button.kit-button--icon {
|
||||
padding: 0 0.75em;
|
||||
}
|
||||
.kit-button.kit-button--icon .kit-button__label {
|
||||
display: none;
|
||||
}
|
||||
.kit-button.kit-button--icon .kit-button__icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.kit-button__border {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
|
||||
@@ -18,7 +18,7 @@ $preloader = Tools::isTrue($arParams['PRELOADER']);
|
||||
aria-label="<?=$arParams['LABEL']?>"
|
||||
type="<?=$arParams['TYPE']?:'button'?>"
|
||||
<?if($arParams['ID']){?>id="<?=$arParams['ID']?>"<?}?>
|
||||
<?if($arParams['TITLE']){?>title="<?=$arParams['TITLE']?>"<?}?>
|
||||
<?if(1){?>title="<?=TemplaterTools::safeHtmlAttr($arParams['LABEL']?:$arParams['TITLE']?:$arParams['NAME']?:'')?>"<?}?>
|
||||
<?if($arParams['NAME']){?>name="<?=$arParams['NAME']?>"<?}?>
|
||||
<?if($arParams['ENTITY']){?>data-entity="<?=$arParams['ENTITY']?>"<?}?>
|
||||
<?if($arParams['VALUE']){?>value="<?=$arParams['VALUE']?>"<?}?>
|
||||
@@ -26,7 +26,7 @@ $preloader = Tools::isTrue($arParams['PRELOADER']);
|
||||
onclick="<?=TemplaterTools::safeHtmlAttr($arParams['ONCLICK'])?>"
|
||||
<?=TemplaterTools::getAttrByArray($arParams['ATTR']);?>
|
||||
><div class="kit-button__icon kit-icon"><?=$arParams['ICON']?></div>
|
||||
<div class="kit-button__label kit-line-clamp"><?=$arParams['LABEL']?:$arParams['NAME']?:''?></div>
|
||||
<div class="kit-button__label kit-line-clamp"><?=$arParams['LABEL']?:$arParams['TITLE']?:$arParams['NAME']?:''?></div>
|
||||
<div class="kit-button__border"></div>
|
||||
<?if($preloader){?><span class="circle-preloader"></span><?}?>
|
||||
</button><?
|
||||
|
||||
+820
-159
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user