_FeatureTable.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. @mixin featureTable() {
  2. .esri-feature-table {
  3. display: flex;
  4. flex-direction: column;
  5. height: 100%;
  6. width: 100%;
  7. .esri-feature-table__content {
  8. flex: 1 1 0;
  9. flex-grow: 1;
  10. min-height: 0;
  11. margin: 0;
  12. padding: 0;
  13. }
  14. .esri-grid--no-column-menu {
  15. .esri-column__menu-container {
  16. display: none;
  17. }
  18. }
  19. .esri-grid__grid {
  20. height: 100%;
  21. width: 100%;
  22. .esri-column__menu-container.esri-button-menu {
  23. height: 28px;
  24. width: 28px;
  25. position: inherit;
  26. .esri-button-menu__button {
  27. height: 26px;
  28. width: 16px;
  29. }
  30. }
  31. }
  32. }
  33. .esri-feature-table__menu {
  34. height: 40px;
  35. order: 3;
  36. padding: 4px;
  37. width: 40px;
  38. .esri-button-menu {
  39. bottom: auto;
  40. position: relative;
  41. }
  42. }
  43. .esri-feature-table__header {
  44. display: flex;
  45. flex-direction: row;
  46. font-weight: $font-weight;
  47. height: 40px;
  48. line-height: 40px;
  49. margin: 0;
  50. width: 100%;
  51. }
  52. .esri-feature-table__title {
  53. flex-grow: 1;
  54. order: 2;
  55. }
  56. .esri-feature-table__loader-container {
  57. height: 40px;
  58. margin: 0 8px;
  59. order: 1;
  60. width: 32px;
  61. }
  62. .esri-feature-table__loader {
  63. height: 40px;
  64. width: 32px;
  65. background: url(../base/images/loading-throb.gif) no-repeat center;
  66. }
  67. .esri-field-column__header-label {
  68. align-items: center;
  69. display: flex;
  70. flex-grow: 1;
  71. margin: 0 5px;
  72. min-height: 28px;
  73. overflow: auto;
  74. }
  75. .esri-field-column__header-content {
  76. align-items: center;
  77. display: flex;
  78. flex-grow: 1;
  79. overflow: visible;
  80. }
  81. .esri-field-column__cell-content {
  82. font-size: 0.9em;
  83. }
  84. .esri-field-column__cell__date-input-container {
  85. display: flex;
  86. height: 100%;
  87. width: 100%;
  88. .esri-field-column__cell__date-input-wrapper {
  89. display: flex;
  90. flex-direction: column;
  91. height: 100%;
  92. width: 100%;
  93. }
  94. .esri-date-picker {
  95. flex: 1 1 0;
  96. .esri-date-picker__text-input.esri-input {
  97. width: 100%;
  98. }
  99. .esri-date-picker__calendar-toggle {
  100. height: 26px;
  101. }
  102. }
  103. .esri-time-picker {
  104. display: inline-flex;
  105. flex: 1 1 0;
  106. input {
  107. width: 100%;
  108. }
  109. }
  110. }
  111. .esri-field-column__button {
  112. align-items: center;
  113. background-color: transparent;
  114. border: none;
  115. color: $button-color;
  116. display: flex;
  117. font-size: $icon-size;
  118. height: auto;
  119. justify-content: center;
  120. text-align: center;
  121. transition: background-color 125ms ease-in-out;
  122. width: 26px;
  123. &:disabled {
  124. cursor: default;
  125. color: $interactive-font-color--disabled;
  126. }
  127. &:hover,
  128. &:focus {
  129. background-color: $background-color--hover;
  130. color: $interactive-font-color--hover;
  131. cursor: pointer;
  132. }
  133. }
  134. .esri-field-column__cell__input-container {
  135. display: flex;
  136. top: 0;
  137. left: 0;
  138. width: 100%;
  139. height: 100%;
  140. position: absolute;
  141. }
  142. .esri-field-column__cell-input {
  143. height: 100%;
  144. width: 100%;
  145. border: none;
  146. padding: 0 5px;
  147. flex: 1 1 0;
  148. }
  149. [dir="rtl"] {
  150. .esri-feature-table__menu-content {
  151. left: 2px;
  152. right: auto;
  153. }
  154. }
  155. }
  156. @if $include_FeatureTable == true {
  157. @include featureTable();
  158. }