From 2b8aca23b6f8fe1645d679f2bf869155d50917b6 Mon Sep 17 00:00:00 2001 From: medievalshell Date: Fri, 29 May 2026 23:49:10 +0200 Subject: [PATCH] revert(catalog): ripristina catalogo Hippiehotel.nl (Modern+Classic) Rimpiazza il catalogo del rebuild upstream con quello originale di Hippiehotel.nl Nitro-V3 (CatalogModernView ripristinato, ClassicView/ sub-views/CSS pre-merge). CatalogView sceglie Modern (default) o Classic via il toggle 'stile classico'. Rimosso l'hack CatalogClassicLegacy.css. --- src/components/catalog/CatalogClassicView.tsx | 57 +- src/components/catalog/CatalogModernView.tsx | 331 ++++++++++++ src/components/catalog/CatalogView.tsx | 25 +- .../page/layout/CatalogLayoutDefaultView.tsx | 25 +- .../page/layout/CatalogLayoutTrophiesView.tsx | 8 +- .../widgets/CatalogPurchaseWidgetView.tsx | 2 +- .../widgets/CatalogViewProductWidgetView.tsx | 4 - src/css/catalog/CatalogClassicLegacy.css | 354 ------------ src/css/catalog/CatalogClassicView.css | 510 ++++-------------- src/index.tsx | 1 - 10 files changed, 465 insertions(+), 852 deletions(-) create mode 100644 src/components/catalog/CatalogModernView.tsx delete mode 100644 src/css/catalog/CatalogClassicLegacy.css diff --git a/src/components/catalog/CatalogClassicView.tsx b/src/components/catalog/CatalogClassicView.tsx index 7153c22..a3f2a73 100644 --- a/src/components/catalog/CatalogClassicView.tsx +++ b/src/components/catalog/CatalogClassicView.tsx @@ -1,9 +1,9 @@ import { AddLinkEventTracker, ILinkEventTracker, RemoveLinkEventTracker } from '@nitrots/nitro-renderer'; -import { FC, useEffect, useState } from 'react'; -import { FaBars, FaCog, FaEdit, FaEye, FaEyeSlash, FaPlus, FaTrash } from 'react-icons/fa'; -import { CatalogType, GetConfigurationValue, LocalizeShortNumber, LocalizeText } from '../../api'; -import { Column, Grid, LayoutCurrencyIcon, NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../common'; -import { useCatalogActions, useCatalogClassicStyle, useCatalogData, useCatalogUiState, useHasPermission, usePurse } from '../../hooks'; +import { FC, useEffect } from 'react'; +import { FaCog, FaEdit, FaEye, FaEyeSlash, FaPlus, FaTrash } from 'react-icons/fa'; +import { CatalogType, GetConfigurationValue, LocalizeText } from '../../api'; +import { Column, Grid, NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../common'; +import { useCatalogActions, useCatalogData, useCatalogUiState, useHasPermission } from '../../hooks'; import { CatalogAdminProvider, useCatalogAdmin } from './CatalogAdminContext'; import { CatalogAdminOfferEditView } from './views/admin/CatalogAdminOfferEditView'; import { CatalogAdminPageEditView } from './views/admin/CatalogAdminPageEditView'; @@ -31,10 +31,6 @@ const CatalogClassicViewInner: FC<{}> = () => const loading = catalogAdmin?.loading ?? false; const isMod = useHasPermission('acc_catalogfurni'); - const [ catalogClassicStyle ] = useCatalogClassicStyle(); - const [ mobileMenuOpen, setMobileMenuOpen ] = useState(false); - const { purse = null } = usePurse(); - const displayedCurrencies = GetConfigurationValue('system.currency.types', []); const buildersClubHeaderStyle = (currentType === CatalogType.BUILDER) ? { borderColor: '#d79d2e', borderBottomColor: '#000', background: 'linear-gradient(180deg, #d89f2d 0%, #c68515 100%)' } : undefined; @@ -123,45 +119,8 @@ const CatalogClassicViewInner: FC<{}> = () => return ( <> { isVisible && - + setIsVisible(false) } style={ buildersClubHeaderStyle } /> - { !catalogClassicStyle && -
- { isMod && -
- - { mobileMenuOpen && -
- - { adminMode && - } -
} -
} -
-
- { LocalizeShortNumber(purse?.credits ?? 0) } - -
- { displayedCurrencies.map(type => ( -
- { LocalizeShortNumber(purse?.activityPoints?.get(type) ?? 0) } - -
- )) } -
-
} { adminMode &&
Admin Mode @@ -189,7 +148,7 @@ const CatalogClassicViewInner: FC<{}> = () => } }>
- { child.localization } + { child.localization } { adminMode && isHidden && } { adminMode &&
e.stopPropagation() }> @@ -213,7 +172,7 @@ const CatalogClassicViewInner: FC<{}> = () => ); }) } { isMod && - setAdminMode(!adminMode) }> + setAdminMode(!adminMode) }> } diff --git a/src/components/catalog/CatalogModernView.tsx b/src/components/catalog/CatalogModernView.tsx new file mode 100644 index 0000000..1c4af9a --- /dev/null +++ b/src/components/catalog/CatalogModernView.tsx @@ -0,0 +1,331 @@ +import { AddLinkEventTracker, ILinkEventTracker, RemoveLinkEventTracker } from '@nitrots/nitro-renderer'; +import { FC, useEffect, useState } from 'react'; +import { FaCog, FaEdit, FaEye, FaEyeSlash, FaHeart, FaPlus, FaStar, FaTrash } from 'react-icons/fa'; +import { CatalogType, LocalizeText } from '../../api'; +import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../common'; +import { useCatalogActions, useCatalogData, useCatalogFavorites, useCatalogUiState, useHasPermission } from '../../hooks'; +import { CatalogAdminProvider, useCatalogAdmin } from './CatalogAdminContext'; +import { CatalogAdminOfferEditView } from './views/admin/CatalogAdminOfferEditView'; +import { CatalogAdminPageEditView } from './views/admin/CatalogAdminPageEditView'; +import { CatalogBuildersClubStatusView } from './views/catalog-header/CatalogBuildersClubStatusView'; +import { CatalogIconView } from './views/catalog-icon/CatalogIconView'; +import { CatalogFavoritesView } from './views/favorites/CatalogFavoritesView'; +import { CatalogGiftView } from './views/gift/CatalogGiftView'; +import { CatalogNavigationView } from './views/navigation/CatalogNavigationView'; +import { CatalogSearchView } from './views/page/common/CatalogSearchView'; +import { GetCatalogLayout } from './views/page/layout/GetCatalogLayout'; +import { MarketplacePostOfferView } from './views/page/layout/marketplace/MarketplacePostOfferView'; + +const CatalogModernViewInner: FC<{}> = () => +{ + const { rootNode = null, currentPage = null, searchResult = null } = useCatalogData(); + const { isVisible = false, setIsVisible = null, navigationHidden = false, setNavigationHidden = null, activeNodes = [], setSearchResult = null, currentType = CatalogType.NORMAL } = useCatalogUiState(); + const { openPageByName = null, openPageByOfferId = null, activateNode = null, openCatalogByType = null, toggleCatalogByType = null } = useCatalogActions(); + const catalogAdmin = useCatalogAdmin(); + const adminMode = catalogAdmin?.adminMode ?? false; + const setAdminMode = catalogAdmin?.setAdminMode ?? (() => + {}); + const hasPendingChanges = catalogAdmin?.hasPendingChanges ?? false; + const publishCatalog = catalogAdmin?.publishCatalog ?? (() => + {}); + const loading = catalogAdmin?.loading ?? false; + const { favoriteOfferIds, favoritePageIds } = useCatalogFavorites(); + const [ showFavorites, setShowFavorites ] = useState(false); + + const isMod = useHasPermission('acc_catalogfurni'); + const totalFavs = favoriteOfferIds.length + favoritePageIds.length; + const buildersClubHeaderStyle = (currentType === CatalogType.BUILDER) + ? { borderColor: '#d79d2e', borderBottomColor: '#000', background: 'linear-gradient(180deg, #d89f2d 0%, #c68515 100%)' } + : undefined; + + useEffect(() => + { + const getCatalogTypeFromLink = (type?: string) => + { + switch((type || '').toLowerCase()) + { + case 'bc': + case 'builder': + case 'buildersclub': + case 'builders_club': + return CatalogType.BUILDER; + default: + return CatalogType.NORMAL; + } + }; + + const linkTracker: ILinkEventTracker = { + linkReceived: (url: string) => + { + const parts = url.split('/'); + + if(parts.length < 2) return; + + switch(parts[1]) + { + case 'show': + if(parts.length > 2) + { + openCatalogByType(getCatalogTypeFromLink(parts[2])); + + return; + } + + setIsVisible(true); + return; + case 'hide': + setIsVisible(false); + return; + case 'toggle': + if(parts.length > 2) + { + toggleCatalogByType(getCatalogTypeFromLink(parts[2])); + + return; + } + + setIsVisible(prevValue => !prevValue); + return; + case 'open': + if(parts.length > 2) + { + if(parts.length === 4) + { + switch(parts[2]) + { + case 'offerId': + openPageByOfferId(parseInt(parts[3])); + return; + } + } + else + { + openPageByName(parts[2]); + } + } + else + { + setIsVisible(true); + } + + return; + } + }, + eventUrlPrefix: 'catalog/' + }; + + AddLinkEventTracker(linkTracker); + + return () => RemoveLinkEventTracker(linkTracker); + }, [ setIsVisible, openPageByOfferId, openPageByName, openCatalogByType, toggleCatalogByType ]); + + return ( + <> + { isVisible && + + setIsVisible(false) } style={ buildersClubHeaderStyle } /> + + { /* Admin banner */ } + { adminMode && +
+ ⚙ Admin Mode + +
} + + +
+ { /* === LEFT SIDEBAR === */ } +
+ + { /* Favorites toggle */ } +
setShowFavorites(!showFavorites) } + > +
+ 0 ? 'text-danger' : 'text-muted' }` } /> + { totalFavs > 0 && + + { totalFavs } + } +
+ { LocalizeText('catalog.favorites') } +
+ +
+ + { /* Admin: root page actions */ } + { adminMode && rootNode && +
+ + +
} + + { /* Category icons */ } + { rootNode && rootNode.children.length > 0 && rootNode.children.map((child, index) => + { + if(!adminMode && !child.isVisible) return null; + + const isHidden = !child.isVisible; + + return ( +
+ { + if(searchResult) setSearchResult(null); + if(showFavorites) setShowFavorites(false); + activateNode(child); + } } + > +
+ + { isHidden && } +
+ + { child.localization } + + { /* Admin actions on each root category */ } + { adminMode && +
+
+ { + e.stopPropagation(); + catalogAdmin.setEditingPageNode(child); + catalogAdmin.setEditingRootPage(false); + catalogAdmin.setEditingPageData(true); + } } + > + +
+
+ { + e.stopPropagation(); + catalogAdmin.togglePageVisible(child.pageId); + } } + > + { isHidden + ? + : } +
+
+ { + e.stopPropagation(); + if(confirm(LocalizeText('catalog.admin.delete.category.confirm', [ 'name' ], [ child.localization ]))) + { + catalogAdmin.deletePage(child.pageId); + } + } } + > + +
+
} +
+ ); + }) } +
+ + { /* === MAIN AREA === */ } +
+ { /* Toolbar: search + admin */ } +
+ { /* Breadcrumb */ } +
+ + { activeNodes && activeNodes.length > 0 + ? activeNodes.map((node, i) => ( + + { i > 0 && } + activateNode(node) : undefined }> + { node.localization } + + + )) + : { LocalizeText('catalog.title') } } +
+ +
+ +
+ + { isMod && + } +
+ + { /* Content area */ } +
+ { showFavorites + ?
+ setShowFavorites(false) } /> +
+ : <> + { !navigationHidden && activeNodes && activeNodes.length > 0 && +
+ +
} +
+ { adminMode && } + { GetCatalogLayout(currentPage, () => setNavigationHidden(true)) } +
+ } +
+
+
+ + } + + + + + ); +}; + +export const CatalogModernView: FC<{}> = () => +{ + return ( + + + + ); +}; diff --git a/src/components/catalog/CatalogView.tsx b/src/components/catalog/CatalogView.tsx index 2859f24..a1d2d8b 100644 --- a/src/components/catalog/CatalogView.tsx +++ b/src/components/catalog/CatalogView.tsx @@ -1,26 +1,27 @@ -import { FC, useEffect } from 'react'; +import { FC } from 'react'; import { useCatalogClassicStyle, useCatalogData } from '../../hooks'; import { CatalogClassicView } from './CatalogClassicView'; +import { CatalogModernView } from './CatalogModernView'; export const CatalogView: FC<{}> = () => { const { catalogLocalizationVersion = 0 } = useCatalogData(); const [ catalogClassicStyle ] = useCatalogClassicStyle(); - // Toggle the legacy-skin marker on so the scoped overrides in - // CatalogClassicLegacy.css (the pre-merge catalog look) take effect for - // every catalog element without touching the modern stylesheet. - useEffect(() => - { - document.body.classList.toggle('catalog-skin-legacy', !!catalogClassicStyle); - - return () => document.body.classList.remove('catalog-skin-legacy'); - }, [ catalogClassicStyle ]); - - return ( + // Modern (Hippiehotel style) is the default; the "stile classico" toggle in + // user settings (or the global catalog.classic.style flag) switches to the + // classic catalog. Both views are the Hippiehotel.nl Nitro-V3 originals. + if(catalogClassicStyle) return ( <>
); + + return ( + <> +
+ + + ); }; diff --git a/src/components/catalog/views/page/layout/CatalogLayoutDefaultView.tsx b/src/components/catalog/views/page/layout/CatalogLayoutDefaultView.tsx index 09411d1..3490e60 100644 --- a/src/components/catalog/views/page/layout/CatalogLayoutDefaultView.tsx +++ b/src/components/catalog/views/page/layout/CatalogLayoutDefaultView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { FaEdit, FaPlus, FaPowerOff, FaSyncAlt } from 'react-icons/fa'; +import { FaEdit, FaPlus } from 'react-icons/fa'; import { GetConfigurationValue, LocalizeText, ProductTypeEnum, SanitizeHtml } from '../../../../../api'; import { Text } from '../../../../../common'; import { useCatalogData } from '../../../../../hooks'; @@ -17,12 +17,13 @@ import { CatalogLayoutProps } from './CatalogLayout.types'; export const CatalogLayoutDefaultView: FC = props => { const { page = null } = props; - const { currentOffer = null, currentPage = null, roomPreviewer = null } = useCatalogData(); + const { currentOffer = null, currentPage = null } = useCatalogData(); const catalogAdmin = useCatalogAdmin(); const adminMode = catalogAdmin?.adminMode ?? false; return (
+ { /* Admin: quick actions */ } { adminMode && !catalogAdmin.editingPageData &&
} + + { /* Product detail card */ } { currentOffer && -
+
+ { /* Preview area */ }
{ (currentOffer.product.productType !== ProductTypeEnum.BADGE) && <> - - } { (currentOffer.product.productType === ProductTypeEnum.BADGE) && }
+ { /* Product info + purchase */ }
+ { /* Title row */ }
{ currentOffer.localizationName } @@ -77,16 +77,19 @@ export const CatalogLayoutDefaultView: FC = props =>
}
+ { /* Price */ } + { /* Spinner */ } -
+ { /* Actions */ } +
} { !currentOffer && -
+
{ !!page.localization.getImage(1) && } diff --git a/src/components/catalog/views/page/layout/CatalogLayoutTrophiesView.tsx b/src/components/catalog/views/page/layout/CatalogLayoutTrophiesView.tsx index 6bc187c..31299a0 100644 --- a/src/components/catalog/views/page/layout/CatalogLayoutTrophiesView.tsx +++ b/src/components/catalog/views/page/layout/CatalogLayoutTrophiesView.tsx @@ -58,11 +58,9 @@ export const CatalogLayoutTrophiesView: FC = props =>
} - { /* Selected trophy card. shrink-0 + no overflow-hidden so the - Buy button stays inside the panel even when the grid below - holds many trophies. */ } + { /* Selected trophy card */ } { currentOffer - ?
+ ?
{ /* Preview */ }
{ (currentOffer.product.productType !== ProductTypeEnum.BADGE) @@ -92,7 +90,7 @@ export const CatalogLayoutTrophiesView: FC = props => { !canPurchase && { LocalizeText('catalog.trophies.write.hint') } } -
+
diff --git a/src/components/catalog/views/page/widgets/CatalogPurchaseWidgetView.tsx b/src/components/catalog/views/page/widgets/CatalogPurchaseWidgetView.tsx index e04cac0..5fe8ef8 100644 --- a/src/components/catalog/views/page/widgets/CatalogPurchaseWidgetView.tsx +++ b/src/components/catalog/views/page/widgets/CatalogPurchaseWidgetView.tsx @@ -240,7 +240,7 @@ export const CatalogPurchaseWidgetView: FC = pro return ; case CatalogPurchaseState.NONE: default: - return ; + return ; } }; diff --git a/src/components/catalog/views/page/widgets/CatalogViewProductWidgetView.tsx b/src/components/catalog/views/page/widgets/CatalogViewProductWidgetView.tsx index f63f721..027aa36 100644 --- a/src/components/catalog/views/page/widgets/CatalogViewProductWidgetView.tsx +++ b/src/components/catalog/views/page/widgets/CatalogViewProductWidgetView.tsx @@ -19,8 +19,6 @@ export const CatalogViewProductWidgetView: FC<{}> = props => if(!product) return; roomPreviewer.reset(false); - roomPreviewer.updateObjectRoom('default', 'default', 'default'); - roomPreviewer.updateRoomWallsAndFloorVisibility(true, true); switch(product.productType) { @@ -70,8 +68,6 @@ export const CatalogViewProductWidgetView: FC<{}> = props => case ProductTypeEnum.WALL: { if(!product.furnitureData) return; - roomPreviewer.updateRoomWallsAndFloorVisibility(true, true); - switch(product.furnitureData.specialType) { case FurniCategory.FLOOR: diff --git a/src/css/catalog/CatalogClassicLegacy.css b/src/css/catalog/CatalogClassicLegacy.css deleted file mode 100644 index db5c6ef..0000000 --- a/src/css/catalog/CatalogClassicLegacy.css +++ /dev/null @@ -1,354 +0,0 @@ -/* Auto-generated: pre-merge catalog CSS scoped under .catalog-skin-legacy (classic style toggle). Source: CatalogClassicView.css @ b360595. Do not edit by hand. */ -body.catalog-skin-legacy .nitro-catalog-classic-window { - width: 640px !important; - height: 600px !important; - max-width: 640px !important; - min-width: 640px !important; - min-height: 600px !important; - max-height: 600px !important; -} -body.catalog-skin-legacy .nitro-catalog-classic-window .nitro-card-title { - font-size: 18px; - letter-spacing: 0.2px; -} -body.catalog-skin-legacy .nitro-catalog-classic-window .nitro-card-header-shell { - min-height: 38px; - max-height: 38px; -} -body.catalog-skin-legacy .nitro-catalog-classic-admin-banner { - border-bottom: 1px solid rgba(0, 0, 0, 0.18); - background: linear-gradient(180deg, #f4d45d 0%, #d8b43e 100%); -} -body.catalog-skin-legacy .nitro-catalog-classic-tabs-shell { - flex-wrap: nowrap; - gap: 1px; - min-height: 30px; - max-height: 30px; - padding: 0 6px; - overflow-x: auto; - overflow-y: hidden; - align-items: end; - background: #e7e8df; - border-bottom: 1px solid #b8beb4; -} -body.catalog-skin-legacy .nitro-catalog-classic-tabs-shell .nitro-card-tab-item { - min-height: 28px; - padding: 5px 10px 4px; - border: 1px solid #8f8f8b; - border-bottom: 0; - border-radius: 5px 5px 0 0; - background: linear-gradient(180deg, #fafaf7 0%, #dde2d9 100%); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); - white-space: nowrap; -} -body.catalog-skin-legacy .nitro-catalog-classic-tabs-shell .nitro-card-tab-item:hover { - background: linear-gradient(180deg, #ffffff 0%, #e7ece4 100%); -} -body.catalog-skin-legacy .nitro-catalog-classic-tabs-shell .nitro-card-tab-item-active { - background: #f2f2eb; - transform: translateY(0); - position: relative; - top: 1px; -} -body.catalog-skin-legacy .nitro-catalog-classic-content-shell { - padding: 6px 8px 8px !important; -} -body.catalog-skin-legacy .nitro-catalog-classic-stage { - display: grid; - grid-template-columns: 196px minmax(0, 1fr); - gap: 8px; - min-height: 0; - height: 100%; -} -body.catalog-skin-legacy .nitro-catalog-classic-stage.is-navigation-hidden { - grid-template-columns: minmax(0, 1fr); -} -body.catalog-skin-legacy .nitro-catalog-classic-sidebar { - display: flex; - flex-direction: column; - gap: 4px; - min-height: 0; - height: 100%; -} -body.catalog-skin-legacy .nitro-catalog-classic-search-shell { - padding: 3px; - border: 1px solid #a7aba1; - border-radius: 4px; - background: linear-gradient(180deg, #f9f8f2 0%, #eaede5 100%); -} -body.catalog-skin-legacy .nitro-catalog-classic-search-shell input { - height: 18px; - padding-top: 0 !important; - padding-bottom: 0 !important; - border-width: 1px !important; - border-color: #8f9588 !important; - border-radius: 3px !important; - background: #fff !important; - box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08); -} -body.catalog-skin-legacy .nitro-catalog-classic-search-shell svg { - color: #61645b !important; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-shell { - flex: 1 1 auto; - min-height: 0; - padding: 3px 2px 3px 3px; - border: 1px solid #a7aba1; - border-radius: 4px; - background: linear-gradient(180deg, #f1f2ec 0%, #d8ddd3 100%); - overflow: auto; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-list { - display: flex; - flex-direction: column; - gap: 2px; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-node.is-child { - margin-left: 10px; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-item { - display: flex; - align-items: center; - gap: 4px; - min-height: 21px; - padding: 1px 6px 1px 5px; - border: 1px solid #bdc2ba; - border-radius: 4px; - background: linear-gradient(180deg, #f6f7f2 0%, #e6e9e1 100%); - color: #2e2e2e; - cursor: pointer; - transition: background-color 0.12s ease, border-color 0.12s ease; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-item:hover { - background: linear-gradient(180deg, #ffffff 0%, #ebeee6 100%); - border-color: #9ea79b; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-item.is-active { - background: linear-gradient(180deg, #dae7f0 0%, #c4d2de 100%); - border-color: #8e9ba5; - font-weight: 700; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-item.is-drag-over { - outline: 2px solid rgba(48, 114, 140, 0.35); - outline-offset: 1px; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-icon { - display: flex; - align-items: center; - justify-content: center; - width: 18px; - min-width: 18px; - height: 18px; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-icon img, -body.catalog-skin-legacy .nitro-catalog-classic-navigation-icon canvas { - width: auto; - height: auto; - max-width: 18px; - max-height: 18px; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-label { - flex: 1 1 auto; - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - font-size: 11px; - line-height: 1; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-caret, -body.catalog-skin-legacy .nitro-catalog-classic-navigation-favorite, -body.catalog-skin-legacy .nitro-catalog-classic-navigation-admin, -body.catalog-skin-legacy .nitro-catalog-classic-navigation-drag { - flex-shrink: 0; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-caret { - color: #676d66 !important; -} -body.catalog-skin-legacy .nitro-catalog-classic-layout-shell { - display: flex; - flex-direction: column; - min-width: 0; - min-height: 0; - height: 100%; - border: 1px solid #a7aba1; - border-radius: 4px; - background: linear-gradient(180deg, #eceee7 0%, #dfe4da 100%); - overflow: hidden; -} -body.catalog-skin-legacy .nitro-catalog-classic-layout-header-shell { - display: flex; - flex-direction: column; - gap: 3px; - min-height: 66px; - padding: 5px 7px; - border-bottom: 1px solid #c8cdc3; - background: linear-gradient(180deg, #f6f6f2 0%, #e9ece4 100%); -} -body.catalog-skin-legacy .nitro-catalog-classic-layout-hero { - display: flex; - align-items: center; - justify-content: center; - flex: 1 1 auto; - min-height: 32px; - overflow: hidden; -} -body.catalog-skin-legacy .nitro-catalog-classic-layout-hero img { - max-width: 100%; - max-height: 32px; - width: auto; - height: auto; - object-fit: contain; -} -body.catalog-skin-legacy .nitro-catalog-classic-layout-container { - flex: 1 1 auto; - min-height: 0; - padding: 6px; - background: #f2f2eb; - overflow: hidden; -} -body.catalog-skin-legacy .nitro-catalog-classic-default-layout { - gap: 8px; -} -body.catalog-skin-legacy .nitro-catalog-classic-offer-panel, -body.catalog-skin-legacy .nitro-catalog-classic-welcome { - border: 1px solid #bfc4bc; - border-radius: 6px; - background: linear-gradient(180deg, #ffffff 0%, #f3f3ed 100%); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92); -} -body.catalog-skin-legacy .nitro-catalog-classic-offer-preview { - width: 136px; - min-width: 136px; - padding: 8px; - border-right: 1px solid #c9cec5; - background: linear-gradient(180deg, #eef2ea 0%, #dde3d8 100%); -} -body.catalog-skin-legacy .nitro-catalog-classic-offer-info { - padding: 10px; -} -body.catalog-skin-legacy .nitro-catalog-classic-welcome { - min-height: 128px; - padding: 10px; -} -body.catalog-skin-legacy .nitro-catalog-classic-grid-shell { - min-height: 150px; - padding: 4px; - border: 1px solid #bcc2b8; - border-radius: 6px; - background: linear-gradient(180deg, #f5f5f0 0%, #e4e7de 100%); - height: auto; - flex: 1 1 auto; -} -body.catalog-skin-legacy .nitro-catalog-classic-grid { - gap: 4px !important; - align-content: start; -} -body.catalog-skin-legacy .nitro-catalog-classic-window .layout-grid-item { - height: 54px; - border: 1px solid #b8beb6 !important; - border-radius: 6px !important; - background-color: #d7dde2; - background-image: none; - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); -} -body.catalog-skin-legacy .nitro-catalog-classic-window .layout-grid-item.is-active { - background-color: #e5ebef !important; - border-color: #8f978b !important; -} -body.catalog-skin-legacy .nitro-catalog-classic-grid-offer-icon { - position: absolute; - inset: 4px; - background-repeat: no-repeat; - background-position: center; - pointer-events: none; -} -body.catalog-skin-legacy .nitro-catalog-classic-window .nitro-catalog-header { - justify-content: flex-start; - min-height: 56px; - margin-bottom: 6px; - padding: 4px 6px; - border: 1px solid #bec3ba; - border-radius: 6px; - background: linear-gradient(180deg, #ffffff 0%, #f2f2ec 100%); -} -body.catalog-skin-legacy .nitro-catalog-classic-window .nitro-catalog-header img { - max-width: 100%; - max-height: 48px; - width: auto; - height: auto; - object-fit: contain; -} -body.catalog-skin-legacy .nitro-catalog-classic-breadcrumb { - display: flex; - align-items: center; - gap: 5px; - min-height: 16px; - overflow: hidden; - color: #666a63; - font-size: 10px; - line-height: 1; - white-space: nowrap; -} -body.catalog-skin-legacy .nitro-catalog-classic-breadcrumb-segment { - display: inline-flex; - align-items: center; - gap: 5px; - min-width: 0; -} -body.catalog-skin-legacy .nitro-catalog-classic-breadcrumb-separator { - color: #9ea395; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-shell::-webkit-scrollbar, -body.catalog-skin-legacy .nitro-catalog-classic-layout-container :is(.overflow-auto, -body.catalog-skin-legacy .nitro-card-content-shell, -body.catalog-skin-legacy .nitro-catalog-classic-grid-shell)::-webkit-scrollbar { - width: 12px; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-shell::-webkit-scrollbar-track, -body.catalog-skin-legacy .nitro-catalog-classic-layout-container :is(.overflow-auto, -body.catalog-skin-legacy .nitro-card-content-shell, -body.catalog-skin-legacy .nitro-catalog-classic-grid-shell)::-webkit-scrollbar-track { - border-left: 1px solid #c2c6be; - background: #dde2d8; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-shell::-webkit-scrollbar-thumb, -body.catalog-skin-legacy .nitro-catalog-classic-layout-container :is(.overflow-auto, -body.catalog-skin-legacy .nitro-card-content-shell, -body.catalog-skin-legacy .nitro-catalog-classic-grid-shell)::-webkit-scrollbar-thumb { - border: 1px solid #7d8680; - border-radius: 6px; - background: linear-gradient(180deg, #a8b3ae 0%, #89948f 100%); -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-shell::-webkit-scrollbar-button:single-button:vertical:decrement, -body.catalog-skin-legacy .nitro-catalog-classic-layout-container :is(.overflow-auto, -body.catalog-skin-legacy .nitro-card-content-shell, -body.catalog-skin-legacy .nitro-catalog-classic-grid-shell)::-webkit-scrollbar-button:single-button:vertical:decrement { - height: 12px; - background: #dde2d8; -} -body.catalog-skin-legacy .nitro-catalog-classic-navigation-shell::-webkit-scrollbar-button:single-button:vertical:increment, -body.catalog-skin-legacy .nitro-catalog-classic-layout-container :is(.overflow-auto, -body.catalog-skin-legacy .nitro-card-content-shell, -body.catalog-skin-legacy .nitro-catalog-classic-grid-shell)::-webkit-scrollbar-button:single-button:vertical:increment { - height: 12px; - background: #dde2d8; -} -@media (max-width: 991.98px) { -body.catalog-skin-legacy .nitro-catalog-classic-window { - width: min(calc(100vw - 16px), 570px) !important; - min-width: 0 !important; - height: min(calc(100vh - 16px), 635px) !important; - min-height: 0 !important; - max-width: calc(100vw - 16px) !important; - } -body.catalog-skin-legacy .nitro-catalog-classic-stage { - grid-template-columns: minmax(0, 1fr); - } -body.catalog-skin-legacy .nitro-catalog-classic-sidebar { - max-height: 180px; - } - - -} - diff --git a/src/css/catalog/CatalogClassicView.css b/src/css/catalog/CatalogClassicView.css index 48a6100..b1dff1b 100644 --- a/src/css/catalog/CatalogClassicView.css +++ b/src/css/catalog/CatalogClassicView.css @@ -1,29 +1,10 @@ .nitro-catalog-classic-window { - --cat-blue: #4b7a94; - --cat-blue-dark: #385d73; - --cat-ink: #233a47; - --cat-strip: #d9e2e8; - --cat-tab: #b7c7d1; - --cat-tab-border: #7a9cb0; - --cat-panel: #eef2f5; - --cat-sub: #e1e7ec; - --cat-line: #b7c7d1; - --cat-canvas: #d4dadf; - --cat-canvas-2: #c9cfd4; - --cat-select: #3a82a7; - --cat-select-bg: #f0f5f8; - --cat-gold: #f7d673; - --cat-gold-border: #d4af37; - --cat-gold-ink: #4a3300; - --cat-buy: #009900; - width: 640px !important; height: 600px !important; max-width: 640px !important; min-width: 640px !important; min-height: 600px !important; max-height: 600px !important; - background: #ffffff !important; } .nitro-catalog-classic-window .nitro-card-title { @@ -36,12 +17,6 @@ max-height: 38px; } -.nitro-catalog-classic-window .nitro-card-header { - background: var(--cat-blue); - border-color: var(--cat-blue); - border-bottom-color: var(--cat-ink); -} - .nitro-catalog-classic-admin-banner { border-bottom: 1px solid rgba(0, 0, 0, 0.18); background: linear-gradient(180deg, #f4d45d 0%, #d8b43e 100%); @@ -49,47 +24,41 @@ .nitro-catalog-classic-tabs-shell { flex-wrap: nowrap; - gap: 2px; - min-height: 32px; - max-height: 32px; - padding: 4px 6px 0; + gap: 1px; + min-height: 30px; + max-height: 30px; + padding: 0 6px; overflow-x: auto; overflow-y: hidden; align-items: end; - background: var(--cat-strip); - border-bottom: 2px solid var(--cat-ink); + background: #e7e8df; + border-bottom: 1px solid #b8beb4; } .nitro-catalog-classic-tabs-shell .nitro-card-tab-item { min-height: 28px; - padding: 5px 12px 4px; - border: 1px solid var(--cat-tab-border); + padding: 5px 10px 4px; + border: 1px solid #8f8f8b; border-bottom: 0; border-radius: 5px 5px 0 0; - background: var(--cat-tab); - color: var(--cat-ink); - box-shadow: none; + background: linear-gradient(180deg, #fafaf7 0%, #dde2d9 100%); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); white-space: nowrap; - font-weight: 700; } .nitro-catalog-classic-tabs-shell .nitro-card-tab-item:hover { - background: #c7d4dd; + background: linear-gradient(180deg, #ffffff 0%, #e7ece4 100%); } .nitro-catalog-classic-tabs-shell .nitro-card-tab-item-active { - background: #ffffff; - color: #000000; + background: #f2f2eb; + transform: translateY(0); position: relative; top: 1px; - border-color: var(--cat-ink); - box-shadow: inset 0 -1px 0 #ffffff; - font-weight: 700; } .nitro-catalog-classic-content-shell { padding: 6px 8px 8px !important; - background: #ffffff !important; } .nitro-catalog-classic-stage { @@ -113,82 +82,75 @@ } .nitro-catalog-classic-search-shell { - padding: 4px; - border: 1px solid var(--cat-line); + padding: 3px; + border: 1px solid #a7aba1; border-radius: 4px; - background: var(--cat-panel); + background: linear-gradient(180deg, #f9f8f2 0%, #eaede5 100%); } .nitro-catalog-classic-search-shell input { - height: 20px; + height: 18px; padding-top: 0 !important; padding-bottom: 0 !important; border-width: 1px !important; - border-color: var(--cat-tab-border) !important; + border-color: #8f9588 !important; border-radius: 3px !important; background: #fff !important; - box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06); + box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08); } .nitro-catalog-classic-search-shell svg { - color: #5b7080 !important; + color: #61645b !important; } .nitro-catalog-classic-navigation-shell { flex: 1 1 auto; min-height: 0; - padding: 4px 0; - border: 1px solid var(--cat-line); + padding: 3px 2px 3px 3px; + border: 1px solid #a7aba1; border-radius: 4px; - background: var(--cat-panel); + background: linear-gradient(180deg, #f1f2ec 0%, #d8ddd3 100%); overflow: auto; } .nitro-catalog-classic-navigation-list { display: flex; flex-direction: column; - gap: 0; + gap: 2px; } -.nitro-catalog-classic-navigation-node.is-child .nitro-catalog-classic-navigation-item { - padding-left: 22px; - background: var(--cat-sub); +.nitro-catalog-classic-navigation-node.is-child { + margin-left: 10px; } .nitro-catalog-classic-navigation-item { display: flex; align-items: center; - gap: 6px; - min-height: 28px; - padding: 4px 10px; - border: 0; - border-left: 4px solid transparent; - border-radius: 0; - background: transparent; - color: var(--cat-ink); - font-weight: 700; + gap: 4px; + min-height: 21px; + padding: 1px 6px 1px 5px; + border: 1px solid #bdc2ba; + border-radius: 4px; + background: linear-gradient(180deg, #f6f7f2 0%, #e6e9e1 100%); + color: #2e2e2e; cursor: pointer; - transition: background-color 0.12s ease; -} - -.nitro-catalog-classic-navigation-node.is-child .nitro-catalog-classic-navigation-item { - font-weight: 400; + transition: background-color 0.12s ease, border-color 0.12s ease; } .nitro-catalog-classic-navigation-item:hover { - background: #dde6ec; + background: linear-gradient(180deg, #ffffff 0%, #ebeee6 100%); + border-color: #9ea79b; } .nitro-catalog-classic-navigation-item.is-active { - background: #ffffff; - border-left-color: var(--cat-blue); - color: #000000; + background: linear-gradient(180deg, #dae7f0 0%, #c4d2de 100%); + border-color: #8e9ba5; font-weight: 700; } .nitro-catalog-classic-navigation-item.is-drag-over { - outline: 2px solid rgba(58, 130, 167, 0.4); - outline-offset: -2px; + outline: 2px solid rgba(48, 114, 140, 0.35); + outline-offset: 1px; } .nitro-catalog-classic-navigation-icon { @@ -226,7 +188,7 @@ } .nitro-catalog-classic-navigation-caret { - color: #5b7080 !important; + color: #676d66 !important; } .nitro-catalog-classic-layout-shell { @@ -235,9 +197,9 @@ min-width: 0; min-height: 0; height: 100%; - border: 1px solid var(--cat-line); + border: 1px solid #a7aba1; border-radius: 4px; - background: #ffffff; + background: linear-gradient(180deg, #eceee7 0%, #dfe4da 100%); overflow: hidden; } @@ -245,28 +207,26 @@ display: flex; flex-direction: column; gap: 3px; - flex-shrink: 0; - min-height: 0; - padding: 6px 8px; - border-bottom: 1px solid var(--cat-line); - background: #ffffff; + min-height: 66px; + padding: 5px 7px; + border-bottom: 1px solid #c8cdc3; + background: linear-gradient(180deg, #f6f6f2 0%, #e9ece4 100%); } .nitro-catalog-classic-layout-hero { display: flex; align-items: center; justify-content: center; - flex: 0 0 auto; + flex: 1 1 auto; min-height: 32px; - overflow: visible; + overflow: hidden; } .nitro-catalog-classic-layout-hero img { - display: block; + max-width: 100%; + max-height: 32px; width: auto; height: auto; - max-width: 100%; - max-height: none; object-fit: contain; } @@ -274,7 +234,7 @@ flex: 1 1 auto; min-height: 0; padding: 6px; - background: #ffffff; + background: #f2f2eb; overflow: hidden; } @@ -284,42 +244,24 @@ .nitro-catalog-classic-offer-panel, .nitro-catalog-classic-welcome { - border: 1px solid var(--cat-line); + border: 1px solid #bfc4bc; border-radius: 6px; - background: #ffffff; -} - -.nitro-catalog-classic-offer-panel { - min-height: 132px; - overflow: hidden; + background: linear-gradient(180deg, #ffffff 0%, #f3f3ed 100%); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92); } .nitro-catalog-classic-offer-preview { - width: 190px; - min-width: 190px; + width: 136px; + min-width: 136px; padding: 8px; - border-right: 1px solid var(--cat-line); - background-color: var(--cat-canvas); + border-right: 1px solid #c9cec5; + background: linear-gradient(180deg, #eef2ea 0%, #dde3d8 100%); } .nitro-catalog-classic-offer-info { padding: 10px; } -.nitro-catalog-classic-offer-actions { - justify-content: flex-end; -} - -.nitro-catalog-classic-offer-info .rounded-full { - background: var(--cat-gold) !important; - border-color: var(--cat-gold-border) !important; -} - -.nitro-catalog-classic-offer-info .rounded-full, -.nitro-catalog-classic-offer-info .rounded-full * { - color: var(--cat-gold-ink) !important; -} - .nitro-catalog-classic-welcome { min-height: 128px; padding: 10px; @@ -327,40 +269,31 @@ .nitro-catalog-classic-grid-shell { min-height: 150px; - padding: 6px; - border: 1px solid var(--cat-line); + padding: 4px; + border: 1px solid #bcc2b8; border-radius: 6px; - background: #ffffff; + background: linear-gradient(180deg, #f5f5f0 0%, #e4e7de 100%); height: auto; flex: 1 1 auto; } .nitro-catalog-classic-grid { - gap: 6px !important; + gap: 4px !important; align-content: start; } .nitro-catalog-classic-window .layout-grid-item { height: 54px; - border: 1px solid var(--cat-line) !important; - border-radius: 4px !important; - background-color: #ffffff; + border: 1px solid #b8beb6 !important; + border-radius: 6px !important; + background-color: #d7dde2; background-image: none; - box-shadow: none; - transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; -} - -.nitro-catalog-classic-window .layout-grid-item:hover { - background-color: var(--cat-select-bg) !important; - border-color: var(--cat-select) !important; - box-shadow: 0 0 0 1px rgba(58, 130, 167, 0.2); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); } .nitro-catalog-classic-window .layout-grid-item.is-active { - background-color: var(--cat-select-bg) !important; - border-color: var(--cat-select) !important; - border-width: 2px !important; - box-shadow: 0 0 0 1px rgba(58, 130, 167, 0.35); + background-color: #e5ebef !important; + border-color: #8f978b !important; } .nitro-catalog-classic-grid-offer-icon { @@ -372,12 +305,21 @@ } .nitro-catalog-classic-window .nitro-catalog-header { - display: none; + justify-content: flex-start; + min-height: 56px; + margin-bottom: 6px; + padding: 4px 6px; + border: 1px solid #bec3ba; + border-radius: 6px; + background: linear-gradient(180deg, #ffffff 0%, #f2f2ec 100%); } -.nitro-catalog-classic-offer-info .bg-\[\#00800b\] { - background-color: var(--cat-buy) !important; - border-color: #007a00 !important; +.nitro-catalog-classic-window .nitro-catalog-header img { + max-width: 100%; + max-height: 48px; + width: auto; + height: auto; + object-fit: contain; } .nitro-catalog-classic-breadcrumb { @@ -386,7 +328,7 @@ gap: 5px; min-height: 16px; overflow: hidden; - color: #5b7080; + color: #666a63; font-size: 10px; line-height: 1; white-space: nowrap; @@ -400,7 +342,7 @@ } .nitro-catalog-classic-breadcrumb-separator { - color: #94a7b3; + color: #9ea395; } .nitro-catalog-classic-navigation-shell::-webkit-scrollbar, @@ -410,37 +352,36 @@ .nitro-catalog-classic-navigation-shell::-webkit-scrollbar-track, .nitro-catalog-classic-layout-container :is(.overflow-auto, .nitro-card-content-shell, .nitro-catalog-classic-grid-shell)::-webkit-scrollbar-track { - border-left: 1px solid var(--cat-line); - background: var(--cat-panel); + border-left: 1px solid #c2c6be; + background: #dde2d8; } .nitro-catalog-classic-navigation-shell::-webkit-scrollbar-thumb, .nitro-catalog-classic-layout-container :is(.overflow-auto, .nitro-card-content-shell, .nitro-catalog-classic-grid-shell)::-webkit-scrollbar-thumb { - border: 1px solid var(--cat-tab-border); + border: 1px solid #7d8680; border-radius: 6px; - background: linear-gradient(180deg, #a9bcc9 0%, #89a0ae 100%); + background: linear-gradient(180deg, #a8b3ae 0%, #89948f 100%); } .nitro-catalog-classic-navigation-shell::-webkit-scrollbar-button:single-button:vertical:decrement, .nitro-catalog-classic-layout-container :is(.overflow-auto, .nitro-card-content-shell, .nitro-catalog-classic-grid-shell)::-webkit-scrollbar-button:single-button:vertical:decrement { height: 12px; - background: var(--cat-panel); + background: #dde2d8; } .nitro-catalog-classic-navigation-shell::-webkit-scrollbar-button:single-button:vertical:increment, .nitro-catalog-classic-layout-container :is(.overflow-auto, .nitro-card-content-shell, .nitro-catalog-classic-grid-shell)::-webkit-scrollbar-button:single-button:vertical:increment { height: 12px; - background: var(--cat-panel); + background: #dde2d8; } -@media (max-width: 1024px) and (min-width: 641px) { +@media (max-width: 991.98px) { .nitro-catalog-classic-window { - width: min(calc(100vw - 24px), 720px) !important; + width: min(calc(100vw - 16px), 570px) !important; min-width: 0 !important; - max-width: calc(100vw - 24px) !important; - height: min(calc(100vh - 24px), 720px) !important; + height: min(calc(100vh - 16px), 635px) !important; min-height: 0 !important; - max-height: calc(100vh - 24px) !important; + max-width: calc(100vw - 16px) !important; } .nitro-catalog-classic-stage { @@ -448,267 +389,6 @@ } .nitro-catalog-classic-sidebar { - max-height: 200px; - } -} - -.nitro-catalog-classic-mobile-header { - position: absolute; - top: 0; - left: 0; - right: 0; - z-index: 5; - display: flex; - align-items: center; - height: 38px; - padding: 0 44px 0 8px; - pointer-events: none; -} - -.nitro-catalog-classic-mobile-burger { - position: relative; - pointer-events: auto; -} - -.nitro-catalog-classic-burger-btn { - display: flex; - align-items: center; - justify-content: center; - width: 26px; - height: 26px; - border: 0; - border-radius: 5px; - background: rgba(0, 0, 0, 0.2); - color: #fff; - font-size: 13px; - cursor: pointer; -} - -.nitro-catalog-classic-burger-btn:hover { - background: rgba(0, 0, 0, 0.3); -} - -.nitro-catalog-classic-burger-btn:active { - background: rgba(0, 0, 0, 0.36); -} - -.nitro-catalog-classic-burger-menu { - position: absolute; - top: 32px; - left: 0; - z-index: 60; - display: flex; - flex-direction: column; - gap: 4px; - min-width: 150px; - padding: 6px; - border: 1px solid var(--cat-line); - border-radius: 6px; - background: #fff; - box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); -} - -.nitro-catalog-classic-burger-menu button { - padding: 8px 10px; - border: 0; - border-radius: 4px; - background: var(--cat-strip); - color: var(--cat-ink); - font-weight: 700; - text-align: left; - cursor: pointer; -} - -.nitro-catalog-classic-burger-menu button:disabled { - opacity: 0.6; -} - -.nitro-catalog-classic-mobile-currency { - margin-left: auto; - display: flex; - align-items: center; - gap: 5px; - pointer-events: auto; -} - -.nitro-catalog-classic-coin { - display: flex; - align-items: center; - gap: 3px; - padding: 3px 7px; - border-radius: 11px; - background: rgba(0, 0, 0, 0.25); - color: #fff; - font-size: 10px; - font-weight: 700; -} - -.nitro-catalog-classic-coin span { - color: #fff; -} - -.nitro-catalog-classic-admin-tab { - display: none !important; -} - -.nitro-catalog-classic-preview-btn { - position: absolute; - top: 8px; - z-index: 4; - display: inline-flex; - align-items: center; - gap: 5px; - padding: 5px 10px; - border: 1px solid #555; - border-radius: 5px; - background: rgba(0, 0, 0, 0.7); - color: #fff; - font-size: 11px; - font-weight: 700; - white-space: nowrap; - cursor: pointer; -} - -.nitro-catalog-classic-preview-btn:hover { - background: rgba(0, 0, 0, 0.82); -} - -.nitro-catalog-classic-preview-btn:active { - background: rgba(0, 0, 0, 0.9); -} - -.nitro-catalog-classic-preview-rotate { - left: 8px; -} - -.nitro-catalog-classic-preview-state { - right: 8px; -} - -@media (max-width: 640px) { - .nitro-catalog-classic-window { - width: 100vw !important; - min-width: 0 !important; - max-width: 100vw !important; - height: 100vh !important; - min-height: 0 !important; - max-height: 100vh !important; - border-radius: 0 !important; - } - - .draggable-window:has(> .nitro-catalog-classic-window) { - transform: none !important; - left: 0 !important; - top: 0 !important; - } - - .nitro-catalog-classic-window .nitro-card-title { - display: none; - } - - .nitro-catalog-classic-mobile-currency { - position: absolute; - left: 50%; - margin-left: 0; - transform: translateX(-50%); - } - - .nitro-catalog-classic-tabs-shell { - min-height: 44px; - max-height: 44px; - padding: 4px 4px 0; - -webkit-overflow-scrolling: touch; - } - - .nitro-catalog-classic-tabs-shell .nitro-card-tab-item { - min-height: 42px; - padding: 6px 12px; - font-size: 12px; - justify-content: center; - } - - .nitro-catalog-classic-tab-label { - display: none; - } - - .nitro-catalog-classic-content-shell { - padding: 6px !important; - } - - .nitro-catalog-classic-layout-hero { - display: none; - } - - .nitro-catalog-classic-offer-panel { - flex-direction: column; - } - - .nitro-catalog-classic-offer-preview { - width: 100%; - min-width: 0; - border-right: 0; - border-bottom: 1px solid var(--cat-line); - } - - .nitro-catalog-classic-stage { - grid-template-columns: minmax(0, 1fr); - gap: 6px; - } - - .nitro-catalog-classic-sidebar { - max-height: 33vh; - } - - .nitro-catalog-classic-search-shell input { - height: 28px; - font-size: 13px; - } - - .nitro-catalog-classic-navigation-item { - min-height: 40px; - padding: 6px 12px; - } - - .nitro-catalog-classic-navigation-label { - font-size: 13px; - } - - .nitro-catalog-classic-window .layout-grid-item { - height: 64px; - } - - .nitro-catalog-classic-window .nitro-card-header-shell, - .nitro-catalog-classic-window .nitro-card-content-shell { - border-radius: 0 !important; - } -} - -@media (max-height: 480px) { - .nitro-catalog-classic-window { - height: 100vh !important; - max-height: 100vh !important; - } - - .nitro-catalog-classic-window .nitro-card-header-shell { - min-height: 32px; - max-height: 32px; - } - - .nitro-catalog-classic-tabs-shell { - min-height: 38px; - max-height: 38px; - } - - .nitro-catalog-classic-layout-header-shell { - min-height: 0; - padding: 3px 6px; - } - - .nitro-catalog-classic-layout-hero { - display: none; - } - - .nitro-catalog-classic-sidebar { - max-height: 26vh; + max-height: 180px; } } diff --git a/src/index.tsx b/src/index.tsx index a9dacf1..3825168 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -20,7 +20,6 @@ import './css/index.css'; import './css/backgrounds/BackgroundsView.css'; import './css/badges/BadgeLeaderboardView.css'; import './css/catalog/CatalogClassicView.css'; -import './css/catalog/CatalogClassicLegacy.css'; import './css/emustats/EmuStatsView.css'; import './css/chat/Chats.css';