1
- // Variables
1
+ // -----------------------------------------------------------------------------
2
+ // Global Variables
3
+ // -----------------------------------------------------------------------------
4
+
5
+ // Layout
2
6
$container-height : calc (100vh - 100px );
3
- $warning-bg-color : #fff8e1 ;
4
- $warning-border-color : #f4c030 ;
5
- $warning-text-color : #5c4c00 ;
6
- $control-text-color : #6d7f8b ;
7
- $control-hover-bg : #d1d5d9 ;
8
- $separator-color : #dee6eb ;
9
- $secondary-text-color : #666 ;
10
- $panel-title-text-color : rgb (109 , 127 , 139 );
11
- $selection-color : rgba (56 , 114 , 224 , 0.8 );
12
-
13
- // Container
7
+
8
+ // Colors
9
+ $color-warning-bg : #fff8e1 ;
10
+ $color-warning-border : #f4c030 ;
11
+ $color-warning-text : #5c4c00 ;
12
+ $color-control-text : #6d7f8b ;
13
+ $color-control-hover-bg : #d1d5d9 ;
14
+ $color-separator : #dee6eb ;
15
+ $color-secondary-text : #666666 ;
16
+ $color-panel-title : #6d7f8b ;
17
+ $color-selection : #3872e0cc ; // rgba(56, 114, 224, 0.8) as hex with alpha
18
+ $color-shadow : #8fa4b1 ;
19
+ $color-white : #ffffff ;
20
+
21
+ // -----------------------------------------------------------------------------
22
+ // Main Layout
23
+ // -----------------------------------------------------------------------------
24
+
14
25
.argocd-application-map {
26
+ // ---------------------------------------------------------------------------
27
+ // Main container for the application map
28
+ // ---------------------------------------------------------------------------
15
29
& __container {
16
30
height : $container-height ;
17
31
width : 100% ;
18
32
box-sizing : border-box ;
19
33
overflow : hidden ;
20
34
}
21
35
22
- // Controls Panel
36
+ // ---------------------------------------------------------------------------
37
+ // Controls Panel (buttons, etc.)
38
+ // ---------------------------------------------------------------------------
23
39
& __controls-panel {
24
40
margin-left : 10px ;
25
41
padding : 5px ;
26
- box-shadow : 1px 1px 3px #8fa4b1 ;
27
- background : #fff ;
42
+ box-shadow : 1px 1px 3px $color-shadow ;
43
+ background : $color-white ;
28
44
}
29
45
30
46
& __control-button {
31
47
padding : 5px ;
32
48
margin : 2px ;
33
- color : $control-text-color ;
49
+ color : $color- control-text ;
34
50
border-radius : 5px ;
35
51
vertical-align : middle ;
36
52
font-weight : 500 ;
@@ -48,16 +64,18 @@ $selection-color: rgba(56, 114, 224, 0.8);
48
64
color 0.2s ;
49
65
50
66
& :hover {
51
- background-color : $control-hover-bg ;
67
+ background-color : $color- control-hover-bg ;
52
68
}
53
69
}
54
70
55
71
& __separator {
56
- border-right : 1px solid $separator- color ;
72
+ border-right : 1px solid $color-separator ;
57
73
padding : 6px 0 ;
58
74
}
59
75
76
+ // ---------------------------------------------------------------------------
60
77
// Status Panel
78
+ // ---------------------------------------------------------------------------
61
79
& __status-panel {
62
80
& __title {
63
81
line-height : 19.5px ;
@@ -66,9 +84,8 @@ $selection-color: rgba(56, 114, 224, 0.8);
66
84
& label {
67
85
font-size : 12px ;
68
86
font-weight : 600 ;
69
-
70
87
.theme-light & {
71
- color : $panel-title-text-color ;
88
+ color : $color- panel-title ;
72
89
}
73
90
}
74
91
}
@@ -77,13 +94,13 @@ $selection-color: rgba(56, 114, 224, 0.8);
77
94
& -box {
78
95
margin-top : 8px ;
79
96
padding : 8px 12px ;
80
- background-color : $warning-bg-color ;
81
- border-left : 4px solid $warning-border-color ;
97
+ background-color : $color- warning-bg ;
98
+ border-left : 4px solid $color- warning-border ;
82
99
}
83
100
84
101
& -text {
85
102
font-size : 12px ;
86
- color : $warning-text-color ;
103
+ color : $color- warning-text ;
87
104
}
88
105
89
106
& -header {
@@ -101,14 +118,17 @@ $selection-color: rgba(56, 114, 224, 0.8);
101
118
102
119
& -footer {
103
120
font-size : 11px ;
104
- color : $secondary-text-color ;
121
+ color : $color- secondary-text ;
105
122
margin-top : 4px ;
106
123
}
107
124
}
108
125
}
109
126
127
+ // ---------------------------------------------------------------------------
128
+ // Node Kind Icon
129
+ // ---------------------------------------------------------------------------
110
130
& __node-kind-icon-as {
111
- background-color : #8fa4b1 ;
131
+ background-color : $color-shadow ;
112
132
border-radius : 50% ;
113
133
display : inline-block ;
114
134
font-weight : 400 ;
@@ -120,54 +140,51 @@ $selection-color: rgba(56, 114, 224, 0.8);
120
140
width : 32px ;
121
141
}
122
142
143
+ // ---------------------------------------------------------------------------
123
144
// Node selection states
145
+ // ---------------------------------------------------------------------------
124
146
& __node {
125
147
& --default {
126
148
opacity : 1 ;
127
149
}
128
-
129
150
& --selected {
130
151
opacity : 1 ;
131
152
position : relative ;
132
153
}
133
-
134
154
& --unselected {
135
155
opacity : 0.25 ;
136
156
}
137
157
}
138
158
159
+ // ---------------------------------------------------------------------------
139
160
// Edge selection states
161
+ // ---------------------------------------------------------------------------
140
162
& __edge {
141
163
& --default {
142
- stroke : #777 ;
164
+ stroke : #777777 ;
143
165
stroke-width : 1 ;
144
166
stroke-dasharray : 3 , 3 ;
145
167
stroke-opacity : 1 ;
146
168
}
147
-
148
169
& --selected {
149
- stroke : #777 ;
170
+ stroke : #777777 ;
150
171
stroke-width : 1 ;
151
172
stroke-dasharray : none ;
152
173
stroke-opacity : 1 ;
153
174
}
154
-
155
175
& --unselected {
156
- stroke : #777 ;
176
+ stroke : #777777 ;
157
177
stroke-width : 1 ;
158
178
stroke-dasharray : 3 , 3 ;
159
179
stroke-opacity : 0.25 ;
160
180
}
161
-
162
181
& __marker {
163
182
& --default {
164
183
opacity : 1 ;
165
184
}
166
-
167
185
& --selected {
168
186
opacity : 1 ;
169
187
}
170
-
171
188
& --unselected {
172
189
opacity : 0.5 ;
173
190
}
0 commit comments