Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,139 +1,140 @@
|
|
| 1 |
-
/* Layout */
|
| 2 |
-
/* * The designs were created to the following widths:
|
| 3 |
-
* - Mobile: 375px
|
| 4 |
-
* - Desktop: 1440px
|
| 5 |
-
* * Ensure content is responsive and meets WCAG requirements
|
| 6 |
-
* by testing the full range of screen sizes from 320px to large screens.
|
| 7 |
-
*/
|
| 8 |
-
|
| 9 |
-
/* Colors */
|
| 10 |
-
|
| 11 |
-
/* Primary */
|
| 12 |
-
:root {
|
| 13 |
-
--green-500: hsl(158, 36%, 37%);
|
| 14 |
-
--green-700: hsl(158, 42%, 18%);
|
| 15 |
-
|
| 16 |
-
/* Neutral */
|
| 17 |
-
--black: hsl(212, 21%, 14%);
|
| 18 |
-
--grey: hsl(228, 12%, 48%);
|
| 19 |
-
--cream: hsl(30, 38%, 92%);
|
| 20 |
-
--white: hsl(0, 0%, 100%);
|
| 21 |
-
|
| 22 |
-
/* Typography */
|
| 23 |
-
--font-size-paragraph: 14px;
|
| 24 |
-
|
| 25 |
-
/* Font */
|
| 26 |
-
--font-montserrat: 'Montserrat', sans-serif; /* Make sure you've imported this font */
|
| 27 |
-
--font-fraunces: 'Fraunces', serif; /* Make sure you've imported this font */
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
/* Example usage */
|
| 31 |
-
body {
|
| 32 |
-
font-size: var(--font-size-paragraph);
|
| 33 |
-
/* color: var(--black);*/
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
h1 {
|
| 37 |
-
font-family: var(--font-fraunces);
|
| 38 |
-
font-weight: 700;
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
p {
|
| 42 |
-
font-family: var(--font-montserrat);
|
| 43 |
-
font-weight: 500;
|
| 44 |
-
margin: 0;
|
| 45 |
-
}
|
| 46 |
-
|
| 47 |
-
.primary-button {
|
| 48 |
-
background-color: var(--green-500);
|
| 49 |
-
color: var(--white);
|
| 50 |
-
/* other styles */
|
| 51 |
-
}
|
| 52 |
-
|
| 53 |
-
.primary-button:hover {
|
| 54 |
-
background-color: var(--green-700);
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
/* Add more CSS rules as needed based on your design */
|
| 58 |
-
|
| 59 |
-
body {
|
| 60 |
-
background: var(--cream);
|
| 61 |
-
display: flex;
|
| 62 |
-
justify-content: center;
|
| 63 |
-
align-items: center;
|
| 64 |
-
min-height: 100vh;
|
| 65 |
-
}
|
| 66 |
-
|
| 67 |
-
.container {
|
| 68 |
-
/* background-color: white; */
|
| 69 |
-
/* border-radius: 20px; */
|
| 70 |
-
overflow: hidden;
|
| 71 |
-
/* background-color: var(--white); */
|
| 72 |
-
max-width: 700px;
|
| 73 |
-
width: 90%;
|
| 74 |
-
display: flex;
|
| 75 |
-
flex-direction: column;
|
| 76 |
-
border-radius: 20px;
|
| 77 |
-
}
|
| 78 |
-
|
| 79 |
-
.image{
|
| 80 |
-
width: 100%;
|
| 81 |
-
height: 100%;
|
| 82 |
-
object-fit: cover;
|
| 83 |
-
}
|
| 84 |
-
|
| 85 |
-
img{
|
| 86 |
-
border-radius: 20px 20px 0 0;
|
| 87 |
-
}
|
| 88 |
-
.product-info{
|
| 89 |
-
width: 100%;
|
| 90 |
-
height: 100%;
|
| 91 |
-
display: flex;
|
| 92 |
-
flex-direction: column;
|
| 93 |
-
justify-content: center;
|
| 94 |
-
background-color: var(--white);
|
| 95 |
-
border-radius: 0 0 20px 20px;
|
| 96 |
-
padding: 30px;
|
| 97 |
-
}
|
| 98 |
-
|
| 99 |
-
.product-info h1{
|
| 100 |
-
font-size: 24px;
|
| 101 |
-
margin-bottom: 10px;
|
| 102 |
-
}
|
| 103 |
-
.product-info p{
|
| 104 |
-
font-size: 16px;
|
| 105 |
-
margin-bottom: 20px;
|
| 106 |
-
}
|
| 107 |
-
.brand{
|
| 108 |
-
font-size: 14px;
|
| 109 |
-
color: var(--grey);
|
| 110 |
-
}
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
@media (min-width: 768px) {
|
| 114 |
-
.container {
|
| 115 |
-
flex-direction: row;
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
|
|
|
| 139 |
}
|
|
|
|
| 1 |
+
/* Layout */
|
| 2 |
+
/* * The designs were created to the following widths:
|
| 3 |
+
* - Mobile: 375px
|
| 4 |
+
* - Desktop: 1440px
|
| 5 |
+
* * Ensure content is responsive and meets WCAG requirements
|
| 6 |
+
* by testing the full range of screen sizes from 320px to large screens.
|
| 7 |
+
*/
|
| 8 |
+
|
| 9 |
+
/* Colors */
|
| 10 |
+
|
| 11 |
+
/* Primary */
|
| 12 |
+
:root {
|
| 13 |
+
--green-500: hsl(158, 36%, 37%);
|
| 14 |
+
--green-700: hsl(158, 42%, 18%);
|
| 15 |
+
|
| 16 |
+
/* Neutral */
|
| 17 |
+
--black: hsl(212, 21%, 14%);
|
| 18 |
+
--grey: hsl(228, 12%, 48%);
|
| 19 |
+
--cream: hsl(30, 38%, 92%);
|
| 20 |
+
--white: hsl(0, 0%, 100%);
|
| 21 |
+
|
| 22 |
+
/* Typography */
|
| 23 |
+
--font-size-paragraph: 14px;
|
| 24 |
+
|
| 25 |
+
/* Font */
|
| 26 |
+
--font-montserrat: 'Montserrat', sans-serif; /* Make sure you've imported this font */
|
| 27 |
+
--font-fraunces: 'Fraunces', serif; /* Make sure you've imported this font */
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/* Example usage */
|
| 31 |
+
body {
|
| 32 |
+
font-size: var(--font-size-paragraph);
|
| 33 |
+
/* color: var(--black);*/
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
h1 {
|
| 37 |
+
font-family: var(--font-fraunces);
|
| 38 |
+
font-weight: 700;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
p {
|
| 42 |
+
font-family: var(--font-montserrat);
|
| 43 |
+
font-weight: 500;
|
| 44 |
+
margin: 0;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.primary-button {
|
| 48 |
+
background-color: var(--green-500);
|
| 49 |
+
color: var(--white);
|
| 50 |
+
/* other styles */
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.primary-button:hover {
|
| 54 |
+
background-color: var(--green-700);
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
/* Add more CSS rules as needed based on your design */
|
| 58 |
+
|
| 59 |
+
body {
|
| 60 |
+
background: var(--cream);
|
| 61 |
+
display: flex;
|
| 62 |
+
justify-content: center;
|
| 63 |
+
align-items: center;
|
| 64 |
+
min-height: 100vh;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.container {
|
| 68 |
+
/* background-color: white; */
|
| 69 |
+
/* border-radius: 20px; */
|
| 70 |
+
overflow: hidden;
|
| 71 |
+
/* background-color: var(--white); */
|
| 72 |
+
max-width: 700px;
|
| 73 |
+
width: 90%;
|
| 74 |
+
display: flex;
|
| 75 |
+
flex-direction: column;
|
| 76 |
+
border-radius: 20px;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.image{
|
| 80 |
+
width: 100%;
|
| 81 |
+
height: 100%;
|
| 82 |
+
object-fit: cover;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
img{
|
| 86 |
+
border-radius: 20px 20px 0 0;
|
| 87 |
+
}
|
| 88 |
+
.product-info{
|
| 89 |
+
width: 100%;
|
| 90 |
+
height: 100%;
|
| 91 |
+
display: flex;
|
| 92 |
+
flex-direction: column;
|
| 93 |
+
justify-content: center;
|
| 94 |
+
background-color: var(--white);
|
| 95 |
+
border-radius: 0 0 20px 20px;
|
| 96 |
+
padding: 30px;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
.product-info h1{
|
| 100 |
+
font-size: 24px;
|
| 101 |
+
margin-bottom: 10px;
|
| 102 |
+
}
|
| 103 |
+
.product-info p{
|
| 104 |
+
font-size: 16px;
|
| 105 |
+
margin-bottom: 20px;
|
| 106 |
+
}
|
| 107 |
+
.brand{
|
| 108 |
+
font-size: 14px;
|
| 109 |
+
color: var(--grey);
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
@media (min-width: 768px) {
|
| 114 |
+
.container {
|
| 115 |
+
flex-direction: row;
|
| 116 |
+
align-items: stretch;
|
| 117 |
+
/* border-radius: 15px 15 15 0; */
|
| 118 |
+
}
|
| 119 |
+
.image, .product-info{
|
| 120 |
+
width: 50%;
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
}
|
| 124 |
+
.product-info{
|
| 125 |
+
border-radius: 0 20px 20px 0;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
img {
|
| 130 |
+
border-radius: 20px 0 0 20px;
|
| 131 |
+
width: 100%;
|
| 132 |
+
height: 100%;
|
| 133 |
+
object-fit: cover;
|
| 134 |
+
|
| 135 |
+
}
|
| 136 |
+
button {
|
| 137 |
+
width: 100%;
|
| 138 |
+
border-radius: 20px;
|
| 139 |
+
}
|
| 140 |
}
|