Files
SnowEyes/popup/highlight.css
T
2025-02-05 12:04:17 +08:00

734 lines
12 KiB
CSS

/* 基础样式 */
body {
width: 400px;
margin: 0;
padding: 0;
font-size: 14px;
line-height: 1.5;
background: #fff;
overflow: hidden;
}
/* 导航栏样式 */
.nav-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0;
border-bottom: 1px solid #e9ecef;
background: #fff;
height: 40px;
flex-shrink: 0;
}
.nav-left {
display: flex;
}
.nav-right {
padding-right: 10px;
}
.nav-tab {
padding: 10px 20px;
border: none;
background: none;
color: #495057;
font-size: 14px;
cursor: pointer;
position: relative;
}
.nav-tab.active {
color: #228be6;
font-weight: 500;
}
.nav-tab.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
right: 0;
height: 2px;
background: #228be6;
}
/* 刷新按钮样式 */
.refresh-btn {
padding: 6px 12px;
color: #5c7cfa;
background: #edf2ff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
transition: all 0.2s;
}
.refresh-btn:hover {
background: #dbe4ff;
}
/* 页面容器样式 */
.page {
height: calc(100vh - 40px);
overflow-y: auto;
padding: 10px 10px 10px 12px;
width: 400px;
box-sizing: border-box;
}
.page.active {
display: block;
}
/* 内容容器样式 */
.container {
height: 100%;
overflow: hidden;
width: 100%;
}
/* 结果区域样式 */
.section {
margin-bottom: 8px;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 4px;
padding-right: 4px;
}
.title {
font-size: 15px;
font-weight: 600;
color: #495057;
}
.section-content {
background: #f8f9fa;
border-radius: 4px;
padding: 6px 10px 6px 6px;
max-height: 300px;
overflow-y: auto;
margin-right: 2px;
}
/* 结果项样式 */
.item {
display: inline-flex;
align-items: center;
padding: 4px 10px;
background: #fff;
border-radius: 4px;
font-size: 13px;
color: #495057;
cursor: pointer;
position: relative;
margin: 3px;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
user-select: text;
word-break: break-all;
white-space: normal;
max-width: 100%;
}
.item:hover {
background: #f8f9fa;
}
.item::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 3px;
border-radius: 4px 0 0 4px;
}
/* 配置页面样式 */
.config-section {
padding: 0 12px;
}
.config-group {
margin-bottom: 16px;
}
.config-group h3 {
font-size: 14px;
color: #495057;
margin: 0 0 8px 0;
}
.config-group h4 {
font-size: 14px;
color: #495057;
margin: 12px 0 8px 0;
font-weight: 500;
}
.config-content {
font-size: 13px;
color: #495057;
line-height: 1.6;
margin-left: 8px;
}
/* 配置项样式 */
.config-item {
margin-bottom: 8px;
}
.config-label {
font-size: 13px;
color: #6c757d;
margin-bottom: 4px;
}
.config-value,
.whitelist-input {
width: 100%;
min-height: 80px;
height: 120px;
padding: 6px 8px;
font-size: 13px;
line-height: 1.4;
color: #495057;
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 4px;
resize: vertical;
transition: all 0.2s ease;
font-family: inherit;
}
.config-value:hover,
.whitelist-input:hover {
background: #fff;
border-color: #adb5bd;
}
.config-value:focus,
.whitelist-input:focus {
background: #fff;
border-color: #228be6;
outline: none;
box-shadow: 0 0 0 2px rgba(34,139,230,0.1);
}
/* 移除旧的白名单和黑名单输入框样式 */
.whitelist-input, .blacklist-input {
display: none;
}
/* 移除旧的网格布局样式 */
.whitelist, .blacklist {
margin-left: 8px;
}
.whitelist-item, .blacklist-item {
display: none;
}
/* 状态提示样式 */
.loading, .error {
padding: 20px;
text-align: center;
color: #666;
}
.error {
color: #ff6b6b;
}
/* 白名单提示样式 */
.whitelisted {
padding: 20px;
text-align: center;
color: #2b8a3e;
background: #ebfbee;
border-radius: 4px;
margin: 10px;
font-size: 14px;
}
/* 复制按钮样式 */
.copy-btn {
padding: 4px 8px;
color: #868e96;
background: none;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
transition: all 0.2s;
display: flex;
align-items: center;
}
.copy-btn:hover {
color: #228be6;
background: #e7f5ff;
}
.copy-btn svg {
width: 14px;
height: 14px;
margin-right: 4px;
}
/* 复制提示样式 */
.copy-tooltip {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(33, 37, 41, 0.9);
color: white;
padding: 8px 16px;
border-radius: 4px;
font-size: 13px;
z-index: 9999;
pointer-events: none;
animation: fadeInOut 0.6s ease forwards;
white-space: nowrap;
}
@keyframes fadeInOut {
0% {
opacity: 0;
transform: translate(-50%, -50%) scale(0.9);
}
20% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
80% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
100% {
opacity: 0;
transform: translate(-50%, -50%) scale(0.9);
}
}
/* 计数样式 */
.count {
font-size: 13px;
color: #868e96;
margin-left: 4px;
font-weight: normal;
}
/* 无结果提示样式 */
.no-results {
padding: 20px;
text-align: center;
color: #868e96;
font-style: italic;
}
/* 内容包装器样式 */
.content-wrapper {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
/* 为不同类型的结果添加左侧彩色边框 */
.item::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 3px;
border-radius: 4px 0 0 4px;
}
/* 各类型结果的边框颜色 */
.domain-list .item::before {
background: #74c0fc; /* 蓝色 - 域名 */
}
.api-list .item::before {
background: #b197fc; /* 紫色 - 相对路径API */
}
.absolute-api-list .item::before {
background: #9775fa; /* 深紫色 - 绝对路径API */
}
.module-list .item::before {
background: #63e6be; /* 薄荷绿 - 模块路径 */
}
.vue-list .item::before {
background: #41B883; /* Vue绿色 - Vue文件 */
}
.image-list .item::before {
background: #ff922b; /* 橙色 - 图片资源 */
}
.js-list .item::before {
background: #20c997; /* 青绿色 - JS文件 */
}
.doc-list .item::before {
background: #748ffc; /* 靛蓝色 - 文档文件 */
}
.ip-list .item::before {
background: #ffd43b; /* 黄色 - IP */
}
.phone-list .item::before {
background: #ff8787; /* 红色 - 手机号 */
}
.email-list .item::before {
background: #69db7c; /* 绿色 - 邮箱 */
}
.idcard-list .item::before {
background: #ffa94d; /* 橙色 - 身份证 */
}
.url-list .item::before {
background: #4dabf7; /* 浅蓝 - URL */
}
.github-list .item::before {
background: #24292e; /* GitHub黑 - GitHub链接 */
}
.jwt-list .item::before {
background: #ff922b; /* 橙色 - JWT Token */
}
.aws-list .item::before {
background: #ff6b6b; /* 红色 - AWS Key */
}
.company-list .item::before {
background: #845ef7; /* 紫色 - 机构公司 */
}
.credentials-list .item::before {
background: #e64980; /* 粉红色 - 用户名密码 */
}
.cookie-list .item::before {
background: #fd7e14; /* 橙色 - Cookie */
}
.id-key-list .item::before {
background: #7950f2; /* 紫色 - ID密钥 */
}
/* 自定义滚动条样式 */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #e9ecef;
border-radius: 3px;
transition: background 0.2s;
}
/* 当鼠标悬停在页面上时,滚动条变深 */
.page:hover::-webkit-scrollbar-thumb {
background: #adb5bd;
}
/* 结果区域的滚动条样式 */
.section-content::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.section-content::-webkit-scrollbar-thumb {
background: #e9ecef;
}
/* 当鼠标悬停在结果区域时,滚动条变深 */
.section-content:hover::-webkit-scrollbar-thumb {
background: #adb5bd;
}
/* 标题栏样式调整 */
.title-wrapper {
display: flex;
align-items: center;
gap: 8px;
}
/* 指纹嗅探页面样式 */
.fingerprint-section {
padding: 10px;
}
.fingerprint-group {
background: #fff;
border-radius: 6px;
padding: 12px;
margin-bottom: 12px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.fingerprint-group h3 {
margin: 0 0 10px 0;
font-size: 14px;
color: #495057;
font-weight: 600;
}
.fingerprint-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
background: #f8f9fa;
border-radius: 4px;
}
.fingerprint-label {
font-size: 13px;
color: #495057;
flex: 1;
margin-right: 10px;
}
.fingerprint-status {
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
font-weight: 500;
}
.fingerprint-status.pending {
background: #e9ecef;
color: #868e96;
}
.fingerprint-status.detected {
background: #d3f9d8;
color: #2b8a3e;
}
.fingerprint-status.not-detected {
background: #ffe3e3;
color: #c92a2a;
}
/* 指纹嗅探标签样式 */
.tag {
display: inline-block;
padding: 2px 6px;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
margin-right: 8px;
color: #fff;
}
.oa-tag {
background: #4dabf7; /* 浅蓝色 */
}
.erp-tag {
background: #845ef7; /* 紫色 */
}
/* 指纹分组样式增强 */
.fingerprint-group {
border-left: 3px solid transparent;
transition: all 0.2s ease;
}
.oa-group {
border-left-color: #4dabf7;
}
.erp-group {
border-left-color: #845ef7;
}
.fingerprint-group:hover {
transform: translateX(2px);
}
/* 白名单域名展示样式 */
.whitelist-domains {
margin-top: 10px;
background: #f8f9fa;
border-radius: 6px;
padding: 12px;
}
.domain-item {
display: inline-block;
padding: 6px 12px;
background: #fff;
border-radius: 4px;
margin: 4px;
font-size: 13px;
color: #495057;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.config-content {
color: #868e96;
font-size: 13px;
margin-bottom: 8px;
}
/* Web服务器指纹样式 */
.webserver-tag {
background: #20c997; /* 青绿色 */
}
.webserver-group {
border-left-color: #20c997;
}
/* 操作系统指纹样式 */
.os-tag {
background: #ff922b; /* 橙色 */
}
.os-group {
border-left-color: #ff922b;
}
/* SSL指纹样式 */
.ssl-tag {
background: #51cf66; /* 绿色 */
}
.ssl-group {
border-left-color: #51cf66;
}
/* 模块指纹样式 */
.module-tag {
background: #339af0; /* 蓝色 */
}
.module-group {
border-left-color: #339af0;
}
/* 技术栈指纹样式 */
.technology-tag {
background: #845ef7; /* 紫色 */
}
.technology-group {
border-left-color: #845ef7;
}
/* Powered By 指纹样式 */
.poweredby-tag { /* 修改为驼峰式命名,去掉空格和横线 */
background: #4dabf7; /* 浅蓝色 */
}
.poweredby-group { /* 修改为驼峰式命名,去掉空格和横线 */
border-left-color: #4dabf7;
}
/* 安全组件指纹样式 */
.security-tag {
background: #e64980; /* 粉红色 */
}
.security-group {
border-left-color: #e64980;
}
.fingerprint-value {
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
font-weight: 500;
}
.fingerprint-value.detected {
background: #d3f9d8;
color: #2b8a3e;
}
.header-value {
font-family: monospace;
word-break: break-all;
}
/* 开关按钮样式 */
.switch-wrapper {
display: flex;
align-items: center;
cursor: pointer;
margin-bottom: 8px;
}
.switch-input {
position: relative;
width: 40px;
height: 20px;
margin: 0;
margin-right: 8px;
background: #e9ecef;
border-radius: 20px;
border: none;
outline: none;
cursor: pointer;
-webkit-appearance: none;
transition: all 0.3s;
}
.switch-input:checked {
background: #228be6;
}
.switch-input::before {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background: white;
border-radius: 50%;
transition: all 0.3s;
}
.switch-input:checked::before {
transform: translateX(20px);
}
.switch-label {
font-size: 14px;
color: #495057;
}
.config-desc {
font-size: 12px;
color: #868e96;
margin-top: 4px;
margin-left: 48px;
}