@inspark/components-web 14.0.14 → 19.0.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 (270) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +54 -0
  3. package/assets/fonts/fontawesome/FontAwesome.otf +0 -0
  4. package/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
  5. package/assets/fonts/fontawesome/fontawesome-webfont.svg +2671 -0
  6. package/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
  7. package/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
  8. package/assets/fonts/fontawesome/fontawesome-webfont.woff2 +0 -0
  9. package/assets/fonts/lato/Lato-Bold.ttf +0 -0
  10. package/assets/fonts/lato/Lato-BoldItalic.ttf +0 -0
  11. package/assets/fonts/lato/Lato-Italic.ttf +0 -0
  12. package/assets/fonts/lato/Lato-Regular.ttf +0 -0
  13. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.eot +0 -0
  14. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.svg +21121 -0
  15. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.ttf +0 -0
  16. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.woff +0 -0
  17. package/assets/fonts/open-sans/BoldItalic/OpenSans-BoldItalic.woff2 +0 -0
  18. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.eot +0 -0
  19. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.svg +21120 -0
  20. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.ttf +0 -0
  21. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.woff +0 -0
  22. package/assets/fonts/open-sans/ExtraBoldItalic/OpenSans-ExtraboldItalic.woff2 +0 -0
  23. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.eot +0 -0
  24. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.svg +21154 -0
  25. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.ttf +0 -0
  26. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.woff +0 -0
  27. package/assets/fonts/open-sans/SemiboldItalic/OpenSans-SemiboldItalic.woff2 +0 -0
  28. package/assets/fonts/primeicons/primeicons.woff2 +0 -0
  29. package/copy.json +12 -0
  30. package/design-tokens/colors.yml +34 -0
  31. package/migrate-sass-imports.js +87 -0
  32. package/package.json +46 -1
  33. package/src/_mixins.scss +39 -40
  34. package/src/_variables.scss +32 -33
  35. package/src/badge/_mixins.scss +5 -5
  36. package/src/badge/_variables.scss +2 -2
  37. package/src/badge/ids-badge.scss +1 -1
  38. package/src/base/_functions.scss +1 -1
  39. package/src/base/_mixins.scss +6 -6
  40. package/src/base/_variables.scss +1 -1
  41. package/src/base/ids-base.scss +3 -3
  42. package/src/box-shadow/_mixins.scss +1 -1
  43. package/src/box-shadow/_variables.scss +2 -0
  44. package/src/box-shadow/ids-box-shadow.scss +1 -1
  45. package/src/button/_mixins.scss +779 -775
  46. package/src/button/_variables.scss +3 -0
  47. package/src/button/ids-button.scss +1 -1
  48. package/src/button-group/_mixins.scss +3 -3
  49. package/src/button-group/ids-button-group.scss +1 -1
  50. package/src/card/_mixins.scss +382 -376
  51. package/src/card/_variables.scss +3 -1
  52. package/src/card/ids-card.scss +1 -1
  53. package/src/checkbox/_mixins.scss +430 -428
  54. package/src/checkbox/_variables.scss +2 -0
  55. package/src/checkbox/ids-checkbox.scss +1 -1
  56. package/src/common.scss +44 -45
  57. package/src/container/_mixins.scss +3 -2
  58. package/src/container/_variables.scss +3 -1
  59. package/src/container/ids-container.scss +1 -1
  60. package/src/crop/_mixins.scss +1 -1
  61. package/src/crop/_variables.scss +2 -0
  62. package/src/crop/ids-crop.scss +1 -1
  63. package/src/crumb/_mixins.scss +37 -36
  64. package/src/crumb/_variables.scss +2 -0
  65. package/src/crumb/ids-crumb.scss +1 -1
  66. package/src/flex/ids-flex.scss +1 -1
  67. package/src/form/_mixins.scss +3 -3
  68. package/src/form/_variables.scss +2 -2
  69. package/src/form/ids-form.scss +1 -1
  70. package/src/form-group/_mixins.scss +1 -1
  71. package/src/form-group/ids-form-group.scss +1 -1
  72. package/src/grid/_mixins.scss +3 -3
  73. package/src/grid/_variables.scss +3 -1
  74. package/src/grid/ids-grid.scss +1 -1
  75. package/src/helpers/helpers.scss +1 -1
  76. package/src/icon/_mixins.scss +397 -395
  77. package/src/icon/_variables.scss +2 -2
  78. package/src/icon/ids-icon.scss +1 -1
  79. package/src/image/_mixins.scss +1 -1
  80. package/src/image/_variables.scss +2 -0
  81. package/src/image/ids-image.scss +1 -1
  82. package/src/input/_mixins.scss +418 -415
  83. package/src/input/_variables.scss +4 -2
  84. package/src/input/ids-input.scss +2 -2
  85. package/src/input-group/_mixins.scss +108 -104
  86. package/src/input-group/_variables.scss +2 -2
  87. package/src/input-group/ids-input-group.scss +1 -1
  88. package/src/inspark.scss +2 -2
  89. package/src/label/_mixins.scss +5 -5
  90. package/src/label/_variables.scss +2 -0
  91. package/src/label/ids-label.scss +1 -1
  92. package/src/list/_mixins.scss +288 -287
  93. package/src/list/_variables.scss +2 -0
  94. package/src/list/ids-list.scss +1 -1
  95. package/src/list-group/_mixins.scss +282 -278
  96. package/src/list-group/_variables.scss +2 -0
  97. package/src/list-group/ids-list-group.scss +1 -1
  98. package/src/mediaqueries/_mixins.scss +1 -1
  99. package/src/mediaqueries/_variables.scss +2 -0
  100. package/src/mediaqueries/ids-mediaqueries.scss +1 -1
  101. package/src/nav/_mixins.scss +92 -89
  102. package/src/nav/_variables.scss +2 -0
  103. package/src/nav/ids-nav.scss +1 -1
  104. package/src/navbar/_mixins.scss +653 -650
  105. package/src/navbar/_variables.scss +3 -2
  106. package/src/navbar/ids-navbar.scss +1 -1
  107. package/src/new-component-template/_mixins.scss +2 -2
  108. package/src/new-component-template/_variables.scss +2 -2
  109. package/src/new-component-template/ids-new-component-template.scss +1 -1
  110. package/src/overlay/_mixins.scss +2 -2
  111. package/src/overlay/ids-overlay.scss +1 -1
  112. package/src/pallete/blue.scss +1 -1
  113. package/src/pallete/contrast.scss +1 -1
  114. package/src/pallete/pallete.scss +5 -5
  115. package/src/panel/_mixins.scss +765 -763
  116. package/src/panel/_variables.scss +3 -2
  117. package/src/panel/ids-panel.scss +1 -1
  118. package/src/particles/_mixins.scss +65 -64
  119. package/src/particles/ids-particles.scss +1 -1
  120. package/src/radio/_mixins.scss +212 -210
  121. package/src/radio/_variables.scss +2 -0
  122. package/src/radio/ids-radio.scss +1 -1
  123. package/src/ratio/_mixins.scss +1 -1
  124. package/src/ratio/_variables.scss +2 -0
  125. package/src/ratio/ids-ratio.scss +1 -1
  126. package/src/sass-mq/_mixins.scss +1 -1
  127. package/src/sass-mq/_variables.scss +2 -0
  128. package/src/sass-mq/ids-sass-mq.scss +1 -1
  129. package/src/select/_mixins.scss +269 -267
  130. package/src/select/_variables.scss +3 -0
  131. package/src/select/ids-select.scss +1 -1
  132. package/src/sidebar/_mixins.scss +3 -3
  133. package/src/sidebar/_variables.scss +2 -2
  134. package/src/sidebar/ids-sidebar.scss +1 -1
  135. package/src/static/_mixins.scss +1 -1
  136. package/src/static/ids-static.scss +1 -1
  137. package/src/table/_mixins.scss +522 -518
  138. package/src/table/_variables.scss +2 -0
  139. package/src/table/ids-table.scss +1 -1
  140. package/src/textarea/_mixins.scss +39 -39
  141. package/src/textarea/_variables.scss +2 -0
  142. package/src/textarea/ids-textarea.scss +1 -1
  143. package/src/theme/_mixins.scss +4 -3
  144. package/src/theme/_variables.scss +5 -4
  145. package/src/theme/blue.scss +440 -448
  146. package/src/theme/contrast.scss +398 -406
  147. package/src/theme/green.scss +432 -440
  148. package/src/theme/ids-theme.scss +5 -5
  149. package/src/theme/light.scss +398 -406
  150. package/src/tools/_tools.border-radius.scss +1 -0
  151. package/src/tools/_tools.rem.scss +1 -0
  152. package/src/tools/ids-tools.scss +9 -9
  153. package/src/tooltip/_mixins.scss +820 -817
  154. package/src/tooltip/_variables.scss +2 -2
  155. package/src/tooltip/ids-tooltip.scss +1 -1
  156. package/src/tree-table/_mixins.scss +335 -331
  157. package/src/tree-table/_variables.scss +2 -2
  158. package/src/tree-table/ids-tree-table.scss +1 -1
  159. package/src/typography/_mixins.scss +6 -1
  160. package/src/typography/_variables.scss +2 -2
  161. package/src/typography/ids-typography.scss +2 -2
  162. package/src/utilities/_loader.utilities.scss +17 -20
  163. package/src/utilities/_utilities.border.scss +2 -0
  164. package/src/utilities/_utilities.clearfix.scss +1 -0
  165. package/src/utilities/_utilities.headings.scss +2 -0
  166. package/src/utilities/_utilities.hide.scss +58 -56
  167. package/src/utilities/_utilities.lineheight.scss +2 -0
  168. package/src/utilities/_utilities.overflow.scss +1 -1
  169. package/src/utilities/_utilities.position.scss +3 -0
  170. package/src/utilities/_utilities.spacing.scss +77 -75
  171. package/src/utilities/_utilities.themes.scss +3 -0
  172. package/src/utilities/_utilities.typography.scss +179 -177
  173. package/src/utilities/_utilities.widths.scss +2 -2
  174. package/src/widgets/_components.widget.scss +3 -0
  175. package/src/widgets/_components.widget.themes.scss +3 -0
  176. package/src/widgets/_components.widgetStatus.scss +2 -0
  177. package/src/widgets/_components.widgetStatus.themes.scss +2 -0
  178. package/src/widgets/_components.widgetValue.scss +2 -0
  179. package/src/widgets/ids-widgets.scss +5 -5
  180. package/update_full.js +14 -0
  181. package/webpack.config.js +51 -0
  182. package/index.css +0 -24206
  183. package/index.js +0 -125
  184. package/src/nvd3/_components.charts-nvd3.scss +0 -182
  185. package/src/nvd3/_components.charts-nvd3.themes.scss +0 -179
  186. package/src/nvd3/_variables-theme-contrast.scss +0 -123
  187. package/src/nvd3/_variables-theme-green.scss +0 -123
  188. package/src/nvd3/_variables-theme-light.scss +0 -123
  189. package/src/nvd3/_variables.scss +0 -123
  190. package/src/nvd3/angular-nvd3.js +0 -719
  191. package/src/nvd3/bars/_components.bars.scss +0 -47
  192. package/src/nvd3/bars/_components.bars.themes.scss +0 -47
  193. package/src/nvd3/boxplot/_components.boxplot.scss +0 -23
  194. package/src/nvd3/boxplot/_components.boxplot.themes.scss +0 -21
  195. package/src/nvd3/bullet/_components.bullet.scss +0 -66
  196. package/src/nvd3/bullet/_components.bullet.themes.scss +0 -66
  197. package/src/nvd3/candlestick/_components.candlestick.scss +0 -31
  198. package/src/nvd3/candlestick/_components.candlestick.themes.scss +0 -31
  199. package/src/nvd3/force-directed-graph/_components.force-directed-graph.scss +0 -16
  200. package/src/nvd3/force-directed-graph/_components.force-directed-graph.themes.scss +0 -16
  201. package/src/nvd3/furious-legend/_components.furious-legend.scss +0 -27
  202. package/src/nvd3/furious-legend/_components.furious-legend.themes.scss +0 -27
  203. package/src/nvd3/lineplusbar/_components.lineplusbar.scss +0 -12
  204. package/src/nvd3/lineplusbar/_components.lineplusbar.themes.scss +0 -12
  205. package/src/nvd3/lines/_components.lines.scss +0 -172
  206. package/src/nvd3/lines/_components.lines.themes.scss +0 -170
  207. package/src/nvd3/ohlc/_components.ohlc.scss +0 -18
  208. package/src/nvd3/ohlc/_components.ohlc.themes.scss +0 -18
  209. package/src/nvd3/parallelcoordinates/_components.parallelcoordinates.scss +0 -35
  210. package/src/nvd3/parallelcoordinates/_components.parallelcoordinates.themes.scss +0 -35
  211. package/src/nvd3/pie/_components.pie.scss +0 -99
  212. package/src/nvd3/pie/_components.pie.themes.scss +0 -97
  213. package/src/nvd3/scatter/_components.scatter.scss +0 -21
  214. package/src/nvd3/scatter/_components.scatter.themes.scss +0 -21
  215. package/src/nvd3/sparkline/_components.sparkline.scss +0 -54
  216. package/src/nvd3/sparkline/_components.sparkline.themes.scss +0 -54
  217. package/src/nvd3/stackedarea/_components.stackedarea.scss +0 -146
  218. package/src/nvd3/stackedarea/_components.stackedarea.themes.scss +0 -145
  219. package/src/nvd3/tooltip/_components.tooltip.scss +0 -186
  220. package/src/nvd3/tooltip/_components.tooltip.themes.scss +0 -186
  221. /package/{fonts → assets/fonts/lato}/lato-bold.woff +0 -0
  222. /package/{fonts → assets/fonts/lato}/lato-bold.woff2 +0 -0
  223. /package/{fonts → assets/fonts/lato}/lato-bolditalic.woff +0 -0
  224. /package/{fonts → assets/fonts/lato}/lato-bolditalic.woff2 +0 -0
  225. /package/{fonts → assets/fonts/lato}/lato-italic.woff +0 -0
  226. /package/{fonts → assets/fonts/lato}/lato-italic.woff2 +0 -0
  227. /package/{fonts → assets/fonts/lato}/lato-regular.woff +0 -0
  228. /package/{fonts → assets/fonts/lato}/lato-regular.woff2 +0 -0
  229. /package/{fonts → assets/fonts/material-design-icons}/MaterialIcons-Regular.ttf +0 -0
  230. /package/{fonts → assets/fonts/material-design-icons}/MaterialIcons-Regular.woff +0 -0
  231. /package/{fonts → assets/fonts/material-design-icons}/MaterialIcons-Regular.woff2 +0 -0
  232. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.eot +0 -0
  233. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.svg +0 -0
  234. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.ttf +0 -0
  235. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.woff +0 -0
  236. /package/{fonts → assets/fonts/open-sans/Bold}/OpenSans-Bold.woff2 +0 -0
  237. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.eot +0 -0
  238. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.svg +0 -0
  239. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.ttf +0 -0
  240. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.woff +0 -0
  241. /package/{fonts → assets/fonts/open-sans/ExtraBold}/OpenSans-Extrabold.woff2 +0 -0
  242. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.eot +0 -0
  243. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.svg +0 -0
  244. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.ttf +0 -0
  245. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.woff +0 -0
  246. /package/{fonts → assets/fonts/open-sans/Italic}/OpenSans-Italic.woff2 +0 -0
  247. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.eot +0 -0
  248. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.svg +0 -0
  249. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.ttf +0 -0
  250. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.woff +0 -0
  251. /package/{fonts → assets/fonts/open-sans/Light}/OpenSans-Light.woff2 +0 -0
  252. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.eot +0 -0
  253. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.svg +0 -0
  254. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.ttf +0 -0
  255. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.woff +0 -0
  256. /package/{fonts → assets/fonts/open-sans/LightItalic}/OpenSansLight-Italic.woff2 +0 -0
  257. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.eot +0 -0
  258. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.svg +0 -0
  259. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.ttf +0 -0
  260. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.woff +0 -0
  261. /package/{fonts → assets/fonts/open-sans/Regular}/OpenSans.woff2 +0 -0
  262. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.eot +0 -0
  263. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.svg +0 -0
  264. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.ttf +0 -0
  265. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.woff +0 -0
  266. /package/{fonts → assets/fonts/open-sans/Semibold}/OpenSans-Semibold.woff2 +0 -0
  267. /package/{fonts → assets/fonts/primeicons}/primeicons.eot +0 -0
  268. /package/{fonts → assets/fonts/primeicons}/primeicons.svg +0 -0
  269. /package/{fonts → assets/fonts/primeicons}/primeicons.ttf +0 -0
  270. /package/{fonts → assets/fonts/primeicons}/primeicons.woff +0 -0
