Skip to content

Aliexpress.ru - исправление Mobile First дизайна (примерно с октября 2022) by kvanton-web

Screenshot of Aliexpress.ru - исправление Mobile First дизайна (примерно с октября 2022)

Details

Authorkvanton-web

LicenseNo License

Categoryaliexpress.ru

Created

Updated

Size9.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Возвращение списка товаров, уменьшение некоторых шрифтов и отступов и т.д.
Исправления уродского Mobile First дизайна aliexpress.ru после его обновления примерно в октябре 2022

Notes

Еще есть в виде правил для ublock/adblock — смотрите репозиторий.

Тестировались только правила ublock и stylus в Firefox 106 на экране 1920x1200

– возвращение списка товаров (а не таблица) на главной и в поиске;
– уменьшение некоторых шрифтов и отступов;
– характеристики товара сверху, отзывы внизу
– скрол Описания от продавца (где бывает много картинок) с сохранением возможности "равзернуть"
– немного уменшена карточка товара в корзине (за счет отступов и некоторой переорганизации)
– "размотана" галерея - ограничена ширина картинок (400px) и отображение нескольких каринок одновременно (зависит от ширины экрана). Поведение из-за этого может не очень нативное, но отображение более удобное (т.к. превью картинок в новом дизайне нет совсем)
– Точки галереи увеличины для удобства навигации мышью
– Выбор цвета (опций лота) снова квадратный - что не обрезает информацию на углах превью

Source code

/* ==UserStyle==
@name         Aliexpress.ru - исправление Mobile First дизайна (примерно с октября 2022)
@version      20221020.12.20
@namespace    userstyles.world/user/kvanton-web
@description  Возвращение списка товаров, уменьшение некоторых шрифтов и отступов и т.д. 
Исправления уродского Mobile First дизайна aliexpress.ru после его обновления примерно в октябре 2022
@author       kvanton-web
@license      No License
==/UserStyle== */

@-moz-document regexp("https?://.*\\.?aliexpress\\.ru/(?!item).*") {
/* ==User Style==
@name           Aliexpres.ru fix Mobile First Design
@namespzce      aliexpress.ru
@version        1.0.0
@description    Исправление уродского Mobile First дизайна (примерно с октября 2022). 
@author         kvanton-web
*/
div[class*="product-snippet_ProductSnippet__grid__"] {
    grid-template-columns: repeat(1, 1fr) !important;
    grid-row-gap: 16px;
}

li[class*="SnowCategoriesMenu_SnowCategoriesMenu__categoryItem__"] {
    padding-top: 5px;
}

li[class*="SnowSearchFilter_SearchCategories__categoryItem__"],
div[class*="SnowSearchFilter_FeaturesFilter__tag__"] {
    margin: 4px 0;
    padding: 0;
}
div[class*="SnowSearchFilter_FeaturesFilter__tag__"] label {
    cursor: pointer;
}


div[class*="product-snippet_ProductSnippet__grid__"] > div[class*="product-snippet_ProductSnippet__container__"] > div[class*="product-snippet_ProductSnippet__content__"] {
    flex-direction: row !important;
}

div[class*="product-snippet_ProductSnippet__grid__"] > div[class*="product-snippet_ProductSnippet__container__"] > div[class*="product-snippet_ProductSnippet__content__"] > a[class*="product-snippet_ProductSnippet__galleryBlock__"] {
    width: calc(25% - 32px) !important;
    margin-right: 8px !important;
}
}

@-moz-document url-prefix("https://aliexpress.ru/item/") {
/* /item */
[class*="snow-ali-kit_Typography__sizeParagraphXL__"] {
    font-size: 20px;
    line-height: 1.4;
}

[class*="ali-kit_Typography__sizeTextM__"],
[class*="SnowStoreInfo_SnowStoreInfo__textBlock__"] {
    font-size: 14px;
    line-height: 1.4;
}

div[class*="SnowCommonHeader_SnowHeader__logoSearchBar__"] {
    display: flex;
    max-width: unset;
    flex: 2;
    justify-content: center;
    align-items: center;
}
div[class*="SnowCommonHeader_SnowHeader__logoSearchBar__"] > div {
    flex: 0.8
}
[class*="SnowCommonHeader_SnowHeaderNavigation__navigation__"] {
    display: flex !important;
    flex: 1;
    justify-content: flex-start;
    align-items: center;
}

[class*="SnowCommonHeader_SnowHeaderNavigation__navigation__"] > ul {
    margin: 0 !important;
}

[data-spm="description_floor"] > div[class*="snow-more-container_SnowMoreContainer__wrapper__"][style*="max-height"] {
    max-height: 80vh !important;
    overflow: scroll !important;
}
div[class*="SnowProductDescription_SnowProductDescription__productName_"] {
    margin-bottom: 5px;
}
h1[class*="SnowProductDescription_ProductName__name__"] {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 5px;
}
div[id*="SkuPropertyValue"] {
    border-radius: 0 !important;
    border-width: 2px !important;
}
span[class*="SnowProductCharacteristics_SnowProductCharacteristics__"] {
    padding: 0 !important;
}
/*
div[class*="SnowProductCharacteristics_SnowProductCharacteristics__item__"] {
    border-bottom: 1px solid #686868 !important;
}
*/
div[class*="SnowProductCharacteristics_SnowProductCharacteristics__item__"]:nth-child(2n) {
    background: lavender;
}
div [class*="SnowStickyNavigation_SnowStickyNavigation__container__"] {
    z-index: 101;
}

[class*="snow-ali-kit_Typography__sizeHeadingXL__"] {
    margin: 0 !important;
}
div[class*="SnowCommonHeader_SnowCommonHeader__snowHeader__"] {
    z-index: 110;
}
div[class*="SnowCommonHeader_SnowCommonHeader__snowHeader__"] div[class*="SnowCommonHeader_HeaderGrid__rootGridInnerDiv__"] {
    justify-content: center;
}
div[class*="SnowCommonHeader_SnowCommonHeader__snowHeader__"] div[class*="SnowCommonHeader_HeaderGrid__rootGridInnerDiv__"] > div:first-child {
    display: flex;
    flex: 2;
    justify-content: flex-end;
    padding-right: 20px;
}
div[class*="SnowCommonHeader_SnowCommonHeader__snowHeader__"] div[class*="SnowCommonHeader_HeaderGrid__rootGridInnerDiv__"] > div:last-child {

    display: flex;
    flex: 1 1 auto;
}
div[class*="SnowCommonHeader_SnowCommonHeader__container__"] > div[class*="snow-container_SnowContainer__container__"] {
    max-width: 100%;
}

#coupon_anchor {
    margin: 0 !important;
}
#coupon_anchor ~ div ~ div ~ div > div[class*="snow-container_SnowContainer__container__"] {
    margin: 20px 0 !important;
    padding: 0 !important;
}
div[data-spm="description_floor"] + div {
    order: -2 !important;
}
div[data-spm="switchtabs"] + div + div > div > div:first-child {
    order: 1;
}
div[data-spm="switchtabs"] + div > div,
div[data-spm="switchtabs"] + div > div + div {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
}

