Skip to content

Commit

Permalink
Update CSS variables in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Harvey1214 committed Feb 17, 2023
1 parent 6c72b81 commit 28cad6a
Show file tree
Hide file tree
Showing 13 changed files with 104 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ComponentApiDocCssVariable Name="--hx-autosuggest-input-close-icon-opacity" Default=".25">
Opacity of the close icon.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-autosuggest-item-highlighted-background-color" Default="var(--bs-gray-200)">
<ComponentApiDocCssVariable Name="--hx-autosuggest-item-highlighted-background-color" Default="var(--bs-tertiary-bg)">
When <code>HxAutosuggest.HighlightFirstSuggestion</code> is <code>true</code>, then the first item receives this background color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-autosuggest-dropdown-menu-height" Default="300px">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</p>
</MainContent>
<CssVariables>
<ComponentApiDocCssVariable Name="--hx-calendar-day-hover-background" Default="var(--bs-gray-200)">
<ComponentApiDocCssVariable Name="--hx-calendar-day-hover-background" Default="var(--bs-tertiary-bg)">
Day background on hover.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-calendar-day-border" Default="none">
Expand All @@ -40,7 +40,7 @@
<ComponentApiDocCssVariable Name="--hx-calendar-day-selected-border" Default="none">
Border of the selected day.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-calendar-day-out-color" Default="var(--bs-gray-500)">
<ComponentApiDocCssVariable Name="--hx-calendar-day-out-color" Default="var(--bs-tertiary-color)">
Day outer color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-calendar-day-in-color" Default="unset">
Expand All @@ -61,9 +61,12 @@
<ComponentApiDocCssVariable Name="--hx-calendar-navigation-button-focus-box-shadow" Default="0 0 0 0.25rem rgb(0 157 224 / 25%)">
Navigation button box shadow when focused.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-calendar-navigation-button-hover-background" Default="var(--bs-gray-200)">
<ComponentApiDocCssVariable Name="--hx-calendar-navigation-button-hover-background" Default="var(--bs-tertiary-bg)">
Navigation button background on hover.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-calendar-navigation-button-text-color" Default="var(--bs-tertiary-color)">
Navigation button text color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-calendar-day-today-border" Default="none">
Border of today.
</ComponentApiDocCssVariable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<ComponentApiDocCssVariable Name="--hx-context-menu-button-border" Default="unset">
Border radius.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-context-menu-button-hover-background" Default="var(--bs-gray-300)">
<ComponentApiDocCssVariable Name="--hx-context-menu-button-hover-background" Default="var(--bs-tertiary-bg)">
Background of the context menu button on hover.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-context-menu-button-padding" Default="0 .25rem">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</MainContent>

<CssVariables>
<ComponentApiDocCssVariable Name="--hx-grid-button-hover-background" Default="var(--bs-gray-300)">
<ComponentApiDocCssVariable Name="--hx-grid-button-hover-background" Default="var(--bs-tertiary-bg)">
Grid button background color on hover.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-grid-button-border-radius" Default=".25rem">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,51 +1,40 @@
@attribute [Route("/components/" + nameof(HxInputDate))]

<ComponentApiDoc Type="typeof(HxInputDate<TValue>)">
<MainContent>
<DocHeading Title="Basic usage" />
<Demo Type="typeof(HxInputDate_Demo)" Tabs="false" />
<DocHeading Title="Basic usage" />
<Demo Type="typeof(HxInputDate_Demo)" Tabs="false" />

<DocHeading Title="Calendar icon" />
<p>
Optional icon can be added using <code>CalendarIcon</code> parameter.<br />
You can set the icon for all instances of <code>HxInputDate</code> by setting <code>HxInputDate.Defaults.CalendarIcon</code> static property.
</p>
<Demo Type="typeof(HxInputDate_Demo_CalendarIcon)" />
<DocHeading Title="Calendar icon" />
<p>
Optional icon can be added using <code>CalendarIcon</code> parameter.<br />
You can set the icon for all instances of <code>HxInputDate</code> by setting <code>HxInputDate.Defaults.CalendarIcon</code> static property.
</p>
<Demo Type="typeof(HxInputDate_Demo_CalendarIcon)" />

