mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
243 lines
3.7 KiB
SCSS
243 lines
3.7 KiB
SCSS
.container {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
max-height: calc(100vh - 4rem);
|
|
overflow-y: auto;
|
|
scrollbar-gutter: stable;
|
|
|
|
&::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: var(--bolt-elements-borderColor);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb:hover {
|
|
background-color: var(--bolt-elements-textTertiary);
|
|
}
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.appItem {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background-color: var(--bg-card);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
transition:
|
|
transform 0.2s ease-in-out,
|
|
box-shadow 0.2s ease-in-out;
|
|
cursor: pointer;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
|
.hoverOverlay {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.appItemError {
|
|
border: 2px solid #ffd700;
|
|
}
|
|
|
|
.previewImage {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
object-fit: cover;
|
|
background-color: var(--bg-subtle);
|
|
}
|
|
|
|
.placeholderImage {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: var(--bg-subtle);
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.appTitle {
|
|
padding: 0.75rem;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.loading,
|
|
.error,
|
|
.empty {
|
|
width: 100%;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.error {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
.buttonContainer {
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.loadMoreButton {
|
|
padding: 0.75rem 1.5rem;
|
|
background-color: #22c55e;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
|
|
&:hover {
|
|
background-color: #16a34a;
|
|
}
|
|
}
|
|
|
|
.hoverOverlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease-in-out;
|
|
}
|
|
|
|
.hoverContent {
|
|
padding: 1rem;
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
|
|
.hoverInfo {
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
|
|
> div {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.warningText {
|
|
color: #ffd700;
|
|
font-weight: 500;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.detailView {
|
|
margin-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
padding: 1.5rem;
|
|
background-color: var(--bg-card);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.detailHeader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.detailTitle {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.detailActions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.actionButton {
|
|
padding: 0.5rem 1rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
|
|
&:first-child {
|
|
background-color: #22c55e;
|
|
color: white;
|
|
|
|
&:hover {
|
|
background-color: #16a34a;
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
background-color: #64748b;
|
|
color: white;
|
|
|
|
&:hover {
|
|
background-color: #475569;
|
|
}
|
|
}
|
|
}
|
|
|
|
.appDetails {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.detailRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.detailLabel {
|
|
font-weight: 500;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.detailValue {
|
|
color: var(--text-secondary);
|
|
}
|