Add title
This commit is contained in:
parent
8f66d8663a
commit
317d79da23
2 changed files with 28 additions and 10 deletions
|
|
@ -6,7 +6,9 @@
|
||||||
<link rel="stylesheet" href="styles.css"/>
|
<link rel="stylesheet" href="styles.css"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="container"></div>
|
<div id="container">
|
||||||
|
<div id="graphTitle" class="graph-title">Microsoft Common Data Model - Network Graph Visualization</div>
|
||||||
|
</div>
|
||||||
<div id="nodeDrawer" class="drawer">
|
<div id="nodeDrawer" class="drawer">
|
||||||
<div class="drawer-content">
|
<div class="drawer-content">
|
||||||
<span class="close">×</span>
|
<span class="close">×</span>
|
||||||
|
|
|
||||||
34
styles.css
34
styles.css
|
|
@ -6,23 +6,39 @@ html, body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
|
position: relative;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background: white;
|
background: white;
|
||||||
|
border: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.graph-title {
|
||||||
|
position: absolute;
|
||||||
|
top: 25px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
font-size: 32px;
|
||||||
|
color: #333;
|
||||||
|
z-index: 10;
|
||||||
|
background-color: rgba(255, 255, 255, 0.8);
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* The Drawer (background) */
|
/* The Drawer (background) */
|
||||||
.drawer {
|
.drawer {
|
||||||
display: none; /* Hidden by default */
|
display: none;
|
||||||
position: fixed; /* Stay in place */
|
position: fixed;
|
||||||
z-index: 1; /* Sit on top */
|
z-index: 1;
|
||||||
right: 0; /* Align to the right side */
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 30%; /* Adjust width as needed */
|
width: 30%;
|
||||||
height: 100%; /* Full height */
|
height: 100%;
|
||||||
background-color: white; /* Drawer background color */
|
background-color: white;
|
||||||
box-shadow: -2px 0 5px rgba(0,0,0,0.5); /* Shadow for better visibility */
|
box-shadow: -2px 0 5px rgba(0,0,0,0.5);
|
||||||
overflow-x: hidden; /* Prevent horizontal scroll */
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer-content {
|
.drawer-content {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue