Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Employee_Managment_App/src/components/Announcement.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
--annc-backdrop: rgba(2,6,23,0.35);
--annc-elev: 0 8px 20px rgba(2, 6, 23, 0.06);
--annc-panel-width: 380px;
}

--color-sf-icon-color: #6b7280;
--color-sf-secondary-border-color-hover: #d1d5db;
--color-sf-secondary-bg-color-hover: rgba(158, 158, 158, 0.2);
--color-sf-content-text-color: #111827;

/* Backdrop area that starts below the top bar (top offset applied inline) */
.annc-panel-backdrop {
Expand Down Expand Up @@ -145,8 +149,8 @@
transition: background 160ms ease, border-color 160ms ease;
}
.annc-panel-item:hover {
background: #f8fffb;
border-color: #e8f7f1;
background: var(--color-sf-secondary-bg-color-hover);
color: var(--color-sf-content-text-color);
}
.annc-item-icon {
width: 36px;
Expand Down
104 changes: 26 additions & 78 deletions Employee_Managment_App/src/components/Policies.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--text-muted: #667085;
--text-soft: #475467;


--surface: #ffffff;
--surface-subtle: #fafbfc;

Expand All @@ -27,12 +28,13 @@
--shadow-xs: 0 1px 2px rgba(16, 24, 40, .06);
--shadow-sm: 0 2px 8px rgba(16, 24, 40, .08);
--shadow-md: 0 6px 18px rgba(16, 24, 40, .10);

--color-sf-primary-bg-color: #1ab394;
--color-sf-primary-border-color: #1ab394;
}

.policies-grid-wrapper {
padding: 28px 24px;
max-width: 1160px;
margin: 0 auto;
color: var(--text-strong);
}

Expand Down Expand Up @@ -90,6 +92,7 @@
text-decoration: underline;
}


/* Section headers and Reset link */
.section-header {
display: flex;
Expand Down Expand Up @@ -148,9 +151,8 @@
}

.filter-chip:hover {
background: var(--primary-50);
border-color: var(--primary-100);
transform: translateY(-1px);
border-color: var(--text-muted);

}

.filter-chip.is-active {
Expand Down Expand Up @@ -183,44 +185,18 @@
position: relative;
display: inline-flex;
align-items: center;
text-align: center;
gap: 8px;
padding-left: 22px;
}

.filter-chip .filter-chip__label::before {
content: '🏷️';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-52%);
font-size: 14px;
}

.filter-chip-row .filter-chip:nth-child(1) .filter-chip__label::before {
content: '📚';
}

.filter-chip-row .filter-chip:nth-child(2) .filter-chip__label::before {
content: '🔒';
}

.filter-chip-row .filter-chip:nth-child(3) .filter-chip__label::before {
content: '🗓️';
}

.filter-chip-row .filter-chip:nth-child(4) .filter-chip__label::before {
content: '🧾';
}

.filter-chip-row .filter-chip:nth-child(5) .filter-chip__label::before {
content: '💻';
}

.filter-chip-row .filter-chip:nth-child(6) .filter-chip__label::before {
content: '👔';
}

/* Employment */

/* Grid styling (unchanged core look from previous refresh) */
.policy-name-cell {
Expand Down Expand Up @@ -307,14 +283,7 @@
font-size: 16px;
}

/* Category pills in the grid */
.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="Category"] {
position: relative;
padding-left: 28px;
}

.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="Category"]::before {
content: '🏷️';
position: absolute;
left: 8px;
top: 50%;
Expand All @@ -323,40 +292,6 @@
opacity: .95;
}

.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="Security"]::before {
content: '🔒';
}

.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="HR & Leave"]::before {
content: '🗓️';
}

.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="Compliance"]::before {
content: '🧾';
}

.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="IT & Devices"]::before {
content: '💻';
}

.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="Employment"]::before {
content: '👔';
}

.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="Code of Conduct"]::before {
content: '📜';
}

.policies-grid-wrapper .e-grid .e-rowcell[aria-label*="Category"]>span {
display: inline-block;
padding: 4px 10px 4px 8px;
border-radius: 999px;
border: 1px solid var(--border);
background: #f9fafb;
font-weight: 700;
color: #1f2937;
}

