browser-plugin-creator
Version:
A modern scaffolding tool for creating browser extensions with ease
98 lines (85 loc) • 1.53 kB
CSS
/* DevTools面板样式 */
body {
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f5f5f5;
color: #333;
}
#app {
padding: 20px;
}
h1 {
margin: 0 0 20px 0;
color: #2c3e50;
font-size: 24px;
}
.panel {
display: flex;
height: calc(100vh - 100px);
gap: 20px;
}
.sidebar {
width: 200px;
background: white;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sidebar button {
width: 100%;
margin-bottom: 10px;
padding: 10px;
border: none;
border-radius: 4px;
background: #3498db;
color: white;
cursor: pointer;
font-size: 14px;
}
.sidebar button:hover {
background: #2980b9;
}
.content {
flex: 1;
display: flex;
flex-direction: column;
gap: 20px;
}
#element-info, #console-output {
background: white;
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#element-info h3, #console-output h3 {
margin: 0 0 10px 0;
color: #2c3e50;
}
#element-details {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 4px;
padding: 10px;
font-family: 'Courier New', monospace;
font-size: 12px;
max-height: 200px;
overflow-y: auto;
}
.log-entry {
margin-bottom: 10px;
padding: 8px;
background: #f8f9fa;
border-left: 3px solid #3498db;
border-radius: 4px;
}
.log-timestamp {
font-size: 11px;
color: #666;
margin-bottom: 4px;
}
.log-content {
font-family: 'Courier New', monospace;
font-size: 12px;
word-break: break-all;
}