Skip to content

Commit

Permalink
feat: minor style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Dec 18, 2023
1 parent 75b6513 commit abb2f11
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
8 changes: 7 additions & 1 deletion src/components/Basket/Basket.module.scss
@@ -1,4 +1,6 @@
.basketWrapper {
height: 7em;
width: 7em;
margin: 1rem;
padding: 0 1rem;
display: flex;
Expand All @@ -8,9 +10,13 @@
align-items: center;
flex-direction: row-reverse;
justify-content: space-between;
border: 1px solid #f9ba49;
border-radius: 50%;
color: #000;

&:hover {
outline: 1px solid white;
background: #f9ba49;
}

.cart {
Expand All @@ -23,7 +29,7 @@
.productsCount {
z-index: 1;
font-size: 2em;
font-weight: bold;
top: 38px;
color: orange;
}
}
6 changes: 3 additions & 3 deletions src/components/CartItem/CartItem.module.scss
@@ -1,11 +1,11 @@
.cartItemWrapper {
display: flex;
border-top: 1px dotted;
border-left: 1px dotted;
border-right: 1px dotted;
border: 1px dotted #333;
border-radius: 5px;
padding: .3rem .5rem;
align-items: center;
min-height: 200px;
margin-bottom: 1em;

h3 {
color: #007185;
Expand Down
5 changes: 4 additions & 1 deletion src/components/ProductItem/ProductItem.module.scss
Expand Up @@ -15,7 +15,8 @@
}

button {
background-color: #fbd815;
background-color: #f9ba49;
font-weight: bold;
width: 13rem;
padding: .5rem;
font-size: 1.1em;
Expand All @@ -32,6 +33,8 @@
&:disabled {
opacity: .5;
background-color: lightgray;
color: #007185;
cursor: not-allowed;
}
}
}
Expand Down
24 changes: 15 additions & 9 deletions src/components/Quantifier/Quantifier.module.scss
Expand Up @@ -18,18 +18,16 @@
resize: vertical;
}

input[type="button"] {
-webkit-appearance: button;
cursor: pointer;
}

// Removing spin cursors in `input[type="number"]`
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}

input[type='button'] {
background-color: #eeeeee;
cursor: pointer;
background-color: #f9ba49;
color: #000;
border: none;
width: 30px;
transition: all 300ms ease;
Expand All @@ -40,13 +38,21 @@
position: relative;

&:hover {
background-color: #D5D9D9;
background-color: #eecf1d;
}
}

.buttonPlus {
border-radius: 0 5px 5px 0;
}

.buttonMinus {
border-radius: 5px 0 0 5px;
}

input[type="number"] {
-moz-appearance: textfield;
-webkit-appearance: none;
width: 50px;
border-top: 1px solid #f9ba49;
border-bottom: 1px solid #f9ba49;
}
}

0 comments on commit abb2f11

Please sign in to comment.