/* Dialog */
.policy-dialog .e-dlg-header-content {
border-bottom: 1px solid var(--border);
Expand Down Expand Up @@ -435,12 +370,25 @@

.policies-grid-wrapper .e-grid .e-pager .e-currentitem,
.policies-grid-wrapper .e-grid .e-pager .e-currentitem:hover {
background: #1ab394;
border-color:#1ab394;
color: #fff;
background: var(--color-sf-primary-bg-color);
border-color: var(--color-sf-primary-border-color);
color: --surface;
}

.policies-grid-wrapper .e-grid .e-pager .e-numericitem:hover {
.policies-grid-wrapper .e-grid .e-pager .e-numericitem:active {
background: var(--color-sf-primary-bg-color);
border-color: var(--color-sf-primary-border-color);

}

/* Keep hover color for non-active pages only */
.policies-grid-wrapper .e-grid .e-pager .e-numericitem:not(.e-currentitem):hover {
background: var(--primary-50);
color: var(--primary-900);
}
}
/* When hovering the active page, keep the active green */
.policies-grid-wrapper .e-grid .e-pager .e-numericitem.e-currentitem:hover {
background: var(--color-sf-primary-bg-color);
border-color: var(--color-sf-primary-border-color);
color: --surface;
}
39 changes: 26 additions & 13 deletions Employee_Managment_App/src/components/TopNav.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@
--bs-success: #1ab394;

/* Component sizing to match HR portal */
--control-height: 38px; /* search and create height */
--create-width: 96px; /* button width similar to screenshots */
--search-max: 600px; /* desktop search width similar to HR portal */

--hr-search-width: 210px;

--control-height: 40px;
--control-height: 35px;
--radius-pill: 9999px;

--accent: #10b981; /* focus ring + border accent */
Expand All @@ -41,6 +40,11 @@
--shadow-rest: 0 1px 2px rgba(0,0,0,.06);
--shadow-focus: 0 6px 18px rgba(16, 185, 129, 0.16);
--focus-ring: 0 0 0 4px rgba(16, 185, 129, 0.14);

--color-sf-icon-color: #6b7280;
--color-sf-secondary-border-color-hover: #d1d5db;
--color-sf-secondary-bg-color-hover:rgba(158, 158, 158, 0.2);
--color-sf-content-text-color: #111827;
}

/* Parallel fixed header */
Expand Down Expand Up @@ -85,6 +89,7 @@

.company-name {
font-size: 16px;
font-weight: bold;
color: rgba(0, 0, 0, 0.87);
}

Expand All @@ -103,13 +108,13 @@

/* Input group container */
.search-field.input-group {
pointer-events: none;
position: relative;
display: flex;
align-items: center;
width: 100%;
height: var(--control-height);
background: var(--search-bg);
border-radius: var(--radius-pill);
box-shadow: var(--shadow-rest);
transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 120ms ease;
}
Expand Down Expand Up @@ -224,7 +229,6 @@

.icon-btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
Expand All @@ -238,9 +242,9 @@
}

.icon-btn:hover {
border-color: var(--accent-100);
background: var(--accent-50);
color: var(--accent-700);
border-color: var(--focus-ring);
background: transparent;
color: var(--color-sf-icon-color);
}

.icon-btn:active { transform: translateY(1px); }
Expand Down Expand Up @@ -308,13 +312,15 @@
}

.create-menu button:hover {
background: var(--accent-50);
color: var(--accent-700);
background: var(--color-sf-secondary-bg-color-hover);
border-color: var(--color-sf-content-text-color);
color: var(--color-sf-content-text-color);
}

/* Badge */
.badge {
position: absolute;
font-family: 'Roboto', sans-serif;
top: -4px;
right: -4px;
min-width: 18px;
Expand All @@ -332,7 +338,14 @@
}

/* Avatar */
.topnav-avatar-wrapper { position: relative; }
.topnav-avatar-wrapper {
display: flex;
justify-content: center;
align-items: center;
}
.topnav-avatar-name{
margin-left: 10px;
}

.topnav-avatar {
width: 36px;
Expand All @@ -351,9 +364,9 @@
}

.topnav-avatar:hover {
border-color: var(--accent-100);
background: var(--accent-50);
color: var(--accent-700);
border-color: var(--focus-ring);
background: transparent;
color: var(--color-sf-icon-color);
}

.topnav-avatar-menu {
Expand Down
Loading