Files
static-site-hosting/test/styles.css
T
2025-02-14 22:37:52 -05:00

222 lines
3.2 KiB
CSS

/* General Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
scroll-behavior: smooth;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
background-color: #0c1522;
color: #cccccc;
padding: 20px;
transition: background-color 0.3s ease, color 0.3s ease;
}
.container {
max-width: 1100px;
margin: 0 auto;
padding: 20px;
}
/* Navigation Bar */
.navbar {
background-color: #325270;
color: white;
padding: 1rem;
margin-bottom: 2rem;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.navbar a {
color: white;
text-decoration: none;
margin-right: 1.5rem;
font-weight: bold;
transition: color 0.3s;
}
.navbar a:hover {
color: #1abc9c;
}
/* Flash Messages */
.flash-message {
padding: 12px;
margin-bottom: 1rem;
border-radius: 6px;
font-weight: bold;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.flash-success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.flash-error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* Forms */
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: bold;
color: #2c3e50;
}
input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 1rem;
transition: all 0.3s ease;
}
input:focus {
border-color: #1abc9c;
outline: none;
box-shadow: 0 0 5px rgba(26, 188, 156, 0.5);
}
/* Buttons */
button,
.btn {
padding: 10px 18px;
margin: 5px;
text-decoration: none;
color: white;
background-color: #1abc9c;
border: none;
border-radius: 6px;
display: inline-block;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-danger {
background-color: #e74c3c;
}
.btn-danger:hover {
background-color: #c0392b;
}
button:hover,
.btn:hover {
background-color: #16a085;
transform: translateY(-2px);
}
/* Site Cards */
.site-card {
border: 1px solid #ddd;
padding: 20px;
margin-bottom: 15px;
border-radius: 6px;
background-color: white;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.site-card:hover {
transform: scale(1.02);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}
.site-card h4 {
margin-bottom: 10px;
color: #333;
}
.site-card p {
margin-bottom: 15px;
color: #555;
}
/* Uploaded Files List */
.uploaded-files {
margin-top: 10px;
margin-bottom: 15px;
}
.uploaded-files h5 {
margin-bottom: 5px;
font-size: 1rem;
color: #555;
}
.uploaded-files ul {
list-style-type: none;
padding-left: 0;
}
.uploaded-files li {
font-size: 0.9rem;
color: #777;
padding: 5px 0;
border-bottom: 1px solid #eee;
}
.uploaded-files li:last-child {
border-bottom: none;
}
/* Site Actions */
.site-actions {
display: flex;
gap: 10px;
margin-top: 10px;
}
/* Headings */
h1,
h2,
h3 {
color: #2c3e50;
margin-bottom: 1rem;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.5rem;
}
/* Dark Mode Toggle */
#theme-toggle {
margin-left: auto;
background-color: #34495e;
color: white;
border: 1px solid #2c3e50;
transition: all 0.3s ease;
}
#theme-toggle:hover {
background-color: #2c3e50;
transform: translateY(-2px);
}