<DocHeading Title="Clear button in calendar" Id="clear-button" />
<p>The <i>Clear</i> button in dropdown calendar can be hidden by setting <code>ShowClearButton="false"</code>.</p>
<Demo Type="typeof(HxInputDate_Demo_ClearButton)" />
<DocHeading Title="Clear button in calendar" Id="clear-button" />
<p>The <i>Clear</i> button in dropdown calendar can be hidden by setting <code>ShowClearButton="false"</code>.</p>
<Demo Type="typeof(HxInputDate_Demo_ClearButton)" />

<DocHeading Title="Sizes" />
<Demo Type="typeof(HxInputDate_Demo_InputSize)" />
<DocHeading Title="Sizes" />
<Demo Type="typeof(HxInputDate_Demo_InputSize)" />

<DocHeading Title="Dropdown calendar customization" Id="CalendarCustomization" />
<p>
You can change rendering of weekend days by defining your own CSS rule for <code>.weekend</code> class.
The disabled days get <code>.disabled</code> class.
</p>
<DocAlert Type="DocAlertType.Warning">
Disabling dates with the techniques below won't prevent the user from entering disabled dates manualy. You still have to validate the value.
</DocAlert>
<DocHeading Title="Dropdown calendar customization" Id="CalendarCustomization" />
<p>
You can change rendering of weekend days by defining your own CSS rule for <code>.weekend</code> class.
The disabled days get <code>.disabled</code> class.
</p>
<DocAlert Type="DocAlertType.Warning">
Disabling dates with the techniques below won't prevent the user from entering disabled dates manualy. You still have to validate the value.
</DocAlert>

<DocHeading Title="MinDate, MaxDate" Level="3" />
<p>You can limit the dropdown calendar values by setting <code>MinDate</code> and/or <code>MaxDate</code>.</p>
<Demo Type="typeof(HxInputDate_Demo_MinDateMaxDate)" />
<DocHeading Title="MinDate, MaxDate" Level="3" />
<p>You can limit the dropdown calendar values by setting <code>MinDate</code> and/or <code>MaxDate</code>.</p>
<Demo Type="typeof(HxInputDate_Demo_MinDateMaxDate)" />

<DocHeading Title="Calendar date customization" Level="3" />
<p>
You can customize the dropdown calendar dates with <code>CalendarDateCustomizationProvider</code>. You can disable individual dates
(<code>Enabled="false"</code>) or set specific CSS class (<code>CssClass="...")</code>.
</p>
<Demo Type="typeof(HxInputDate_Demo_CalendarDateCustomization)" />
</MainContent>
<CssVariables>
<ComponentApiDocCssVariable Name="--hx-input-date-dropdown-padding" Default="1rem">
Padding of the dropdown.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-input-date-calendar-margin-bottom" Default="0">
Margin bottom of the calendar.
</ComponentApiDocCssVariable>
</CssVariables>

<DocHeading Title="Calendar date customization" Level="3" />
<p>
You can customize the dropdown calendar dates with <code>CalendarDateCustomizationProvider</code>. You can disable individual dates
(<code>Enabled="false"</code>) or set specific CSS class (<code>CssClass="...")</code>.
</p>
<Demo Type="typeof(HxInputDate_Demo_CalendarDateCustomization)" />
</ComponentApiDoc>
Original file line number Diff line number Diff line change
@@ -1,51 +1,39 @@
@attribute [Route("/components/" + nameof(HxInputDateRange))]

<ComponentApiDoc Type="typeof(HxInputDateRange)">
<MainContent>
<DocAlert Type="DocAlertType.Warning">
<code>HxInputDateRange</code> does not support additional <code>InputGroups</code>. Learn more about them <a href="/components/Inputs#InputGroups">here</a>.
</DocAlert>

<DocHeading Title="Basic usage" />
<Demo Type="typeof(HxInputDateRange_Demo)" Tabs="false" />

<DocHeading Title="Hide Clear button in calendars" Id="clear-button" />
<p>The <i>Clear</i> button in dropdown calendars can be hidden by setting <code>ShowClearButton="false"</code>.</p>
<Demo Type="typeof(HxInputDateRange_Demo_ClearButton)" />

<DocHeading Title="Predefined date ranges" />
<p>You can add predefined date ranges with <code>PredefinedDateRanges</code> parameter.</p>
<Demo Type="typeof(HxInputDateRange_Demo_CustomRanges)" />
<p>If you set <code>HxInputDateRange.Defaults.PredefinedDateRanges</code> default ranges for the whole application, you can hide them on individual instances with <code>ShowPredefinedDateRanges="false"</code>.</p>

