Removed Mixins as it is not so useful, just one line

parent 3130d338
@import '~styles/variables'; @import '~styles/variables';
@import '~styles/mixins';
.appHeader { .appHeader {
height: $large-footer-height; height: $large-footer-height;
...@@ -7,9 +6,10 @@ ...@@ -7,9 +6,10 @@
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
box-shadow: 0 0 2px 0 rgba-background($primary-black, .24), 0 2px 2px 0 rgba-background($primary-black, .12); box-shadow: 0 0 2px 0 rgba($primary-black, .24), 0 2px 2px 0 rgba($primary-black, .12);
background: $primary-white; background: $primary-white;
@include flex-box(); display: flex;
justify-content: center;
h1 { h1 {
color: $primary; color: $primary;
......
@import '~styles/variables'; @import '~styles/variables';
@import '~styles/mixins';
.loadingAnimation { .loadingAnimation {
@include flex-box(); display: flex;
align-items: center;
justify-content: center;
height: 100%; height: 100%;
.loader { .loader {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
padding: 1rem; padding: 1rem;
background-color: rgba(0, 0, 0, 0.7); background-color: rgba($primary-black, .7);
z-index: 100; z-index: 100;
opacity: 1; opacity: 1;
overflow: hidden; overflow: hidden;
......
...@@ -36,7 +36,7 @@ class PDPPage extends Component { ...@@ -36,7 +36,7 @@ class PDPPage extends Component {
</div> </div>
<div className={style.details}> <div className={style.details}>
<h1>{name}</h1> <h1>{name}</h1>
<div>{`Price: ${sellingPrice}`}</div> <div className={style.sellingPrice}>{`Price: ${sellingPrice}`}</div>
</div> </div>
</div> </div>
<ImageCarousel <ImageCarousel
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
padding: 15px; padding: 15px;
flex-wrap: wrap; flex-wrap: wrap;
.images {} .sellingPrice {
color: $primary;
.details { font-weight: bold;
// width: 50%; margin-top: 5px;
} }
} }
......
@import '~styles/variables'; @import '~styles/variables';
@import '~styles/mixins';
.PLPPage { .PLPPage {
margin-top: $large-footer-height; margin-top: $large-footer-height;
......
@mixin flex-box($display: flex, $direction: row, $alignItems: center, $justifyContent: center) {
display: $display;
flex-direction: $direction;
align-items: $alignItems;
justify-content: $justifyContent;
}
@function rgba-background($hexcolor, $opacity:1) {
@return rgba($hexcolor, $opacity);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment