Last active
October 2, 2022 15:21
-
-
Save pseudoeazy/62e3259eaba1b253ced7c02b86caec40 to your computer and use it in GitHub Desktop.
styles for react-context tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** css reset **/ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
font-family: Arial, Helvetica, sans-serif; | |
} | |
/*main page content*/ | |
.main-content { | |
display: flex; | |
flex-direction: column; | |
min-height: 80vh; | |
margin-top: 100px; | |
} | |
/*product*/ | |
.product-container { | |
width: 800px; | |
margin: 16px auto; | |
} | |
.product-details { | |
display: flex; | |
margin-top: 2em; | |
} | |
.product-image, | |
.product-info { | |
padding: 10px; | |
} | |
.product-image { | |
flex: 1; | |
font-size: 6em; | |
border: 1px solid #999; | |
} | |
table.product-info { | |
border-collapse: collapse; | |
flex: 2; | |
} | |
.product-info td { | |
border: 1px solid #999; | |
padding: 0.5rem; | |
text-align: left; | |
letter-spacing: 2px; | |
} | |
.product-info td:last-child { | |
line-height: 18px; | |
} | |
.additional-info { | |
border-left: 2px solid purple; | |
padding-left: 4px; | |
margin-bottom: 4px; | |
} | |
.add-to-cart { | |
display: flex; | |
justify-content: flex-end; | |
} | |
.favorites h2 { | |
margin-bottom: 32px; | |
} | |
.favorites { | |
max-width: 600px; | |
margin: 32px auto; | |
text-align: center; | |
} | |
.favorites ul { | |
text-align: left; | |
margin: 16px; | |
} | |
.button { | |
padding: 4px; | |
margin: 4px; | |
font-size: 20px; | |
cursor: pointer; | |
} | |
.update-quantity { | |
width: 124px; | |
display: flex; | |
padding: 2px; | |
margin-top: 0.4em; | |
background-color: #fdfefe; | |
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.5); | |
} | |
.quantity { | |
width: 40px; | |
text-align: center; | |
font-size: 20px; | |
} | |
.update-button { | |
width: 40px; | |
padding: 4px; | |
font-size: 20px; | |
border: none; | |
background-color: transparent; | |
cursor: pointer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment