mirror of
https://gitlab.com/etc404/software-engineering-project.git
synced 2026-05-10 20:52:58 +00:00
471 lines
6.9 KiB
CSS
471 lines
6.9 KiB
CSS
:root {
|
|
--dusty-red: #D43F3F;
|
|
--dusty-red-hover: #C73636;
|
|
--dark-yellow: #FFD27F;
|
|
--pale-yellow: #FFECB3;
|
|
--peach: #F5A96E;
|
|
--dark: #850000;
|
|
}
|
|
|
|
.delius {
|
|
font-family: 'Delius Swash Caps', cursive;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
}
|
|
|
|
.mali-regular {
|
|
font-family: 'Mali', cursive;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
}
|
|
|
|
body, html {
|
|
height: 100%;
|
|
margin: 0;
|
|
font-family: 'Mali', cursive;
|
|
background-color: var(--pale-yellow);
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* Header Styles */
|
|
.top-header {
|
|
position: sticky;
|
|
top: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: var(--dusty-red);
|
|
color: var(--dark-yellow);
|
|
padding: 10px 20px;
|
|
height: 60px;
|
|
gap: 40px;
|
|
}
|
|
|
|
.top-header .swirl {
|
|
height: 40px;
|
|
width: auto;
|
|
margin: 0 20px;
|
|
}
|
|
|
|
.site-name {
|
|
font-size: 2.5em;
|
|
font-weight: bold;
|
|
letter-spacing: 4px;
|
|
font-family: 'Delius Swash Caps', cursive;
|
|
}
|
|
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
flex-grow: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-top: 40px;}
|
|
|
|
.form-wrap {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
/* commented out but i was trying to split it
|
|
.form-split {
|
|
width:100%;
|
|
display:flex;
|
|
flex: 1;
|
|
}
|
|
*/
|
|
|
|
.form-section {
|
|
background: var(--peach);
|
|
border-radius: 15px;
|
|
padding: 1.25rem 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 30px;
|
|
font-weight: 800;
|
|
color: var(--dark);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.field {
|
|
color: var(--dusty-red);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.field:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--dark);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
|
|
.required {
|
|
color: var(--dusty-red-hover);
|
|
margin-left: 3px;
|
|
}
|
|
|
|
input[type="text"],
|
|
textarea,
|
|
select {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
font-size: 16px;
|
|
padding: 0 10px;
|
|
height: 36px;
|
|
border: 1px;
|
|
border-radius: 6px;
|
|
outline: none;
|
|
font-family: inherit;
|
|
color: var(--dusty-red);
|
|
background: var(--pale-yellow);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
border-color: var(--dusty-red);
|
|
}
|
|
|
|
textarea {
|
|
height: auto;
|
|
min-height: 80px;
|
|
padding: 8px 10px;
|
|
resize: vertical;
|
|
}
|
|
|
|
::placeholder {
|
|
color: var(--dusty-red);
|
|
opacity: 1;
|
|
}
|
|
|
|
.dynamic-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.dynamic-row input,
|
|
.dynamic-row textarea {
|
|
flex: 1;
|
|
}
|
|
|
|
.dynamic-row textarea {
|
|
min-height: 30px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.step-bubble {
|
|
width: 26px;
|
|
height: 26px;
|
|
min-width: 26px;
|
|
background: transparent;
|
|
color: var(--dusty-red);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
align-self: flex-start;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.btn-remove {
|
|
background: var(--dusty-red);
|
|
border: 1px;
|
|
border-radius: 6px;
|
|
width: 30px;
|
|
height: 30px;
|
|
min-width: 30px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--dark-yellow);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
align-self: flex-start;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.btn-remove:hover {
|
|
background: var(--dusty-red-hover);
|
|
}
|
|
|
|
.btn-add {
|
|
width: 100%;
|
|
margin-top: 4px;
|
|
padding: 8px;
|
|
background: var(--dusty-red);
|
|
border: 1px;
|
|
border-radius: 8px;
|
|
font-family: 'Mali', cursive;
|
|
font-size: 13px;
|
|
color: var(--dark-yellow);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-add:hover {
|
|
background: var(--dusty-red-hover);
|
|
}
|
|
|
|
/* Image upload */
|
|
.image-drop {
|
|
border: 1.5px dashed var(--dusty-red);
|
|
border-radius: 8px;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
background: var(--dark-yellow);
|
|
}
|
|
|
|
.image-drop:hover {
|
|
border-color: var(--dusty-red-hover);
|
|
filter: brightness(99%);
|
|
}
|
|
|
|
.image-drop .upload-icon {
|
|
font-size: 30px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.image-drop .upload-title {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
color: var(--dusty-red);
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.image-drop .upload-sub {
|
|
font-size: 16px;
|
|
color: var(--dark);
|
|
margin: 0;
|
|
}
|
|
|
|
.image-preview {
|
|
display: none;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.image-preview img {
|
|
width: 100%;
|
|
display: block;
|
|
max-height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.remove-img {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
background: rgba(0,0,0,0.5);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 3px 8px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
/* Cost */
|
|
|
|
.cost-selector {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.dollar {
|
|
font-size: 1.7em;
|
|
font-weight: 700;
|
|
color: var(--dusty-red);
|
|
cursor: pointer;
|
|
transition: color 0.1s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.dollar.active {
|
|
color: var(--dark);
|
|
}
|
|
|
|
.dollar:hover {
|
|
color: var(--dark);
|
|
}
|
|
|
|
/* Tags */
|
|
|
|
.tag-input-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 6px;
|
|
}
|
|
|
|
.tag-wrap {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.tag {
|
|
font-size: 12px;
|
|
background: var(--pale-yellow);
|
|
color: var(--dusty-red);
|
|
padding: 3px 10px;
|
|
border-radius: 99px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.tag .remove-tag {
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.tag .remove-tag:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Actions */
|
|
.actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.btn,
|
|
.btn-create {
|
|
background: var(--dusty-red);
|
|
color: var(--dark-yellow);
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 0 20px;
|
|
height: 36px;
|
|
font-family: 'Mali', cursive;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn:hover,
|
|
.btn-create:hover {
|
|
background: var(--dusty-red-hover);
|
|
}
|
|
|
|
.btn-create:hover {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
.btn-create {
|
|
width: 50%;
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
border-radius: 10px;
|
|
padding: 0 20px;
|
|
height: 46px;
|
|
|
|
transition: background-color 0.1s ease, transform 0.2s ease;
|
|
}
|
|
|
|
/* small screens */
|
|
@media (max-width: 600px) {
|
|
body {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.form-wrap {
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
label {
|
|
font-size: 26px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
input[type="text"],
|
|
textarea,
|
|
select {
|
|
font-size: 20px;
|
|
padding: 10px 14px;
|
|
height: 50px;
|
|
}
|
|
|
|
textarea {
|
|
height: auto;
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.field {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-section {
|
|
padding: 1.75rem 2rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 16px;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.dynamic-row {
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.btn-add {
|
|
padding: 14px;
|
|
font-size: 18px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
::placeholder {
|
|
font-size: 50px;
|
|
}
|
|
|
|
.actions {
|
|
gap: 12px;
|
|
margin-top: 1.5rem;
|
|
}
|
|
.row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.btn,
|
|
.btn-create {
|
|
height: 44px;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.actions {
|
|
flex-direction: column-reverse;
|
|
gap: 10px;
|
|
}
|
|
|
|
.actions button {
|
|
width: 100%;
|
|
}
|
|
} |