|
59 | 59 | position: absolute; |
60 | 60 | } |
61 | 61 | } |
| 62 | + |
| 63 | + .dashboard-container { |
| 64 | + border: 1px solid var(--dh-color-bg); |
| 65 | + } |
62 | 66 | } |
63 | 67 |
|
64 | | - &:has(.dh-inner-react-panel > .iris-grid:only-child), |
| 68 | + &:has(> .dh-inner-react-panel > .iris-grid:only-child), |
65 | 69 | &:has( |
66 | | - .dh-inner-react-panel |
| 70 | + > .dh-inner-react-panel |
67 | 71 | > .ui-table-container:only-child |
68 | 72 | > .iris-grid:only-child |
69 | 73 | ), |
70 | | - &:has(.dh-inner-react-panel > .chart-wrapper:only-child) { |
| 74 | + &:has(> .dh-inner-react-panel > .chart-wrapper:only-child) { |
71 | 75 | // remove the default panel padding when grid or chart is the only child |
72 | 76 | padding: 0 !important; // important required to override inline spectrum style |
73 | 77 | .iris-grid { |
74 | 78 | border: none; |
75 | 79 | border-radius: 0; |
76 | 80 | } |
77 | 81 | } |
| 82 | + |
| 83 | + // remove padding and border around single child dashboards in react panels |
| 84 | + &:has(> .dh-inner-react-panel > .dashboard-container:only-child) { |
| 85 | + padding: 0 !important; // important required to override inline spectrum style |
| 86 | + |
| 87 | + > .dh-inner-react-panel > .dashboard-container { |
| 88 | + border: none; |
| 89 | + } |
| 90 | + } |
78 | 91 | } |
79 | 92 |
|
80 | 93 | .ui-text-wrap-balance { |
|
102 | 115 | .ui-markdown { |
103 | 116 | padding: 0; |
104 | 117 | } |
105 | | - |
106 | | -$lm-header-nested-height: 18px; |
107 | | -$lm-header-double-nested-height: 14px; |
108 | | -$lm-header-nested-font-size: 11px; |
109 | | -$lm-header-double-nested-font-size: 10px; |
110 | | -$lm-header-nested-color: var(--dh-color-gray-600); |
111 | | -$lm-header-double-nested-color: var(--dh-color-gray-500); |
112 | | -$lm-header-nested-bg: var(--dh-color-gray-50); |
113 | | -$lm-header-double-nested-bg: var(--dh-color-true-black); |
114 | | - |
115 | | -.dashboard-container { |
116 | | - .dashboard-container { |
117 | | - // border: 5px solid red; |
118 | | - .lm_tab { |
119 | | - height: $lm-header-nested-height; |
120 | | - font-size: $lm-header-nested-font-size; |
121 | | - // color: $lm-header-nested-color; |
122 | | - } |
123 | | - .lm_tabs { |
124 | | - background: $lm-header-nested-bg; |
125 | | - } |
126 | | - .lm_header { |
127 | | - height: $lm-header-nested-height; |
128 | | - } |
129 | | - .lm_close_tab { |
130 | | - display: none; // hide close icon for nested tabs |
131 | | - } |
132 | | - .dashboard-container { |
133 | | - // border: 5px solid blue; |
134 | | - .lm_tab { |
135 | | - height: $lm-header-double-nested-height; |
136 | | - font-size: $lm-header-double-nested-font-size; |
137 | | - // color: $lm-header-double-nested-color; |
138 | | - } |
139 | | - .lm_tabs { |
140 | | - background: $lm-header-double-nested-bg; |
141 | | - } |
142 | | - .lm_header { |
143 | | - height: $lm-header-double-nested-height; |
144 | | - } |
145 | | - } |
146 | | - } |
147 | | -} |
0 commit comments