Last active
August 22, 2018 12:22
-
-
Save tecpromotion/84e60162ca75ba4c56233ef261a7e253 to your computer and use it in GitHub Desktop.
Shopware Theme: Defines the delivery status for products with custom colours.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Delivery information | |
| ========================================= | |
| Defines the delivery status for products (e.g. detail page, note). | |
| The styling includes the base styling and the delivery states. | |
| ``` | |
| <div class="product--delivery"> | |
| <p class="delivery--information"> | |
| <span class="delivery--text delivery--text-available"> | |
| <i class="delivery--status-icon delivery--status-available"></i> | |
| delivery--text-available | |
| </span> | |
| </p> | |
| </div> | |
| <div class="product--delivery"> | |
| <p class="delivery--information"> | |
| <span class="delivery--text delivery--text-more-is-coming"> | |
| <i class="delivery--status-icon delivery--status-more-is-coming"></i> | |
| delivery--text-more-is-coming | |
| </span> | |
| </p> | |
| </div> | |
| <div class="product--delivery"> | |
| <p class="delivery--information"> | |
| <span class="delivery--text delivery--text-shipping-free"> | |
| <i class="delivery--status-icon delivery--status-shipping-free"></i> | |
| delivery--text-shipping-free | |
| </span> | |
| </p> | |
| </div> | |
| <div class="product--delivery"> | |
| <p class="delivery--information"> | |
| <span class="delivery--text delivery--text-not-available"> | |
| <i class="delivery--status-icon delivery--status-not-available"></i> | |
| delivery--text-not-available | |
| </span> | |
| </p> | |
| </div> | |
| ``` | |
| */ | |
| @not-available-color: #e74c3c; | |
| @available-color: #ab273c; | |
| @more-is-coming-color: #ccaf86; | |
| .product--delivery { | |
| .delivery--status-not-available { | |
| background: @not-available-color; | |
| } | |
| .delivery--text-not-available { | |
| color: @not-available-color; | |
| } | |
| .deliver--status-available { | |
| background: @available-color; | |
| } | |
| .delivery--text-available { | |
| color: @available-color; | |
| } | |
| delivery--status-more-is-coming { | |
| background: @more-is-coming-color; | |
| } | |
| .delivery--text-more-is-coming { | |
| color: @more-is-coming-color; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to add to your Responsive-child-Theme: