@openui5/themelib_sap_horizon 1.100.0 → 1.101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/THIRDPARTY.txt +5 -5
  2. package/package.json +18 -18
  3. package/src/sap/f/themes/sap_horizon/Card.less +4 -0
  4. package/src/sap/f/themes/sap_horizon/DynamicPage.less +12 -12
  5. package/src/sap/f/themes/sap_horizon/DynamicPageHeader.less +1 -30
  6. package/src/sap/f/themes/sap_horizon/DynamicPageTitle.less +5 -9
  7. package/src/sap/f/themes/sap_horizon/GridList.less +9 -0
  8. package/src/sap/f/themes/sap_horizon/GridListItem.less +5 -2
  9. package/src/sap/f/themes/sap_horizon/library.source.less +1 -0
  10. package/src/sap/f/themes/sap_horizon_dark/Card.less +4 -0
  11. package/src/sap/f/themes/sap_horizon_dark/DynamicPage.less +12 -12
  12. package/src/sap/f/themes/sap_horizon_dark/DynamicPageHeader.less +1 -30
  13. package/src/sap/f/themes/sap_horizon_dark/DynamicPageTitle.less +1 -5
  14. package/src/sap/f/themes/sap_horizon_dark/GridList.less +9 -0
  15. package/src/sap/f/themes/sap_horizon_dark/GridListItem.less +5 -2
  16. package/src/sap/f/themes/sap_horizon_dark/library.source.less +1 -0
  17. package/src/sap/f/themes/sap_horizon_hcb/Card.less +4 -0
  18. package/src/sap/f/themes/sap_horizon_hcb/DynamicPage.less +38 -2
  19. package/src/sap/f/themes/sap_horizon_hcb/DynamicPageHeader.less +10 -5
  20. package/src/sap/f/themes/sap_horizon_hcb/DynamicPageTitle.less +9 -8
  21. package/src/sap/f/themes/sap_horizon_hcb/GridList.less +6 -0
  22. package/src/sap/f/themes/sap_horizon_hcb/GridListItem.less +2 -4
  23. package/src/sap/f/themes/sap_horizon_hcb/library.source.less +1 -0
  24. package/src/sap/f/themes/sap_horizon_hcw/Card.less +4 -0
  25. package/src/sap/f/themes/sap_horizon_hcw/DynamicPage.less +38 -2
  26. package/src/sap/f/themes/sap_horizon_hcw/DynamicPageHeader.less +9 -4
  27. package/src/sap/f/themes/sap_horizon_hcw/DynamicPageTitle.less +9 -8
  28. package/src/sap/f/themes/sap_horizon_hcw/GridList.less +6 -0
  29. package/src/sap/f/themes/sap_horizon_hcw/GridListItem.less +2 -4
  30. package/src/sap/f/themes/sap_horizon_hcw/library.source.less +1 -0
  31. package/src/sap/m/themes/sap_horizon/Avatar.less +34 -105
  32. package/src/sap/m/themes/sap_horizon/Button.less +5 -10
  33. package/src/sap/m/themes/sap_horizon/CheckBox.less +140 -197
  34. package/src/sap/m/themes/sap_horizon/Dialog.less +36 -21
  35. package/src/sap/m/themes/sap_horizon/IconTabBar.less +132 -45
  36. package/src/sap/m/themes/sap_horizon/InputBase.less +59 -137
  37. package/src/sap/m/themes/sap_horizon/Link.less +17 -13
  38. package/src/sap/m/themes/sap_horizon/MessageStrip.less +7 -8
  39. package/src/sap/m/themes/sap_horizon/ObjectAttribute.less +14 -21
  40. package/src/sap/m/themes/sap_horizon/OverflowToolbarAssociativePopover.less +19 -0
  41. package/src/sap/m/themes/sap_horizon/Popover.less +22 -8
  42. package/src/sap/m/themes/sap_horizon/SegmentedButton.less +1 -1
  43. package/src/sap/m/themes/sap_horizon/Select.less +125 -53
  44. package/src/sap/m/themes/sap_horizon/SelectList.less +19 -2
  45. package/src/sap/m/themes/sap_horizon/SuggestionsPopover.less +0 -4
  46. package/src/sap/m/themes/sap_horizon/Switch.less +180 -137
  47. package/src/sap/m/themes/sap_horizon/Token.less +28 -40
  48. package/src/sap/m/themes/sap_horizon/Tokenizer.less +5 -2
  49. package/src/sap/m/themes/sap_horizon/Toolbar.less +24 -20
  50. package/src/sap/m/themes/sap_horizon/ValueStateHeader.less +15 -14
  51. package/src/sap/m/themes/sap_horizon/ValueStateMessage.less +13 -11
  52. package/src/sap/m/themes/sap_horizon_dark/Avatar.less +34 -103
  53. package/src/sap/m/themes/sap_horizon_dark/Button.less +5 -10
  54. package/src/sap/m/themes/sap_horizon_dark/CheckBox.less +140 -197
  55. package/src/sap/m/themes/sap_horizon_dark/Dialog.less +36 -22
  56. package/src/sap/m/themes/sap_horizon_dark/GenericTile.less +0 -4
  57. package/src/sap/m/themes/sap_horizon_dark/IconTabBar.less +195 -107
  58. package/src/sap/m/themes/sap_horizon_dark/InputBase.less +59 -136
  59. package/src/sap/m/themes/sap_horizon_dark/Link.less +17 -13
  60. package/src/sap/m/themes/sap_horizon_dark/MessageStrip.less +7 -9
  61. package/src/sap/m/themes/sap_horizon_dark/ObjectAttribute.less +14 -21
  62. package/src/sap/m/themes/sap_horizon_dark/OverflowToolbarAssociativePopover.less +19 -0
  63. package/src/sap/m/themes/sap_horizon_dark/Popover.less +22 -7
  64. package/src/sap/m/themes/sap_horizon_dark/SegmentedButton.less +1 -1
  65. package/src/sap/m/themes/sap_horizon_dark/Select.less +125 -53
  66. package/src/sap/m/themes/sap_horizon_dark/SelectList.less +19 -2
  67. package/src/sap/m/themes/sap_horizon_dark/SuggestionsPopover.less +0 -4
  68. package/src/sap/m/themes/sap_horizon_dark/Switch.less +180 -137
  69. package/src/sap/m/themes/sap_horizon_dark/Token.less +26 -38
  70. package/src/sap/m/themes/sap_horizon_dark/Tokenizer.less +5 -2
  71. package/src/sap/m/themes/sap_horizon_dark/Toolbar.less +24 -20
  72. package/src/sap/m/themes/sap_horizon_dark/ValueStateHeader.less +15 -14
  73. package/src/sap/m/themes/sap_horizon_dark/ValueStateMessage.less +12 -11
  74. package/src/sap/m/themes/sap_horizon_hcb/Avatar.less +35 -41
  75. package/src/sap/m/themes/sap_horizon_hcb/Carousel.less +0 -1
  76. package/src/sap/m/themes/sap_horizon_hcb/CheckBox.less +153 -125
  77. package/src/sap/m/themes/sap_horizon_hcb/Dialog.less +27 -11
  78. package/src/sap/m/themes/sap_horizon_hcb/IconTabBar.less +5 -0
  79. package/src/sap/m/themes/sap_horizon_hcb/InputBase.less +23 -37
  80. package/src/sap/m/themes/sap_horizon_hcb/Link.less +21 -11
  81. package/src/sap/m/themes/sap_horizon_hcb/MessageStrip.less +5 -10
  82. package/src/sap/m/themes/sap_horizon_hcb/ObjectAttribute.less +8 -9
  83. package/src/sap/m/themes/sap_horizon_hcb/ObjectNumber.less +1 -1
  84. package/src/sap/m/themes/sap_horizon_hcb/OverflowToolbarAssociativePopover.less +19 -0
  85. package/src/sap/m/themes/sap_horizon_hcb/Page.less +1 -1
  86. package/src/sap/m/themes/sap_horizon_hcb/Popover.less +54 -3
  87. package/src/sap/m/themes/sap_horizon_hcb/RadioButton.less +6 -7
  88. package/src/sap/m/themes/sap_horizon_hcb/Select.less +25 -23
  89. package/src/sap/m/themes/sap_horizon_hcb/SelectList.less +5 -0
  90. package/src/sap/m/themes/sap_horizon_hcb/Switch.less +232 -120
  91. package/src/sap/m/themes/sap_horizon_hcb/Table.less +0 -4
  92. package/src/sap/m/themes/sap_horizon_hcb/Token.less +3 -33
  93. package/src/sap/m/themes/sap_horizon_hcb/Tokenizer.less +3 -0
  94. package/src/sap/m/themes/sap_horizon_hcb/Toolbar.less +72 -0
  95. package/src/sap/m/themes/sap_horizon_hcb/ValueStateHeader.less +58 -0
  96. package/src/sap/m/themes/sap_horizon_hcb/ValueStateMessage.less +41 -10
  97. package/src/sap/m/themes/sap_horizon_hcb/library.source.less +0 -1
  98. package/src/sap/m/themes/sap_horizon_hcw/Avatar.less +35 -41
  99. package/src/sap/m/themes/sap_horizon_hcw/Carousel.less +0 -1
  100. package/src/sap/m/themes/sap_horizon_hcw/CheckBox.less +153 -125
  101. package/src/sap/m/themes/sap_horizon_hcw/Dialog.less +27 -11
  102. package/src/sap/m/themes/sap_horizon_hcw/IconTabBar.less +5 -0
  103. package/src/sap/m/themes/sap_horizon_hcw/InputBase.less +23 -37
  104. package/src/sap/m/themes/sap_horizon_hcw/Link.less +21 -11
  105. package/src/sap/m/themes/sap_horizon_hcw/MessageStrip.less +5 -10
  106. package/src/sap/m/themes/sap_horizon_hcw/ObjectAttribute.less +8 -9
  107. package/src/sap/m/themes/sap_horizon_hcw/OverflowToolbarAssociativePopover.less +19 -0
  108. package/src/sap/m/themes/sap_horizon_hcw/Page.less +1 -1
  109. package/src/sap/m/themes/sap_horizon_hcw/Popover.less +54 -3
  110. package/src/sap/m/themes/sap_horizon_hcw/RadioButton.less +6 -7
  111. package/src/sap/m/themes/sap_horizon_hcw/Select.less +25 -22
  112. package/src/sap/m/themes/sap_horizon_hcw/SelectList.less +5 -0
  113. package/src/sap/m/themes/sap_horizon_hcw/Switch.less +232 -120
  114. package/src/sap/m/themes/sap_horizon_hcw/Table.less +0 -4
  115. package/src/sap/m/themes/sap_horizon_hcw/Token.less +3 -32
  116. package/src/sap/m/themes/sap_horizon_hcw/Tokenizer.less +23 -20
  117. package/src/sap/m/themes/sap_horizon_hcw/Toolbar.less +72 -0
  118. package/src/sap/m/themes/sap_horizon_hcw/ValueStateHeader.less +58 -0
  119. package/src/sap/m/themes/sap_horizon_hcw/ValueStateMessage.less +41 -10
  120. package/src/sap/m/themes/sap_horizon_hcw/library.source.less +0 -1
  121. package/src/sap/ui/core/themes/sap_horizon/.theme +1 -1
  122. package/src/sap/ui/core/themes/sap_horizon/base.less +427 -41
  123. package/src/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2 +0 -0
  124. package/src/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2 +0 -0
  125. package/src/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2 +0 -0
  126. package/src/sap/ui/core/themes/sap_horizon/fonts/72-Light-full.woff2 +0 -0
  127. package/src/sap/ui/core/themes/sap_horizon/fonts/72-Light.woff2 +0 -0
  128. package/src/sap/ui/core/themes/sap_horizon/fonts/72-Regular-full.woff2 +0 -0
  129. package/src/sap/ui/core/themes/sap_horizon/fonts/72-Regular.woff2 +0 -0
  130. package/src/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold-full.woff2 +0 -0
  131. package/src/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold.woff2 +0 -0
  132. package/src/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular-full.woff2 +0 -0
  133. package/src/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular.woff2 +0 -0
  134. package/src/sap/ui/core/themes/sap_horizon/global.less +8 -6
  135. package/src/sap/ui/core/themes/sap_horizon/shared.less +0 -1
  136. package/src/sap/ui/core/themes/sap_horizon_dark/.theme +1 -1
  137. package/src/sap/ui/core/themes/sap_horizon_dark/base.less +417 -31
  138. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72-Black.woff2 +0 -0
  139. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72-Bold-full.woff2 +0 -0
  140. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72-Bold.woff2 +0 -0
  141. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72-Light-full.woff2 +0 -0
  142. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72-Light.woff2 +0 -0
  143. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72-Regular-full.woff2 +0 -0
  144. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72-Regular.woff2 +0 -0
  145. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72Mono-Bold-full.woff2 +0 -0
  146. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72Mono-Bold.woff2 +0 -0
  147. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72Mono-Regular-full.woff2 +0 -0
  148. package/src/sap/ui/core/themes/sap_horizon_dark/fonts/72Mono-Regular.woff2 +0 -0
  149. package/src/sap/ui/core/themes/sap_horizon_dark/global.less +8 -6
  150. package/src/sap/ui/core/themes/sap_horizon_dark/shared.less +0 -1
  151. package/src/sap/ui/core/themes/sap_horizon_hcb/.theme +1 -1
  152. package/src/sap/ui/core/themes/sap_horizon_hcb/base.less +399 -13
  153. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72-Black.woff2 +0 -0
  154. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72-Bold-full.woff2 +0 -0
  155. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72-Bold.woff2 +0 -0
  156. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72-Light-full.woff2 +0 -0
  157. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72-Light.woff2 +0 -0
  158. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72-Regular-full.woff2 +0 -0
  159. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72-Regular.woff2 +0 -0
  160. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72Mono-Bold-full.woff2 +0 -0
  161. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72Mono-Bold.woff2 +0 -0
  162. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72Mono-Regular-full.woff2 +0 -0
  163. package/src/sap/ui/core/themes/sap_horizon_hcb/fonts/72Mono-Regular.woff2 +0 -0
  164. package/src/sap/ui/core/themes/sap_horizon_hcb/global.less +13 -5
  165. package/src/sap/ui/core/themes/sap_horizon_hcw/.theme +1 -1
  166. package/src/sap/ui/core/themes/sap_horizon_hcw/base.less +397 -11
  167. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72-Black.woff2 +0 -0
  168. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72-Bold-full.woff2 +0 -0
  169. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72-Bold.woff2 +0 -0
  170. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72-Light-full.woff2 +0 -0
  171. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72-Light.woff2 +0 -0
  172. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72-Regular-full.woff2 +0 -0
  173. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72-Regular.woff2 +0 -0
  174. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72Mono-Bold-full.woff2 +0 -0
  175. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72Mono-Bold.woff2 +0 -0
  176. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72Mono-Regular-full.woff2 +0 -0
  177. package/src/sap/ui/core/themes/sap_horizon_hcw/fonts/72Mono-Regular.woff2 +0 -0
  178. package/src/sap/ui/core/themes/sap_horizon_hcw/global.less +13 -5
  179. package/src/sap/ui/integration/themes/sap_horizon_dark/Paginator.less +5 -0
  180. package/src/sap/ui/integration/themes/sap_horizon_dark/library.source.less +3 -1
  181. package/src/sap/ui/integration/themes/sap_horizon_hcb/Paginator.less +11 -0
  182. package/src/sap/ui/integration/themes/sap_horizon_hcb/library.source.less +2 -1
  183. package/src/sap/ui/integration/themes/sap_horizon_hcw/Paginator.less +11 -0
  184. package/src/sap/ui/integration/themes/sap_horizon_hcw/library.source.less +2 -1
  185. package/src/sap/ui/unified/themes/sap_horizon/Calendar.less +172 -61
  186. package/src/sap/ui/unified/themes/sap_horizon/FileUploader.less +7 -0
  187. package/src/sap/ui/unified/themes/sap_horizon_dark/Calendar.less +174 -63
  188. package/src/sap/ui/unified/themes/sap_horizon_dark/FileUploader.less +7 -0
  189. package/src/sap/ui/unified/themes/sap_horizon_hcb/Calendar.less +275 -93
  190. package/src/sap/ui/unified/themes/sap_horizon_hcb/FileUploader.less +7 -0
  191. package/src/sap/ui/unified/themes/sap_horizon_hcw/Calendar.less +310 -127
  192. package/src/sap/ui/unified/themes/sap_horizon_hcw/FileUploader.less +7 -0
  193. package/src/sap/m/themes/sap_horizon_hcb/SuggestionsPopover.less +0 -15
  194. package/src/sap/m/themes/sap_horizon_hcw/SuggestionsPopover.less +0 -15
