Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p {
- margin: 0;
- }
- h1:has(~ *),
- h2:has(~ *),
- h3:has(~ *),
- h4:has(~ *),
- h5:has(~ *),
- h6:has(~ *) {
- margin: 0;
- }
- ul {
- list-style-type: none;
- padding-inline-start: 0;
- margin: 0;
- }
- button {
- width: fit-content;
- padding: 0.5rem 1rem;
- border: 1px solid #e5e5e5;
- border-radius: 1rem;
- /* background gradient */
- background-image: linear-gradient(
- to bottom,
- #ffffff 0%,
- #ffffff 51%,
- #f5f5f5 100%
- );
- cursor: pointer;
- }
- button:disabled {
- cursor: not-allowed;
- }
- button:hover {
- background-image: linear-gradient(
- to bottom,
- #ffffff 0%,
- #ffffff 51%,
- #e5e5e5 100%
- );
- }
- button:focus {
- outline: none;
- box-shadow: 0 0 0 1px #d6d6d6;
- }
- button:active {
- background-image: linear-gradient(
- to top,
- #ffffff 0%,
- #ffffff 51%,
- #f5f5f5 100%
- );
- }
- .badge {
- display: inline-block;
- padding: 0.5rem 1rem;
- border-radius: 1rem;
- background: #f5f5f5;
- border: 1px solid #e5e5e5;
- color: #000;
- font-size: 0.75rem;
- font-weight: 600;
- }
- .img-cont img {
- width: 100%;
- object-fit: cover;
- }
- .dropdown {
- position: relative;
- }
- .dropdown .content {
- position: absolute;
- top: calc(100% + 1rem);
- right: 0;
- width: max-content;
- visibility: hidden;
- opacity: 0;
- transition: all 0.12s ease;
- pointer-events: none;
- }
- .dropdown .trigger.group :first-child {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
- .dropdown .trigger.group :last-child {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- .dropdown .trigger:focus ~ .content,
- .dropdown .trigger:focus-within ~ .content,
- .content:focus,
- .content:focus-within,
- .content:hover {
- visibility: visible;
- opacity: 1;
- pointer-events: auto;
- }
- .app-header {
- position: sticky;
- top: 0;
- background: #fff;
- padding: 0 1rem;
- border-bottom: 1px solid #e5e5e5;
- }
- .app-header > .wrapper {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 1rem 0;
- max-width: 60rem;
- margin: 0 auto;
- }
- .app-section {
- padding: 1rem;
- }
- .app-section > .wrapper {
- max-width: 76rem;
- margin: 0 auto;
- }
- .products-header {
- margin: 1rem 0;
- padding: 2rem;
- border: 1px solid #e5e5e5;
- border-radius: 1rem;
- }
- .products-header > .wrapper {
- display: flex;
- flex-direction: column;
- /* gap: 1rem; */
- }
- .products-header .caption {
- font-size: 2rem;
- font-weight: 600;
- margin: 0;
- }
- .products-list {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
- gap: 1rem;
- padding: 1rem 0;
- }
- .product {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- gap: 1rem;
- padding: 1rem;
- border-radius: 1.5rem;
- background: #fff;
- border: 1px solid #e5e5e5;
- }
- .product-image {
- height: 16rem;
- border-radius: 1rem;
- overflow: hidden;
- }
- .product-image img {
- height: 100%;
- }
- .product-price {
- font-size: 2rem;
- font-weight: 600;
- }
- .cart {
- background: #fff;
- border: 1px solid #e5e5e5;
- border-radius: 2rem;
- overflow: auto;
- }
- .cart .cart-header {
- padding: 1rem;
- }
- .cart .items {
- display: flex;
- flex-direction: column;
- max-height: calc(100vh - 12rem);
- }
- .cart .item {
- display: flex;
- gap: 1rem;
- padding: 1rem;
- border-top: 1px solid #e5e5e5;
- cursor: pointer;
- }
- .cart .item:hover,
- .cart .item:focus {
- background: #f5f5f5;
- }
- .cart .item-details {
- display: flex;
- flex-direction: column;
- gap: 0.5rem;
- }
- /* .cart .item:last-of-type {
- border-bottom: none;
- } */
- .cart .item-image {
- /* height: 4rem; */
- width: 4rem;
- overflow: hidden;
- border-radius: 1rem;
- border: 1px solid #e5e5e5;
- }
- .cart .item-image img {
- height: 100%;
- object-fit: cover;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement