File size: 2,935 Bytes
b0c3c39 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
.sidePane {
position: fixed;
left: 0;
top: 0;
height: 100vh;
background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
z-index: 1000;
display: flex;
flex-direction: column;
border-right: 1px solid rgba(0, 0, 0, 0.05);
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.expanded {
width: 260px;
}
.collapsed {
width: 70px;
}
.toggleButton {
position: absolute;
right: -12px;
top: 20px;
width: 28px;
height: 28px;
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
z-index: 1001;
transition: background 0.2s, transform 0.2s;
}
.toggleButton:hover {
background: #f0f4fa;
transform: scale(1.08);
}
.menuItems {
padding: 24px 0 0 0;
flex-grow: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 4px;
}
.menuItem {
display: flex;
align-items: center;
padding: 12px 20px;
color: #2c3e50;
text-decoration: none;
border-radius: 0 12px 12px 0;
margin-right: 12px;
transition: background 0.2s, color 0.2s;
font-size: 1rem;
font-weight: 500;
}
.menuItem:hover {
background: #f0f4fa;
color: #007bff;
}
.menuItem.active {
background: #eaf4ff;
color: #007bff;
border-left: 3px solid #007bff;
}
.icon {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 16px;
}
.label {
white-space: nowrap;
overflow: hidden;
font-weight: 500;
font-size: 1rem;
}
.collapsed .label {
display: none;
}
.logoutButton {
margin-top: auto;
padding: 20px 16px;
border-top: 1px solid #f0f0f0;
background: #fff;
}
.logoutButton button {
width: 100%;
padding: 12px;
background: #dc3545;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 500;
box-shadow: 0 2px 8px rgba(220, 53, 69, 0.12);
transition: background 0.2s, transform 0.2s;
}
.logoutButton button:hover {
background: #c82333;
transform: translateY(-1px);
}
.logoutButton.collapsed button {
padding: 12px;
}
.logoutButton.collapsed span {
display: none;
}
@media (max-width: 600px) {
.sidePane {
width: 100vw !important;
min-width: 0;
max-width: 100vw;
border-radius: 0;
left: 0;
top: 0;
height: 60px;
flex-direction: row;
align-items: center;
border-right: none;
border-bottom: 1px solid #e0e0e0;
}
.expanded, .collapsed {
width: 100vw !important;
}
.menuItems {
flex-direction: row;
padding: 0 8px;
gap: 0;
}
.logoutButton {
padding: 8px;
border-top: none;
border-left: 1px solid #e0e0e0;
margin-top: 0;
}
} |