@@ -3,13 +3,18 @@
3
3
  /* Horizon High Contrast White theme */
4
4
  /* ======================================== */
5
5
 
6
- .sapFDynamicPage-Std-Desktop .sapFDynamicPageHeader.sapFDynamicPageHeaderWithContent {
7
- padding: 1rem 2rem;
8
- }
9
-
10
6
  .sapFDynamicPageHeader {
7
+ &.sapFDynamicPageHeaderSolid,
11
8
  &.sapFDynamicPageHeaderTransparent,
12
9
  &.sapFDynamicPageHeaderTranslucent {
13
10
  background: @sapUiObjectHeaderBackground;
14
11
  }
12
+ }
13
+
14
+ .sapFDynamicPageNavigation .sapFDynamicPageHeader.sapFDynamicPageHeaderWithContent {
15
+ box-shadow: none;
16
+ }
17
+
18
+ .sapFDynamicPageToggleHeaderIndicator:not(.sapUiHidden) + .sapFDynamicPageHeaderPinButton:before {
19
+ display: none;
15
20
  }
@@ -3,11 +3,6 @@
3
3
  /* Horizon High Contrast White theme */
4
4
  /* ======================================= */
5
5
 
6
- .sapFDynamicPageTitleWrapper.sapFDynamicPageTitleSnapped > .sapFDynamicPageTitle:focus,
7
- .sapFDynamicPageTitleWrapper.sapFDynamicPageTitleOnly > .sapFDynamicPageTitle:focus {
8
- box-shadow: none;
9
- }
10
-
11
6
  html.sap-desktop .sapFDynamicPageTitle.sapFDynamicPageTitleFocus {
12
7
  outline-width: 0.125rem;
13
8
  outline-offset: -0.25rem; // due to bottom border overlapping
@@ -21,7 +16,8 @@ html.sap-desktop .sapFDynamicPageTitle.sapFDynamicPageTitleFocus {
21
16
  padding: 0.5rem 2rem;
22
17
  word-wrap: break-word;
23
18
 
24
- &.sapFDynamicPageTitleTransparent {
19
+ &.sapFDynamicPageTitleTransparent,
20
+ &.sapFDynamicPageTitleTranslucent {
25
21
  background: @sapUiObjectHeaderBackground;
26
22
  }
27
23
  }
@@ -108,6 +104,11 @@ html[data-sap-ui-browser^="ff"].sap-desktop {
108
104
  }
109
105
  }
110
106
 
111
- .sapFDynamicPageNavigation .sapFDynamicPageTitleWrapper.sapFDynamicPageTitleOnly > .sapFDynamicPageTitle {
112
- box-shadow: none;
107
+ .sapFDynamicPageNavigation .sapFDynamicPageTitleWrapper {
108
+ &.sapFDynamicPageTitleSnapped,
109
+ &.sapFDynamicPageTitleOnly {
110
+ & > .sapFDynamicPageTitle {
111
+ box-shadow: none;
112
+ }
113
+ }
113
114
  }
@@ -0,0 +1,6 @@
1
+ /* ================================= */
2
+ /* CSS for control sap.f/GridList */
3
+ /* Horizon High Contrast White theme */
4
+ /* ================================= */
5
+
6
+ @_sap_f_GridList_ItemFocusBorderRadius: unset;
@@ -3,8 +3,6 @@
3
3
  /* Horizon High Contrast White theme */
4
4
  /* =================================== */
5
5
 
6
- @_sap_f_GridListItem_Header_BoxShadow: 0 0 0.25rem 0 fade(@sapUiContentShadowColor, 15), inset 0 -0.0625rem 0 0 @sapUiPageHeaderBorderColor;
6
+ @_sap_f_GridListItem_HeaderBoxShadow: none;
7
7
  @_sap_f_GridListItem_HeaderHeight: 2.75rem;
8
- @_sap_f_GridListItem_BorderHover: 0 0 0 0.125rem @sapContent_ShadowColor;
9
- @_sap_f_GridListItem_BorderSelected: 0 0 0 0.125rem @sapUiListSelectionBorderColor;
10
- @_sap_f_GridListItem_Header_BoxShadowActive: @_sap_f_GridListItem_Header_BoxShadow;
8
+
@@ -15,6 +15,7 @@
15
15
  @import "Card.less";
16
16
  @import "ShellBar.less";
17
17
  @import "CardLoading.less";
18
+ @import "GridList.less";
18
19
  @import "GridContainer.less";
19
20
  @import "GridListItem.less";
20
21
  @import "DynamicPageHeader.less";
@@ -3,7 +3,11 @@
3
3
  /* Horizon theme */
4
4
  /* ============================= */
5
5
 
6
-
6
+ @_sap_m_Avatar_Font_Size_XL: 3rem;
7
+ @_sap_m_Avatar_Font_Size_L: 2.25rem;
8
+ @_sap_m_Avatar_Font_Size_M: 1.5rem;
9
+ @_sap_m_Avatar_Font_Size_S: 1.125rem;
10
+ @_sap_m_Avatar_Font_Size_XS: 1rem;
7
11
 
8
12
  .sapFAvatarSquare {
9
13
  border-radius: @sapUiElementBorderCornerRadius;
@@ -13,120 +17,45 @@
13
17
  }
14
18
  }
15
19
 
16
- .sapFAvatarXL{
17
- font-size: 3rem;
18
- }
19
-
20
- .sapFAvatarL {
21
- font-size: 2.25rem;
22
- }
23
-
24
- .sapFAvatarM {
25
- font-size: 1.5rem;
26
- }
27
-
28
- .sapFAvatarS {
29
- font-size: 1.125rem;
30
- }
31
-
32
- .sapFAvatarXS {
33
- font-size: 1rem;
34
- }
35
-
36
20
  .sapFAvatar.sapFAvatarInitials > .sapFAvatarInitialsHolder {
37
21
  font-size: inherit;
38
22
  }
39
23
 
40
- .sapFAvatarColorAccent1 {
41
- background-color: @sapAccentBackgroundColor1;
42
- color: darken(@sapAccentColor1, 10);
43
- }
44
- .sapFAvatarColorAccent1 .sapFAvatarInitialsHolder {
45
- color: darken(@sapAccentColor1, 10);
46
- }
47
-
48
- .sapFAvatarColorAccent2 {
49
- background-color: @sapAccentBackgroundColor2;
50
- color: @sapAccentColor2;
51
- }
52
- .sapFAvatarColorAccent2 .sapFAvatarInitialsHolder {
53
- color: @sapAccentColor2;
54
- }
55
-
56
- .sapFAvatarColorAccent3 {
57
- background-color: @sapAccentBackgroundColor3;
58
- color: darken(@sapAccentColor3, 10);
59
- }
60
- .sapFAvatarColorAccent3 .sapFAvatarInitialsHolder {
61
- color: darken(@sapAccentColor3, 10);
62
- }
63
-
64
- .sapFAvatarColorAccent4 {
65
- background-color: @sapAccentBackgroundColor4;
66
- color: @sapAccentColor4;
67
- }
68
- .sapFAvatarColorAccent4 .sapFAvatarInitialsHolder {
69
- color: @sapAccentColor4;
70
- }
71
-
72
- .sapFAvatarColorAccent5 {
73
- background-color: @sapAccentBackgroundColor5;
74
- color: darken(@sapAccentColor5, 2);
75
- }
76
- .sapFAvatarColorAccent5 .sapFAvatarInitialsHolder {
77
- color: darken(@sapAccentColor5, 2);
78
- }
79
-
80
- .sapFAvatarColorAccent6 {
81
- background-color: @sapAccentBackgroundColor6;
82
- color: @sapAccentColor6;
83
- }
84
- .sapFAvatarColorAccent6 .sapFAvatarInitialsHolder {
85
- color: @sapAccentColor6;
86
- }
87
-
88
- .sapFAvatarColorAccent7 {
89
- background-color: @sapAccentBackgroundColor7;
90
- color: @sapAccentColor7;
91
- }
92
- .sapFAvatarColorAccent7 .sapFAvatarInitialsHolder {
93
- color: @sapAccentColor7;
24
+ .sapFAvatarFocusable:focus {
25
+ outline: none;
26
+ box-shadow: 0px 0px 0px 0.125rem @sapUiContentFocusColor;
94
27
  }
95
28
 
96
- .sapFAvatarColorAccent8 {
97
- background-color: @sapAccentBackgroundColor8;
98
- color: @sapAccentColor8;
99
- }
100
- .sapFAvatarColorAccent8 .sapFAvatarInitialsHolder {
101
- color: @sapAccentColor8;
102
- }
29
+ .sapFAvatarColorTileIcon {
30
+ background-color: @sapUiTileBackground;
31
+ color: @sapUiTileIconColor;
103
32
 
104
- .sapFAvatarColorAccent9 {
105
- background-color: @sapAccentBackgroundColor9;
106
- color: darken(@sapAccentColor9, 2);
107
- }
108
- .sapFAvatarColorAccent9 .sapFAvatarInitialsHolder {
109
- color: darken(@sapAccentColor9, 2);
33
+ .sapFAvatarInitialsHolder {
34
+ color: currentColor;
35
+ }
110
36
  }
111
37
 
112
- .sapFAvatarColorAccent10 {
113
- background-color: @sapAccentBackgroundColor10;
114
- color: darken(@sapAccentColor10, 3);
115
- }
116
- .sapFAvatarColorAccent10 .sapFAvatarInitialsHolder {
117
- color: darken(@sapAccentColor10, 3);
38
+ .sapFAvatarColorPlaceholder {
39
+ background-color: @sapUiContentImagePlaceholderBackground;
40
+ color: @sapUiContentImagePlaceholderForegroundColor;;
41
+ .sapFAvatarInitialsHolder {
42
+ color: currentColor;
43
+ }
118
44
  }
119
45
 
120
- .sapFAvatarColorTileIcon {
121
- background-color: @sapAccentBackgroundColor10;
122
- color: @sapTile_IconColor;
123
- }
46
+ .generateColor (@accentIndex) {
47
+ @css-selector: ~"sapFAvatarColorAccent@{accentIndex}"; // Create the css selector string
48
+ @background-param: ~"sapUiAvatar@{accentIndex}Background"; // Build the color param which is a sapUiAccent
49
+ @color-param: ~"sapUiAvatar@{accentIndex}TextColor";
124
50
 
125
- .sapFAvatarColorTileIcon .sapFAvatarInitialsHolder {
126
- color: @sapTile_IconColor;
127
- }
51
+ // Build the real CSS selector.
52
+ // The output would be something like this: .sapFAvatar.sapFAvatarColorAccent6 {background-color: #0092d1;}
53
+ .@{css-selector} {
54
+ background-color: @@background-param;
55
+ }
128
56
 
129
- .sapFAvatarFocusable:focus {
130
- outline: none;
131
- box-shadow: 0px 0px 0px 0.125rem @sapUiContentFocusColor;
132
- }
57
+ .@{css-selector}.sapFAvatarIcon,
58
+ .@{css-selector} .sapFAvatarInitialsHolder {
59
+ color: contrast(@@background-param, @@color-param, @sapContent_ContrastTextColor, @sapContent_ContrastTextThreshold);
60
+ }
61
+ }
@@ -155,10 +155,6 @@ span.sapMBtnInner.sapMBtnEmphasized {
155
155
  /* Custom focus border: */
156
156
  /* ---------------------------------------------------------------------*/
157
157
 
158
- html.sap-desktop .sapMBtn:focus > .sapMBtnActive.sapMFocusable {
159
- border-color: @sapUiContentContrastFocusColor;
160
- }
161
-
162
158
  html.sap-desktop .sapMBtn:focus > .sapMBtnEmphasized.sapMBtnActive.sapMFocusable {
163
159
  border-color: @sapUiContentFocusColor;
164
160
  }
@@ -243,12 +239,6 @@ html.sap-desktop .sapMFooter-CTX .sapMBtnInner.sapMBtnReject {
243
239
  background-color: @sapUiButtonActiveBackground;
244
240
  }
245
241
 
246
- :not(.sapMBtnDisabled) > span.sapMBtnInner.sapMBtnIconFirst.sapMBtnTransparent.sapMBtnActive,
247
- :not(.sapMBtnDisabled) > span.sapMBtnInner.sapMBtnIconLast.sapMBtnTransparent.sapMBtnActive {
248
- background-color: @sapUiButtonLiteActiveBackground;
249
- border-color: @sapUiButtonLiteActiveBorderColor;
250
- }
251
-
252
242
  // text color for enabled buttons
253
243
  :not(.sapMBtnDisabled) > .sapMBtnInner.sapMBtnAccept.sapMBtnActive,
254
244
  :not(.sapMBtnDisabled) > .sapMBtnInner.sapMBtnAccept.sapMBtnActive .sapMBtnIcon {
@@ -265,6 +255,11 @@ html.sap-desktop .sapMFooter-CTX .sapMBtnInner.sapMBtnReject {
265
255
  color: @sapUiButtonAttentionActiveTextColor;
266
256
  }
267
257
 
258
+ :not(.sapMBtnDisabled) .sapMBtnBack > .sapMBtnIcon,
259
+ :not(.sapMBtnDisabled) .sapMBtnTransparent > .sapMBtnIcon {
260
+ color: @sapUiButtonLiteTextColor;
261
+ }
262
+
268
263
  // box shadow on hover
269
264
  .sapMBtn:not(.sapMBtnDisabled):hover .sapMBtnInner:not(.sapMBtnActive) {
270
265
  box-shadow: @sapContent_Interaction_Shadow;