Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
302 changes: 302 additions & 0 deletions css/program-explorer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,302 @@
/* Program Explorer Styles */

.program-explorer {
position: fixed;
top: 60px;
right: 20px;
width: 300px;
height: calc(100vh - 100px);
background: #ffffff;
border: 1px solid #cccccc;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 1000;
display: flex;
flex-direction: column;
font-family: "Noto Sans", sans-serif;
font-size: 14px;
}

/* Dark mode support */
body.dark .program-explorer {
background: #2e2e2e;
border-color: #555555;
color: #ffffff;
}

.program-explorer-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
border-bottom: 1px solid #e0e0e0;
background: #f5f5f5;
border-radius: 8px 8px 0 0;
}

body.dark .program-explorer-header {
background: #3e3e3e;
border-bottom-color: #555555;
}

.program-explorer-header h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
color: #333333;
}

body.dark .program-explorer-header h3 {
color: #ffffff;
}

.explorer-close-btn {
background: none;
border: none;
cursor: pointer;
padding: 4px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
color: #666666;
transition: background-color 0.2s;
}

.explorer-close-btn:hover {
background-color: rgba(0, 0, 0, 0.1);
}

body.dark .explorer-close-btn {
color: #cccccc;
}

body.dark .explorer-close-btn:hover {
background-color: rgba(255, 255, 255, 0.1);
}

.explorer-close-btn i {
font-size: 18px;
}

.program-explorer-tree {
flex: 1;
overflow-y: auto;
padding: 8px;
}

.explorer-empty {
text-align: center;
color: #666666;
font-style: italic;
padding: 20px;
}

body.dark .explorer-empty {
color: #cccccc;
}

.explorer-tree-node {
margin-bottom: 2px;
}

.explorer-node-content {
display: flex;
align-items: center;
padding: 8px 12px;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.2s;
user-select: none;
}

.explorer-node-content:hover {
background-color: rgba(0, 123, 255, 0.1);
}

body.dark .explorer-node-content:hover {
background-color: rgba(0, 123, 255, 0.2);
}

.explorer-expand-icon {
font-size: 18px !important;
margin-right: 4px;
color: #666666;
transition: transform 0.2s;
}

body.dark .explorer-expand-icon {
color: #cccccc;
}

.explorer-spacer {
margin-right: 4px;
}

.explorer-block-icon {
font-size: 16px !important;
margin-right: 8px;
color: #0066ff;
}

.explorer-node-name {
flex: 1;
color: #333333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

body.dark .explorer-node-name {
color: #ffffff;
}

.explorer-children {
margin-left: 8px;
}

.explorer-tree-node.collapsed .explorer-children {
display: none;
}

.explorer-tree-node.collapsed .explorer-expand-icon {
transform: rotate(-90deg);
}

/* Toggle button */
.explorer-toggle-btn {
position: fixed;
top: 120px;
right: 20px;
width: 48px;
height: 48px;
background: #0066ff;
border: none;
border-radius: 50%;
color: white;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
z-index: 999;
}

/* Hide during Cypress tests */
body[data-cypress="true"] .explorer-toggle-btn,
body[data-cypress="true"] .program-explorer {
display: none !important;
}

.explorer-toggle-btn:hover {
background: #0052cc;
box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
transform: translateY(-1px);
}

.explorer-toggle-btn:active {
transform: translateY(0);
}

.explorer-toggle-btn.active {
background: #0052cc;
}

.explorer-toggle-btn i {
font-size: 24px !important;
}

/* Responsive design */
@media (max-width: 768px) {
.program-explorer {
width: 250px;
right: 10px;
top: 50px;
height: calc(100vh - 80px);
}

.explorer-toggle-btn {
right: 10px;
top: 90px;
}
}

@media (max-width: 480px) {
.program-explorer {
width: 200px;
right: 5px;
top: 40px;
height: calc(100vh - 60px);
}

.explorer-toggle-btn {
right: 5px;
top: 80px;
width: 40px;
height: 40px;
}

.explorer-toggle-btn i {
font-size: 20px !important;
}

.explorer-node-content {
padding: 6px 8px;
}

.program-explorer-header {
padding: 12px;
}

.program-explorer-header h3 {
font-size: 14px;
}
}

/* Scrollbar styling */
.program-explorer-tree::-webkit-scrollbar {
width: 6px;
}

.program-explorer-tree::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}

body.dark .program-explorer-tree::-webkit-scrollbar-track {
background: #3e3e3e;
}

.program-explorer-tree::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 3px;
}

body.dark .program-explorer-tree::-webkit-scrollbar-thumb {
background: #555555;
}

.program-explorer-tree::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}

body.dark .program-explorer-tree::-webkit-scrollbar-thumb:hover {
background: #666666;
}

/* Animation for tree expansion */
.explorer-children {
transition: all 0.2s ease-in-out;
overflow: hidden;
}

/* Highlight effect for selected blocks */
.explorer-node-content.selected {
background-color: rgba(0, 123, 255, 0.2);
border-left: 3px solid #0066ff;
}

body.dark .explorer-node-content.selected {
background-color: rgba(0, 123, 255, 0.3);
}
Loading
Loading