mossy1022_Smart-Connections.../styles.css
Mossy426 378f9b7f90 Updates:
- Added foundation for color legend + coloring nodes
- Updated nodes to have their own fill property
- Removed change background color of global style
2024-06-18 12:47:26 -04:00

249 lines
No EOL
4.5 KiB
CSS

/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
.link {
stroke: #4c7787;
stroke-opacity: 1;
cursor: pointer;
}
.label {
pointer-events: none;
fill: #bbb;
text-shadow: 0px 0px 2px black;
font-family: 'Cascadia';
}
.link-label {
font-family: 'Cascadia';
}
.node:hover {
stroke: #fff;
cursor: pointer;
stroke-width: 0.4px;
}
svg {
pointer-events: all;
}
svg .nodes circle {
cursor: pointer;
}
.node {
cursor: pointer;
}
.smart-connections-visualizer-settings-icon {
position: absolute;
top: 14px;
right: 14px;
cursor: pointer;
font-size: 24px;
color: #bbb;
z-index: 999; /* Ensure the icon stays above other elements */
}
.dropdown-menu {
font-family: 'Cascadia';
display: none;
position: absolute;
top: 13px; /* Position on top of the settings icon */
right: 10px;
background-color: #333;
border: 1px solid #444;
border-radius: 5px;
padding: 10px;
width: 300px;
z-index: 1000; /* Ensure the menu stays above other elements */
}
.dropdown-menu {
background-color: rgba(51, 51, 51, 0.9) !important;
}
.dropdown-menu.visible {
display: block !important;
}
.dropdown-menu.open {
display: block !important;
}
.menu-header {
display: flex;
justify-content: flex-end;
margin-bottom: 5px;
font-family: sans-serif;
}
.menu-header .icon {
cursor: pointer;
font-size: 19px;
color: #bbb;
margin-left: 10px;
margin-top: -2px;
}
.menu-header .icon:hover {
color: #fff;
}
.accordion-item {
margin-bottom: 10px;
color: #a3aecb;
}
.slider {
width: 100% !important;
}
.slider-container {
margin-bottom: 8px;
}
#score-threshold-label {
text-wrap: nowrap;
}
#refresh-icon {
font-size: 28px;
margin-top: -9px;
}
.lucide-x {
height: 24px !important;
width: 24px !important;
}
.smart-connections-visualizer-settings-icon {
-webkit-app-region: no-drag;
background-color: transparent;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border-radius: 1px;
color: #7c849c;
/* opacity: var(--icon-opacity); */
transition: opacity 0.15s ease-in-out;
height: auto;
border: 1px solid #434851;
position: absolute;
padding: 8px;
top: 14px;
right: 14px;
}
.accordion-header {
cursor: pointer;
background-color: #444;
color: #fff;
padding: 10px;
border-radius: 5px;
display: block;
align-items: center;
}
.accordion-header:hover {
background-color: #555;
}
.accordion-content {
display: none;
padding: 10px;
background-color: #333;
border-radius: 5px;
}
.accordion-content.show {
display: block;
}
.dropdown-indicator {
width: 16px;
height: 16px;
margin-right: 8px;
vertical-align: middle;
}
.radio-container {
margin-top: 10px;
}
.radio-container label {
margin-right: 10px;
color: #a3aecb;
}
.settings-item-content-label {
margin-right: 20px;
}
.selection-box {
stroke: #00f;
stroke-width: 1;
fill: rgba(0, 0, 255, 0.3);
}
/* Styles for the legend container */
.legend-container {
width: 295px;
border-collapse: collapse;
background-color: #2d3039; /* Dark background color similar to settings menu */
color: #a3aecb; /* Light text color similar to settings menu */
position: absolute;
top: 14;
left: 10;
}
/* Styles for the legend header */
.legend-header {
display: flex;
background-color: #303030; /* Darker background color for header */
text-align: left;
/* border-bottom: 1px solid #ddd; */
}
/* Styles for each header cell in the legend */
.legend-header div {
padding: 8px;
}
/* Styles for each row in the legend */
.legend-row {
display: flex;
align-items: center;
/* border-bottom: 1px solid #ddd; */
}
/* Alternate row coloring for better readability */
.legend-row:nth-child(even) {
background-color: #3d4149; /* Slightly lighter row color for contrast */
}
.legend-row:nth-child(odd) {
background-color: #2d3039; /* Same as container background color */
}
/* Styles for each cell in the row */
.legend-row div {
padding: 8px;
}
/* Styles for the color picker input */
.legend-color-picker {
width: 30px;
height: 30px;
border: none;
cursor: pointer;
}
.variable-col {
flex: 2;
}
.count-col {
flex: 1;
text-align: center;
}
.color-col {
flex: 1;
text-align: center;
}