Skip to content

Commit 6f60def

Browse files
committed
Make unpublished resource icons outlined for visual distinction
- Updated tree icon styles: - Published resources use the standard dark icon color - Unpublished and deleted resources use an outlined icon style - Helps further distinguish resource states at a glance in the tree
1 parent dec0491 commit 6f60def

File tree

3 files changed

+95
-71
lines changed

3 files changed

+95
-71
lines changed

_build/templates/default/sass/_tree.scss

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,16 @@
211211
vertical-align: 0;
212212
}
213213
}
214-
214+
.published,
215+
.published a span{
216+
i.icon,
217+
i.icon-large {
218+
color: $treeColor !important;
219+
&::before {
220+
color: $treeColor !important;
221+
}
222+
}
223+
}
215224
.unpublished,
216225
.unpublished a span {
217226
color: $unpublished;
@@ -221,6 +230,10 @@
221230
i.icon-large {
222231
font-style: normal;
223232
color: $treeColor;
233+
234+
&::before {
235+
font-weight: 400;
236+
}
224237
}
225238
}
226239

@@ -232,12 +245,16 @@
232245
&.unpublished,
233246
&.unpublished a span {
234247
font-style: $unpubText;
235-
}
236248

249+
i.icon,
250+
i.icon-large {
251+
color: $hidden;
252+
}
253+
}
237254
i.icon,
238255
i.icon-large {
239-
color: $hidden;
240256
font-style: normal;
257+
color: $treeColor;
241258
}
242259
}
243260

@@ -247,6 +264,10 @@
247264
i.icon,
248265
i.icon-large {
249266
color: $delTextColor; // font-style: normal;
267+
268+
&::before {
269+
font-weight: 400;
270+
}
250271
}
251272

252273
a span {

manager/templates/default/css/index.css

Lines changed: 66 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
/*
2-
*
3-
* Copyright (C) 2025 MODX LLC
4-
*
5-
* This file is part of MODX Revolution and was compiled using Grunt.
6-
*
7-
* MODX Revolution is free software: you can redistribute it and/or modify it under the terms of the
8-
* GNU General Public License as published by the Free Software Foundation, either version 2 of the
9-
* License, or (at your option) any later version.
10-
*
11-
* MODX Revolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
12-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13-
*
14-
* See the GNU General Public License for more details. You should have received a copy of the GNU
15-
* General Public License along with MODX Revolution. If not, see <http://www.gnu.org/licenses/>.
16-
*
17-
*/
181
/*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */
192
/* Document
203
========================================================================== */
@@ -18258,6 +18241,8 @@ readers do not read off random characters that represent icons */
1825818241
content: "\f1ba";
1825918242
}
1826018243

