refactor
This commit is contained in:
+32
-30
@@ -1,12 +1,14 @@
|
||||
@use './variable.scss' as v;
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
align-items: center;
|
||||
margin-bottom: 30px;
|
||||
background: white;
|
||||
background: v.$white;
|
||||
padding: 20px 30px;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
||||
box-shadow: 0 4px 20px v.$shadow-1;
|
||||
|
||||
.header-action {
|
||||
display: flex;
|
||||
@@ -17,7 +19,7 @@
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: #f8f9fa;
|
||||
background: v.$bg-light;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -27,7 +29,7 @@
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
background: #e9ecef;
|
||||
background: v.$bg-hover;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
@@ -47,14 +49,14 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: white;
|
||||
color: #6366f1;
|
||||
border: 2px solid #6366f1;
|
||||
background: v.$white;
|
||||
color: v.$p-color;
|
||||
border: 2px solid v.$p-color;
|
||||
padding: 8px 12px;
|
||||
border-radius: 20px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
|
||||
box-shadow: 0 10px 40px v.$shadow-1;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
min-width: 110px;
|
||||
@@ -76,9 +78,9 @@
|
||||
position: absolute;
|
||||
top: calc(100% + 10px);
|
||||
right: 0;
|
||||
background: white;
|
||||
background: v.$white;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: 10px 10px 20px 10px v.$shadow-1;
|
||||
min-width: 320px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
@@ -96,7 +98,7 @@
|
||||
.notification-dropdown {
|
||||
.notification-header {
|
||||
padding: 15px 20px;
|
||||
border-bottom: 1px solid #f3f4f6;
|
||||
border-bottom: 1px solid v.$b-color-1;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -105,12 +107,12 @@
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
color: v.$text-p;
|
||||
}
|
||||
|
||||
.notification-count {
|
||||
font-size: 12px;
|
||||
color: #6366f1;
|
||||
color: v.$p-color;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
@@ -124,7 +126,7 @@
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding: 15px 20px;
|
||||
border-bottom: 1px solid #f3f4f6;
|
||||
border-bottom: 1px solid v.$b-color-1;
|
||||
transition: background-color 0.2s;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -133,7 +135,7 @@
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: #1f2937;
|
||||
color: v.$text-p;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
@@ -144,23 +146,23 @@
|
||||
|
||||
.notification-text {
|
||||
font-size: 13px;
|
||||
color: #4b5563;
|
||||
color: v.$text-s;
|
||||
margin-bottom: 4px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.notification-time {
|
||||
font-size: 12px;
|
||||
color: #9ca3af;
|
||||
color: v.$text-m;
|
||||
}
|
||||
|
||||
.notification-footer {
|
||||
padding: 12px 20px;
|
||||
border-top: 1px solid #f3f4f6;
|
||||
border-top: 1px solid v.$b-color-1;
|
||||
text-align: center;
|
||||
|
||||
.notification-link {
|
||||
color: #6366f1;
|
||||
color: v.$p-color;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
@@ -173,11 +175,11 @@
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(45deg, #6366f1, #8b5cf6);
|
||||
background: linear-gradient(45deg, v.$p-color, v.$s-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
color: v.$white;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
@@ -190,7 +192,7 @@
|
||||
|
||||
.user-info-header {
|
||||
padding: 20px;
|
||||
border-bottom: 1px solid #f3f4f6;
|
||||
border-bottom: 1px solid v.$b-color-1;
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
align-items: center;
|
||||
@@ -199,8 +201,8 @@
|
||||
.user-avatar-large {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
||||
color: white;
|
||||
background: linear-gradient(135deg, v.$p-color, v.$s-color);
|
||||
color: v.$white;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -219,14 +221,14 @@
|
||||
.user-name {
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
color: #1f2937;
|
||||
color: v.$text-p;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.user-email,
|
||||
.user-subscription-expire {
|
||||
font-size: 13px;
|
||||
color: #6b7280;
|
||||
color: v.$text-m;
|
||||
margin-bottom: 8px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -246,7 +248,7 @@
|
||||
align-items: center;
|
||||
padding: 12px 20px;
|
||||
text-decoration: none;
|
||||
color: #374151;
|
||||
color: v.$text-s;
|
||||
transition: background-color 0.2s;
|
||||
|
||||
svg {
|
||||
@@ -263,12 +265,12 @@
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
background: #e6ebf1;
|
||||
background: v.$bg-hover;
|
||||
padding: 2px 5px;
|
||||
}
|
||||
|
||||
.user-menu-footer {
|
||||
border-top: 1px solid #f3f4f6;
|
||||
border-top: 1px solid v.$b-color-1;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
@@ -277,7 +279,7 @@
|
||||
align-items: center;
|
||||
padding: 12px 20px;
|
||||
text-decoration: none;
|
||||
color: #dc2626;
|
||||
color: v.$red;
|
||||
transition: background-color 0.2s;
|
||||
|
||||
svg {
|
||||
|
||||
Reference in New Issue
Block a user