@@ -1,763 +1,765 @@
1
- @import "../theme/variables";
2
- @import "../base/variables";
3
- @import "../mediaqueries/mixins";
4
- @import "./variables";
5
- @import "../tools/tools.border-radius";
6
- @import "../tools/tools.clearfix";
7
- @import "../table/variables";
8
-
9
- /* ==========================================================================
10
- #Panels
11
- ========================================================================== */
12
-
13
- /*
14
- Panels
15
-
16
- A panel can be a very useful piece of layout, it provides a manageable scrollable space within the existing structure of
17
- your page.
18
-
19
- markup:
20
- <div class="o-panel-container" style="height: 350px">
21
- <div class="o-panel">
22
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget neque mollis, sodales nulla ut, porta
23
- urna.
24
- </div>
25
- </div>
26
-
27
- */
28
-
29
- @mixin ids-panel-container {
30
- .o-panel-container {
31
- position: relative;
32
- }
33
- }
34
-
35
-
36
- /*
37
- Panels container heights
38
-
39
- `.o-panel-container_height-small` - 250px
40
- `.o-panel-container_height-middle` - 350px
41
- `.o-panel-container_height-large` - 450px
42
-
43
- markup:
44
- <h5>Small Panel Container</h5>
45
- <div class="o-panel-container o-panel-container_height-small">
46
- <div class="o-panel">
47
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget neque mollis, sodales nulla ut, porta
48
- urna.
49
- </div>
50
- </div>
51
- <h5>Middle Panel Container</h5>
52
- <div class="o-panel-container o-panel-container_height-middle">
53
- <div class="o-panel">
54
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget neque mollis, sodales nulla ut, porta
55
- urna.
56
- </div>
57
- </div>
58
- <h5>Large Panel Container</h5>
59
- <div class="o-panel-container o-panel-container_height-large">
60
- <div class="o-panel">
61
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget neque mollis, sodales nulla ut, porta
62
- urna. Vivamus gravida placerat metus ac malesuada. Donec convallis dolor in ex tristique, luctus tempus dui
63
- sollicitudin.
64
- </div>
65
- </div>
66
-
67
- */
68
-
69
- @mixin ids-panel-container-size {
70
- .o-panel-container {
71
- &_height-small {
72
- height: 250px;
73
- }
74
-
75
- &_height-middle {
76
- height: 350px;
77
- }
78
-
79
- &_height-large {
80
- height: 450px;
81
- }
82
-
83
- &_height-100pc {
84
- height: 100%;
85
- }
86
- }
87
- }
88
-
89
- // todo(turchaninov): remove all themed styles from objects
90
-
91
- @mixin ids-panel-container-sidepanel {
92
- .o-panel-container_sidepanel {
93
- max-height: calc(50vh - 26px);
94
- min-height: calc(50vh - 26px);
95
- //background: $color-gray-90;
96
- border-top: 1px solid $panel-border-color;
97
- border-top: 1px solid var(--ids-theme-panel-border-color, $panel-border-color);
98
- border-bottom: 1px solid $color-gray-40;
99
- border-bottom: 1px solid var(--ids-theme-panel-border-color, $panel-border-color);
100
- }
101
- }
102
-
103
- @mixin ids-panel-object {
104
- .o-panel {
105
- position: absolute;
106
- top: 0;
107
- right: 0;
108
- bottom: 0;
109
- left: 0;
110
- overflow: auto;
111
- -webkit-overflow-scrolling: touch;
112
- }
113
- }
114
-
115
- /*
116
- Panels
117
-
118
- Panels are the basic building blocks of a page. Usually all content should be inside one or more card. For example,
119
- in this demo, every section or element is inside a card. We don't recommend nesting cards, such as in this example,
120
- but it's technically possible.
121
-
122
- markup:
123
- <div class="c-panel">
124
- <div class="c-panel__heading">Header</div>
125
- <div class="c-panel__body">Body with content</div>
126
- <div class="c-panel__footer">Footer</div>
127
- </div>
128
-
129
- */
130
-
131
- @mixin ids-panel-component {
132
-
133
- .c-panel {
134
- position: relative;
135
- background-color: $panel-bg;
136
- background-color: var(--ids-theme-panel-bg, $panel-bg);
137
- border: 1px solid transparent;
138
- border-radius: $panel-border-radius;
139
- border-radius: var(--ids-theme-panel-border-radius, $panel-border-radius);
140
- box-shadow: none;
141
- }
142
-
143
- .c-panel_lighter {
144
- background-color: $panel-lighter-background;
145
- background-color: var(--ids-theme-panel-lighter-background, $panel-lighter-background);
146
- box-shadow: none;
147
- }
148
-
149
- .c-panel_widget-block .c-panel__body {
150
- height: 100%;
151
- max-height: 100%;
152
- }
153
-
154
- .c-panel_dashed {
155
- border: 4px dashed $panel-dashed-border-color!important;
156
- border: 4px dashed var(--ids-theme-panel-dashed-border-color, $panel-dashed-border-color)!important;
157
- }
158
-
159
- .c-panel_min-height_100 {
160
- min-height: 100%;
161
- }
162
-
163
- .c-panel_overflow {
164
- overflow: hidden;
165
- }
166
-
167
- .c-panel_height-100pc {
168
- height: 100%;
169
- }
170
-
171
- .c-panel_semitransparent {
172
- background: rgba($panel-bg, 0.8);
173
- background: rgba(var(--ids-theme-panel-bg-rgb, #{$panel-bg-rgb}), 0.8);
174
- }
175
-
176
- .c-panel__body_bg-semitransparent {
177
- background: rgba(var(--ids-theme-panel-bg-rgb, #{$panel-bg-rgb}), 0.8);
178
- }
179
-
180
- // Panel contents
181
- .c-panel__body {
182
- position: relative;
183
- padding: $panel-body-padding;
184
- @include clearfix;
185
- overflow: auto;
186
- //height: calc(100vh - 232px + 54px);
187
- @media screen and (min-width: $screen-md-min) {
188
- max-height: calc(100% - 50px);
189
- height: calc(100% - 50px);
190
- }
191
- }
192
-
193
- .c-panel__body_overflow-x_auto {
194
- overflow-x: auto;
195
- }
196
-
197
- .c-panel__body_background-image {
198
- height: 100%;
199
- max-height: 100%;
200
- background-position: center;
201
- background-repeat: no-repeat;
202
- background-size: cover;
203
- }
204
-
205
- // Optional heading
206
- .c-panel__heading {
207
- display: flex;
208
- flex-wrap: nowrap;
209
- position: relative;
210
- z-index: 1;
211
- padding: $panel-heading-padding;
212
- border-bottom: 1px solid transparent;
213
- @include border-top-radius(($panel-border-radius - 1));
214
- @include border-top-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
215
-
216
- > .dropdown .dropdown-toggle {
217
- color: inherit;
218
- }
219
- }
220
-
221
- .c-panel__heading_divided {
222
- width: 100%;
223
- padding: 0;
224
- }
225
-
226
- .c-panel__heading-btn-block {
227
- display: flex;
228
- }
229
-
230
- .c-panel__heading-btn {
231
- font-size: $inuit-font-size-h4;
232
- }
233
-
234
- .c-panel__title-block {
235
- display: table-cell;
236
- }
237
-
238
- .c-panel__body_dashboard {
239
- background-color: $panel-body-dashboard-bg;
240
- background-color: var(--ids-theme-panel-body-dashboard-bg, $panel-body-dashboard-bg);
241
- }
242
-
243
- // Within heading, strip any `h*` tag of its default margins for spacing.
244
- .c-panel__heading-title {
245
- display: inline-block;
246
- max-width: 100%;
247
- overflow: hidden;
248
- text-overflow: ellipsis;
249
- flex-grow: 1;
250
- padding: $panel-heading-title-padding;
251
- margin-top: 0;
252
- margin-bottom: 0;
253
- white-space: nowrap;
254
- vertical-align: middle;
255
- font-size: $inuit-font-size-h4;
256
- font-weight: bold;
257
- color: inherit;
258
-
259
- > a,
260
- > small,
261
- > .small,
262
- > small > a,
263
- > .small > a {
264
- color: inherit;
265
- }
266
- }
267
-
268
- .c-panel__heading_overflow_auto {
269
- //overflow: auto;
270
- }
271
-
272
- .c-panel__heading_absolute-top {
273
- position: absolute;
274
- top: 0;
275
- left: 0;
276
- right: 0;
277
- z-index: $zindex-panel-image-content;
278
- }
279
-
280
- // todo: refactor intercomponent dependancy
281
- ._c-panel__body_height-full {
282
- height: calc(100vh - 233px);
283
- }
284
-
285
- // Optional footer (stays gray in every modifier class)
286
- .c-panel__footer {
287
- padding: $panel-footer-padding;
288
- border-top: 1px solid $panel-inner-border;
289
-
290
- @include border-bottom-radius(($panel-border-radius - 1));
291
- @include border-bottom-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
292
- }
293
- }
294
-
295
-
296
- // List groups in panels
297
- //
298
- // By default, space out list group content from panel headings to account for
299
- // any kind of custom content between the two.
300
-
301
- @mixin ids-panel-list-groups {
302
-
303
- .c-panel {
304
- > .c-list-group,
305
- > .c-panel-collapse > .c-list-group {
306
- margin-bottom: 0;
307
-
308
- .c-list-group__item {
309
- border-width: 1px 0;
310
- border-radius: 0;
311
- }
312
-
313
- // Add border top radius for first one
314
- &:first-child {
315
- .c-list-group__item:first-child {
316
- border-top: 0;
317
- @include border-top-radius(($panel-border-radius - 1));
318
- @include border-top-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
319
- }
320
- }
321
-
322
- // Add border bottom radius for last one
323
- &:last-child {
324
- .c-list-group__item:last-child {
325
- border-bottom: 0;
326
- @include border-bottom-radius(($panel-border-radius - 1));
327
- @include border-bottom-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
328
- }
329
- }
330
- }
331
-
332
- > .c-panel_heading + .c-panel__collapse > .c-list-group {
333
- .c-list-group__item:first-child {
334
- @include border-top-radius(0);
335
- }
336
- }
337
- }
338
-
339
- // Collapse space between when there's no additional content.
340
- .c-panel-heading + .c-list-group {
341
- .c-list-group__item:first-child {
342
- border-top-width: 0;
343
- }
344
- }
345
-
346
- .c-list-group + .c-panel__footer {
347
- border-top-width: 0;
348
- }
349
- }
350
-
351
- // Tables in panels
352
- //
353
- // Place a non-bordered `.c-table` within a panel (not within a `.c-panel-body`) and
354
- // watch it go full width.
355
-
356
- @mixin ids-panel-tables {
357
-
358
- .c-panel {
359
- > .c-table,
360
- > .c-table-responsive > .c-table,
361
- > .c-panel__collapse > .c-table {
362
- margin-bottom: 0;
363
-
364
- caption {
365
- padding-left: $panel-body-padding;
366
- padding-right: $panel-body-padding;
367
- }
368
- }
369
-
370
- // Add border top radius for first one
371
- > .c-table:first-child,
372
- > .c-table-responsive:first-child > .c-table:first-child {
373
- @include border-top-radius(($panel-border-radius - 1));
374
- @include border-top-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
375
-
376
- > thead:first-child,
377
- > tbody:first-child {
378
- > tr:first-child {
379
- border-top-left-radius: ($panel-border-radius - 1);
380
- border-top-left-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
381
- border-top-right-radius: ($panel-border-radius - 1);
382
- border-top-right-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
383
-
384
- td:first-child,
385
- th:first-child {
386
- border-top-left-radius: ($panel-border-radius - 1);
387
- border-top-left-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
388
- }
389
-
390
- td:last-child,
391
- th:last-child {
392
- border-top-right-radius: ($panel-border-radius - 1);
393
- border-top-right-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
394
- }
395
- }
396
- }
397
- }
398
-
399
- // Add border bottom radius for last one
400
- > .c-table:last-child,
401
- > .c-table_responsive:last-child > .c-table:last-child {
402
- @include border-bottom-radius(($panel-border-radius - 1));
403
- @include border-bottom-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
404
-
405
- > tbody:last-child,
406
- > tfoot:last-child {
407
- > tr:last-child {
408
- border-bottom-left-radius: ($panel-border-radius - 1);
409
- border-bottom-left-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
410
- border-bottom-right-radius: ($panel-border-radius - 1);
411
- border-bottom-right-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
412
-
413
- td:first-child,
414
- th:first-child {
415
- border-bottom-left-radius: ($panel-border-radius - 1);
416
- border-bottom-left-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
417
- }
418
-
419
- td:last-child,
420
- th:last-child {
421
- border-bottom-right-radius: ($panel-border-radius - 1);
422
- border-bottom-right-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
423
- }
424
- }
425
- }
426
- }
427
-
428
- > .c-panel__body + .c-table,
429
- > .c-panel__body + .c-table_responsive,
430
- > .c-table + .c-panel__body,
431
- > .c-table_responsive + .c-panel__body {
432
- border-top: 1px solid $table-border-color;
433
-
434
- // todo: подумать, возможно не стоит связывать напрямую с table
435
- border-top: 1px solid var(--ids-theme-table-border-color, $table-border-color);
436
- }
437
-
438
- > .c-table > tbody:first-child > tr:first-child th,
439
- > .c-table > tbody:first-child > tr:first-child td {
440
- border-top: 0;
441
- }
442
-
443
- > .c-table_bordered,
444
- > .c-table_responsive > .c-table_bordered {
445
- border: 0;
446
-
447
- > thead,
448
- > tbody,
449
- > tfoot {
450
- > tr {
451
- > th:first-child,
452
- > td:first-child {
453
- border-left: 0;
454
- }
455
-
456
- > th:last-child,
457
- > td:last-child {
458
- border-right: 0;
459
- }
460
- }
461
- }
462
-
463
- > thead,
464
- > tbody {
465
- > tr:first-child {
466
- > td,
467
- > th {
468
- border-bottom: 0;
469
- }
470
- }
471
- }
472
-
473
- > tbody,
474
- > tfoot {
475
- > tr:last-child {
476
- > td,
477
- > th {
478
- border-bottom: 0;
479
- }
480
- }
481
- }
482
- }
483
-
484
- > .c-table-responsive {
485
- border: 0;
486
- margin-bottom: 0;
487
- }
488
- }
489
-
490
- }
491
-
492
- // Collapsible panels (aka, accordion)
493
- //
494
- // Wrap a series of panels in `.c-panel-group` to turn them into an accordion with
495
- // the help of our collapse JavaScript plugin.
496
-
497
- @mixin ids-panel-collapsible {
498
-
499
- .c-panel-group {
500
- margin-bottom: $line-height-computed;
501
-
502
- // Tighten up margin so it's only between panels
503
- .c-panel {
504
- margin-bottom: 0;
505
- border-radius: $panel-border-radius;
506
- border-radius: var(--ids-theme-panel-border-radius, $panel-border-radius);
507
-
508
- + .c-panel {
509
- margin-top: 5px;
510
- }
511
- }
512
-
513
- .c-panel__heading {
514
- border-bottom: 0;
515
-
516
- + .c-panel__collapse > .c-panel__body,
517
- + .c-panel__collapse > .c-list-group {
518
- border-top: 1px solid $panel-inner-border;
519
- border-top: 1px solid var(--ids-theme-panel-inner-border, $panel-inner-border);
520
- }
521
- }
522
-
523
- .c-panel__footer {
524
- border-top: 0;
525
-
526
- + .c-panel__collapse .c-panel__body {
527
- border-bottom: 1px solid var(--ids-theme-panel-inner-border, $panel-inner-border);
528
- }
529
- }
530
- }
531
- }
532
-
533
- @mixin ids-panel-state {
534
-
535
- .c-panel_success {
536
- background: rgba($ids-theme-status-success, 0.23);
537
- background: rgba(var(--ids-theme-status-success-rgb, $ids-theme-status-success), 0.23);
538
- }
539
-
540
- .c-panel_warning {
541
- background: rgba($ids-theme-status-warning, 0.25);
542
- background: rgba(var(--ids-theme-status-warning-rgb, $ids-theme-status-warning), 0.25);
543
- }
544
-
545
- .c-panel_critical {
546
- background: rgba($ids-theme-status-critical, 0.33);
547
- background: rgba(var(--ids-theme-status-critical-rgb, $ids-theme-status-critical), 0.33);
548
- }
549
-
550
- .c-panel_error {
551
- background: rgba($ids-theme-status-error, 0.33);
552
- background: rgba(var(--ids-theme-status-error-rgb, $ids-theme-status-error), 0.33);
553
- }
554
-
555
- .c-panel_falsevalue {
556
- background: rgba($ids-theme-status-falsevalue, 0.33);
557
- background: rgba(var(--ids-theme-status-falsevalue-rgb, $ids-theme-status-falsevalue), 0.33);
558
- }
559
-
560
- }
561
-
562
- @mixin ids-panel-box-shadow {
563
- .c-panel_box-shadow {
564
- box-shadow: $component-active-box-shadow;
565
- }
566
- }
567
-
568
- @mixin ids-panel-absolute {
569
- .c-panel_absolute-top {
570
- position: absolute;
571
- top: 0;
572
- left: 0;
573
- right: 0;
574
- z-index: $zindex-panel-absolute;
575
- }
576
-
577
- .c-panel_absolute-search {
578
- position: absolute;
579
- top: 0;
580
- left: 0;
581
- min-width: 300px;
582
- z-index: $zindex-panel-absolute;
583
- }
584
-
585
- .c-panel_absolute-dashboard-tree {
586
- position: absolute;
587
- top: 30px;
588
- left: 0;
589
- height: calc(100vh - 106px);
590
- min-width: 300px;
591
- z-index: $zindex-panel-absolute;
592
- }
593
- }
594
-
595
- @mixin ids-panel-dashboard {
596
- .c-panel_dashboard {
597
- overflow: unset;
598
- }
599
-
600
- ._c-panel_dashboard_overlay {
601
- position: absolute;
602
- left: -7px;
603
- top: 0;
604
- bottom: 0;
605
- width: 490px;
606
- z-index: $zindex-1;
607
- }
608
-
609
- ._c-panel_dashboard_overlay\@large {
610
- @media screen and (min-width: $screen-md-min) {
611
- position: absolute;
612
- left: -7px;
613
- top: 0;
614
- bottom: 0;
615
- width: 490px;
616
- max-width: unset;
617
- max-width: fit-content;
618
- z-index: $zindex-panel-absolute;
619
- }
620
- }
621
- }
622
-
623
- @mixin ids-panel-image {
624
- .c-panel__image-block {
625
- position: absolute;
626
- top: 0;
627
- left: 0;
628
- right: 0;
629
- bottom: 0;
630
- width: 100%;
631
- min-height: 200px;
632
- overflow: hidden;
633
- //position: relative;
634
- //min-height: 165px;
635
- //@include clearfix;
636
- //overflow: hidden;
637
- }
638
-
639
- .c-panel__image-overlay {
640
- position: absolute;
641
- top: 0;
642
- min-width: 100%;
643
- min-height: 100%;
644
- object-fit: cover;
645
- object-position: 50% 50%;
646
- }
647
-
648
- .c-panel__image-block_grad-top-bottom {
649
- &:before {
650
- content: '';
651
- position: absolute;
652
- height: 80px;
653
- width: 101%;
654
- top: 0;
655
- right: 0;
656
- left: 0;
657
- z-index: $zindex-1;
658
- background: linear-gradient(
659
- to bottom,
660
- rgba($panel-lighter-background, 1) 40%,
661
- rgba($panel-lighter-background, 0) 100%);
662
- background: linear-gradient(
663
- to bottom,
664
- rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 1) 40%,
665
- rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 0) 100%);
666
- }
667
-
668
- &:after {
669
- content: '';
670
- position: absolute;
671
- height: 56px;
672
- width: 101%;
673
- bottom: 0;
674
- right: 0;
675
- left: 0;
676
- z-index: $zindex-1;
677
- background: linear-gradient(
678
- to top,
679
- rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 1) 0%,
680
- rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 0) 100%);
681
- background: linear-gradient(
682
- to top,
683
- rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 1) 0%,
684
- rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 0) 100%);
685
- }
686
- }
687
-
688
- .c-panel__image-block_grad-top {
689
- &:before {
690
- content: '';
691
- position: absolute;
692
- height: 80px;
693
- width: 101%;
694
- top: 0;
695
- right: 0;
696
- left: 0;
697
- z-index: $zindex-1;
698
- background: linear-gradient(
699
- to bottom,
700
- rgba($panel-lighter-background, 1) 40%,
701
- rgba($panel-lighter-background, 0) 100%);
702
- background: linear-gradient(
703
- to bottom,
704
- rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 1) 40%,
705
- rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 0) 100%);
706
- }
707
- }
708
-
709
- .c-panel__image-block-content {
710
- position: absolute;
711
- width: 100%;
712
- top: 0;
713
- bottom: 0;
714
- left: 0;
715
- right: 0;
716
- padding: $panel-body-padding;
717
- padding-bottom: 0;
718
- justify-content: center;
719
- align-content: flex-start;
720
- z-index: $zindex-1;
721
- }
722
- }
723
-
724
- @mixin ids-panel-comment {
725
- .c-panel__comment {
726
- position: relative;
727
- display: flex;
728
- justify-content: center;
729
- align-items: center;
730
- }
731
-
732
- .c-panel__comment-content {
733
- padding: $panel-body-padding;
734
- padding-bottom: 0;
735
- justify-content: center;
736
- align-content: flex-start;
737
- z-index: $zindex-1;
738
- background: rgba($panel-comment-bg, 0.75);
739
- background: rgba(var(--ids-theme-panel-comment-bg-rgb, $panel-comment-bg), 0.75);
740
- }
741
-
742
- }
743
-
744
- @mixin ids-panel-core-styles {
745
- @include ids-panel-container;
746
- @include ids-panel-container-size;
747
- @include ids-panel-container-sidepanel;
748
- @include ids-panel-object;
749
- @include ids-panel-container;
750
- @include ids-panel-container-size;
751
- @include ids-panel-container-sidepanel;
752
- @include ids-panel-object;
753
- @include ids-panel-component;
754
- @include ids-panel-list-groups;
755
- @include ids-panel-tables;
756
- @include ids-panel-collapsible;
757
- @include ids-panel-state;
758
- @include ids-panel-box-shadow;
759
- @include ids-panel-absolute;
760
- @include ids-panel-dashboard;
761
- @include ids-panel-image;
762
- @include ids-panel-comment;
763
- }
1
+ @use "../theme/variables" as *;
2
+ @use "../base/variables" as *;
3
+ @use "../typography/variables" as *;
4
+ @use "../mediaqueries/mixins" as *;
5
+ @use "../mediaqueries/variables" as *;
6
+ @use "./variables" as *;
7
+ @use "../tools/tools.border-radius" as *;
8
+ @use "../tools/tools.clearfix" as *;
9
+ @use "../table/variables" as *;
10
+
11
+ /* ==========================================================================
12
+ #Panels
13
+ ========================================================================== */
14
+
15
+ /*
16
+ Panels
17
+
18
+ A panel can be a very useful piece of layout, it provides a manageable scrollable space within the existing structure of
19
+ your page.
20
+
21
+ markup:
22
+ <div class="o-panel-container" style="height: 350px">
23
+ <div class="o-panel">
24
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget neque mollis, sodales nulla ut, porta
25
+ urna.
26
+ </div>
27
+ </div>
28
+
29
+ */
30
+
31
+ @mixin ids-panel-container {
32
+ .o-panel-container {
33
+ position: relative;
34
+ }
35
+ }
36
+
37
+
38
+ /*
39
+ Panels container heights
40
+
41
+ `.o-panel-container_height-small` - 250px
42
+ `.o-panel-container_height-middle` - 350px
43
+ `.o-panel-container_height-large` - 450px
44
+
45
+ markup:
46
+ <h5>Small Panel Container</h5>
47
+ <div class="o-panel-container o-panel-container_height-small">
48
+ <div class="o-panel">
49
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget neque mollis, sodales nulla ut, porta
50
+ urna.
51
+ </div>
52
+ </div>
53
+ <h5>Middle Panel Container</h5>
54
+ <div class="o-panel-container o-panel-container_height-middle">
55
+ <div class="o-panel">
56
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget neque mollis, sodales nulla ut, porta
57
+ urna.
58
+ </div>
59
+ </div>
60
+ <h5>Large Panel Container</h5>
61
+ <div class="o-panel-container o-panel-container_height-large">
62
+ <div class="o-panel">
63
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget neque mollis, sodales nulla ut, porta
64
+ urna. Vivamus gravida placerat metus ac malesuada. Donec convallis dolor in ex tristique, luctus tempus dui
65
+ sollicitudin.
66
+ </div>
67
+ </div>
68
+
69
+ */
70
+
71
+ @mixin ids-panel-container-size {
72
+ .o-panel-container {
73
+ &_height-small {
74
+ height: 250px;
75
+ }
76
+
77
+ &_height-middle {
78
+ height: 350px;
79
+ }
80
+
81
+ &_height-large {
82
+ height: 450px;
83
+ }
84
+
85
+ &_height-100pc {
86
+ height: 100%;
87
+ }
88
+ }
89
+ }
90
+
91
+ // todo(turchaninov): remove all themed styles from objects
92
+
93
+ @mixin ids-panel-container-sidepanel {
94
+ .o-panel-container_sidepanel {
95
+ max-height: calc(50vh - 26px);
96
+ min-height: calc(50vh - 26px);
97
+ //background: $color-gray-90;
98
+ border-top: 1px solid $panel-border-color;
99
+ border-top: 1px solid var(--ids-theme-panel-border-color, $panel-border-color);
100
+ border-bottom: 1px solid $color-gray-40;
101
+ border-bottom: 1px solid var(--ids-theme-panel-border-color, $panel-border-color);
102
+ }
103
+ }
104
+
105
+ @mixin ids-panel-object {
106
+ .o-panel {
107
+ position: absolute;
108
+ top: 0;
109
+ right: 0;
110
+ bottom: 0;
111
+ left: 0;
112
+ overflow: auto;
113
+ -webkit-overflow-scrolling: touch;
114
+ }
115
+ }
116
+
117
+ /*
118
+ Panels
119
+
120
+ Panels are the basic building blocks of a page. Usually all content should be inside one or more card. For example,
121
+ in this demo, every section or element is inside a card. We don't recommend nesting cards, such as in this example,
122
+ but it's technically possible.
123
+
124
+ markup:
125
+ <div class="c-panel">
126
+ <div class="c-panel__heading">Header</div>
127
+ <div class="c-panel__body">Body with content</div>
128
+ <div class="c-panel__footer">Footer</div>
129
+ </div>
130
+
131
+ */
132
+
133
+ @mixin ids-panel-component {
134
+
135
+ .c-panel {
136
+ position: relative;
137
+ background-color: $panel-bg;
138
+ background-color: var(--ids-theme-panel-bg, $panel-bg);
139
+ border: 1px solid transparent;
140
+ border-radius: $panel-border-radius;
141
+ border-radius: var(--ids-theme-panel-border-radius, $panel-border-radius);
142
+ box-shadow: none;
143
+ }
144
+
145
+ .c-panel_lighter {
146
+ background-color: $panel-lighter-background;
147
+ background-color: var(--ids-theme-panel-lighter-background, $panel-lighter-background);
148
+ box-shadow: none;
149
+ }
150
+
151
+ .c-panel_widget-block .c-panel__body {
152
+ height: 100%;
153
+ max-height: 100%;
154
+ }
155
+
156
+ .c-panel_dashed {
157
+ border: 4px dashed $panel-dashed-border-color!important;
158
+ border: 4px dashed var(--ids-theme-panel-dashed-border-color, $panel-dashed-border-color)!important;
159
+ }
160
+
161
+ .c-panel_min-height_100 {
162
+ min-height: 100%;
163
+ }
164
+
165
+ .c-panel_overflow {
166
+ overflow: hidden;
167
+ }
168
+
169
+ .c-panel_height-100pc {
170
+ height: 100%;
171
+ }
172
+
173
+ .c-panel_semitransparent {
174
+ background: rgba($panel-bg, 0.8);
175
+ background: rgba(var(--ids-theme-panel-bg-rgb, #{$panel-bg-rgb}), 0.8);
176
+ }
177
+
178
+ .c-panel__body_bg-semitransparent {
179
+ background: rgba(var(--ids-theme-panel-bg-rgb, #{$panel-bg-rgb}), 0.8);
180
+ }
181
+
182
+ // Panel contents
183
+ .c-panel__body {
184
+ position: relative;
185
+ padding: $panel-body-padding;
186
+ @include clearfix;
187
+ overflow: auto;
188
+ //height: calc(100vh - 232px + 54px);
189
+ @media screen and (min-width: $screen-md-min) {
190
+ max-height: calc(100% - 50px);
191
+ height: calc(100% - 50px);
192
+ }
193
+ }
194
+
195
+ .c-panel__body_overflow-x_auto {
196
+ overflow-x: auto;
197
+ }
198
+
199
+ .c-panel__body_background-image {
200
+ height: 100%;
201
+ max-height: 100%;
202
+ background-position: center;
203
+ background-repeat: no-repeat;
204
+ background-size: cover;
205
+ }
206
+
207
+ // Optional heading
208
+ .c-panel__heading {
209
+ display: flex;
210
+ flex-wrap: nowrap;
211
+ position: relative;
212
+ z-index: 1;
213
+ padding: $panel-heading-padding;
214
+ border-bottom: 1px solid transparent;
215
+ @include border-top-radius(($panel-border-radius - 1));
216
+ @include border-top-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
217
+
218
+ > .dropdown .dropdown-toggle {
219
+ color: inherit;
220
+ }
221
+ }
222
+
223
+ .c-panel__heading_divided {
224
+ width: 100%;
225
+ padding: 0;
226
+ }
227
+
228
+ .c-panel__heading-btn-block {
229
+ display: flex;
230
+ }
231
+
232
+ .c-panel__heading-btn {
233
+ font-size: $inuit-font-size-h4;
234
+ }
235
+
236
+ .c-panel__title-block {
237
+ display: table-cell;
238
+ }
239
+
240
+ .c-panel__body_dashboard {
241
+ background-color: $panel-body-dashboard-bg;
242
+ background-color: var(--ids-theme-panel-body-dashboard-bg, $panel-body-dashboard-bg);
243
+ }
244
+
245
+ // Within heading, strip any `h*` tag of its default margins for spacing.
246
+ .c-panel__heading-title {
247
+ display: inline-block;
248
+ max-width: 100%;
249
+ overflow: hidden;
250
+ text-overflow: ellipsis;
251
+ flex-grow: 1;
252
+ padding: $panel-heading-title-padding;
253
+ margin-top: 0;
254
+ margin-bottom: 0;
255
+ white-space: nowrap;
256
+ vertical-align: middle;
257
+ font-size: $inuit-font-size-h4;
258
+ font-weight: bold;
259
+ color: inherit;
260
+
261
+ > a,
262
+ > small,
263
+ > .small,
264
+ > small > a,
265
+ > .small > a {
266
+ color: inherit;
267
+ }
268
+ }
269
+
270
+ .c-panel__heading_overflow_auto {
271
+ //overflow: auto;
272
+ }
273
+
274
+ .c-panel__heading_absolute-top {
275
+ position: absolute;
276
+ top: 0;
277
+ left: 0;
278
+ right: 0;
279
+ z-index: $zindex-panel-image-content;
280
+ }
281
+
282
+ // todo: refactor intercomponent dependancy
283
+ ._c-panel__body_height-full {
284
+ height: calc(100vh - 233px);
285
+ }
286
+
287
+ // Optional footer (stays gray in every modifier class)
288
+ .c-panel__footer {
289
+ padding: $panel-footer-padding;
290
+ border-top: 1px solid $panel-inner-border;
291
+
292
+ @include border-bottom-radius(($panel-border-radius - 1));
293
+ @include border-bottom-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
294
+ }
295
+ }
296
+
297
+
298
+ // List groups in panels
299
+ //
300
+ // By default, space out list group content from panel headings to account for
301
+ // any kind of custom content between the two.
302
+
303
+ @mixin ids-panel-list-groups {
304
+
305
+ .c-panel {
306
+ > .c-list-group,
307
+ > .c-panel-collapse > .c-list-group {
308
+ margin-bottom: 0;
309
+
310
+ .c-list-group__item {
311
+ border-width: 1px 0;
312
+ border-radius: 0;
313
+ }
314
+
315
+ // Add border top radius for first one
316
+ &:first-child {
317
+ .c-list-group__item:first-child {
318
+ border-top: 0;
319
+ @include border-top-radius(($panel-border-radius - 1));
320
+ @include border-top-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
321
+ }
322
+ }
323
+
324
+ // Add border bottom radius for last one
325
+ &:last-child {
326
+ .c-list-group__item:last-child {
327
+ border-bottom: 0;
328
+ @include border-bottom-radius(($panel-border-radius - 1));
329
+ @include border-bottom-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
330
+ }
331
+ }
332
+ }
333
+
334
+ > .c-panel_heading + .c-panel__collapse > .c-list-group {
335
+ .c-list-group__item:first-child {
336
+ @include border-top-radius(0);
337
+ }
338
+ }
339
+ }
340
+
341
+ // Collapse space between when there's no additional content.
342
+ .c-panel-heading + .c-list-group {
343
+ .c-list-group__item:first-child {
344
+ border-top-width: 0;
345
+ }
346
+ }
347
+
348
+ .c-list-group + .c-panel__footer {
349
+ border-top-width: 0;
350
+ }
351
+ }
352
+
353
+ // Tables in panels
354
+ //
355
+ // Place a non-bordered `.c-table` within a panel (not within a `.c-panel-body`) and
356
+ // watch it go full width.
357
+
358
+ @mixin ids-panel-tables {
359
+
360
+ .c-panel {
361
+ > .c-table,
362
+ > .c-table-responsive > .c-table,
363
+ > .c-panel__collapse > .c-table {
364
+ margin-bottom: 0;
365
+
366
+ caption {
367
+ padding-left: $panel-body-padding;
368
+ padding-right: $panel-body-padding;
369
+ }
370
+ }
371
+
372
+ // Add border top radius for first one
373
+ > .c-table:first-child,
374
+ > .c-table-responsive:first-child > .c-table:first-child {
375
+ @include border-top-radius(($panel-border-radius - 1));
376
+ @include border-top-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
377
+
378
+ > thead:first-child,
379
+ > tbody:first-child {
380
+ > tr:first-child {
381
+ border-top-left-radius: ($panel-border-radius - 1);
382
+ border-top-left-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
383
+ border-top-right-radius: ($panel-border-radius - 1);
384
+ border-top-right-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
385
+
386
+ td:first-child,
387
+ th:first-child {
388
+ border-top-left-radius: ($panel-border-radius - 1);
389
+ border-top-left-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
390
+ }
391
+
392
+ td:last-child,
393
+ th:last-child {
394
+ border-top-right-radius: ($panel-border-radius - 1);
395
+ border-top-right-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
396
+ }
397
+ }
398
+ }
399
+ }
400
+
401
+ // Add border bottom radius for last one
402
+ > .c-table:last-child,
403
+ > .c-table_responsive:last-child > .c-table:last-child {
404
+ @include border-bottom-radius(($panel-border-radius - 1));
405
+ @include border-bottom-radius((var(--ids-theme-panel-border-radius, $panel-border-radius) - 1));
406
+
407
+ > tbody:last-child,
408
+ > tfoot:last-child {
409
+ > tr:last-child {
410
+ border-bottom-left-radius: ($panel-border-radius - 1);
411
+ border-bottom-left-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
412
+ border-bottom-right-radius: ($panel-border-radius - 1);
413
+ border-bottom-right-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
414
+
415
+ td:first-child,
416
+ th:first-child {
417
+ border-bottom-left-radius: ($panel-border-radius - 1);
418
+ border-bottom-left-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
419
+ }
420
+
421
+ td:last-child,
422
+ th:last-child {
423
+ border-bottom-right-radius: ($panel-border-radius - 1);
424
+ border-bottom-right-radius: (var(--ids-theme-panel-border-radius, $panel-border-radius) - 1);
425
+ }
426
+ }
427
+ }
428
+ }
429
+
430
+ > .c-panel__body + .c-table,
431
+ > .c-panel__body + .c-table_responsive,
432
+ > .c-table + .c-panel__body,
433
+ > .c-table_responsive + .c-panel__body {
434
+ border-top: 1px solid $table-border-color;
435
+
436
+ // todo: подумать, возможно не стоит связывать напрямую с table
437
+ border-top: 1px solid var(--ids-theme-table-border-color, $table-border-color);
438
+ }
439
+
440
+ > .c-table > tbody:first-child > tr:first-child th,
441
+ > .c-table > tbody:first-child > tr:first-child td {
442
+ border-top: 0;
443
+ }
444
+
445
+ > .c-table_bordered,
446
+ > .c-table_responsive > .c-table_bordered {
447
+ border: 0;
448
+
449
+ > thead,
450
+ > tbody,
451
+ > tfoot {
452
+ > tr {
453
+ > th:first-child,
454
+ > td:first-child {
455
+ border-left: 0;
456
+ }
457
+
458
+ > th:last-child,
459
+ > td:last-child {
460
+ border-right: 0;
461
+ }
462
+ }
463
+ }
464
+
465
+ > thead,
466
+ > tbody {
467
+ > tr:first-child {
468
+ > td,
469
+ > th {
470
+ border-bottom: 0;
471
+ }
472
+ }
473
+ }
474
+
475
+ > tbody,
476
+ > tfoot {
477
+ > tr:last-child {
478
+ > td,
479
+ > th {
480
+ border-bottom: 0;
481
+ }
482
+ }
483
+ }
484
+ }
485
+
486
+ > .c-table-responsive {
487
+ border: 0;
488
+ margin-bottom: 0;
489
+ }
490
+ }
491
+
492
+ }
493
+
494
+ // Collapsible panels (aka, accordion)
495
+ //
496
+ // Wrap a series of panels in `.c-panel-group` to turn them into an accordion with
497
+ // the help of our collapse JavaScript plugin.
498
+
499
+ @mixin ids-panel-collapsible {
500
+
501
+ .c-panel-group {
502
+ margin-bottom: $line-height-computed;
503
+
504
+ // Tighten up margin so it's only between panels
505
+ .c-panel {
506
+ margin-bottom: 0;
507
+ border-radius: $panel-border-radius;
508
+ border-radius: var(--ids-theme-panel-border-radius, $panel-border-radius);
509
+
510
+ + .c-panel {
511
+ margin-top: 5px;
512
+ }
513
+ }
514
+
515
+ .c-panel__heading {
516
+ border-bottom: 0;
517
+
518
+ + .c-panel__collapse > .c-panel__body,
519
+ + .c-panel__collapse > .c-list-group {
520
+ border-top: 1px solid $panel-inner-border;
521
+ border-top: 1px solid var(--ids-theme-panel-inner-border, $panel-inner-border);
522
+ }
523
+ }
524
+
525
+ .c-panel__footer {
526
+ border-top: 0;
527
+
528
+ + .c-panel__collapse .c-panel__body {
529
+ border-bottom: 1px solid var(--ids-theme-panel-inner-border, $panel-inner-border);
530
+ }
531
+ }
532
+ }
533
+ }
534
+
535
+ @mixin ids-panel-state {
536
+
537
+ .c-panel_success {
538
+ background: rgba($ids-theme-status-success, 0.23);
539
+ background: rgba(var(--ids-theme-status-success-rgb, $ids-theme-status-success), 0.23);
540
+ }
541
+
542
+ .c-panel_warning {
543
+ background: rgba($ids-theme-status-warning, 0.25);
544
+ background: rgba(var(--ids-theme-status-warning-rgb, $ids-theme-status-warning), 0.25);
545
+ }
546
+
547
+ .c-panel_critical {
548
+ background: rgba($ids-theme-status-critical, 0.33);
549
+ background: rgba(var(--ids-theme-status-critical-rgb, $ids-theme-status-critical), 0.33);
550
+ }
551
+
552
+ .c-panel_error {
553
+ background: rgba($ids-theme-status-error, 0.33);
554
+ background: rgba(var(--ids-theme-status-error-rgb, $ids-theme-status-error), 0.33);
555
+ }
556
+
557
+ .c-panel_falsevalue {
558
+ background: rgba($ids-theme-status-falsevalue, 0.33);
559
+ background: rgba(var(--ids-theme-status-falsevalue-rgb, $ids-theme-status-falsevalue), 0.33);
560
+ }
561
+
562
+ }
563
+
564
+ @mixin ids-panel-box-shadow {
565
+ .c-panel_box-shadow {
566
+ box-shadow: $component-active-box-shadow;
567
+ }
568
+ }
569
+
570
+ @mixin ids-panel-absolute {
571
+ .c-panel_absolute-top {
572
+ position: absolute;
573
+ top: 0;
574
+ left: 0;
575
+ right: 0;
576
+ z-index: $zindex-panel-absolute;
577
+ }
578
+
579
+ .c-panel_absolute-search {
580
+ position: absolute;
581
+ top: 0;
582
+ left: 0;
583
+ min-width: 300px;
584
+ z-index: $zindex-panel-absolute;
585
+ }
586
+
587
+ .c-panel_absolute-dashboard-tree {
588
+ position: absolute;
589
+ top: 30px;
590
+ left: 0;
591
+ height: calc(100vh - 106px);
592
+ min-width: 300px;
593
+ z-index: $zindex-panel-absolute;
594
+ }
595
+ }
596
+
597
+ @mixin ids-panel-dashboard {
598
+ .c-panel_dashboard {
599
+ overflow: unset;
600
+ }
601
+
602
+ ._c-panel_dashboard_overlay {
603
+ position: absolute;
604
+ left: -7px;
605
+ top: 0;
606
+ bottom: 0;
607
+ width: 490px;
608
+ z-index: $zindex-1;
609
+ }
610
+
611
+ ._c-panel_dashboard_overlay\@large {
612
+ @media screen and (min-width: $screen-md-min) {
613
+ position: absolute;
614
+ left: -7px;
615
+ top: 0;
616
+ bottom: 0;
617
+ width: 490px;
618
+ max-width: unset;
619
+ max-width: fit-content;
620
+ z-index: $zindex-panel-absolute;
621
+ }
622
+ }
623
+ }
624
+
625
+ @mixin ids-panel-image {
626
+ .c-panel__image-block {
627
+ position: absolute;
628
+ top: 0;
629
+ left: 0;
630
+ right: 0;
631
+ bottom: 0;
632
+ width: 100%;
633
+ min-height: 200px;
634
+ overflow: hidden;
635
+ //position: relative;
636
+ //min-height: 165px;
637
+ //@include clearfix;
638
+ //overflow: hidden;
639
+ }
640
+
641
+ .c-panel__image-overlay {
642
+ position: absolute;
643
+ top: 0;
644
+ min-width: 100%;
645
+ min-height: 100%;
646
+ object-fit: cover;
647
+ object-position: 50% 50%;
648
+ }
649
+
650
+ .c-panel__image-block_grad-top-bottom {
651
+ &:before {
652
+ content: '';
653
+ position: absolute;
654
+ height: 80px;
655
+ width: 101%;
656
+ top: 0;
657
+ right: 0;
658
+ left: 0;
659
+ z-index: $zindex-1;
660
+ background: linear-gradient(
661
+ to bottom,
662
+ rgba($panel-lighter-background, 1) 40%,
663
+ rgba($panel-lighter-background, 0) 100%);
664
+ background: linear-gradient(
665
+ to bottom,
666
+ rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 1) 40%,
667
+ rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 0) 100%);
668
+ }
669
+
670
+ &:after {
671
+ content: '';
672
+ position: absolute;
673
+ height: 56px;
674
+ width: 101%;
675
+ bottom: 0;
676
+ right: 0;
677
+ left: 0;
678
+ z-index: $zindex-1;
679
+ background: linear-gradient(
680
+ to top,
681
+ rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 1) 0%,
682
+ rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 0) 100%);
683
+ background: linear-gradient(
684
+ to top,
685
+ rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 1) 0%,
686
+ rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 0) 100%);
687
+ }
688
+ }
689
+
690
+ .c-panel__image-block_grad-top {
691
+ &:before {
692
+ content: '';
693
+ position: absolute;
694
+ height: 80px;
695
+ width: 101%;
696
+ top: 0;
697
+ right: 0;
698
+ left: 0;
699
+ z-index: $zindex-1;
700
+ background: linear-gradient(
701
+ to bottom,
702
+ rgba($panel-lighter-background, 1) 40%,
703
+ rgba($panel-lighter-background, 0) 100%);
704
+ background: linear-gradient(
705
+ to bottom,
706
+ rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 1) 40%,
707
+ rgba(var(--ids-theme-panel-lighter-background-rgb, $panel-lighter-background), 0) 100%);
708
+ }
709
+ }
710
+
711
+ .c-panel__image-block-content {
712
+ position: absolute;
713
+ width: 100%;
714
+ top: 0;
715
+ bottom: 0;
716
+ left: 0;
717
+ right: 0;
718
+ padding: $panel-body-padding;
719
+ padding-bottom: 0;
720
+ justify-content: center;
721
+ align-content: flex-start;
722
+ z-index: $zindex-1;
723
+ }
724
+ }
725
+
726
+ @mixin ids-panel-comment {
727
+ .c-panel__comment {
728
+ position: relative;
729
+ display: flex;
730
+ justify-content: center;
731
+ align-items: center;
732
+ }
733
+
734
+ .c-panel__comment-content {
735
+ padding: $panel-body-padding;
736
+ padding-bottom: 0;
737
+ justify-content: center;
738
+ align-content: flex-start;
739
+ z-index: $zindex-1;
740
+ background: rgba($panel-comment-bg, 0.75);
741
+ background: rgba(var(--ids-theme-panel-comment-bg-rgb, $panel-comment-bg), 0.75);
742
+ }
743
+
744
+ }
745
+
746
+ @mixin ids-panel-core-styles {
747
+ @include ids-panel-container;
748
+ @include ids-panel-container-size;
749
+ @include ids-panel-container-sidepanel;
750
+ @include ids-panel-object;
751
+ @include ids-panel-container;
752
+ @include ids-panel-container-size;
753
+ @include ids-panel-container-sidepanel;
754
+ @include ids-panel-object;
755
+ @include ids-panel-component;
756
+ @include ids-panel-list-groups;
757
+ @include ids-panel-tables;
758
+ @include ids-panel-collapsible;
759
+ @include ids-panel-state;
760
+ @include ids-panel-box-shadow;
761
+ @include ids-panel-absolute;
762
+ @include ids-panel-dashboard;
763
+ @include ids-panel-image;
764
+ @include ids-panel-comment;
765
+ }