/**
* Custom tag and its styles for 'sale tag'
* Use below tag in your application
* If it is used for rates (big rate/small rate/ strikethrough rates), then refer
* below given classes for 'amadeus-hos-res-ct-sale-tag' wrapper i.e. 'amadeus-hos-res-ct-big-rate'.
*
% Sale
*/
amadeus-hos-res-ct-sale-tag {
display: flex;
align-items: center;
margin-right: 21px;
height: 26px;
width: auto;
background: $promotions-bg-color;
color: $label-text-color;
padding: 0 8px 0 10px;
position: relative;
font-size: convertPxToRem(13px);
font-weight: $font-weight-regular;
&:after {
content: "";
position: absolute;
right: -13px;
top: 0;
border-top: 13px solid transparent;
border-bottom: 13px solid transparent;
border-left: 13px solid $promotions-bg-color;
}
}
/**
* Custom tag and its styles for 'full box sale tag' when promotion is there
* Use below tag in your application
* if label text is there, it is left align and it has promotion timer available along with it then positioning will be 'justify-content-between'
* else if only timer is there then use 'justify-content-end'(apply these classes with conditions in DOM)
*
${SaleTagIconTemplate()}
label Text
Expires in label
Timer value
* And to highlight full box, have to use below custom class as well
* Custom class for 'sale tag on full box highlighted'
* It is used conditionally for highlighting list or grid view tile when promotions is there
*
*/
amadeus-hos-res-ct-full-box-sale-tag {
width: 100%;
display: flex;
background-color: $promotions-bg-color;
color: $label-text-color;
font-size: convertPxToRem(15px);
font-weight: $font-weight-bold;
min-height: 38px;
padding: 10px;
text-transform: uppercase;
.sale-tag {
&-icon-wrapper {
padding-right: 5px;
}
&-icon svg {
fill: $label-text-color;
stroke: $label-text-color;
stroke-width: 0.75px;
}
}
.promotion-timer-text {
font-weight: $font-weight-regular;
text-transform: initial;
&_label {
padding-right: 2px;
color: $label-text-color;
}
&_time {
min-width: 95px;
text-align: right;
color: $label-text-color;
}
}
}
.amadeus-hos-res-cn-sale-tag-on-box-highlighted {
border: 1px solid $promotions-bg-color;
}
/*************************************************************************************/
/**
* Media Queries
*/
/**
* media query for max-width 992px
*/
@include amadeusHosResWcMediaBreakpointDown(md) {
/* Styles for 'sales tag' */
amadeus-hos-res-ct-sale-tag {
margin-right: 27px;
height: 23px;
padding: 0 8px 0 10px;
font-size: convertPxToRem(12px);
text-transform: uppercase;
&:after {
right: -11.5px;
border-top: 11.5px solid transparent;
border-bottom: 11.5px solid transparent;
border-left: 11.5px solid $promotions-bg-color;
}
}
/* Styles for 'full box sales tag' */
amadeus-hos-res-ct-full-box-sale-tag {
font-size: convertPxToRem(12px);
min-height: 30px;
padding: 8px;
justify-content: start !important;
flex-wrap: wrap;
.sale-tag {
&-icon-wrapper {
height: 100%;
display: flex;
align-items: center;
}
&-icon svg {
stroke-width: 0.6px;
}
}
.promotion-timer-text {
padding-left: 25px;
&_time {
min-width: 82px;
text-align: right;
}
}
}
}
/**
* Media Queries for pixel density
*/
@include webkitDevicePixelRatio(1) {
/**
* media query for max-width 992px
*/
@include amadeusHosResWcMediaBreakpointDown(md) {
/* Styles for 'sales tag' */
amadeus-hos-res-ct-sale-tag {
margin-right: 27px;
height: 23px;
padding: 0 8px 0 10px;
font-size: convertPxToRem(12px);
text-transform: uppercase;
&:after {
right: -11.5px;
border-top: 11.5px solid transparent;
border-bottom: 11.5px solid transparent;
border-left: 11.5px solid $promotions-bg-color;
}
}
/* Styles for 'full box sales tag' */
amadeus-hos-res-ct-full-box-sale-tag {
font-size: convertPxToRem(12px);
min-height: 30px;
padding: 8px;
justify-content: start !important;
flex-wrap: wrap;
.sale-tag {
&-icon-wrapper {
height: 100%;
display: flex;
align-items: center;
}
&-icon svg {
stroke-width: 0.6px;
}
}
.promotion-timer-text {
padding-left: 25px;
&_time {
min-width: 82px;
text-align: right;
}
}
}
}
}