This repository contains extracted style elements for templates for a demo client in Adapt Retail. We use this style in the following productions.
The purpose is to minimize the code you need to write for each project. When you have extracted the code, you can change it one place, and others get automatically updated.
npm install https://github.com/AdaptRetail/priceco-style
Import the full style after the variables
, mixins
and functions
.
@import "node_modules/@priceco/style/src/main.scss";
If you need to divide it up you can import section for section.
Contains the variables.
@import "node_modules/@priceco/style/src/Utilities/_all.scss";
Import after the mixins
and the functions
.
@import "node_modules/@priceco/style/src/Utilities/_all.scss";
All Sass the variables are set in src/style/Utilities/Variables.scss
.
Priceco main colors.
$priceco-blue
$priceco-red
$priceco-yellow
$priceco-blue-gradient
Contains base64
encoded strings of the image assets.
$priceco-logo
$priceco-price-bg
$priceco-price-match
$priceco-three-for-two
An example of this is the $priceco-logo
variable that contains a base64 string of the priceco logo.
.logo {
background: @include background-image( $priceco-logo );
}
The elements are built on a super responsive way, so it can be used in both print productions and responsive web banners in Adapt Retail.
Make sure there is no space between the
price integer
and theprice decimal
. Else there is getting a large space between them.
<div class="price">
<div class="price__number price__integer">11</div><div class="price__number price__decimal">90</div>
</div>
Price bombs are elements for get the attention to the price. This style has two to from.
<div class="bomb is-pricematch"></div>
<div class="bomb is-threefortwo"></div>