Minicart

There are no notes for this item.

<div class="minicart" id="minicart">
    <div class="minicart__body">
        <ul class="minicart__list">
            <li class="minicart-item">
                <div class="minicart-item__product">
                    <h3 class="minicart-item__name">Commerce Single License</h3>
                    <p class="minicart-item__quantity">
                        Quantity: 1
                    </p>
                </div>
                <div class="minicart-item__numbers">
                    <span class="minicart-item__subtotal">€299.00</span>
                </div>
            </li>
            <li class="minicart-item">
                <div class="minicart-item__product">
                    <h3 class="minicart-item__name">Redactor Subscription</h3>
                    <p class="minicart-item__quantity">
                        Quantity: 5
                    </p>
                </div>
                <div class="minicart-item__numbers">
                    <span class="minicart-item__subtotal">€125.00</span>
                </div>
            </li>
            <li class="minicart-item">
                <div class="minicart-item__product">
                    <h3 class="minicart-item__name">MoreGallery Single License</h3>
                    <p class="minicart-item__quantity">
                        Quantity: 1
                    </p>
                </div>
                <div class="minicart-item__numbers">
                    <span class="minicart-item__subtotal">€50.00</span>
                </div>
            </li>
        </ul>
    </div>

    <div class="minicart__summary">
        <div class="minicart__total">
            <span class="minicart__total-label">Total:</span>
            <span class="minicart__total-value">€474.00</span>
        </div>
    </div>

    <form class="minicart__footer" method="post" action="checkout/">
        <input type="hidden" name="checkout" value="1">

        <div class="btn-group">
            <a href="cart.html" class="btn btn--secondary">Cart</a>
            <button type="submit" href="checkout/" class="btn btn--primary">Checkout</button>
        </div>

    </form>
</div>
/* No context defined for this component. */
  • Content:
    // =============================================================================
    // Minicart
    // =============================================================================
    
    .minicart {
    	visibility: hidden;
    	opacity: 0;
    	position: absolute;
    	right: 15px;
    	top: 40px;
    	width: 350px;
    	border-radius: 8px;
    	background: $color-grey-xlight;
    	color: $color-text-base;
    	border: 1px solid $color-grey-xlight-tint;
    	box-shadow: 8px 20px 30px rgba(39,44,49,.05), 1px 6px 12px rgba(39,44,49,.04);
    	text-transform: none;
    	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    
    	&:before {
    		content: '';
    		position: absolute;
    		top: -8px;
    		right: 15px;
    		display: block;
    		width: 0;
    		height: 0;
    		border-left: 8px solid transparent;
    		border-right: 8px solid transparent;
    		border-bottom: 8px solid $color-grey-xlight;
    	}
    }
    
    .minicart.is-active {
    	visibility: visible;
    	opacity: 1;
    	transform: translateY(6px);
    }
    
    .minicart__body {
    	padding: 0.2rem 1rem;
    }
    
    .minicart__list {
    	margin: 0;
    	padding: 0;
    	list-style: none;
    }
    
    li.minicart-item {
    	display: flex!important;
    	align-items: flex-start;
    	justify-content: space-between;
    	border-bottom: 1px solid darken($color-grey-xlight-tint, 5%);
    	padding: 0.8rem 0 !important;
    }
    
    .minicart-item__name {
    	line-height: 1;
    	margin: 0 0 0.4rem;
    	font-size: 0.9rem;
    	font-family: $font-family-body;
    	font-weight: bold;
    	color: $color-text-base;
    }
    
    .minicart-item__quantity {
    	margin: 0;
    	font-size: 0.8rem;
    	color: $color-charcoal;
    	opacity: 0.9;
    }
    
    .minicart-item__numbers {
    	margin-left: 10px;
    	display: flex;
    	align-items: flex-start;
    }
    
    .minicart-item__subtotal {
    	margin: 0;
    	font-size: 0.9rem;
    }
    
    .minicart__total {
    	display: flex;
    	justify-content: space-between;
    	padding: 0.5rem 1rem 0.8rem 1rem;
    	font-weight: bold;
    	font-size: 0.9rem;
    }
    
    .minicart__footer {
    	display: flex;
    	padding: 0 1rem 0.5rem 1rem;
    	justify-content: space-between;
    }
    
    .btn-group {
    	display: flex;
    	align-items: center;
    	justify-content: center;
    	width: 100%;
    
    	.btn:first-child {
    		border-radius: 4px 0 0 4px;
    		border-right: 0;
    		color: $color-primary;
    
    		&:hover {
    			color: $color-white;
    		}
    	}
    
    	.btn:last-child {
    		border-radius: 0 4px 4px 0;
    	}
    }
    
    .btn {
    	display: flex !important;
    	align-items: center;
    	justify-content: center;
    	width: 50%;
    	margin: 0;
    	padding: 0.6rem 0 !important;
    	font-weight: bold;
    	font-size: 0.9rem;
    	line-height: 1;
    	border: 1px solid $color-grey-xlight-tint;
    	background: $color-white;
    	color: $color-primary;
    
    	&:hover {
    		background: $color-primary;
    		border-color: $color-primary;
    		color: $color-white;
    		text-decoration: none;
    		cursor: pointer;
    	}
    }
    
  • URL: /components/raw/minicart/minicart.scss
  • Filesystem Path: components/02-components/minicart/minicart.scss
  • Size: 2.6 KB