_charts-structural.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. .ag-chart {
  2. position: relative;
  3. display: flex;
  4. overflow: hidden;
  5. width: 100%;
  6. height: 100%;
  7. }
  8. .ag-chart-components-wrapper {
  9. position: relative;
  10. display: flex;
  11. flex: 1 1 auto;
  12. overflow: hidden;
  13. }
  14. .ag-chart-title-edit {
  15. position: absolute;
  16. display: none;
  17. top: 0;
  18. left: 0;
  19. text-align: center;
  20. }
  21. .ag-chart-title-edit.currently-editing {
  22. display: inline-block;
  23. }
  24. .ag-chart-canvas-wrapper {
  25. position: relative;
  26. flex: 1 1 auto;
  27. overflow: hidden;
  28. }
  29. .ag-charts-canvas {
  30. display: block;
  31. }
  32. .ag-chart-menu {
  33. position: absolute;
  34. top: 10px;
  35. width: 24px;
  36. overflow: hidden;
  37. display: flex;
  38. flex-direction: column;
  39. @include ag-unthemed-rtl((right: 20px));
  40. }
  41. .ag-chart-docked-container {
  42. position: relative;
  43. width: 0;
  44. min-width: 0;
  45. transition: min-width 0.4s;
  46. }
  47. .ag-chart-menu-hidden ~ .ag-chart-docked-container {
  48. max-width: 0;
  49. overflow: hidden;
  50. }
  51. .ag-chart-tabbed-menu {
  52. width: 100%;
  53. height: 100%;
  54. display: flex;
  55. flex-direction: column;
  56. overflow: hidden;
  57. }
  58. .ag-chart-tabbed-menu-header {
  59. flex: none;
  60. user-select: none;
  61. cursor: default;
  62. }
  63. .ag-chart-tabbed-menu-body {
  64. display: flex;
  65. flex: 1 1 auto;
  66. align-items: stretch;
  67. overflow: hidden;
  68. }
  69. .ag-chart-tab {
  70. width: 100%;
  71. overflow: hidden;
  72. overflow-y: auto;
  73. }
  74. .ag-chart-settings {
  75. overflow-x: hidden;
  76. }
  77. .ag-chart-settings-wrapper {
  78. position: relative;
  79. flex-direction: column;
  80. width: 100%;
  81. height: 100%;
  82. display: flex;
  83. overflow: hidden;
  84. }
  85. .ag-chart-settings-nav-bar {
  86. width: 100%;
  87. display: flex;
  88. height: 30px;
  89. align-items: center;
  90. }
  91. .ag-chart-settings-card-selector {
  92. display: flex;
  93. align-items: center;
  94. justify-content: space-around;
  95. flex: 1 1 auto;
  96. height: 100%;
  97. padding: 0 10px; // increase size of click area for better UX
  98. }
  99. .ag-chart-settings-card-item {
  100. cursor: pointer;
  101. width: 10px;
  102. height: 10px;
  103. background-color: #000; // exception to the rule of no visual styles in functional stylesheet - without a background this element would be invisible
  104. position: relative;
  105. &.ag-not-selected {
  106. opacity: 0.2;
  107. }
  108. &:before {
  109. // make expanded click area
  110. content: " ";
  111. display: block;
  112. position: absolute;
  113. background-color: transparent;
  114. left: 50%;
  115. top: 50%;
  116. margin-left: -10px;
  117. margin-top: -10px;
  118. width: 20px;
  119. height: 20px;
  120. }
  121. }
  122. .ag-chart-settings-prev,
  123. .ag-chart-settings-next {
  124. position: relative;
  125. flex: none;
  126. }
  127. .ag-chart-settings-prev-button,
  128. .ag-chart-settings-next-button {
  129. position: absolute;
  130. top: 0;
  131. left: 0;
  132. width: 100%;
  133. height: 100%;
  134. cursor: pointer;
  135. opacity: 0;
  136. }
  137. .ag-chart-settings-mini-charts-container {
  138. position: relative;
  139. flex: 1 1 auto;
  140. overflow-x: hidden;
  141. overflow-y: auto;
  142. }
  143. .ag-chart-settings-mini-wrapper {
  144. position: absolute;
  145. top: 0;
  146. left: 0;
  147. display: flex;
  148. flex-direction: column;
  149. width: 100%;
  150. min-height: 100%;
  151. overflow: hidden;
  152. &.ag-animating {
  153. transition: left 0.3s;
  154. transition-timing-function: ease-in-out;
  155. }
  156. }
  157. .ag-chart-mini-thumbnail {
  158. cursor: pointer;
  159. }
  160. .ag-chart-mini-thumbnail-canvas {
  161. display: block;
  162. }
  163. .ag-chart-data-wrapper,
  164. .ag-chart-format-wrapper {
  165. display: flex;
  166. flex-direction: column;
  167. position: relative;
  168. user-select: none;
  169. }
  170. .ag-chart-data-section,
  171. .ag-chart-format-section {
  172. display: flex;
  173. margin: 0;
  174. }
  175. .ag-charts-font-panel-controls {
  176. justify-content: space-between;
  177. }
  178. .ag-chart-empty-text {
  179. display: flex;
  180. top: 0;
  181. width: 100%;
  182. height: 100%;
  183. align-items: center;
  184. justify-content: center;
  185. }
  186. .ag-chart .ag-chart-menu {
  187. opacity: 0;
  188. pointer-events: none;
  189. }
  190. .ag-chart-menu-hidden:hover .ag-chart-menu {
  191. opacity: 1;
  192. pointer-events: all;
  193. }
  194. .ag-chart-settings-nav-bar {
  195. padding: 0 10px;
  196. user-select: none;
  197. }