argo-cd
374 строки · 8.9 Кб
1@import 'node_modules/argo-ui/src/styles/config';
2@import 'node_modules/foundation-sites/scss/util/util';
3@import 'node_modules/argo-ui/src/styles/theme';
4@import '../../../shared/config.scss';
5
6$header: 120px;
7
8.application-details {
9height: 100vh;
10width: 100%;
11
12&__wrapper {
13display: flex;
14flex-direction: column;
15height: calc(100vh - 2 * $top-bar-height);
16overflow: hidden;
17
18@media screen and (max-width: map-get($breakpoints, xxlarge)) {
19height: calc(100vh - 3 * $top-bar-height);
20margin-top: $top-bar-height;
21}
22}
23
24.argo-dropdown__content.is-menu {
25max-height: 500px;
26}
27
28&__tree {
29padding: 1em;
30
31flex: 1;
32overflow-x: auto;
33overflow-y: auto;
34overscroll-behavior-x: none;
35}
36
37&__sliding-panel-pagination-wrap {
38margin-top: 1.25em;
39}
40
41&__warning {
42font-size: 0.8em;
43color: darken($argo-status-warning-color, 20%);
44min-height: 1.2rem;
45}
46
47&__refreshing-label {
48color: $white-color;
49position: fixed;
50margin-top: -20px;
51left: 50%;
52background-color: $argo-color-gray-7;
53border: 1px solid $argo-color-gray-5;
54border-radius: 5px;
55padding: 5px 5px;
56font-size: 0.6em;
57z-index: 1;
58}
59
60&__tab-content-full-height {
61height: calc(100vh - 2 * 76px);
62div.row,
63div.columns {
64height: 100%;
65}
66}
67
68&__container {
69position: relative;
70text-transform: uppercase;
71margin-top: 0.5em;
72cursor: pointer;
73font-size: 0.8em;
74white-space: nowrap;
75overflow: hidden;
76text-overflow: ellipsis;
77padding-left: 10px;
78
79i {
80position: absolute;
81left: 0px;
82top: 2px;
83}
84
85span {
86color: $argo-color-teal-5;
87}
88}
89
90&__resource-icon {
91text-align: center;
92position: absolute;
93left: 0;
94top: 10px;
95width: 60px;
96line-height: 1;
97color: $argo-color-gray-7;
98font-size: 0.8em;
99}
100
101.application-resource-tree {
102margin: 0 auto;
103}
104
105&__view-type {
106margin-bottom: -6px;
107display: inline-block;
108vertical-align: middle;
109white-space: nowrap;
110i {
111cursor: pointer;
112color: $argo-color-gray-5;
113margin: 0 0.5em;
114&::before {
115font-size: 1.5em;
116}
117}
118i.selected {
119cursor: default;
120color: $argo-color-gray-7;
121}
122}
123
124&__node-menu {
125position: absolute;
126right: 0;
127top: 0;
128}
129
130&__external_link {
131margin-left: 5px;
132}
133
134pre {
135font-family: monospace;
136line-height: normal;
137white-space: pre;
138}
139
140&__action-menu {
141text-transform: capitalize;
142
143&.disabled {
144cursor: default !important;
145color: $argo-color-gray-3 !important;
146}
147}
148
149.argo-table-list__row {
150.columns.small-1.xxxlarge-1 {
151width: 60px;
152text-align: center;
153}
154}
155
156@media screen and (max-width: map-get($breakpoints, xxlarge)) {
157.page__content-wrapper {
158min-height: calc(100vh - 3 * 50px);
159}
160.top-bar.row {
161display: block;
162.top-bar__left-side,
163.top-bar__right-side {
164width: 100%;
165max-width: 100%;
166flex: auto;
167}
168.top-bar__left-side {
169.argo-button {
170i {
171@media screen and (max-width: map-get($breakpoints, large)) {
172margin: 0 auto !important;
173}
174}
175}
176}
177}
178}
179
180@media screen and (max-width: map-get($breakpoints, large)) {
181.top-bar.row {
182.top-bar__left-side {
183> div {
184display: flex;
185justify-content: center;
186height: 50px;
187align-items: center;
188.argo-button {
189height: 34px;
190}
191}
192}
193.top-bar__right-side {
194display: flex;
195justify-content: center;
196}
197}
198}
199
200&__commit-message {
201line-height: 1.5em;
202}
203
204.filters-group__panel {
205top: 230px;
206}
207
208.graph-options-panel {
209margin-left: 10px;
210z-index: 1;
211padding: 5px;
212display: inline-block;
213box-shadow: 1px 1px 3px $argo-color-gray-5;
214position: absolute;
215
216@include themify($themes) {
217background: themed('background-2');
218}
219
220
221a {
222padding: 5px;
223margin: 2px;
224color: $argo-color-gray-6;
225border: 1px solid transparent;
226border-radius: 5px;
227
228&.group-nodes-button {
229cursor: pointer;
230position: relative;
231display: inline-block;
232vertical-align: middle;
233font-weight: 500;
234line-height: 1.4;
235text-align: center;
236user-select: none;
237transition: background-color 0.2s, border 0.2s, color 0.2s;
238text-transform: uppercase;
239&:hover {
240background-color: #d1d5d9;
241}
242&:active {
243transition: background-color 0.2s, border 0.2s, color 0.2s;
244border: 1px $argo-color-teal-5 solid;
245}
246}
247
248&.group-nodes-button-on {
249color: $argo-color-gray-1;
250background-color: $argo-color-gray-6;
251border: 3px solid $argo-color-teal-4;
252font-size: 14px;
253outline-style: solid;
254&:hover {
255background-color: $argo-color-gray-5;
256}
257
258}
259}
260
261.separator {
262@include themify($themes) {
263border-right: 1px solid themed('border');
264}
265padding-top: 6px;
266padding-bottom: 6px;
267}
268
269.zoom-value {
270user-select: none;
271margin-top: 5px;
272margin-right: 6px;
273margin-left: 4px;
274font-size: 14px;
275text-align-last: right;
276float: right;
277width: 40px;
278border: 1px $argo-color-gray-5 solid;
279background-color: $argo-color-gray-3;
280padding: 2px;
281color: $argo-color-gray-7;
282}
283}
284
285
286@media screen and (max-width: map-get($breakpoints, large)) {
287.sliding-panel__body {
288padding: 4px !important;
289}
290.sliding-panel--is-middle .sliding-panel__wrapper {
291width: 90% !important;
292}
293.sliding-panel--is-middle .sliding-panel__body {
294padding: 18px !important;
295}
296.sliding-panel__close {
297z-index: 2 !important;
298}
299.top-bar__title {
300display: none;
301}
302
303.top-bar__left-side {
304white-space: normal !important;
305}
306.top-bar__left-side > div {
307display: block !important;
308}
309.top-bar__right-side {
310justify-content: right !important;
311}
312.application-status-panel.row {
313flex-flow: unset;
314}
315.application-status-panel__item label {
316margin-right: 0;
317}
318.application-status-panel__item {
319padding: 5px 10px;
320}
321
322.white-box, .tabs__content {
323padding: 4px !important;
324}
325.white-box__details-row .columns.small-3 {
326overflow-wrap: unset !important;
327overflow: scroll;
328}
329.white-box__details-row .columns.small-9{
330padding-left: 4px;
331}
332
333.resource-details__header h1 {
334font-size: 16px;
335}
336.resource-details__header {
337margin-top: 30px;
338padding-right: 4px;
339}
340
341.tabs__nav a:first-child, .tabs__nav a {
342margin-left: 0 !important;
343}
344
345.editable-panel__buttons {
346top: unset;
347}
348}
349}
350
351.resource-parent-node-info-title {
352flex-direction: column;
353color: $argo-color-gray-6;
354
355&__label {
356display: flex;
357margin-bottom: 0.25em;
358flex-shrink: 1;
359div:first-child {
360margin-right: 10px;
361width: 60px;
362text-align: right;
363}
364div:last-child {
365font-weight: 500;
366width: 100%;
367white-space: nowrap;
368overflow: hidden;
369text-overflow: ellipsis;
370text-align: left;
371
372}
373}
374}
375
376
377
378