feat: Add Admin Bar & Dashboard Control functionality - Add new Access Manager class for handling admin bar and dashboard access control - Implement role-based admin bar visibility control - Implement role-based dashboard access restrictions - Add expandable settings panels for role selection - Add responsive grid layout for role checkboxes - Set Guest, Subscriber, and Customer roles as default restricted roles - Update Settings Manager to display access control settings in advanced tab
This commit is contained in:
@ -1573,4 +1573,54 @@ body.wp-admin .button.pricing-button:hover,
|
||||
flex-direction: column !important;
|
||||
position: relative !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* Role Checkboxes */
|
||||
.wp-allstars-role-checkboxes {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.wp-allstars-role-checkbox {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px;
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.wp-allstars-role-checkbox:hover {
|
||||
background: #f0f0f1;
|
||||
border-color: #2271b1;
|
||||
}
|
||||
|
||||
.wp-allstars-role-checkbox input[type="checkbox"] {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wp-allstars-role-checkbox span {
|
||||
font-size: 13px;
|
||||
color: #50575e;
|
||||
}
|
||||
|
||||
/* Responsive adjustments for role checkboxes */
|
||||
@media screen and (max-width: 782px) {
|
||||
.wp-allstars-role-checkboxes {
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.wp-allstars-role-checkbox {
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.wp-allstars-role-checkbox span {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user