mirror of
https://github.com/yaklang/yaklang-chrome-extension.git
synced 2026-09-23 03:31:53 +08:00
263 lines
5.6 KiB
CSS
263 lines
5.6 KiB
CSS
.proxy-container {
|
|
min-width: 200px;
|
|
background: white;
|
|
}
|
|
|
|
.proxy-menu {
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
overflow: hidden;
|
|
padding: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.menu-item {
|
|
height: 40px !important;
|
|
line-height: 40px !important;
|
|
margin: 0 !important;
|
|
padding: 0 16px !important;
|
|
}
|
|
|
|
.menu-item .anticon {
|
|
font-size: 16px;
|
|
color: var(--yakit-primary);
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.menu-item-label {
|
|
font-size: 14px;
|
|
color: #333;
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background-color: var(--yakit-primary-5) !important;
|
|
}
|
|
|
|
.menu-item:hover .anticon,
|
|
.menu-item:hover .menu-item-label {
|
|
color: var(--yakit-primary) !important;
|
|
}
|
|
|
|
/* 选中状态 */
|
|
.menu-item.ant-menu-item-selected {
|
|
background-color: var(--yakit-primary) !important;
|
|
}
|
|
|
|
.menu-item.ant-menu-item-selected .anticon,
|
|
.menu-item.ant-menu-item-selected .menu-item-label {
|
|
color: white !important;
|
|
}
|
|
|
|
.menu-item.ant-menu-item-selected:hover {
|
|
background-color: var(--yakit-primary-hover) !important;
|
|
}
|
|
|
|
/* 分隔线 */
|
|
.ant-menu-item-divider {
|
|
margin: 4px 0 !important;
|
|
border-color: #EAECF3 !important;
|
|
}
|
|
|
|
/* 设置选项 */
|
|
.menu-item-setting {
|
|
border-top: 1px solid #EAECF3;
|
|
margin-top: 4px !important;
|
|
}
|
|
|
|
.menu-item-setting .anticon {
|
|
color: #666;
|
|
}
|
|
|
|
.menu-item-setting:hover {
|
|
background-color: var(--yakit-primary-5) !important;
|
|
}
|
|
|
|
.menu-item-setting:hover .anticon,
|
|
.menu-item-setting:hover .menu-item-label {
|
|
color: var(--yakit-primary) !important;
|
|
}
|
|
|
|
/* 调整图标大小和对齐 */
|
|
.anticon {
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* 添加以下样式来确保下拉菜单显示在正确的位置 */
|
|
.ant-dropdown {
|
|
position: absolute !important;
|
|
top: 100% !important;
|
|
left: 0 !important;
|
|
width: 100% !important;
|
|
min-width: 200px !important;
|
|
}
|
|
|
|
.dropdown-content {
|
|
background: white;
|
|
border-radius: 4px;
|
|
box-shadow: 0 3px 6px -4px rgba(0,0,0,0.12),
|
|
0 6px 16px 0 rgba(0,0,0,0.08),
|
|
0 9px 28px 8px rgba(0,0,0,0.05);
|
|
padding: 4px;
|
|
}
|
|
|
|
/* 确保容器不会限制弹出层 */
|
|
.proxy-container {
|
|
min-width: 200px;
|
|
background: white;
|
|
border-radius: 4px;
|
|
position: static;
|
|
}
|
|
|
|
/* 添加这个样式来确保下拉菜单显示在正确的位置 */
|
|
body {
|
|
position: relative;
|
|
}
|
|
|
|
.ant-menu {
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
padding: 0 !important;
|
|
width: 100% !important;
|
|
background: white !important;
|
|
}
|
|
|
|
.ant-menu-item {
|
|
height: 36px !important;
|
|
line-height: 36px !important;
|
|
margin: 4px 8px !important;
|
|
padding: 0 16px !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
border-radius: 6px !important;
|
|
}
|
|
|
|
.ant-menu-item:hover {
|
|
background-color: #f5f5f5 !important;
|
|
color: var(--yakit-primary) !important;
|
|
}
|
|
|
|
.ant-menu-item.ant-menu-item-selected {
|
|
background-color: var(--yakit-primary) !important;
|
|
color: white !important;
|
|
border-radius: 6px !important;
|
|
}
|
|
|
|
.ant-menu-item.ant-menu-item-selected:hover {
|
|
background-color: var(--yakit-primary-hover) !important;
|
|
}
|
|
|
|
.ant-menu-item .anticon,
|
|
.ant-menu-item img {
|
|
font-size: 16px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.ant-menu-item.ant-menu-item-selected .anticon,
|
|
.ant-menu-item.ant-menu-item-selected img {
|
|
color: white;
|
|
}
|
|
|
|
.ant-menu-item-divider {
|
|
margin: 4px 0 !important;
|
|
height: 1px !important;
|
|
background-color: #f0f0f0 !important;
|
|
}
|
|
|
|
/* Checked item style (for the 2080 with checkmark) */
|
|
.ant-menu-item.checked::after {
|
|
content: "✓";
|
|
position: absolute;
|
|
right: 16px;
|
|
color: var(--yakit-primary);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ant-menu-item.ant-menu-item-selected.checked::after {
|
|
color: white;
|
|
}
|
|
|
|
/* Loading state */
|
|
.loading-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(255, 255, 255, 0.7);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 10;
|
|
font-size: 14px;
|
|
color: var(--yakit-primary);
|
|
}
|
|
|
|
/* Remove conflicting styles */
|
|
.panel-watermark {
|
|
display: none;
|
|
}
|
|
|
|
/* Improve bottom actions */
|
|
.ant-menu-item:nth-last-child(1),
|
|
.ant-menu-item:nth-last-child(2) {
|
|
border-top: 1px solid #f0f0f0;
|
|
margin-top: 4px !important;
|
|
}
|
|
|
|
.ant-menu-item:nth-last-child(1) .anticon,
|
|
.ant-menu-item:nth-last-child(2) .anticon {
|
|
color: #666;
|
|
}
|
|
|
|
.ant-menu-item:nth-last-child(1):hover .anticon,
|
|
.ant-menu-item:nth-last-child(2):hover .anticon {
|
|
color: var(--yakit-primary);
|
|
}
|
|
|
|
.proxy-switch-container {
|
|
position: relative;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.panel-watermark {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0.03;
|
|
pointer-events: none;
|
|
object-fit: contain;
|
|
object-position: right bottom;
|
|
z-index: 0;
|
|
}
|
|
|
|
/* 确保菜单项在水印上层 */
|
|
.ant-menu-item {
|
|
position: relative;
|
|
z-index: 1;
|
|
background: transparent !important;
|
|
}
|
|
|
|
/* 确保分割线在水印上层 */
|
|
.ant-menu-item-divider {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 为[直接连接]菜单项添加橙色背景 */
|
|
.ant-menu[data-menu-id="direct"] .ant-menu-item.ant-menu-item-selected,
|
|
.ant-menu .ant-menu-item[data-menu-id="direct"] {
|
|
background-color: var(--yakit-primary) !important;
|
|
color: white !important;
|
|
}
|
|
|
|
.ant-menu[data-menu-id="direct"] .ant-menu-item.ant-menu-item-selected .anticon,
|
|
.ant-menu[data-menu-id="direct"] .ant-menu-item.ant-menu-item-selected span,
|
|
.ant-menu .ant-menu-item[data-menu-id="direct"] .anticon,
|
|
.ant-menu .ant-menu-item[data-menu-id="direct"] span {
|
|
color: white !important;
|
|
} |