Skip to content

Commit 9fe999a

Browse files
committed
css lint fixed
1 parent 73b0ae4 commit 9fe999a

File tree

1 file changed

+16
-32
lines changed

1 file changed

+16
-32
lines changed

build/media_source/com_workflow/scss/components/_workflow-graph-custom.scss

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151

5252
.custom-controls {
5353
position: absolute;
54-
background: var(--secondary);
55-
padding: 4px;
56-
bottom: 10px;
5754
right: 10px;
55+
bottom: 10px;
5856
z-index: 10;
57+
padding: 4px;
58+
background: var(--secondary);
5959
}
6060

6161
/* ----- Nodes ----- */
@@ -107,24 +107,24 @@
107107

108108
/* Focus indicators */
109109
:focus {
110+
border-radius: 0 !important;
110111
outline: 2px solid #005fcc !important;
111112
outline-offset: 2px !important;
112-
box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.4) !important;
113-
border-radius: 0 !important;
113+
box-shadow: 0 0 0 3px rgba(0, 95, 204, .4) !important;
114114
}
115115

116116
/* Skip links */
117117
.skip-link {
118118
position: absolute;
119119
top: -40px;
120120
left: 6px;
121-
background: #0d6efd;
122-
color: #fff;
121+
z-index: 9999;
123122
padding: 8px;
123+
color: #fff;
124124
text-decoration: none;
125+
background: #0d6efd;
125126
border-radius: 3px;
126-
z-index: 9999;
127-
transition: top 0.3s;
127+
transition: top .3s;
128128
}
129129
.skip-link:focus { top: 6px; }
130130
/* Ensure child elements inside groups remain usable */
@@ -136,38 +136,22 @@
136136
pointer-events: auto;
137137
}
138138

139-
/* ----- Color Contrast for Badges ----- */
140-
.badge.bg-warning { color: #000; }
141-
.badge.bg-success,
142-
.badge.bg-danger { color: #fff; }
143-
144-
/* Stage-node states */
145-
.stage-node[data-published="true"] { border-left: 6px solid #28a745 !important; }
146-
.stage-node[data-published="false"] { border-left: 6px dashed #dc3545 !important; }
147-
.stage-node[data-default="true"] {
148-
border: 4px double #ffc107 !important;
149-
background-image: repeating-linear-gradient(
150-
45deg, transparent, transparent 10px,
151-
rgba(255,193,7,.1) 10px, rgba(255,193,7,.1) 20px
152-
) !important;
153-
}
154-
155139
/* ----- High Contrast Mode ----- */
156140
@media (prefers-contrast: high), (forced-colors: active), screen and (-ms-high-contrast: active) {
157141
.stage-node,
158142
.edge-label,
159143
.workflow-browser-actions-list,
160144
.custom-controls-button,
161145
.badge {
162-
border: 2px solid ButtonText !important;
163-
background: ButtonFace !important;
164146
color: ButtonText !important;
147+
background: ButtonFace !important;
148+
border: 2px solid ButtonText !important;
165149
forced-color-adjust: none !important;
166150
}
167151
:focus {
168-
outline: 3px solid Highlight !important;
169-
background: Highlight !important;
170152
color: HighlightText !important;
153+
background: Highlight !important;
154+
outline: 3px solid Highlight !important;
171155
}
172156
}
173157

@@ -188,8 +172,8 @@
188172
.stage-node,
189173
.edge-label,
190174
.custom-controls-button {
191-
min-height: 48px !important;
192175
min-width: 48px !important;
176+
min-height: 48px !important;
193177
padding: 14px 18px !important;
194178
}
195179
}
@@ -198,8 +182,8 @@
198182
@media print {
199183
.stage-node,
200184
.edge-label {
201-
background: #fff !important;
202185
color: #000 !important;
186+
background: #fff !important;
203187
border: 2px solid #000 !important;
204188
box-shadow: none !important;
205189
}
@@ -208,8 +192,8 @@
208192
.vue-flow__controls,
209193
.custom-controls { display: none !important; }
210194
.badge::after {
211-
content: " (" attr(title) ")" !important;
212195
font-size: 11px !important;
213196
font-style: italic !important;
197+
content: " (" attr(title) ")" !important;
214198
}
215199
}

0 commit comments

Comments
 (0)