<DocHeading Title="Dropdown calendars customization" />
<p>
You can change rendering of weekend days by defining your own CSS rule for <code>.weekend</code> class.
The disabled days get <code>.disabled</code> class.
</p>
<DocAlert Type="DocAlertType.Warning">
Disabling dates with the techniques below won't prevent the user from entering disabled dates manualy. You still have to validate the value.
</DocAlert>

<DocHeading Title="MinDate, MaxDate" Level="3" />
<p>You can limit the dropdown calendars (both <i>From</i> and <i>To</i> together) enabled dates by setting <code>MinDate</code> and/or <code>MaxDate</code>.</p>
<Demo Type="typeof(HxInputDateRange_Demo_MinDateMaxDate)" />

<DocHeading Title="Calendar date customization" Level="3" />
<p>
You can customize the dropdown calendars' dates with <code>CalendarDateCustomizationProvider</code>. You can disable individual dates
(<code>Enabled="false"</code>) or set specific CSS class (<code>CssClass="...")</code>.
</p>
<Demo Type="typeof(HxInputDateRange_Demo_CalendarDateCustomization)" />

</MainContent>
<CssVariables>
<ComponentApiDocCssVariable Name="--hx-input-date-range-dropdown-padding" Default="1rem">
Padding of the dropdown.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-input-date-range-calendar-margin-bottom" Default="0">
Margin bottom of the calendar.
</ComponentApiDocCssVariable>
</CssVariables>

<DocAlert Type="DocAlertType.Warning">
<code>HxInputDateRange</code> does not support additional <code>InputGroups</code>. Learn more about them <a href="/components/Inputs#InputGroups">here</a>.
</DocAlert>

<DocHeading Title="Basic usage" />
<Demo Type="typeof(HxInputDateRange_Demo)" Tabs="false" />

<DocHeading Title="Hide Clear button in calendars" Id="clear-button" />
<p>The <i>Clear</i> button in dropdown calendars can be hidden by setting <code>ShowClearButton="false"</code>.</p>
<Demo Type="typeof(HxInputDateRange_Demo_ClearButton)" />

<DocHeading Title="Predefined date ranges" />
<p>You can add predefined date ranges with <code>PredefinedDateRanges</code> parameter.</p>
<Demo Type="typeof(HxInputDateRange_Demo_CustomRanges)" />
<p>If you set <code>HxInputDateRange.Defaults.PredefinedDateRanges</code> default ranges for the whole application, you can hide them on individual instances with <code>ShowPredefinedDateRanges="false"</code>.</p>

<DocHeading Title="Dropdown calendars customization" />
<p>
You can change rendering of weekend days by defining your own CSS rule for <code>.weekend</code> class.
The disabled days get <code>.disabled</code> class.
</p>
<DocAlert Type="DocAlertType.Warning">
Disabling dates with the techniques below won't prevent the user from entering disabled dates manualy. You still have to validate the value.
</DocAlert>

<DocHeading Title="MinDate, MaxDate" Level="3" />
<p>You can limit the dropdown calendars (both <i>From</i> and <i>To</i> together) enabled dates by setting <code>MinDate</code> and/or <code>MaxDate</code>.</p>
<Demo Type="typeof(HxInputDateRange_Demo_MinDateMaxDate)" />

<DocHeading Title="Calendar date customization" Level="3" />
<p>
You can customize the dropdown calendars' dates with <code>CalendarDateCustomizationProvider</code>. You can disable individual dates
(<code>Enabled="false"</code>) or set specific CSS class (<code>CssClass="...")</code>.
</p>
<Demo Type="typeof(HxInputDateRange_Demo_CalendarDateCustomization)" />
</ComponentApiDoc>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<ComponentApiDocCssVariable Name="--hx-input-file-drop-zone-hover-box-shadow" Default="0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25)">
Box shadow of the drop zone on hover.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-input-file-drop-zone-border-color" Default="var(--bs-gray-400)">
<ComponentApiDocCssVariable Name="--hx-input-file-drop-zone-border-color" Default="var(--bs-border-color)">
Border color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-input-file-drop-zone-background-color" Default="transparent">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<ComponentApiDocCssVariable Name="--hx-input-tags-input-width" Default="3em">
Input width.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-input-tags-input-placeholder-color" Default="var(--bs-gray-600)">
<ComponentApiDocCssVariable Name="--hx-input-tags-input-placeholder-color" Default="var(--bs-secondary-color)">
Color of the placeholder input.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-input-tags-naked-font-size-lg" Default="1.25em">
Expand All @@ -82,6 +82,9 @@
<ComponentApiDocCssVariable Name="--hx-input-tags-add-button-text-margin" Default="rgba(var(--bs-primary-rgb), .3)">
Margin of an add button text.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-input-tags-dropdown-item-highlighted-background-color" Default="var(--bs-tertiary-bg)">
Background color of a dropdown item when highlighted.
</ComponentApiDocCssVariable>

