Files
no-copy-frontend/src/app/styles/header.scss
T

292 lines
5.0 KiB
SCSS
Raw Normal View History

2025-12-27 13:47:51 +07:00
@use './variable.scss' as v;
2025-11-26 14:01:35 +07:00
.header {
display: flex;
2025-12-05 14:55:05 +07:00
justify-content: end;
2025-11-26 14:01:35 +07:00
align-items: center;
margin-bottom: 30px;
2025-12-27 13:47:51 +07:00
background: v.$white;
2025-11-26 14:01:35 +07:00
padding: 20px 30px;
border-radius: 20px;
2025-12-27 13:47:51 +07:00
box-shadow: 0 4px 20px v.$shadow-1;
2025-11-26 14:01:35 +07:00
.header-action {
display: flex;
align-items: center;
gap: 15px;
.icon-btn {
width: 40px;
height: 40px;
border-radius: 50%;
2025-12-27 13:47:51 +07:00
background: v.$bg-light;
2025-11-26 14:01:35 +07:00
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
position: relative;
&:hover {
2025-12-27 13:47:51 +07:00
background: v.$bg-hover;
2025-11-26 14:01:35 +07:00
transform: translateY(-2px);
}
}
}
.notification-wrapper,
.user-menu,
.tokens-balance {
position: relative;
}
.tokens-balance {
margin-right: 15px;
}
.tokens-wrapper {
display: flex;
align-items: center;
gap: 6px;
2025-12-27 13:47:51 +07:00
background: v.$white;
color: v.$p-color;
border: 2px solid v.$p-color;
2025-11-26 14:01:35 +07:00
padding: 8px 12px;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
2025-12-27 13:47:51 +07:00
box-shadow: 0 10px 40px v.$shadow-1;
2025-11-26 14:01:35 +07:00
font-size: 12px;
font-weight: 600;
min-width: 110px;
}
.tokens-count {
font-weight: 700;
font-size: 14px;
letter-spacing: 0.5px;
}
.tokens-label {
font-weight: 500;
opacity: 0.9;
}
.notification-dropdown,
.user-dropdown {
position: absolute;
top: calc(100% + 10px);
right: 0;
2025-12-27 13:47:51 +07:00
background: v.$white;
2025-11-26 14:01:35 +07:00
border-radius: 12px;
2025-12-27 13:47:51 +07:00
box-shadow: 10px 10px 20px 10px v.$shadow-1;
2025-11-26 14:01:35 +07:00
min-width: 320px;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1000;
&.show {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
}
.notification-dropdown {
.notification-header {
padding: 15px 20px;
2025-12-27 13:47:51 +07:00
border-bottom: 1px solid v.$b-color-1;
2025-11-26 14:01:35 +07:00
display: flex;
justify-content: space-between;
align-items: center;
h4 {
margin: 0;
font-size: 16px;
font-weight: 600;
2025-12-27 13:47:51 +07:00
color: v.$text-p;
2025-11-26 14:01:35 +07:00
}
.notification-count {
font-size: 12px;
2025-12-27 13:47:51 +07:00
color: v.$p-color;
2025-11-26 14:01:35 +07:00
font-weight: 500;
}
}
.notification-list {
max-height: 400px;
overflow-y: auto;
}
.notification-item {
display: flex;
gap: 12px;
padding: 15px 20px;
2025-12-27 13:47:51 +07:00
border-bottom: 1px solid v.$b-color-1;
2025-11-26 14:01:35 +07:00
transition: background-color 0.2s;
cursor: pointer;
}
.notification-title {
display: block;
font-size: 15px;
font-weight: 700;
2025-12-27 13:47:51 +07:00
color: v.$text-p;
2025-11-26 14:01:35 +07:00
margin-bottom: 6px;
}
.notification-icon {
font-size: 24px;
flex-shrink: 0;
}
.notification-text {
font-size: 13px;
2025-12-27 13:47:51 +07:00
color: v.$text-s;
2025-11-26 14:01:35 +07:00
margin-bottom: 4px;
font-weight: 500;
}
.notification-time {
font-size: 12px;
2025-12-27 13:47:51 +07:00
color: v.$text-m;
2025-11-26 14:01:35 +07:00
}
.notification-footer {
padding: 12px 20px;
2025-12-27 13:47:51 +07:00
border-top: 1px solid v.$b-color-1;
2025-11-26 14:01:35 +07:00
text-align: center;
.notification-link {
2025-12-27 13:47:51 +07:00
color: v.$p-color;
2025-11-26 14:01:35 +07:00
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
}
}
.user-menu {
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
2025-12-27 13:47:51 +07:00
background: linear-gradient(45deg, v.$p-color, v.$s-color);
2025-11-26 14:01:35 +07:00
display: flex;
align-items: center;
justify-content: center;
2025-12-27 13:47:51 +07:00
color: v.$white;
2025-11-26 14:01:35 +07:00
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
2025-12-05 14:55:05 +07:00
text-transform: uppercase;
2025-11-26 14:01:35 +07:00
}
.user-dropdown {
min-width: 280px;
}
.user-info-header {
padding: 20px;
2025-12-27 13:47:51 +07:00
border-bottom: 1px solid v.$b-color-1;
2025-11-26 14:01:35 +07:00
display: flex;
gap: 15px;
align-items: center;
}
.user-avatar-large {
width: 50px;
height: 50px;
2025-12-27 13:47:51 +07:00
background: linear-gradient(135deg, v.$p-color, v.$s-color);
color: v.$white;
2025-11-26 14:01:35 +07:00
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 20px;
flex-shrink: 0;
2025-12-05 14:55:05 +07:00
text-transform: uppercase;
2025-11-26 14:01:35 +07:00
}
.user-details {
flex: 1;
min-width: 0;
}
.user-name {
font-weight: 600;
font-size: 15px;
2025-12-27 13:47:51 +07:00
color: v.$text-p;
2025-11-26 14:01:35 +07:00
margin-bottom: 4px;
}
2025-12-05 14:55:05 +07:00
.user-email,
.user-subscription-expire {
2025-11-26 14:01:35 +07:00
font-size: 13px;
2025-12-27 13:47:51 +07:00
color: v.$text-m;
2025-11-26 14:01:35 +07:00
margin-bottom: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-subscription {
display: inline-block;
}
.user-menu-items {
padding: 10px 0;
}
.user-menu-item {
display: flex;
align-items: center;
padding: 12px 20px;
text-decoration: none;
2025-12-27 13:47:51 +07:00
color: v.$text-s;
2025-11-26 14:01:35 +07:00
transition: background-color 0.2s;
svg {
width: 18px;
height: 18px;
margin-right: 12px;
}
}
.subscription-badge {
display: inline-block;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
2025-12-27 13:47:51 +07:00
background: v.$bg-hover;
2025-12-05 14:55:05 +07:00
padding: 2px 5px;
2025-11-26 14:01:35 +07:00
}
.user-menu-footer {
2025-12-27 13:47:51 +07:00
border-top: 1px solid v.$b-color-1;
2025-11-26 14:01:35 +07:00
padding: 10px 0;
}
.user-menu-logout {
display: flex;
align-items: center;
padding: 12px 20px;
text-decoration: none;
2025-12-27 13:47:51 +07:00
color: v.$red;
2025-11-26 14:01:35 +07:00
transition: background-color 0.2s;
svg {
width: 18px;
height: 18px;
margin-right: 12px;
}
}
}
}