This commit is contained in:
2025-06-30 19:38:33 +03:00
parent 85bf5f41f2
commit 363b7ecf9e
6 changed files with 61 additions and 4 deletions
+12 -2
View File
@@ -736,7 +736,8 @@
--kit-color-button-content: var(--kit-color-button-content-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;
flex-direction: row;
align-items: center;
@@ -810,7 +811,6 @@
--line-clamp-height: 1em;
white-space: normal;
text-transform: uppercase;
font-size: 0.9em;
}
.kit-button.kit-disabled,
.kit-button:disabled,
@@ -844,6 +844,16 @@
display: block;
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:before,
.kit-button.kit-button--radius .kit-button__border {
+4 -1
View File
@@ -9,6 +9,7 @@ use Wt\Core\Form\Field\DefaultField;
use Wt\Core\Templater\Shell;
use Wt\Core\Templater\Tools as TemplaterTools;
use Wt\Core\Tools;
use Wt\Core\Form\Interfaces;
$bLabel = mb_strlen($field->getLabel());
$labelAttrs = [];
@@ -62,7 +63,9 @@ if($isDatepicker) {
?>"
value="<?=TemplaterTools::safeHtmlAttr($field->getValue())?>"
maxlength="255"
placeholder="<?=TemplaterTools::safeHtmlAttr($field->getPlaceholder()).''?>"
<?php if($field instanceof Interfaces\IPlaceholder){?>
placeholder="<?=TemplaterTools::safeHtmlAttr($field->getPlaceholder())?>"
<?php }?>
<?php
echo TemplaterTools::getAttrByArray($arParams['ATTR']);
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?
+30
View File
@@ -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>
+1 -1
View File
@@ -6,7 +6,7 @@
<div class="flex-list-item">material</div>
<div class="flex-list-item">material radius</div>
<div class="flex-list-item">material round</div>
<?
<?php
echo '<div class="flex-list-item">';
service()->templater()->render('kit:button', [
'LABEL' => 'default',
+1
View File
@@ -57,6 +57,7 @@ function include_section ($name, $filePath){
include_section('Textarea fields',__DIR__ . '/cheatSheet/field/textarea.php');
include_section('File fields',__DIR__ . '/cheatSheet/field/file.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');
?>
</div>