argo-cd
201 строка · 4.3 Кб
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
5.help-tip {
6color: $argo-color-gray-4;
7}
8
9@mixin responsive-widths {
10@include breakpoint(large up) {
11max-width: 250px;
12}
13@include breakpoint(xlarge up) {
14min-width: 250px;
15max-width: 300px;
16}
17@include breakpoint(xxlarge up) {
18min-width: 325px;
19max-width: 350px;
20}
21@include breakpoint(xxxlarge up) {
22min-width: 375px;
23max-width: 450px;
24}
25}
26
27.application-status-panel {
28font-size: 0.875em;
29@include themify($themes) {
30background-color: themed('background-2');
31color: themed('text-1');
32}
33box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
34flex-wrap: nowrap;
35flex-shrink: 1;
36overflow-x: auto;
37padding-bottom: 0.5em;
38
39$row-width: 250px;
40
41&__conditions {
42display: flex;
43max-width: 250px;
44margin: auto;
45flex-wrap: wrap;
46justify-content: center;
47line-height: 1.5em;
48a {
49display: block;
50margin-right: 12px;
51}
52}
53
54&__more-button {
55margin-left: auto;
56font-size: 14px;
57line-height: 20px;
58padding: 0 5px;
59cursor: pointer;
60color: $argo-color-gray-6;
61}
62
63&__item {
64margin-top: 5px;
65padding: 5px 20px;
66font-size: 0.8em;
67line-height: 1.2;
68@include themify($themes) {
69color: themed('text-1');
70}
71display: flex;
72flex-direction: column;
73justify-content: flex-start;
74flex-shrink: 0;
75flex-grow: 0;
76
77&__row {
78display: flex;
79max-width: $row-width;
80margin-bottom: 0.25em;
81flex-shrink: 1;
82div:first-child {
83width: 80px;
84margin-right: 10px;
85text-align: right;
86}
87div:last-child {
88font-weight: 500;
89width: 100%;
90white-space: nowrap;
91overflow: hidden;
92text-overflow: ellipsis;
93text-align: left;
94}
95
96@include responsive-widths();
97}
98
99&:first-child {
100margin-top: 7px;
101}
102
103&:not(:first-child) {
104@include themify($themes) {
105border-left: 1px solid themed('border');
106}
107}
108
109& {
110a.error {
111color: $argo-failed-color-dark;
112}
113}
114& {
115a.warning {
116color: $argo-status-warning-color;
117}
118}
119& {
120a.info {
121color: $argo-success-color;
122}
123}
124
125label {
126display: block;
127@include themify($themes) {
128color: themed('text-1');
129}
130font-size: 13px;
131margin-right: 10px;
132}
133
134max-width: 100%;
135width: auto;
136}
137
138&__item-value {
139display: flex;
140align-items: center;
141margin-bottom: 0.5em;
142font-weight: 500;
143.fa {
144font-size: 1em;
145}
146
147font-size: 2em;
148@include themify($themes) {
149color: themed('text-1');
150}
151&--highlight {
152color: $argo-color-teal-6;
153}
154
155&--Running a,
156&--Terminating a {
157color: $argo-running-color;
158}
159
160&--Error a,
161&--Failed a {
162color: $argo-failed-color;
163}
164
165&--Succeeded a {
166color: $argo-success-color;
167}
168
169i {
170font-size: 0.6em;
171}
172
173&__revision {
174font-size: 14px;
175@include themify($themes) {
176color: themed('text-1');
177}
178font-weight: 500;
179padding-left: 8px;
180margin-bottom: 2px;
181}
182}
183
184&__item-name {
185margin: auto 0;
186max-width: $row-width;
187display: -webkit-box;
188-webkit-line-clamp: 2;
189-webkit-box-orient: vertical;
190i {
191position: relative;
192top: -2px;
193}
194@include responsive-widths();
195}
196&__item-name,
197&__item-value {
198overflow: hidden;
199text-overflow: ellipsis;
200}
201}
202