Consolidate CSS: remove unused stylesheets and combine widget/animation CSS

Remove 6 WordPress editor stylesheets (269KB) never needed on frontend,
unused widget-image-box CSS, SJB plugin CSS from non-job pages, duplicate
Font Awesome, and FA v4 shims from pages without v4 icons. Consolidate
10 widget CSS files and 4 animation CSS files into inlined combined blocks.
Reduces stylesheet links from ~40+ to ~20 per page.

Also adds CSS-only nav dropdown fix with arrow indicator for the About >
Social Accountability submenu that was missing from the static export.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Adam Moussa 2026-04-04 18:25:54 -04:00
parent 7e7363ddb8
commit ae4431dec8
12 changed files with 808 additions and 222 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
/* Combined Animation CSS - Services page (all 4 animations) */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn}@keyframes slideInUp{from{transform:translate3d(0,100%,0);visibility:visible}to{transform:translate3d(0,0,0)}}.slideInUp{animation-name:slideInUp}@keyframes slideInLeft{from{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translate3d(0,0,0)}}.slideInLeft{animation-name:slideInLeft}@keyframes slideInRight{from{transform:translate3d(100%,0,0);visibility:visible}to{transform:translate3d(0,0,0)}}.slideInRight{animation-name:slideInRight}

View file

@ -0,0 +1,46 @@
/* Static site fix: CSS-only dropdown for Elementor nav menu */
.elementor-nav-menu--main .menu-item-has-children {
position: relative;
}
.elementor-nav-menu--main .menu-item-has-children > a.elementor-item {
display: inline-flex !important;
align-items: center !important;
gap: 4px !important;
}
.elementor-nav-menu--main .menu-item-has-children > a.elementor-item::after {
content: "▾" !important;
display: inline !important;
font-size: 1em !important;
line-height: 1 !important;
visibility: visible !important;
opacity: 1 !important;
width: auto !important;
height: auto !important;
border: none !important;
position: static !important;
}
.elementor-nav-menu--main .menu-item-has-children > .sub-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
background: #fff;
min-width: 200px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
z-index: 9999;
padding: 0;
margin: 0;
list-style: none;
}
.elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu {
display: block;
}
.elementor-nav-menu--main .sub-menu .menu-item a {
display: block;
padding: 10px 20px;
white-space: nowrap;
text-decoration: none;
}
.elementor-nav-menu--main .sub-menu .menu-item a:hover {
background: rgba(0,0,0,0.05);
}

31
wp-content/css/widgets-combined.min.css vendored Normal file

File diff suppressed because one or more lines are too long