Skip to content
Merged
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
314 changes: 314 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
/* Base Styles */
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f0f0f0;
color: #333;
transition: background-color 0.3s, color 0.3s;
}

.container {
max-width: 1000px;
margin: 0 auto;
}

h1 {
display: inline-block;
margin-right: 20px;
}

.dark-mode-toggle,
.shortcut-preview-button {
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
border-radius: 3px;
margin-right: 10px;
}

/* Mode Selector */
.mode-selector {
margin: 20px 0;
}

.mode-selector button {
padding: 10px 20px;
margin-right: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}

.mode-selector button.active {
background-color: #0056b3;
font-weight: bold;
}

/* Tabs & Tab Buttons */
.tabs {
display: flex;
margin-bottom: 10px;
flex-wrap: wrap;
}

.tab-button {
padding: 10px 20px;
background-color: #e0e0e0;
border: none;
cursor: pointer;
margin-right: 5px;
position: relative;
border-radius: 3px;
transition: background-color 0.3s;
display: flex;
align-items: center;
}

.tab-button.active {
font-weight: bold;
background-color: #ffffff;
}

/* Dark Mode Tab Button Overrides */
body.dark-mode .tab-button {
background-color: #333333;
color: #e0e0e0;
}

body.dark-mode .tab-button.active {
background-color: #555555;
}

.tab-button .tab-name {
margin-right: 5px;
}

.tab-button .tab-color-picker {
width: 20px;
height: 20px;
padding: 0;
border: none;
cursor: pointer;
margin-right: 5px;
}

.tab-button .close-tab {
margin-left: 5px;
color: red;
font-weight: bold;
cursor: pointer;
}

.add-tab-button {
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
margin-left: 10px;
border-radius: 3px;
}

.add-tab-button:hover {
background-color: #0056b3;
}

/* Common Content Styles */
.json-tab-content {
display: none;
}

.json-tab-content.active {
display: block;
}

textarea {
width: 100%;
height: 200px;
padding: 10px;
margin-bottom: 20px;
font-family: monospace;
border: 1px solid #ccc;
border-radius: 3px;
}

.search-container {
margin-bottom: 20px;
}

.search-container input {
padding: 10px;
width: 300px;
font-family: monospace;
border: 1px solid #ccc;
border-radius: 3px;
}

.search-container button {
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
border-radius: 3px;
margin-left: 5px;
}

.search-container button:hover {
background-color: #0056b3;
}

.upload-download-container button {
padding: 10px 20px;
background-color: #28a745;
color: white;
border: none;
cursor: pointer;
border-radius: 3px;
margin-right: 5px;
}

.upload-download-container button:hover {
background-color: #1e7e34;
}

.preview-section {
display: none;
background-color: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-section.active {
display: block;
}

.tree-node {
margin-left: 20px;
}

.tree-key {
color: #007bff;
cursor: pointer;
}

.tree-key:hover {
text-decoration: underline;
}

.collapsed::after {
content: "▶";
font-size: 10px;
margin-left: 5px;
}

.expanded::after {
content: "▼";
font-size: 10px;
margin-left: 5px;
}

.tree-children {
margin-left: 20px;
}

.error {
color: red;
font-weight: bold;
}

.highlight {
background-color: yellow;
font-weight: bold;
padding: 2px;
border-radius: 3px;
}

/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
background-color: #fff;
margin: 10% auto;
padding: 20px;
border-radius: 5px;
width: 400px;
position: relative;
}

.close-modal {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
font-weight: bold;
cursor: pointer;
}

/* Dark Mode Overrides */
body.dark-mode {
background-color: #121212;
color: #e0e0e0;
}

body.dark-mode textarea {
background-color: #2e2e2e;
color: #e0e0e0;
border: 1px solid #555;
}

body.dark-mode .preview-section {
background-color: #2e2e2e;
color: #e0e0e0;
}

body.dark-mode .search-container input {
background-color: #2e2e2e;
color: #e0e0e0;
border: 1px solid #555;
}

body.dark-mode .upload-download-container button {
background-color: #218838;
}

body.dark-mode .upload-download-container button:hover {
background-color: #1c7430;
}

body.dark-mode .modal-content {
background-color: #2e2e2e;
color: #e0e0e0;
}

/* Tooltip for Tab Renaming */
.tab-rename-tooltip {
position: absolute;
z-index: 1000;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 3px;
padding: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .tab-rename-tooltip {
background-color: #2e2e2e;
color: #e0e0e0;
border: 1px solid #555;
}
Loading