mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -736,7 +736,8 @@
|
|||||||
--kit-color-button-content: var(--kit-color-button-content-default);
|
--kit-color-button-content: var(--kit-color-button-content-default);
|
||||||
--kit-color-button-material: var(--kit-color-button-material-default);
|
--kit-color-button-material: var(--kit-color-button-material-default);
|
||||||
|
|
||||||
font-family: var(--kit-font-family);
|
font-size: 0.9em;
|
||||||
|
/*font-family: var(--kit-font-family);*/
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -810,7 +811,6 @@
|
|||||||
--line-clamp-height: 1em;
|
--line-clamp-height: 1em;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 0.9em;
|
|
||||||
}
|
}
|
||||||
.kit-button.kit-disabled,
|
.kit-button.kit-disabled,
|
||||||
.kit-button:disabled,
|
.kit-button:disabled,
|
||||||
@@ -844,6 +844,16 @@
|
|||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.kit-button.kit-button--line {
|
||||||
|
font-size: 0.9em;
|
||||||
|
align-items: baseline;
|
||||||
|
height: 1.15em;
|
||||||
|
padding: 0.125em 0.75em 0;
|
||||||
|
line-height: 1em;
|
||||||
|
}
|
||||||
|
.kit-button.kit-button--line .kit-button__icon {
|
||||||
|
height: 0.8em;
|
||||||
|
}
|
||||||
.kit-button.kit-button--radius,
|
.kit-button.kit-button--radius,
|
||||||
.kit-button.kit-button--radius:before,
|
.kit-button.kit-button--radius:before,
|
||||||
.kit-button.kit-button--radius .kit-button__border {
|
.kit-button.kit-button--radius .kit-button__border {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ use Wt\Core\Form\Field\DefaultField;
|
|||||||
use Wt\Core\Templater\Shell;
|
use Wt\Core\Templater\Shell;
|
||||||
use Wt\Core\Templater\Tools as TemplaterTools;
|
use Wt\Core\Templater\Tools as TemplaterTools;
|
||||||
use Wt\Core\Tools;
|
use Wt\Core\Tools;
|
||||||
|
use Wt\Core\Form\Interfaces;
|
||||||
|
|
||||||
$bLabel = mb_strlen($field->getLabel());
|
$bLabel = mb_strlen($field->getLabel());
|
||||||
$labelAttrs = [];
|
$labelAttrs = [];
|
||||||
@@ -62,7 +63,9 @@ if($isDatepicker) {
|
|||||||
?>"
|
?>"
|
||||||
value="<?=TemplaterTools::safeHtmlAttr($field->getValue())?>"
|
value="<?=TemplaterTools::safeHtmlAttr($field->getValue())?>"
|
||||||
maxlength="255"
|
maxlength="255"
|
||||||
placeholder="<?=TemplaterTools::safeHtmlAttr($field->getPlaceholder()).''?>"
|
<?php if($field instanceof Interfaces\IPlaceholder){?>
|
||||||
|
placeholder="<?=TemplaterTools::safeHtmlAttr($field->getPlaceholder())?>"
|
||||||
|
<?php }?>
|
||||||
<?php
|
<?php
|
||||||
echo TemplaterTools::getAttrByArray($arParams['ATTR']);
|
echo TemplaterTools::getAttrByArray($arParams['ATTR']);
|
||||||
if($isDatepicker) {
|
if($isDatepicker) {
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Lorem ipsum dolor <?php service()->templater()->render('kit:button', [
|
||||||
|
'LABEL' => 'sit',
|
||||||
|
'CLASS' => 'kit-button kit-button--primary kit-button--line ',
|
||||||
|
]);?> amet, consectetur adipisicing elit.
|
||||||
|
Aspernatur aut consequatur <button class="kit-button kit-button--primary kit-button--line">Delectus</button> eveniet fugit hic, magnam maiores modi, placeat reprehenderit
|
||||||
|
rerum similique veritatis! <?php service()->templater()->render('kit:button', [
|
||||||
|
'LABEL' => 'Aliquam',
|
||||||
|
'CLASS' => 'kit-button kit-button--primary kit-button--line ',
|
||||||
|
'ICON' => service()->templater()->get('kit:svg/star'),
|
||||||
|
]);?> <?php service()->templater()->render('kit:button', [
|
||||||
|
'LABEL' => 'deleniti',
|
||||||
|
'CLASS' => 'kit-button kit-button--primary kit-button--line ',
|
||||||
|
]);?> deleniti hic labore modi quaerat similique?
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<div style="width: 500px;">
|
||||||
|
<p>24px</p>
|
||||||
|
<p style="font-size: 24px">
|
||||||
|
<?php include __DIR__ . '/buttons-line-item.php'?>
|
||||||
|
</p>
|
||||||
|
<p>20px</p>
|
||||||
|
<p style="font-size: 20px">
|
||||||
|
<?php include __DIR__ . '/buttons-line-item.php'?>
|
||||||
|
</p>
|
||||||
|
<p>16px</p>
|
||||||
|
<p style="font-size: 16px">
|
||||||
|
<?php include __DIR__ . '/buttons-line-item.php'?>
|
||||||
|
</p>
|
||||||
|
<p>15px</p>
|
||||||
|
<p style="font-size: 15px">
|
||||||
|
<?php include __DIR__ . '/buttons-line-item.php'?>
|
||||||
|
</p>
|
||||||
|
<p>14px</p>
|
||||||
|
<p style="font-size: 14px">
|
||||||
|
<?php include __DIR__ . '/buttons-line-item.php'?>
|
||||||
|
</p>
|
||||||
|
<p>13px</p>
|
||||||
|
<p style="font-size: 13px">
|
||||||
|
<?php include __DIR__ . '/buttons-line-item.php'?>
|
||||||
|
</p>
|
||||||
|
<p>11px</p>
|
||||||
|
<p style="font-size: 11px">
|
||||||
|
<?php include __DIR__ . '/buttons-line-item.php'?>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
<div class="flex-list-item">material</div>
|
<div class="flex-list-item">material</div>
|
||||||
<div class="flex-list-item">material radius</div>
|
<div class="flex-list-item">material radius</div>
|
||||||
<div class="flex-list-item">material round</div>
|
<div class="flex-list-item">material round</div>
|
||||||
<?
|
<?php
|
||||||
echo '<div class="flex-list-item">';
|
echo '<div class="flex-list-item">';
|
||||||
service()->templater()->render('kit:button', [
|
service()->templater()->render('kit:button', [
|
||||||
'LABEL' => 'default',
|
'LABEL' => 'default',
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ function include_section ($name, $filePath){
|
|||||||
include_section('Textarea fields',__DIR__ . '/cheatSheet/field/textarea.php');
|
include_section('Textarea fields',__DIR__ . '/cheatSheet/field/textarea.php');
|
||||||
include_section('File fields',__DIR__ . '/cheatSheet/field/file.php');
|
include_section('File fields',__DIR__ . '/cheatSheet/field/file.php');
|
||||||
include_section('Buttons',__DIR__ . '/cheatSheet/button/buttons.php');
|
include_section('Buttons',__DIR__ . '/cheatSheet/button/buttons.php');
|
||||||
|
include_section('Buttons Line',__DIR__ . '/cheatSheet/button/buttons-line.php');
|
||||||
include_section('Form',__DIR__ . '/cheatSheet/form.php');
|
include_section('Form',__DIR__ . '/cheatSheet/form.php');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user