Skip to content

Commit 0ca79ad

Browse files
Merge pull request #6980 from christianbeeznest/fixes-updates171
Social: Use theme primary for active states
2 parents 5347316 + d82b4fe commit 0ca79ad

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

assets/css/scss/_social.scss

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,3 +1086,105 @@
10861086
border-radius: 50%;
10871087
}
10881088
}
1089+
/* ===== Primary-aware "active" styles (Social) ===== */
1090+
/* Primary-aware "active" styles — scoped to Social UI containers only */
1091+
.social-groups,
1092+
.social-group-show,
1093+
.social-search,
1094+
.friends-invitations,
1095+
.social-group-messages,
1096+
#social-wall-container,
1097+
#social-group-container,
1098+
.my-groups-card,
1099+
.my-friends-card,
1100+
.user-rel-user-search,
1101+
.invite-friends {
1102+
/* Brand tokens (scoped to each container) */
1103+
--ui-primary: rgb(var(--color-primary-base)); /* main brand color */
1104+
--ui-on-primary: rgb(var(--color-primary-button-text, 255 255 255)); /* readable text on primary */
1105+
1106+
/* Pills / side menu / generic active patterns */
1107+
.menu-item.active,
1108+
.active {
1109+
background-color: var(--ui-primary) !important;
1110+
color: var(--ui-on-primary) !important;
1111+
}
1112+
1113+
.menu-item.active i,
1114+
.menu-item.active .badge,
1115+
.nav li.active a {
1116+
color: var(--ui-on-primary) !important;
1117+
}
1118+
1119+
.badge {
1120+
background-color: var(--ui-primary) !important;
1121+
color: var(--ui-on-primary) !important;
1122+
}
1123+
1124+
.menu-item:focus-visible,
1125+
.tab:focus-visible,
1126+
.nav-link:focus-visible {
1127+
outline: 2px solid var(--ui-primary);
1128+
outline-offset: 2px;
1129+
}
1130+
1131+
.menu-item.active:hover {
1132+
background-color: rgb(var(--color-primary-base) / 0.92);
1133+
}
1134+
1135+
/* Bootstrap-like pills */
1136+
.nav-pills .nav-link.active {
1137+
background-color: var(--ui-primary) !important;
1138+
border-color: var(--ui-primary) !important;
1139+
color: var(--ui-on-primary) !important;
1140+
}
1141+
1142+
/* Simple tab headers */
1143+
.tab-active {
1144+
background: transparent !important;
1145+
border-bottom: 2px solid var(--ui-primary) !important;
1146+
color: var(--ui-primary) !important;
1147+
font-weight: 700;
1148+
}
1149+
1150+
.tab:hover {
1151+
border-bottom-color: rgb(var(--color-primary-base) / 0.65);
1152+
}
1153+
1154+
.tab-active:hover {
1155+
background-color: rgb(var(--color-primary-base) / 0.90);
1156+
}
1157+
1158+
.tab:disabled {
1159+
opacity: .6;
1160+
cursor: not-allowed;
1161+
}
1162+
1163+
/* PrimeVue tabview */
1164+
.p-tabview-nav .p-tabview-selected {
1165+
background: transparent !important;
1166+
border-bottom: 3px solid var(--ui-primary) !important;
1167+
}
1168+
.p-tabview-nav .p-tabview-selected a,
1169+
.p-tabview-nav .p-tabview-selected .tab-header {
1170+
color: var(--ui-primary) !important;
1171+
font-weight: 700;
1172+
}
1173+
1174+
/* Legacy .tabs list variant */
1175+
.tabs li.active {
1176+
border-top-color: var(--ui-primary) !important;
1177+
background-color: #f8f9fa; /* keep strip readable */
1178+
color: var(--ui-primary) !important;
1179+
}
1180+
1181+
/* Utilities (optional) */
1182+
.is-active-bg-primary {
1183+
background-color: var(--ui-primary) !important;
1184+
color: var(--ui-on-primary) !important;
1185+
}
1186+
.is-active-text-primary {
1187+
color: var(--ui-primary) !important;
1188+
border-color: var(--ui-primary) !important;
1189+
}
1190+
}

0 commit comments

Comments
 (0)