mirror of
https://github.com/damp11113-software/ccIDE.git
synced 2025-04-28 06:58:13 +00:00
228 lines
4.7 KiB
CSS
228 lines
4.7 KiB
CSS
:root {
|
|
--line-border-fill: #3498db;
|
|
--line-border-empty: #e0e0e0;
|
|
}
|
|
|
|
body {
|
|
background-color: #212121;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
font-family: 'Noto Sans', sans-serif;
|
|
overflow: hidden; /* Hide scrollbars */
|
|
}
|
|
|
|
#navbar {
|
|
background-color: #2c3e50;
|
|
color: white;
|
|
display: flex;
|
|
padding: 15px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.navbar-button {
|
|
background-color: #2c3e50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50%; /* Make the button circular */
|
|
width: 40px; /* Adjust size as needed */
|
|
height: 40px; /* Adjust size as needed */
|
|
font-size: 1em;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
transition: background-color 0.3s;
|
|
font-size: 1.5em; /* Adjust size as needed */
|
|
}
|
|
|
|
.navbar-button:hover {
|
|
background-color: #0066cc; /* Darken color on hover */
|
|
z-index: 99;
|
|
}
|
|
|
|
#blocklyContainer {
|
|
position: relative;
|
|
width: 100%;
|
|
height: calc(100vh - 10vh); /* Adjust height to accommodate navbar and status bar */
|
|
}
|
|
|
|
#blocklyDiv {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
#statusBar {
|
|
height: 3vh; /* Set the height of the status bar */
|
|
background-color: #333;
|
|
color: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 10px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#statusMessage {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Styles for the upload-popup container */
|
|
.popup {
|
|
display: none; /* Hide initially */
|
|
position: fixed;
|
|
justify-content: center;
|
|
align-items: center;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
|
|
z-index: 999; /* Ensure it overlays other content */
|
|
overflow: auto;
|
|
}
|
|
|
|
/* Styles for the upload-popup content */
|
|
.popup-content {
|
|
background-color: #fefefe;
|
|
margin: 15% auto; /* Center the upload-popup vertically and horizontally */
|
|
padding: 20px;
|
|
border: 1px solid #888;
|
|
width: 80%; /* Adjust width as needed */
|
|
max-width: 600px; /* Max width for larger screens */
|
|
max-height: 80%; /* Ensure content does not overflow the screen */
|
|
display: flex;
|
|
flex-direction: column;
|
|
animation: fadeIn 0.3s ease; /* Fade-in animation */
|
|
position: relative; /* Ensure the close button can be positioned relative to this */
|
|
}
|
|
|
|
/* Position the close button to the top right corner */
|
|
.btn-close {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
}
|
|
|
|
/* Fade-in animation */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
/* Fade-out animation */
|
|
@keyframes fadeOut {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|
|
|
|
.progress-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
margin-bottom: 30px;
|
|
max-width: 100%;
|
|
width: 350px;
|
|
}
|
|
|
|
.progress-container::before {
|
|
content: "";
|
|
background-color: var(--line-border-empty);
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
transform: translateY(-50%);
|
|
height: 4px;
|
|
width: 100%;
|
|
z-index: 99; /* Change z-index to 1 or higher */
|
|
}
|
|
|
|
.progress {
|
|
background-color: var(--line-border-fill);
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
transform: translateY(-50%);
|
|
height: 4px;
|
|
width: 0%;
|
|
z-index: 101;
|
|
transition: 0.4s ease;
|
|
}
|
|
|
|
.progress.error {
|
|
background-color: red; /* Set to red color for error state */
|
|
}
|
|
|
|
|
|
.circle {
|
|
background-color: #fff;
|
|
color: #999;
|
|
border-radius: 50%;
|
|
height: 30px;
|
|
width: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 3px solid var(--line-border-empty);
|
|
transition: 0.4s ease;
|
|
z-index: 101;
|
|
}
|
|
|
|
.circle.active {
|
|
border-color: var(--line-border-fill);
|
|
}
|
|
|
|
.circle.error {
|
|
border-color: red; /* Optionally, change border color to red */
|
|
color: white; /* Optionally, adjust text color for visibility */
|
|
}
|
|
|
|
.libimageicon {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
.libimage {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
.library-container {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
.libimage {
|
|
width: 80px;
|
|
height: 80px;
|
|
object-fit: cover;
|
|
margin-right: 15px;
|
|
}
|
|
.library-details {
|
|
flex: 1;
|
|
line-height: 10px;
|
|
}
|
|
.library-item {
|
|
cursor: pointer;
|
|
padding: 10px;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
.library-item.selected {
|
|
background-color: #e9ecef;
|
|
}
|
|
.library-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
margin-bottom: 10px;
|
|
max-height: 720px; /* Ensure a max height for scrolling */
|
|
}
|
|
.library-item:hover {
|
|
background-color: #cacaca;
|
|
}
|
|
|
|
.button-container {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
} |