PBI-Measure-CallGraph/static/css/style.css
2025-03-15 21:32:56 +08:00

189 lines
2.9 KiB
CSS

/* Global styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 30px;
}
h1 {
color: #0078d4;
margin-bottom: 10px;
}
h2 {
color: #0078d4;
margin-bottom: 15px;
font-size: 1.5rem;
}
/* Connection panel */
.connection-panel {
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: 500;
}
input[type="text"] {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}
button {
background-color: #0078d4;
color: white;
border: none;
padding: 10px 15px;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s;
}
button:hover {
background-color: #005a9e;
}
#connection-status {
margin-top: 10px;
font-weight: 500;
}
.success {
color: #107c10;
}
.error {
color: #d83b01;
}
/* Visualization container */
.visualization-container {
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.controls {
display: flex;
justify-content: space-between;
margin-bottom: 15px;
}
.search-box {
flex-grow: 1;
margin-left: 15px;
}
#graph-container {
width: 100%;
height: 600px;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
}
/* Graph styles */
.node circle {
fill: #0078d4;
stroke: #fff;
stroke-width: 2px;
}
.node text {
font-size: 12px;
fill: #333;
}
.node.highlighted circle {
fill: #ffb900;
}
.node.selected circle {
fill: #107c10;
}
.link {
stroke: #999;
stroke-opacity: 0.6;
stroke-width: 1px;
}
.link.highlighted {
stroke: #ffb900;
stroke-opacity: 0.8;
stroke-width: 2px;
}
/* Measure details */
.measure-details {
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#measure-name {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 10px;
}
#measure-expression {
background-color: #f8f8f8;
padding: 15px;
border-radius: 4px;
border: 1px solid #ddd;
white-space: pre-wrap;
font-family: Consolas, Monaco, 'Andale Mono', monospace;
font-size: 0.9rem;
overflow-x: auto;
}
/* Tooltip */
.tooltip {
position: absolute;
background-color: rgba(0, 0, 0, 0.8);
color: white;
padding: 10px;
border-radius: 4px;
font-size: 12px;
max-width: 300px;
z-index: 10;
pointer-events: none;
}