Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
253 changes: 109 additions & 144 deletions projectfolder/css/shopStyle.css
Original file line number Diff line number Diff line change
@@ -1,202 +1,167 @@
* {
margin: 0px;
padding: 0px;
box-sizing: content-box;
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: sans-serif;
line-height: 1.4;
}

p {
margin-bottom: 20px;
}
.product-description {
.clearfix::after {
content: '';
display: block;
clear: both;
}

.product-container {
border: black 4px solid;
width: 900px;
margin: 25px auto;
.container {
/* background-color: red; */
display: flex;
gap: 40px;
}

.product-img {
}

/* PRODUCT */
.product {
border: 4px solid black;
width: 825px;
margin: 50px auto;
position: relative;
}
.product-name {
background: #f7f7f7;
text-transform: uppercase;

.product-title {
text-align: center;
padding: 20px 0;
font-size: 22px;
text-transform: uppercase;
background-color: #f7f7f7;
padding: 15px;
}

.product-name::after {
content: 'SALE';
position: absolute;
top: 25px;
left: -25px;
background: red;
color: white;
letter-spacing: 2px;
padding: 5px 5px;
font-size: 12px;
width: 80px;
text-align: center;
/* PRODUCT INFORMATION */
.product-info {
/* (825 - 8 - 250 - 80) / 2 */
/* width: 243px; */
flex: 1;
margin-top: 20px;
}

.product-details {
text-transform: uppercase;
.product-price {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
font-size: 16px;
}

.price {
font-size: 24px;
}

.shipping {
font-size: 12px;
text-transform: uppercase;
font-weight: bold;
color: #777;
/* float: right; */
}

.price {
font-size: 25px;
margin-bottom: 0px;
/* float: left; */
}
.sale {
background-color: #ec2f2f;
color: #fff;
font-size: 12px;
text-transform: uppercase;
font-weight: bold;
letter-spacing: 2px;
padding: 7px 15px;
display: inline-block;
position: absolute;
top: -17px;
left: -38px;

/* Link styling */
.homepage:link {
color: #1098ad;
/* width: 40px;
text-align: center; */
}

.homepage:visited {
color: #1098ad;
}
.homepage:hover {
color: orangered;
text-decoration: none orangred;
}

a:link {
color: black;
text-decoration: underline black;
.product-description {
margin-bottom: 10px;
}

a:visited {
.more-info:link,
.more-info:visited {
color: black;
margin-bottom: 30px;
display: inline-block;
}

a:hover {
color: black;
.more-info:hover,
.more-info:active {
text-decoration: none;
}

/* Other stuff */

button {
width: 100%;
background-color: black;
text-transform: uppercase;
border: black solid 5px;
color: white;
font-size: 18px;
}

button:hover {
color: black;
background-color: white;
border: black solid 5px;
/* The above can be consolidated down into:
background-color: white
filter:invert(100%)
*/
}

ul {
margin-left: 15px;
margin-bottom: 10px;
.product-colors {
display: flex;
gap: 10px;
}

ul li {
list-style: square;
margin-bottom: 10px;
.color {
background-color: #000;
height: 22px;
width: 22px;
}

nav {
border: #1098ad solid 5px;
background-color: #ad2510;
opacity: 0.8;
justify-content: center;
.color-blue {
background-color: #2f6ee2;
}

.colored-boxes > div {
display: inline-block;
width: 15px;
height: 15px;
margin-right: 5px;
margin-bottom: 10px;
.color-red {
background-color: #ec2f2f;
}

.black {
background-color: black;
border: solid 5px black;
width: 5px;
height: 5px;
.color-yellow {
background-color: #f0bf1e;
}
.blue {
background-color: blue;
border: solid 5px blue;
width: 5px;
height: 5px;
.color-green {
background-color: #90cc20;
}
.red {
background-color: red;
border: solid 5px red;
width: 5px;
height: 5px;
.color-brown {
background-color: #885214;
}

.yellow {
background-color: yellow;
border: solid 5px yellow;
width: 5px;
height: 5px;
}
.green {
background-color: #00d500;
border: solid 5px #00d500;
width: 5px;
height: 5px;
/* PRODUCT DETAILS */
.product-details {
/* width: 243px; */
margin-top: 20px;
flex: 1;
}
.brown {
background-color: brown;
border: solid 5px brown;
width: 5px;
height: 5px;

.details-title {
text-transform: uppercase;
font-size: 16px;
margin-bottom: 15px;
}

/* Floats */
.product-image {
/* float: left; */
margin-right: 40px;
.details-list {
list-style: square;
margin-left: 20px;
}

.product-details-container {
/* background-color: yellow; */
/* width: 243px; */
height: 250px;
/* float: left; */
padding: 0px 40px;
/* margin-top: 20px; */
.details-list li {
margin-bottom: 10px;
}

.shippipng-container {
display: flex;
/* BUTTON */
.add-cart {
background-color: #000;
border: none;
color: #fff;
font-size: 20px;
text-transform: uppercase;
cursor: pointer;
padding: 15px;
width: 100%;
border-top: 4px solid black;
}
.product-info-container {
/* width: 243px; */
/* background-color: blue; */
/* float: left; */

height: 250px;
margin-right: 40px;
/* margin-top: 20px; */
.add-cart:hover {
color: #000;
background-color: #fff;
}
Loading