-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add CSS variables section in API Ref (#399)
- Loading branch information
Showing
10 changed files
with
84 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module.exports = { | ||
template: ` | ||
{{#if cssVariables}} | ||
<h3 class="comment-api-title" >CSS variables</h3> | ||
<p class="small-space-top">You can use the following CSS varialbes to change the component styling.</p> | ||
<div class="small-space-top api-table"> | ||
<div class="head api-table-header-roll"> | ||
<div class="cell api-table-header-cell">Name</div> | ||
<div class="cell api-table-header-cell">Description</div> | ||
</div> | ||
{{#each cssVariables}} | ||
<div class="row {{checkEven @index}}"> | ||
<div class="cell api-table-content-cell api-table-content-cell-bold">{{this.name}}</div> | ||
<div class="cell api-table-content-cell api-table-content-cell-description"> | ||
{{{this.description}}} | ||
</div> | ||
</div> | ||
{{/each}} | ||
</div> | ||
{{/if}}` | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"GroupHeaderListItem": [ | ||
{ | ||
"name": "--ui5-group-header-listitem-background-color", | ||
"description": "Defines the <code>ui5-li-groupheader</code> background color" | ||
} | ||
], | ||
"ListItem": [ | ||
{ | ||
"name": "--ui5-listitem-background-color", | ||
"description": "Defines the<code>ui5-li</code> background color" | ||
} | ||
], | ||
"Panel": [ | ||
{ | ||
"name": "--ui5-panel-background-color", | ||
"description": "Defines the <code>ui5-panel</code> background color" | ||
}, | ||
{ | ||
"name": "--ui5-panel-bottom-border-color", | ||
"description": "Defines the <code>ui5-panel</code> bottom border color" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/main/src/themes/base/GroupHeaderListItem-parameters.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
:root { | ||
--_ui5_group_header_listitem_background_color: var(--sapUiListGroupHeaderBackground); | ||
--ui5-group-header-listitem-background-color: var(--sapUiListGroupHeaderBackground); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
:root { | ||
--ui5-listitem-background-color: var(--sapUiListBackground); | ||
--_ui5_listitembase_focus_width: 1px; | ||
--_ui5_listitem_background_color: var(--sapUiListBackground); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
:root { | ||
--ui5-panel-background-color: var(--sapUiGroupContentBackground); | ||
--ui5-panel-bottom-border-color: var(--sapUiGroupTitleBorderColor); | ||
--_ui5_panel_focus_border: 1px dotted var(--sapUiContentFocusColor); | ||
--_ui5_panel_background_color: var(--sapUiGroupContentBackground); | ||
--_ui5_panel_bottom_border_color: var(--sapUiGroupTitleBorderColor); | ||
} |