18244+
/* locked is already signaled with lock-icon, no need to use other semantic style here
18245+
as italic is used for "unpublished" */
1826118246
#modx-navbar #modx-topnav {
1826218247
margin-left: auto;
1826318248
margin-right: auto;
@@ -20622,7 +20607,7 @@ html[dir=rtl] .x-toolbar-left table {
2062220607
height: 30px;
2062320608
border: none;
2062420609
box-shadow: none;
20625-
color: #515151;
20610+
color: #383838;
2062620611
background: #F1F1F1;
2062720612
opacity: 1;
2062820613
filter: alpha(opacity=100);
@@ -20660,7 +20645,7 @@ html[dir=rtl] .x-toolbar-left table {
2066020645
/* trash icon is a bit smaller than the others at 18px */
2066120646
}
2066220647
#modx-leftbar .x-toolbar-ct .x-toolbar-right .x-btn#emptifier .x-item-disabled {
20663-
color: #919191 !important;
20648+
color: #777777 !important;
2066420649
/* !important prevents hover / active styles */
2066520650
opacity: 0.6;
2066620651
filter: alpha(opacity=60);
@@ -23021,7 +23006,7 @@ ul.x-tab-strip-bottom .x-tab-left {
2302123006
.x-tab-scroller-left:before,
2302223007
.x-tab-scroller-right:before {
2302323008
box-sizing: border-box;
23024-
color: #515151;
23009+
color: #383838;
2302523010
content: "";
2302623011
font-size: 28px;
2302723012
margin-top: -20px;
@@ -23046,7 +23031,7 @@ ul.x-tab-strip-bottom .x-tab-left {
2304623031
}
2304723032
.x-tab-scroller-left-disabled:before,
2304823033
.x-tab-scroller-right-disabled:before {
23049-
color: #515151;
23034+
color: #383838;
2305023035
opacity: 0.4;
2305123036
filter: alpha(opacity=100);
2305223037
/* for IE <= 8 */
@@ -24243,7 +24228,7 @@ ul.x-tab-strip-bottom .x-tab-left {
2424324228
}
2424424229
#modx-leftbar-tabs-xcollapsed .x-layout-mini:after {
2424524230
border-right: 0;
24246-
border-left: 5px solid #515151;
24231+
border-left: 5px solid #383838;
2424724232
}
2424824233
@media screen and (max-width: 960px) {
2424924234
#modx-leftbar-tabs-xcollapsed .x-layout-mini:after {
@@ -24303,7 +24288,7 @@ ul.x-tab-strip-bottom .x-tab-left {
2430324288

2430424289
/* tree states */
2430524290
.x-tree-node-el {
24306-
color: #515151;
24291+
color: #383838;
2430724292
font: normal 14px/2.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2430824293
padding: 0 8px;
2430924294
/* For legacy icons */
@@ -24338,30 +24323,63 @@ ul.x-tab-strip-bottom .x-tab-left {
2433824323
vertical-align: 0;
2433924324
}
2434024325

24326+
.published i.icon,
24327+
.published i.icon-large,
24328+
.published a span i.icon,
24329+
.published a span i.icon-large {
24330+
color: #383838 !important;
24331+
}
24332+
.published i.icon::before,
24333+
.published i.icon-large::before,
24334+
.published a span i.icon::before,
24335+
.published a span i.icon-large::before {
24336+
color: #383838 !important;
24337+
}
24338+
2434124339
.unpublished,
2434224340
.unpublished a span {
24343-
color: #b3b3b3 !important;
24344-
font-style: normal;
24341+
color: #999999;
24342+
font-style: italic;
2434524343
}
2434624344
.unpublished i.icon,
2434724345
.unpublished i.icon-large,
2434824346
.unpublished a span i.icon,
2434924347
.unpublished a span i.icon-large {
24350-
color: #b3b3b3 !important;
2435124348
font-style: normal;
24349+
color: #383838;
24350+
}
24351+
.unpublished i.icon::before,
24352+
.unpublished i.icon-large::before,
24353+
.unpublished a span i.icon::before,
24354+
.unpublished a span i.icon-large::before {
24355+
font-weight: 400;
2435224356
}
2435324357

2435424358
.hidemenu,
2435524359
.hidemenu a span {
24356-
color: #999999;
24360+
color: #8c8c8c !important;
24361+
font-style: normal;
24362+
}
24363+
.hidemenu.unpublished, .hidemenu.unpublished a span,
24364+
.hidemenu a span.unpublished,
24365+
.hidemenu a span.unpublished a span {
2435724366
font-style: italic;
2435824367
}
24368+
.hidemenu.unpublished i.icon,
24369+
.hidemenu.unpublished i.icon-large, .hidemenu.unpublished a span i.icon,
24370+
.hidemenu.unpublished a span i.icon-large,
24371+
.hidemenu a span.unpublished i.icon,
24372+
.hidemenu a span.unpublished i.icon-large,
24373+
.hidemenu a span.unpublished a span i.icon,
24374+
.hidemenu a span.unpublished a span i.icon-large {
24375+
color: #8c8c8c !important;
24376+
}
2435924377
.hidemenu i.icon,
2436024378
.hidemenu i.icon-large,
2436124379
.hidemenu a span i.icon,
2436224380
.hidemenu a span i.icon-large {
24363-
color: #999999;
2436424381
font-style: normal;
24382+
color: #383838;
2436524383
}
2436624384

2436724385
.deleted {
@@ -24370,7 +24388,10 @@ ul.x-tab-strip-bottom .x-tab-left {
2437024388
.deleted i.icon,
2437124389
.deleted i.icon-large {
2437224390
color: rgba(175, 90, 98, 0.5) !important;
24373-
font-style: normal;
24391+
}
24392+
.deleted i.icon::before,
24393+
.deleted i.icon-large::before {
24394+
font-weight: 400;
2437424395
}
2437524396
.deleted a span {
2437624397
color: rgba(175, 90, 98, 0.5) !important;
@@ -24380,7 +24401,7 @@ ul.x-tab-strip-bottom .x-tab-left {
2438024401
}
2438124402

2438224403
.element-node-disabled a span {
24383-
color: #aaaaaa;
24404+
color: #919191;
2438424405
}
2438524406

2438624407
.x-tree-node {
@@ -24392,7 +24413,7 @@ ul.x-tab-strip-bottom .x-tab-left {
2439224413
.x-tree-node .x-tree-node-disabled i.icon,
2439324414
.x-tree-node .element-node-disabled a span,
2439424415
.x-tree-node .element-node-disabled i.icon {
24395-
color: #aaaaaa;
24416+
color: #919191;
2439624417
}
2439724418

2439824419
.element-node-locked a span {
@@ -24568,7 +24589,7 @@ html[dir=rtl] .x-tree-node-el .modx-tree-node-btn-create {
2456824589
.x-dd-drag-ghost a,
2456924590
.x-tree-node a span,
2457024591
.x-dd-drag-ghost a span {
24571-
color: #515151;
24592+
color: #383838;
2457224593
}
2457324594

2457424595
.x-tree-node div.x-tree-drag-insert-below {
@@ -24957,21 +24978,21 @@ html[dir=rtl] .x-tree-node-el .modx-tree-node-btn-create {
2495724978
}
2495824979

2495924980
.x-tree-node {
24960-
color: #515151;
24981+
color: #383838;
2496124982
}
2496224983

2496324984
.x-tree-node a,
2496424985
.x-dd-drag-ghost a {
24965-
color: #515151;
24986+
color: #383838;
2496624987
}
2496724988

2496824989
.x-tree-node a span,
2496924990
.x-dd-drag-ghost a span {
24970-
color: #515151;
24991+
color: #383838;
2497124992
}
2497224993

2497324994
.x-tree-node .x-tree-node-disabled a span {
24974-
color: #d1d1d1;
24995+
color: #b7b7b7;
2497524996
}
2497624997

2497724998
.x-tree-node div.x-tree-drag-insert-below {
@@ -26530,7 +26551,7 @@ hr {
2653026551

2653126552
.not-installed {
2653226553
color: #999999;
26533-
font-style: italic;
26554+
font-style: #8c8c8c !important;
2653426555
}
2653526556

2653626557
.yellow {
@@ -27940,24 +27961,17 @@ html[dir=rtl] .x-hide-offsets {
2794027961
font: normal 18px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2794127962
text-decoration: none;
2794227963
}
27943-
.modx-header-breadcrumbs ul li a.menu_hidden {
27944-
font-style: italic;
27945-
}
27946-
.modx-header-breadcrumbs ul li a.menu_hidden:hover {
27947-
color: #162a42;
27948-
}
2794927964
.modx-header-breadcrumbs ul li a.not_published {
27950-
color: #b3b3b3 !important;
27965+
font-style: italic;
2795127966
}
2795227967
.modx-header-breadcrumbs ul li a.not_published:hover {
2795327968
color: #162a42;
2795427969
}
27955-
.modx-header-breadcrumbs ul li a.deleted {
27956-
color: rgba(175, 90, 98, 0.5) !important;
27957-
text-decoration: line-through;
27970+
.modx-header-breadcrumbs ul li a.menu_hidden {
27971+
color: #8c8c8c !important;
2795827972
}
27959-
.modx-header-breadcrumbs ul li a.deleted:hover {
27960-
color: #162a42;
27973+
.modx-header-breadcrumbs ul li a.menu_hidden:hover {
27974+
color: #162a42 !important;
2796127975
}
2796227976
.modx-header-breadcrumbs ul li:after {
2796327977
content: "\f054";
@@ -28863,4 +28877,6 @@ html[dir=rtl] .x-hide-offsets {
2886328877

2886428878
.x-datetime-inline-editor .x-datetime-wrap {
2886528879
margin-top: 0 !important;
28866-
}
28880+
}
28881+
28882+
/*# sourceMappingURL=index.css.map */

manager/templates/default/css/login.css

Lines changed: 5 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)