Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptive Toolbar #5266

Merged
merged 6 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 89 additions & 16 deletions packages/bootstrap/docs/customization-toolbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ The following table lists the available variables for customization.
<tbody>
<tr>
<td>$kendo-toolbar-padding-x</td>
<td>Null</td>
<td><code>null</code></td>
<td><code>null</code></td>
<td>String</td>
<td><code>k-spacing(2)</code></td>
<td><code>var(--kendo-spacing-2, 0.5rem)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The horizontal padding of the Toolbar.</div></div>
Expand All @@ -50,7 +50,7 @@ The following table lists the available variables for customization.
<tr>
<td>$kendo-toolbar-md-padding-x</td>
<td>String</td>
<td><code>k-spacing(2)</code></td>
<td><code>$kendo-toolbar-padding-x</code></td>
<td><code>var(--kendo-spacing-2, 0.5rem)</code></td>
</tr>
<tr>
Expand All @@ -69,9 +69,9 @@ The following table lists the available variables for customization.
</tr>
<tr>
<td>$kendo-toolbar-padding-y</td>
<td>Null</td>
<td><code>null</code></td>
<td><code>null</code></td>
<td>String</td>
<td><code>k-spacing(2)</code></td>
<td><code>var(--kendo-spacing-2, 0.5rem)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The vertical padding of the Toolbar.</div></div>
Expand All @@ -90,7 +90,7 @@ The following table lists the available variables for customization.
<tr>
<td>$kendo-toolbar-md-padding-y</td>
<td>String</td>
<td><code>k-spacing(2)</code></td>
<td><code>$kendo-toolbar-padding-y</code></td>
<td><code>var(--kendo-spacing-2, 0.5rem)</code></td>
</tr>
<tr>
Expand All @@ -109,9 +109,9 @@ The following table lists the available variables for customization.
</tr>
<tr>
<td>$kendo-toolbar-spacing</td>
<td>Null</td>
<td><code>null</code></td>
<td><code>null</code></td>
<td>String</td>
<td><code>k-spacing(2)</code></td>
<td><code>var(--kendo-spacing-2, 0.5rem)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The spacing between the Toolbar tools.</div></div>
Expand All @@ -130,7 +130,7 @@ The following table lists the available variables for customization.
<tr>
<td>$kendo-toolbar-md-spacing</td>
<td>String</td>
<td><code>k-spacing(2)</code></td>
<td><code>$kendo-toolbar-spacing</code></td>
<td><code>var(--kendo-spacing-2, 0.5rem)</code></td>
</tr>
<tr>
Expand All @@ -147,6 +147,46 @@ The following table lists the available variables for customization.
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The spacing between the tools of the large Toolbar.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-separator-height</td>
<td>Calculation</td>
<td><code>$kendo-button-md-calc-size</code></td>
<td><code>calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-1\.5, 0.375rem) * 2 + 2px)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The height of the Toolbar button separator.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-sm-separator-height</td>
<td>Calculation</td>
<td><code>$kendo-button-sm-calc-size</code></td>
<td><code>calc(1.4285714286 * 1em + var(--kendo-spacing-1, 0.25rem) * 2 + 2px)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The height of the small Toolbar button separator.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-md-separator-height</td>
<td>Calculation</td>
<td><code>$kendo-toolbar-separator-height</code></td>
<td><code>calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-1\.5, 0.375rem) * 2 + 2px)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The height of the medium Toolbar button separator.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-lg-separator-height</td>
<td>Calculation</td>
<td><code>$kendo-button-lg-calc-size</code></td>
<td><code>calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-2, 0.5rem) * 2 + 2px)</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The height of the large Toolbar button separator.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-border-width</td>
<td>Number</td>
Expand Down Expand Up @@ -247,6 +287,16 @@ The following table lists the available variables for customization.
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The box shadow of the Toolbar.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-scroll-overlay</td>
<td>List</td>
<td><code>$kendo-toolbar-bg, if($kendo-enable-color-system, color-mix(in srgb, k-color( app-surface ) 0%, transparent), rgba( $kendo-color-white, 0))</code></td>
<td><code>(var(--kendo-color-surface, #f8f9fa), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The left and right scroll overlay of the Toolbar.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-outline-text</td>
<td>String</td>
Expand Down Expand Up @@ -297,6 +347,16 @@ The following table lists the available variables for customization.
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The width of the border around the outline Toolbar.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-outline-scroll-overlay</td>
<td>List</td>
<td><code>if($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white), if($kendo-enable-color-system, color-mix(in srgb, k-color( app-surface ) 0%, transparent), rgba( $kendo-color-white, 0))</code></td>
<td><code>(var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The left and right scroll overlay of the outline Toolbar.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-flat-text</td>
<td>Null</td>
Expand Down Expand Up @@ -347,6 +407,16 @@ The following table lists the available variables for customization.
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">Border width of the flat Toolbar.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-flat-scroll-overlay</td>
<td>List</td>
<td><code>if($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white), if($kendo-enable-color-system, color-mix(in srgb, k-color( app-surface ) 0%, transparent), rgba( $kendo-color-white, 0))</code></td>
<td><code>(var(--kendo-color-app-surface, #ffffff), color-mix(in srgb, var(--kendo-color-app-surface, #ffffff) 0%, transparent))</code></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The left and right scroll overlay of the flat Toolbar.</div></div>
</td>
</tr>
<tr>
<td>$kendo-toolbar-separator-border</td>
<td>String</td>
Expand Down Expand Up @@ -384,20 +454,23 @@ The following table lists the available variables for customization.
sm: (
padding-x: $kendo-toolbar-sm-padding-x,
padding-y: $kendo-toolbar-sm-padding-y,
spacing: $kendo-toolbar-sm-spacing
spacing: $kendo-toolbar-sm-spacing,
separator-height: $kendo-toolbar-sm-separator-height
),
md: (
padding-x: $kendo-toolbar-md-padding-x,
padding-y: $kendo-toolbar-md-padding-y,
spacing: $kendo-toolbar-md-spacing
spacing: $kendo-toolbar-md-spacing,
separator-height: $kendo-toolbar-md-separator-height
),
lg: (
padding-x: $kendo-toolbar-lg-padding-x,
padding-y: $kendo-toolbar-lg-padding-y,
spacing: $kendo-toolbar-lg-spacing
spacing: $kendo-toolbar-lg-spacing,
separator-height: $kendo-toolbar-lg-separator-height
)
)</code></td>
<td><ul><li>sm: "padding-x":"var(--kendo-spacing-1, 0.25rem)","padding-y":"var(--kendo-spacing-1, 0.25rem)","spacing":"var(--kendo-spacing-1\\.5, 0.375rem)"</li><li>md: "padding-x":"var(--kendo-spacing-2, 0.5rem)","padding-y":"var(--kendo-spacing-2, 0.5rem)","spacing":"var(--kendo-spacing-2, 0.5rem)"</li><li>lg: "padding-x":"var(--kendo-spacing-2\\.5, 0.625rem)","padding-y":"var(--kendo-spacing-2\\.5, 0.625rem)","spacing":"var(--kendo-spacing-2\\.5, 0.625rem)"</li></ul></td>
<td><ul><li>sm: "padding-x":"var(--kendo-spacing-1, 0.25rem)","padding-y":"var(--kendo-spacing-1, 0.25rem)","spacing":"var(--kendo-spacing-1\\.5, 0.375rem)","separator-height":"calc(1.4285714286 * 1em + var(--kendo-spacing-1, 0.25rem) * 2 + 2px)"</li><li>md: "padding-x":"var(--kendo-spacing-2, 0.5rem)","padding-y":"var(--kendo-spacing-2, 0.5rem)","spacing":"var(--kendo-spacing-2, 0.5rem)","separator-height":"calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-1\\.5, 0.375rem) * 2 + 2px)"</li><li>lg: "padding-x":"var(--kendo-spacing-2\\.5, 0.625rem)","padding-y":"var(--kendo-spacing-2\\.5, 0.625rem)","spacing":"var(--kendo-spacing-2\\.5, 0.625rem)","separator-height":"calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-2, 0.5rem) * 2 + 2px)"</li></ul></td>
</tr>
<tr>
<td colspan="4" class="theme-variables-description-container"><div><b>Description</b><div class="theme-variables-description">The sizes map for the Toolbar.</div></div>
Expand Down
Loading
Loading