interstellar_ai/app/styles/Settings.css

243 lines
5.5 KiB
CSS
Raw Normal View History

2024-09-20 10:00:54 +02:00
/* Overlay for popup - full screen and centered */
.popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
}
2024-09-23 11:55:58 +02:00
.settings-main h2 {
margin-bottom: 1em;
2024-10-02 09:59:49 +02:00
}
2024-09-20 15:27:21 +02:00
2024-09-23 11:55:58 +02:00
.settings-main p {
padding-bottom: 7px;
}
/* Main container for the settings */
.settings-container {
2024-09-20 15:27:21 +02:00
display: grid;
2024-10-02 09:59:49 +02:00
grid-template-columns: 1fr 3fr;
/* 1fr for sidebar, 3fr for main content */
2024-09-20 15:27:21 +02:00
grid-auto-flow: column;
2024-09-23 11:55:58 +02:00
overflow-x: hidden;
2024-10-02 09:59:49 +02:00
height: 100%;
/* Ensure it takes full height */
2024-09-20 15:27:21 +02:00
}
2024-09-20 10:00:54 +02:00
/* Settings content */
.settings-content {
2024-09-23 11:55:58 +02:00
background: var(--history-background-color);
color: var(--text-color);
2024-09-20 10:00:54 +02:00
padding: 20px;
border-radius: 10px;
width: 90%;
max-width: 800px;
height: 90%;
max-height: 600px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
2024-10-02 09:59:49 +02:00
overflow: hidden;
/* Prevents overflow of the content */
position: relative;
/* Needed for absolute positioning of close button */
2024-09-23 11:55:58 +02:00
display: flex;
2024-10-02 09:59:49 +02:00
flex-direction: column;
/* Flexbox for vertical stacking */
2024-09-20 10:00:54 +02:00
}
/* Sidebar styles */
.sidebar {
2024-09-23 11:55:58 +02:00
background: var(--settings-background-color);
2024-09-20 10:00:54 +02:00
padding: 20px;
2024-10-02 09:59:49 +02:00
border-radius: 10px 0 0 10px;
/* Rounded corners on the left side */
2024-09-20 10:00:54 +02:00
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
2024-10-02 09:59:49 +02:00
overflow-y: auto;
/* Scroll if content exceeds height */
2024-09-20 10:00:54 +02:00
display: flex;
flex-direction: column;
2024-10-02 09:59:49 +02:00
grid-column: 1;
/* Places sidebar in the first grid column */
height: 100%;
/* Ensures sidebar takes full height */
2024-09-20 10:00:54 +02:00
}
/* Sidebar item styles */
.sidebar ul {
list-style-type: none;
padding: 0;
2024-09-23 11:55:58 +02:00
margin: 0;
2024-09-20 10:00:54 +02:00
display: flex;
2024-10-02 09:59:49 +02:00
flex-direction: column;
/* Make the ul a column */
flex-grow: 1;
/* Allows the list to take available space */
2024-09-20 10:00:54 +02:00
}
.sidebar li {
margin: 10px 0;
cursor: pointer;
padding: 10px;
border-radius: 5px;
transition: background 0.3s;
}
.sidebar li:hover {
2024-10-02 09:59:49 +02:00
background: var(--input-button-hover-color);
/* Highlight on hover */
2024-09-20 10:00:54 +02:00
}
.sidebar li.active {
2024-10-02 09:59:49 +02:00
background: var(--button-hover-background-color);
/* Active section highlight */
2024-09-20 10:00:54 +02:00
}
/* Main settings area */
.settings-main {
2024-10-02 09:59:49 +02:00
grid-column: 2;
/* Places main settings in the second grid column */
2024-09-20 10:00:54 +02:00
padding: 20px;
2024-10-02 09:59:49 +02:00
border-radius: 0 10px 10px 0;
/* Rounded corners on the right side */
overflow-y: auto;
/* Scroll if content exceeds height */
2024-09-23 11:55:58 +02:00
display: flex;
2024-10-02 09:59:49 +02:00
flex-direction: column;
/* Stack content vertically */
2024-09-20 10:00:54 +02:00
}
/* Close button positioning */
.close-popup {
2024-10-02 09:59:49 +02:00
background: var(--close-button-color);
/* Use variable for close button color */
color: white;
/* Use white for text color */
2024-09-20 10:00:54 +02:00
border: none;
border-radius: 5px;
padding: 5px 10px;
2024-09-20 10:00:54 +02:00
cursor: pointer;
2024-10-02 09:59:49 +02:00
position: absolute;
/* Position the button absolutely */
top: 15px;
/* Distance from the top */
right: 40px;
/* Distance from the right */
transition: background 0.3s;
}
/* Close button positioning */
.apply {
2024-10-02 09:59:49 +02:00
background: var(--apply-button-color);
/* Use variable for close button color */
color: white;
/* Use white for text color */
border: none;
border-radius: 5px;
padding: 5px 10px;
cursor: pointer;
2024-10-02 09:59:49 +02:00
position: absolute;
/* Position the button absolutely */
top: 50px;
/* Distance from the top */
right: 40px;
/* Distance from the right */
2024-09-20 10:00:54 +02:00
transition: background 0.3s;
}
.close-popup:hover {
2024-10-02 09:59:49 +02:00
background: darkred;
/* Optional hover effect */
2024-09-20 10:00:54 +02:00
}
2024-09-20 10:00:54 +02:00
/* Additional styles for inputs and options */
2024-09-23 11:55:58 +02:00
.settings-option {
2024-10-02 09:59:49 +02:00
margin-bottom: 20px;
/* Adds space between each setting option */
padding-bottom: 10px;
/* Adds internal spacing */
border-bottom: 1px solid var(--input-border-color);
/* Optional, creates a separator between options */
2024-09-23 11:55:58 +02:00
}
.settings-option:last-child {
2024-10-02 09:59:49 +02:00
margin-bottom: 0;
/* Removes bottom margin from last option */
border-bottom: none;
/* Removes separator from last option */
2024-09-23 11:55:58 +02:00
}
2024-09-20 10:00:54 +02:00
.settings-option input[type="text"],
.settings-option input[type="email"],
.settings-option input[type="password"],
.settings-option input[type="color"],
.settings-option input[type="range"],
.settings-option select {
2024-09-23 11:55:58 +02:00
border-color: var(--input-border-color);
color: var(--text-color);
2024-09-20 10:00:54 +02:00
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 10px;
border-radius: 5px;
width: 100%;
2024-10-02 09:59:49 +02:00
height: 40px;
margin-bottom: 10px;
/* Adds spacing between inputs */
2024-09-23 11:55:58 +02:00
}
/* Optional additional spacing for labels */
.settings-option label {
margin-bottom: 5px;
display: block;
font-weight: bold;
2024-09-20 10:00:54 +02:00
}
2024-09-24 15:01:45 +02:00
2024-10-02 09:59:49 +02:00
.export-button {
2024-09-24 15:01:45 +02:00
background-color: var(--button-hover-background-color);
padding: 10px;
margin: 10px;
border-radius: 10px;
}
2024-10-02 09:59:49 +02:00
.import-file {
2024-09-24 15:01:45 +02:00
background-color: var(--button-hover-background-color);
padding: 10px;
margin: 10px;
2024-09-26 09:29:04 +02:00
}
.slider {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
2024-10-02 09:59:49 +02:00
2024-09-26 09:29:04 +02:00
.slider-option {
cursor: pointer;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
transition: background-color 0.3s;
}
2024-10-02 09:59:49 +02:00
2024-09-26 09:29:04 +02:00
.slider-option.active {
2024-10-02 09:59:49 +02:00
background-color: #007bff;
/* Change to your active color */
2024-09-26 09:29:04 +02:00
color: white;
border-color: #007bff;
}
2024-10-02 09:59:49 +02:00
2024-09-26 09:29:04 +02:00
input[type="radio"] {
2024-10-02 09:59:49 +02:00
display: none;
/* Hide the default radio buttons */
2024-09-26 12:31:56 +02:00
}
.slider-option.disabled {
2024-10-02 09:59:49 +02:00
opacity: 0.5;
/* Make the option appear greyed out */
pointer-events: none;
/* Prevent clicks */
}