mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 22:39:46 +00:00
fix scroll areas and side menu
This commit is contained in:
@@ -1,11 +1,15 @@
|
|||||||
@import '@taiga-ui/core/styles/taiga-ui-local';
|
@import '@taiga-ui/core/styles/taiga-ui-local';
|
||||||
|
|
||||||
|
:host {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
@include scrollbar-hidden();
|
@include scrollbar-hidden();
|
||||||
|
|
||||||
max-height: 100%;
|
|
||||||
// TODO: Theme
|
// TODO: Theme
|
||||||
background: #373a3f;
|
background: #2B2B2F;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -18,23 +22,17 @@ header {
|
|||||||
width: 17rem;
|
width: 17rem;
|
||||||
background-color: rgb(var(--tw-color-zinc-700) / 0.9);
|
background-color: rgb(var(--tw-color-zinc-700) / 0.9);
|
||||||
backdrop-filter: blur(40px);
|
backdrop-filter: blur(40px);
|
||||||
min-height: calc(100vh - var(--portal-header-height));
|
|
||||||
padding: 2rem 0 1.5rem 0;
|
padding: 2rem 0 1.5rem 0;
|
||||||
|
height: 100%;
|
||||||
&::after {
|
min-height: 100%;
|
||||||
display: block;
|
border-image: linear-gradient(
|
||||||
position: absolute;
|
|
||||||
top: 0px;
|
|
||||||
bottom: 0px;
|
|
||||||
right: 0px;
|
|
||||||
width: 0.125rem;
|
|
||||||
content: '';
|
|
||||||
background-image: linear-gradient(
|
|
||||||
to bottom,
|
to bottom,
|
||||||
rgb(var(--tw-color-zinc-700)),
|
rgb(var(--tw-color-zinc-700)),
|
||||||
rgb(var(--tw-color-zinc-400))
|
rgb(var(--tw-color-zinc-400))
|
||||||
);
|
)
|
||||||
}
|
1;
|
||||||
|
border-width: 0;
|
||||||
|
border-right: 0.125rem solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 1536px) {
|
@media screen and (min-width: 1536px) {
|
||||||
@@ -95,7 +93,6 @@ header {
|
|||||||
|
|
||||||
::ng-deep a {
|
::ng-deep a {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<button
|
<button
|
||||||
*ngFor="let cat of categories || ['', '', '', '', '', '']"
|
*ngFor="let cat of categories || ['', '', '', '', '', '']"
|
||||||
routerLink="../"
|
|
||||||
(click)="switchCategory(cat)"
|
(click)="switchCategory(cat)"
|
||||||
[class.category_selected]="cat === category"
|
[class.category_selected]="cat === category"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ button {
|
|||||||
transition-duration: 300ms;
|
transition-duration: 300ms;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration-line: none;
|
text-decoration-line: none;
|
||||||
|
|||||||
@@ -12,87 +12,72 @@ import { MarketplaceTileComponent } from './components/tile.component'
|
|||||||
import { MarketplaceControlsComponent } from './components/controls.component'
|
import { MarketplaceControlsComponent } from './components/controls.component'
|
||||||
import { MarketplacePreviewComponent } from './modals/preview.component'
|
import { MarketplacePreviewComponent } from './modals/preview.component'
|
||||||
import { MarketplaceSidebarsComponent } from './components/sidebars.component'
|
import { MarketplaceSidebarsComponent } from './components/sidebars.component'
|
||||||
|
import { TuiScrollbarModule } from '@taiga-ui/core'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
template: `
|
template: `
|
||||||
<marketplace-menu />
|
<marketplace-menu />
|
||||||
<div class="marketplace-content-wrapper">
|
<tui-scrollbar>
|
||||||
<div class="marketplace-content-inner">
|
<div class="marketplace-content-wrapper">
|
||||||
<marketplace-notification [url]="(details$ | async)?.url || ''" />
|
<div class="marketplace-content-inner">
|
||||||
<div class="title-wrapper">
|
<marketplace-notification [url]="(details$ | async)?.url || ''" />
|
||||||
<h1>
|
<div class="title-wrapper">
|
||||||
{{ category$ | async | titlecase }}
|
<h1>
|
||||||
</h1>
|
{{ category$ | async | titlecase }}
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
@if (filtered$ | async; as filtered) {
|
||||||
|
<section class="marketplace-content-list">
|
||||||
|
@for (pkg of filtered; track $index) {
|
||||||
|
<marketplace-tile
|
||||||
|
[pkg]="pkg"
|
||||||
|
[style.--animation-order]="$index"
|
||||||
|
class="tile-wrapper"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
</section>
|
||||||
|
} @else {
|
||||||
|
<h1 class="loading-text">
|
||||||
|
Loading
|
||||||
|
<span class="loading-dots"></span>
|
||||||
|
</h1>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
@if (filtered$ | async; as filtered) {
|
|
||||||
<section class="marketplace-content-list">
|
|
||||||
@for (pkg of filtered; track $index) {
|
|
||||||
<marketplace-tile
|
|
||||||
[pkg]="pkg"
|
|
||||||
[style.--animation-order]="$index"
|
|
||||||
class="tile-wrapper"
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
</section>
|
|
||||||
} @else {
|
|
||||||
<h1 class="loading-text">
|
|
||||||
Loading
|
|
||||||
<span class="loading-dots"></span>
|
|
||||||
</h1>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</tui-scrollbar>
|
||||||
<marketplace-sidebars />
|
<marketplace-sidebars />
|
||||||
`,
|
`,
|
||||||
|
host: { class: 'g-page' },
|
||||||
styles: [
|
styles: [
|
||||||
`
|
`
|
||||||
:host {
|
:host {
|
||||||
max-height: 100%;
|
display: flex;
|
||||||
overflow: auto;
|
flex-direction: column;
|
||||||
// TODO: Theme
|
overflow: hidden;
|
||||||
background: #18181b url('/assets/img/background_marketplace.png')
|
|
||||||
no-repeat top right;
|
|
||||||
}
|
|
||||||
|
|
||||||
::ng-deep menu {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
background: rgb(55 58 63 / 90%)
|
||||||
|
url('/assets/img/background_marketplace.png') no-repeat top right;
|
||||||
::ng-deep button {
|
|
||||||
background-color: transparent;
|
|
||||||
background-image: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.marketplace-content {
|
.marketplace-content {
|
||||||
&-wrapper {
|
&-wrapper {
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
overflow: auto;
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
min-height: 100vh;
|
|
||||||
|
|
||||||
@media (min-width: 640px) {
|
|
||||||
padding-left: 34vw;
|
|
||||||
}
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
padding-left: 28vw;
|
padding-left: 17rem;
|
||||||
}
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
padding-left: 22vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1536px) {
|
@media (min-width: 1536px) {
|
||||||
padding-left: 280px;
|
padding-left: 18rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-inner {
|
&-inner {
|
||||||
padding-top: 6rem;
|
padding-top: 6rem;
|
||||||
|
|
||||||
@media (min-width: 640px) {
|
// @media (min-width: 640px) {
|
||||||
padding-top: 0.75rem;
|
// padding-top: 0.75rem;
|
||||||
}
|
// }
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
padding: 0 2rem 2.5rem 2rem;
|
padding: 0 2rem 2.5rem 2rem;
|
||||||
}
|
}
|
||||||
@@ -125,7 +110,7 @@ import { MarketplaceSidebarsComponent } from './components/sidebars.component'
|
|||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
}
|
}
|
||||||
@media (min-width: 1280px) {
|
@media (min-width: 1024px) {
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
@media (min-width: 1536px) {
|
@media (min-width: 1536px) {
|
||||||
@@ -156,6 +141,7 @@ import { MarketplaceSidebarsComponent } from './components/sidebars.component'
|
|||||||
MarketplaceControlsComponent,
|
MarketplaceControlsComponent,
|
||||||
MarketplacePreviewComponent,
|
MarketplacePreviewComponent,
|
||||||
MarketplaceSidebarsComponent,
|
MarketplaceSidebarsComponent,
|
||||||
|
TuiScrollbarModule,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class MarketplaceComponent {
|
export class MarketplaceComponent {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
@import '@taiga-ui/core/styles/taiga-ui-local';
|
@import '@taiga-ui/core/styles/taiga-ui-local';
|
||||||
@import '@start9labs/shared/styles/shared.scss';
|
|
||||||
|
|
||||||
/** Ionic CSS Variables overrides **/
|
/** Ionic CSS Variables overrides **/
|
||||||
:root {
|
:root {
|
||||||
|
|||||||
Reference in New Issue
Block a user