Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
.b-icon {
outline: none;
}
.header-nav {
border-bottom: 1px solid #f2f2f2;
}
.header-nav .b-icon.bi {
font-size: 24px;
}
.dropdown-toggle::after {
display: none;
}
.navbar-nav {
align-items: center;
}
.navbar-nav .nav-link {
position: relative;
cursor: pointer;
}
.qty-indicator {
position: absolute;
top: 0;
right: -5px;
display: flex;
justify-content: center;
align-items: center;
width: 18px;
height: 18px;
color: #fff;
font-size: 12px;
background: #0E606C;
border-radius: 100%;
}
.b-sidebar-header {
text-align: right;
}
.b-sidebar-body {
padding: 15px;
}
/* logo */
.store-logo img {
width: auto;
height: auto;
max-height: 53px;
}
/* sidebar-cart */
.sidebar {
padding-left: 0;
}
.b-sidebar .item {
position: relative;
width: 100%;
margin: 0 0 7.5px 0;
padding: 0 0 7.5px 0;
border-bottom: 1px solid #efefef;
}
.b-sidebar .item img {
background-color: #F8F9FB;
}
.b-sidebar .item.comapre-product img {
max-width: 100px;
}
.b-sidebar .item:last-child,
.b-sidebar .item:last-child:first-child {
margin: 0;
padding: 0;
border-bottom: 0;
}
.b-sidebar .item .attributes {
font-size: 14px;
color: #888;
}
.b-sidebar .item .deleteitem {
position: absolute;
top: 0;
right: 0;
cursor: pointer;
}
.b-sidebar .item .col a {
font-size: 16px;
font-weight: 500;
text-decoration: none;
}
.header-nav .bi-cart-check {
width: 40px;
margin: 6px 0 0 0;
}
/* menu toogler */
#sidebar-menu .b-sidebar-body {
padding: 0;
}
.menu-toggler {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
width: 50px;
height: 31px;
background-color: transparent !important;
border: 0 !important;
}
.menu-toggler span {
width: 30px;
height: 3px;
background: #000;
}
@media (min-width: 576px) {
.b-sidebar {
--bs-offcanvas-width: 530px;
}
}
@media (min-width: 992px) {
.menu-container {
align-items: flex-start;
}
.navbar-light .navbar-brand {
text-align: center;
}
.top-header-items {
justify-content: flex-end;
}
.menu-container, .store-logo, .top-header-items {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
}
@media (max-width: 991px) {
.header-nav {
position: -webkit-sticky;
position: sticky;
top: 0;
margin: 0 0 15px 0;
background: #fff;
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
z-index: 1034;
}
.header-nav > .navbar {
height: 58px;
}
.header-nav .navbar-brand img {
max-height: 45px;
}
.header-nav .top-header-items.navbar-nav {
flex-wrap: nowrap;
flex-shrink: 0;
}
.header-nav .top-header-items.navbar-nav .nav-item {
display: flex;
}
.header-nav .top-header-items .nav-link {
padding: .5rem .35rem;
}
.header-nav .top-header-items .b-icon.bi {
font-size: 20px;
}
.header-nav .contrast-switch {
display: none;
}
.header-nav .menu-container {
flex-shrink: 0;
}
.header-nav .store-logo {
min-width: 0;
flex-shrink: 1;
}
.header-nav .store-logo img {
max-width: 100%;
max-height: 40px;
}
}
@media (max-width: 420px) {
.header-nav .top-header-items .nav-link {
padding: .5rem .25rem;
}
.header-nav .top-header-items .qty-indicator {
width: 15px;
height: 15px;
font-size: 10px;
top: -3px;
right: -6px;
}
}
@media (max-width: 350px) {
.header-nav .store-logo img {
max-height: 30px;
}
.header-nav .top-header-items .b-icon.bi {
font-size: 18px;
}
}
@media (max-width: 575px) {
.sidebar-cart .item img {
max-width: 75px;
}
.sidebar-cart .item .col a {
display: table;
max-width: calc(100% - 15px);
font-size: 14px;
line-height: 1;
}
.sidebar-cart .item .price,
.sidebar-cart .item .quantity {
font-size: 14px;
}
.sidebar-cart .item .attributes {
font-size: 12px;
}
.sidebar-cart .b-sidebar-footer .h4 {
font-size: 20px;
}
.sidebar-cart .b-sidebar-footer .h5 {
font-size: 16px;
}
}
@media (max-width: 380px) {
.header-nav .navbar-brand img {
max-width: 120px;
}
}
/* phone: the header icons become a tab bar pinned to the bottom of the screen,
where a thumb reaches them. position:fixed still resolves against the viewport
from inside the sticky .header-nav (sticky is not a containing block), and it
stays in that element's z-index 1034 layer, so drawers (1045) and their
backdrop (1040) still cover it. */
@media (max-width: 767.98px) {
.header-nav .top-header-items.navbar-nav {
position: fixed;
left: 0;
right: 0;
bottom: 0;
align-items: stretch;
height: calc(60px + env(safe-area-inset-bottom, 0px));
margin: 0;
padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
background: #fff;
border-top: 1px solid #f2f2f2;
box-shadow: 0 -3px 6px rgba(0,0,0,0.12);
}
.header-nav .top-header-items li.nav-item {
flex: 1 1 0;
min-width: 0;
}
/* the switch is hidden on small screens; drop its cell as well */
.header-nav .top-header-items > .nav-item:has(.contrast-switch) {
display: none !important;
}
.header-nav .top-header-items ul {
display: flex;
flex: 1 1 0;
margin: 0;
list-style: none;
}
.header-nav .top-header-items .nav-link {
display: flex;
flex: 1 1 0;
align-items: center;
justify-content: center;
padding: 0;
}
.header-nav .top-header-items .b-icon.bi {
font-size: 24px;
}
/* the drawer triggers sit on the <i>, not the link: stretch it over the
whole cell so a tap anywhere in it (badge included) opens the drawer */
.header-nav .top-header-items .b-icon.bi::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
}
.header-nav .top-header-items .qty-indicator {
top: 10px;
right: calc(50% - 22px);
width: 18px;
height: 18px;
font-size: 11px;
}
body {
padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}
.up-btn {
bottom: calc(75px + env(safe-area-inset-bottom, 0px));
}
.voice-page-button {
bottom: calc(130px + env(safe-area-inset-bottom, 0px));
}
}
/* dark header */
[dark-theme="true"] .header-nav {
background-color: #2d3133;
border-bottom: none;
}
[dark-theme="true"] .menu-toggler span {
background: #fff;
}
[dark-theme="true"] .navbar-light .navbar-nav .nav-link {
color: #fff;
}
[dark-theme="true"] .qty-indicator {
background: #1FB0C7;
}
[dark-theme="true"] .sidebar-cart .item img {
background-color: #2d3133;
border: 1px solid #555;
}