div[data-spm="switchtabs"] + div > div + div #buyNowButton div[class*="SnowFixedButtons_SnowPriceButton__intoCartButtonsWrap__"],
div[data-spm="switchtabs"] + div > div + div #buyNowButton div[class*="SnowFixedButtons_SnowFixedButtons__buttons__"] {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
}
div[data-spm="switchtabs"] + div > div div[class*="gallery_Gallery__gallery__"] {
    max-height: 50vh;
    overflow: scroll !important;
    position: unset;
    padding-bottom: 45px;
}
div[data-spm="switchtabs"] + div > div div[class*="gallery_Gallery__gallery__"] div[class*="gallery_Gallery__picture__"] img {
    z-index: 100;
}
div[data-spm="switchtabs"] + div > div div[exp_type="product_image"] {
    position: relative;
}

div[data-spm="switchtabs"] + div > div div[class*="gallery_Gallery__picListWrapper__"] {
    padding-top: 500px !important;
    width: 600px !important;
    overflow: visible !important;
}

div[class*="SnowSku_SkuPropertyItem__valuesWrap__"] {
    height: auto !important;
    width: auto !important;
}
div[class*="SnowSku_SkuPropertyItem__arrow__"] {
    display: none;
}

div[data-spm="switchtabs"] + div > div + div > div > div {
    width: auto !important;
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding-right: 40px;
    justify-content: space-evenly;
}
[data-spm="bigpic_floor"] > div > div[class*="gallery_Gallery__gallery__"] {
    overflow: hidden !important;
}
div[data-spm="switchtabs"] + div > div div[class*="gallery_Gallery__dots__"] {
    height: auto !important;
    padding: 10px 0 20px 0!important;
    gap: 5px;
    z-index: 110;
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
}
div[class*="gallery_Gallery__arrow__"] {
    z-index: 110;
}

div[data-spm="switchtabs"] + div > div div[class*="gallery_Gallery__dots__"] > div {
    cursor: pointer !important;
    height: 15px !important;
    width: 15px !important;
}
div[data-spm="switchtabs"] + div > div:last-child > div[class*="SnowSkuContainer_SnowSkuContainer__wrapper__"] {
    position: relative;
    right: 0;
}

div[data-spm="switchtabs"] + div {
    max-width: 100% !important;
    margin: 0 !important;
    flex-wrap: wrap;
}
}

@-moz-document url-prefix("https://shoppingcart.aliexpress.ru/shopcart/") {
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] {
    padding: 10px 20px !important;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div {
    display: flex;
    flex-wrap: wrap;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div > div[class*="ShoppingcartItemList_Store__storeName__"] {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div > div div[class*="ShoppingcartItemList_ProductCard__productMain__"] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div > div div[class*="ShoppingcartItemList_ProductPrice__productPrice__"] {
    display: flex;
    flex: 1;
    margin: 0 !important;
    justify-content: end;
    align-items: center;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div > div div[class*="ShoppingcartItemList_ProductCard__productAttr__"] {
    width: 100%;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div > div div[class*="ShoppingcartItemList_ProductCard__productAttr__"] > div {
    justify-content: flex-end;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div > div div[class*="ShoppingcartItemList_ProductTags__tags__"] {
    margin: 0 !important;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div > div[class*="ShoppingcartItemList_StorePromotions__storePromotionContainer__"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-items: center;
}
div[class*="ShoppingcartItemList_ShoppingcartItemList__storeCollection__"] > div > div[class*="ShoppingcartItemList_Store__buyFromSeller__"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
    flex: 1 1 auto;
}
}

Reviews

No reviews yet.