mirror of
https://github.com/DevJSTAR/JSTAR-Tab.git
synced 2025-04-18 17:35:26 +00:00
399 lines
9.0 KiB
CSS
399 lines
9.0 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Poppins', sans-serif;
|
|
background-color: #ffffff; /* Light mode background */
|
|
color: #000000; /* Light mode text color */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
}
|
|
|
|
#container {
|
|
text-align: center;
|
|
}
|
|
|
|
#greeting {
|
|
font-size: 36px;
|
|
font-weight: 600;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
#search-bar {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
background-color: #f0f0f0; /* Light mode input background */
|
|
border-radius: 30px;
|
|
padding: 5px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
#search-bar input {
|
|
font-size: 18px;
|
|
padding: 10px;
|
|
width: 400px;
|
|
border: none;
|
|
border-radius: 20px;
|
|
outline: none;
|
|
background-color: transparent;
|
|
color: #000000; /* Light mode input text color */
|
|
}
|
|
|
|
#search-bar button {
|
|
font-size: 18px;
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
border: none;
|
|
background-color: transparent;
|
|
color: #000; /* Light mode icon color */
|
|
}
|
|
|
|
.grid-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 15px;
|
|
}
|
|
|
|
.shortcut {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
background-color: #e0e0e0; /* Light mode button background */
|
|
transition: background-color 0.3s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.shortcut img {
|
|
width: 24px; /* Size of favicon */
|
|
height: 24px; /* Size of favicon */
|
|
}
|
|
|
|
.shortcut:hover {
|
|
background-color: #ccc; /* Light mode button hover background */
|
|
}
|
|
|
|
.settings-icon {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
background-color: transparent;
|
|
border: none;
|
|
font-size: 32px;
|
|
cursor: pointer;
|
|
color: #000000; /* Light mode settings icon color */
|
|
z-index: 10;
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.8); /* Modal background color */
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease;
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: #1A1A1A; /* Dark mode modal background */
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
width: 400px;
|
|
position: relative;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.close-btn {
|
|
position: absolute;
|
|
right: 20px;
|
|
top: 20px;
|
|
cursor: pointer;
|
|
font-size: 24px;
|
|
color: #000000; /* Close button color in dark mode */
|
|
}
|
|
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 60px;
|
|
height: 34px;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #ccc; /* Light mode toggle background */
|
|
transition: 0.4s;
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 26px;
|
|
width: 26px;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white; /* Light mode toggle circle color */
|
|
transition: 0.4s;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: rgb(100, 100, 100); /* Light mode toggle active color */
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
background-color: rgb(133, 133, 133);
|
|
transform: translateX(26px);
|
|
}
|
|
|
|
body.dark-theme {
|
|
background-color: #000000; /* Dark mode background */
|
|
color: #ffffff; /* Dark mode text color */
|
|
}
|
|
|
|
body.dark-theme #search-bar {
|
|
background-color: #111111; /* Dark mode input background */
|
|
}
|
|
|
|
body.dark-theme #search-bar input {
|
|
color: #ffffff; /* Dark mode input text color */
|
|
}
|
|
|
|
body.dark-theme .settings-icon {
|
|
color: #ffffff; /* Dark mode settings icon color */
|
|
}
|
|
|
|
body.dark-theme .modal-content {
|
|
background-color: #1A1A1A; /* Dark mode modal background */
|
|
color: #ffffff; /* Dark mode modal text color */
|
|
}
|
|
|
|
body.dark-theme .close-btn {
|
|
color: #ffffff;
|
|
}
|
|
|
|
body.dark-theme #search-bar button {
|
|
color: #ffffff; /* Dark mode button text color */
|
|
}
|
|
|
|
body.dark-theme #search-bar button:hover {
|
|
color: #ffffff; /* Dark mode button hover color */
|
|
}
|
|
|
|
.section {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
h2, h3 {
|
|
margin-bottom: 10px;
|
|
color: #000000; /* Light mode heading color */
|
|
}
|
|
|
|
body.dark-theme h2, body.dark-theme h3 {
|
|
color: #ffffff; /* Dark mode heading color */
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.icon-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 15px;
|
|
border: none;
|
|
background-color: #e0e0e0; /* Light mode button background */
|
|
border-radius: 5px;
|
|
color: #000000; /* Light mode button text color */
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: background-color 0.3s;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background-color: #ccc; /* Light mode button hover background */
|
|
}
|
|
|
|
body.dark-theme .icon-btn {
|
|
background-color: #333333; /* Dark mode button background */
|
|
color: #ffffff; /* Dark mode button text color */
|
|
}
|
|
|
|
body.dark-theme .icon-btn:hover {
|
|
background-color: #444444; /* Dark mode button hover background */
|
|
}
|
|
|
|
.icon-btn[data-tooltip]::after {
|
|
content: attr(data-tooltip);
|
|
position: absolute;
|
|
bottom: calc(100% + 6px);
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: #333;
|
|
color: white;
|
|
padding: 10px 15px;
|
|
border-radius: 5px;
|
|
white-space: nowrap;
|
|
font-size: 14px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease-in;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.icon-btn[data-tooltip]:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
.modal-content.active {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.modal-content.hide {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
|
|
.modal.hide {
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Additional styles for the shortcut buttons */
|
|
.shortcut {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
background-color: #e0e0e0; /* Light mode button background */
|
|
transition: background-color 0.3s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.shortcut img {
|
|
width: 24px; /* Size of favicon */
|
|
height: 24px; /* Size of favicon */
|
|
}
|
|
|
|
.shortcut:hover {
|
|
background-color: #ccc; /* Light mode button hover background */
|
|
}
|
|
|
|
/* Dark mode styles for shortcuts */
|
|
body.dark-theme .shortcut {
|
|
background-color: #444; /* Dark mode button background */
|
|
}
|
|
|
|
body.dark-theme .shortcut:hover {
|
|
background-color: #555; /* Dark mode button hover background */
|
|
}
|
|
|
|
/* Custom context menu styles */
|
|
#context-menu {
|
|
position: absolute;
|
|
background-color: #fff; /* Light mode menu background */
|
|
border-radius: 5px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
|
|
z-index: 1000;
|
|
padding: 0; /* Remove padding from menu itself */
|
|
display: none; /* Hidden by default */
|
|
width: 150px; /* Set width for the context menu */
|
|
}
|
|
|
|
.context-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px; /* Increased padding for larger button size */
|
|
color: #000; /* Default text color */
|
|
cursor: pointer;
|
|
border-bottom: 1px solid #fff; /* Divider between items */
|
|
transition: background-color 0.3s;
|
|
width: 100%; /* Full width buttons */
|
|
text-align: left; /* Align text to the left */
|
|
}
|
|
|
|
.context-menu-item i {
|
|
margin-right: 8px; /* Space between icon and text */
|
|
font-size: 16px; /* Icon size */
|
|
}
|
|
|
|
.context-menu-item:last-child {
|
|
border-bottom: none; /* No divider after last item */
|
|
border-bottom-right-radius: 5px;
|
|
border-bottom-left-radius: 5px;
|
|
}
|
|
|
|
.context-menu-item:hover {
|
|
background-color: #f0f0f0; /* Menu item hover background */
|
|
}
|
|
|
|
.context-menu-item.delete {
|
|
color: #000; /* Set delete button text color to red */
|
|
}
|
|
|
|
.context-menu-item.delete:hover {
|
|
color: red; /* Set delete button text color to red */
|
|
}
|
|
|
|
body.dark-theme #context-menu {
|
|
background-color: #222; /* Dark mode menu background */
|
|
}
|
|
|
|
body.dark-theme .context-menu-item {
|
|
color: #ffffff; /* Dark mode menu text color */
|
|
border-bottom: 1px solid #222222;
|
|
}
|
|
|
|
body.dark-theme .context-menu-item.delete {
|
|
color: #fff; /* Dark mode delete text color */
|
|
}
|
|
|
|
body.dark-theme .context-menu-item.delete:hover {
|
|
color: red; /* Dark mode delete text color */
|
|
}
|
|
|
|
body.dark-theme .context-menu-item:hover {
|
|
background-color: #333; /* Dark mode item hover background */
|
|
} |