Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 182 additions & 0 deletions src/assets/styles/canvas.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@

/* Global Styles for the Canvas Generator */
.canvas-generator {
min-height: 100vh;
width: 100%;
padding: 1rem;
font-family: "Comic Sans MS", "Chalkboard SE", sans-serif;
box-sizing: border-box;
margin-top: -40px;

/* Controls Section */
.controls {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 2rem;
}

.input-area {
background: rgba(37, 53, 79, 0.8);
padding: 2rem;
border-radius: 20px;
border: 2px solid #334155;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(8px);
}

.text-input {
padding: 1rem 1.5rem;
border: 2px solid #334155;
border-radius: 12px;
font-size: 1.2rem;
width: 100%;
background: rgba(15, 23, 42, 0.8);
color: #e2e8f0;
transition: border-color 0.3s ease;
outline: none;
box-sizing: border-box;

&:focus {
border-color: #2563eb;
}

&::placeholder {
color: #64748b;
}
}

.buttons {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
flex-wrap: wrap;
}

.action-button {
padding: 1rem 2rem;
border-radius: 12px;
font-size: 1.2rem;
font-weight: bold;
cursor: pointer;
transition: background 0.3s ease;
border: none;
background: #1e40af;
color: white;
flex: 1;
min-width: 120px;

&:hover {
background: #2563eb;
}
}

.checkbox-wrapper {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.2rem;
color: #e2e8f0;
}

/* New Styles for Combined Label and Checkbox */
.label-checkbox-container {
display: flex;
justify-content: space-between; /* Pushes label to left and checkbox to right */
align-items: center;
width: 100%;
margin-bottom: 1rem;
}

.checkbox-wrapper {
display: flex;
align-items: center;
gap: 0.5rem;
}


.input-label {
color: #e2e8f0;
font-size: 1.2rem;
font-weight: bold;
}

/* Color Options */
.color-options {
display: flex;
gap: 1rem;
margin-top: 1.5rem;

.color-picker {
flex: 1;
}

.color-select {
width: 100%;
padding: 0.8rem;
border: 2px solid #334155;
border-radius: 12px;
background: rgba(15, 23, 42, 0.8);
color: #e2e8f0;
font-size: 1rem;
cursor: pointer;

option {
background: #1e293b;
}
}
}

label {
display: block;
margin-bottom: 0.5rem;
color: #e2e8f0;
font-size: 1rem;
}

/* Image Grid with Scrollbar */
.image-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
background: rgba(37, 53, 79, 0.8);
border: 2px solid #334155;
padding: 2rem;
border-radius: 20px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(8px);
min-height: 200px;
max-height: 500px;
overflow-y: auto;

&::-webkit-scrollbar {
width: 12px;
}

&::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}

&::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.3);
border-radius: 10px;
}

img {
width: 100%;
height: auto;
border-radius: 10px;
object-fit: cover;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
cursor: pointer;

&:hover {
transform: scale(1.02);
}
}
}

}
Loading