</CssVariables>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Height of the dropdown menu.
</ComponentApiDocCssVariable>

<ComponentApiDocCssVariable Name="--hx-multi-select-background-color" Default="var(--bs-white)">
<ComponentApiDocCssVariable Name="--hx-multi-select-background-color" Default="var(--bs-form-control-bg)">
Height of the dropdown menu.
</ComponentApiDocCssVariable>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
<Demo Type="typeof(HxProgressIndicator_Demo)" />
</MainContent>
<CssVariables>
<ComponentApiDocCssVariable Name="--hx-progress-indicator-background" Default="var(--bs-white)">
<ComponentApiDocCssVariable Name="--hx-progress-indicator-background" Default="var(--bs-body-bg)">
Background of the progress indicator.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-progress-indicator-spinner-color" Default="var(--bs-primary)">
Color of the spinner.
<ComponentApiDocCssVariable Name="--hx-progress-indicator-box-shadow" Default="var(--bs-box-shadow)">
Box shadow of the progress indicator.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-progress-overlay-color" Default="var(--bs-white)">
Progress overlay color.
<ComponentApiDocCssVariable Name="--hx-progress-indicator-border-color" Default="var(--bs-border-color)">
Border color of the progress indicator.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-progress-overlay-opacity" Default=".65">
Progress overlay opacity.
<ComponentApiDocCssVariable Name="--hx-progress-indicator-spinner-color" Default="var(--bs-primary)">
Color of the spinner.
</ComponentApiDocCssVariable>

</CssVariables>
</ComponentApiDoc>
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
<ComponentApiDocCssVariable Name="--hx-search-box-dropdown-menu-height" Default="300px">
Maximum height of results dropdown menu.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-search-box-item-highlighted-background-color" Default="var(--bs-tertiary-bg)">
Background color of an item when highlighted.
</ComponentApiDocCssVariable>
</CssVariables>
</ComponentApiDoc>
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,15 @@
<ComponentApiDocCssVariable Name="--hx-sidebar-width" Default="250px">
Width of the sidebar.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-toggler-border" Default="1px solid var(--bs-gray-200)">
<ComponentApiDocCssVariable Name="--hx-sidebar-toggler-border" Default="1px solid var(--bs-border-color)">
Toggler border.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-toggler-background" Default="var(--bs-white)">
Toggler background.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-toggler-color" Default="var(--bs-dark)">
Toggler color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-sidebar-item-font-size" Default="1rem">
Font size of the items.
</ComponentApiDocCssVariable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Width of spacer used for sub-items intendation.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-item-color" Default="var(--bs-dark)">
Item font color
Item font color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-item-icon-margin" Default="0 .25rem 0 0;">
Margin of item icon.
Expand All @@ -40,25 +40,25 @@
Item margin.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-item-hover-color" Default="var(--bs-primary)">
Hovered item font color
Hovered item font color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-item-selected-color" Default="var(--bs-primary)">
Selected item font color
Selected item font color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-item-background" Default="var(--bs-white)">
Item background color
<ComponentApiDocCssVariable Name="--hx-tree-view-item-background" Default="transparent">
Item background color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-item-hover-background" Default="var(--bs-primary-rgb)">
Hovered item background color
Hovered item background color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-item-selected-background" Default="var(--bs-primary-rgb)">
Selected item background color
Selected item background color.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-item-hover-background-opacity" Default=".1">
Hovered/selected item background color opacity
Hovered/selected item background color opacity.
</ComponentApiDocCssVariable>
<ComponentApiDocCssVariable Name="--hx-tree-view-expander-container-width" Default="1rem">
Width of expander container to make items w/ and w/o children aligned
Width of expander container to make items w/ and w/o children aligned.
</ComponentApiDocCssVariable>
</CssVariables>

Expand Down

0 comments on commit 28cad6a

Please sign in to comment.