screenshot / static /style.css
broadfield-dev's picture
Update static/style.css
056a75f verified
/* static/style.css */
/* Custom UI styles - uniquely named classes to avoid conflicts */
#preview-iframe {
height: 500px !important;
}
.ssth_container {
background-color: #1e293b; /* Dark blue */
color: #f8fafc; /* Light gray text */
font-family: sans-serif;
padding: 2rem;
min-height: 100vh;
}
.ssth_title {
font-size: 2.5rem;
font-weight: bold;
text-align: center;
margin-bottom: 2rem;
color: #cbd5e1;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.ssth_tab_container {
display: flex;
border-bottom: 2px solid #334155;
margin-bottom: 2rem;
}
.ssth_tab_button {
padding: 0.75rem 1.5rem;
font-weight: bold;
color: #94a3b8;
background-color: transparent;
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
transition: color 0.2s, border-color 0.2s;
}
.ssth_tab_button:hover {
color: #cbd5e1;
}
.ssth_tab_button.active {
color: #cbd5e1;
border-color: #60a5fa;
}
.ssth_form_card {
background-color: #334155;
padding: 1.5rem;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
margin-bottom: 2rem;
}
.ssth_form_label {
display: block;
font-weight: medium;
margin-bottom: 0.5rem;
color: #94a3b8;
}
.ssth_form_input,
.ssth_form_select {
width: 100%;
padding: 0.75rem;
border-radius: 0.375rem;
border: 1px solid #475569;
background-color: #475569;
color: #f8fafc;
margin-bottom: 1rem;
transition: border-color 0.2s;
}
.ssth_form_input:focus,
.ssth_form_select:focus {
outline: none;
border-color: #60a5fa;
}
.ssth_form_radio_group {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.ssth_form_radio_label {
color: #94a3b8;
display: flex;
align-items: center;
cursor: pointer;
}
.ssth_form_radio_label input[type="radio"] {
margin-right: 0.5rem;
}
.ssth_form_submit_button {
width: 100%;
padding: 0.75rem;
background-color: #60a5fa;
color: #f8fafc;
border: none;
border-radius: 0.375rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
}
.ssth_form_submit_button:hover {
background-color: #4f86c6;
}
.ssth_section_title {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 1rem;
color: #cbd5e1;
}
.ssth_file_window {
margin-bottom: 1rem;
border: 1px solid #475569;
border-radius: 0.375rem;
overflow: hidden; /* Prevents code from overflowing rounded corners */
}
.ssth_file_title {
background-color: #475569;
color: #f8fafc;
padding: 0.5rem;
font-weight: medium;
}
.ssth_code_container {
max-height: 300px;
overflow-y: auto;
background-color: #2d3748;
padding: 0.75rem;
font-family: monospace;
font-size: 0.875rem;
color: #f8fafc;
white-space: pre-wrap; /* Allows line breaks */
}
.ssth_preview_container {
border: 1px solid #475569;
padding: 1rem;
max-height: 700px; /* Increased height */
overflow-y: auto;
background-color: #f8fafc;
color: #1e293b;
border-radius: 0.375rem;
}
.ssth_error_message {
color: #f87171; /* Red */
font-weight: bold;
}
.ssth_combined_code_section {
margin-top: 2rem;
}
.ssth_combined_code_container {
background-color: #2d3748;
padding: 1rem;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
max-height: 400px;
overflow-y: auto;
font-family: monospace;
color: #f8fafc;
white-space: pre-wrap;
}
/* Hide all tab content by default */
.tab-content {
display: none;
}
/* Show active tab content */
.tab-content.active {
display: block;
}
/* Status Messages and Progress Bar */
.ssth_status_area {
margin-bottom: 2rem; /* Spacing between form and results */
}
.ssth_status_messages {
background-color: #475569;
color: #f0f9ff;
padding: 1rem;
border-radius: 0.5rem;
text-align: center;
font-style: italic;
margin-bottom: 0.5rem; /* Space between message and progress bar */
}
.ssth_progress_bar_container {
width: 100%;
background-color: #ddd; /* Light grey background for the bar container */
border-radius: 0.5rem;
overflow: hidden; /* Ensure rounded corners */
}
.ssth_progress_bar {
height: 20px;
background-color: #4caf50; /* Green progress bar */
width: 0%; /* Initial width is 0 */
text-align: center;
line-height: 20px;
color: white;
transition: width 0.3s ease-in-out; /* Smooth width transition */
}
/* Results Layout Styles */
.ssth_results_layout {
display: grid;
grid-template-columns: 1fr; /* Single column layout */
gap: 2rem;
margin-top: 2rem;
}
.ssth_preview_area {
display: grid;
grid-template-columns: 1fr; /* Single column for full-width preview */
gap: 2rem;
margin-bottom: 2rem; /* Spacing between preview and code areas */
}
.ssth_website_preview_section {
background-color: #334155;
padding: 1.5rem;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.ssth_code_area {
display: grid;
grid-template-columns: 1fr; /* Stacked on smaller screens */
gap: 2rem;
}
.ssth_download_button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 5px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}
.ssth_download_button:hover {
background-color: #3e8e41;
}
.ssth_download_button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 5px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}
.ssth_download_button:hover {
background-color: #3e8e41;
}
.ssth_copy_button {
background-color: #008CBA; /* Blue */
border: none;
color: white;
padding: 5px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 12px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}
.ssth_copy_button:hover {
background-color: #0077A3;
}
@media (min-width: 768px) { /* Medium screens and up */
.ssth_code_area {
grid-template-columns: 1fr 1fr; /* Side-by-side code columns on larger screens */
}
}