some additional tweaks to CSS + addressed some accessibility concerns
This commit is contained in:
		
							parent
							
								
									75c631c7ef
								
							
						
					
					
						commit
						0b65465793
					
				|  | @ -8,20 +8,17 @@ | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| :root { | :root { | ||||||
|     --site-color: hsl(185, 75%, 39%); |  | ||||||
|     --dark-cyan: hsl(185, 75%, 39%); |     --dark-cyan: hsl(185, 75%, 39%); | ||||||
|     --dark-grayish-blue: hsl(227, 10%, 46%); |     --dark-grayish-blue: hsl(227, 10%, 46%); | ||||||
|     --very-dark-desaturated-blue: hsl(229, 23%, 23%); |     --very-dark-desaturated-blue: hsl(229, 23%, 23%); | ||||||
|     --dark-gray: hsl(0, 0%, 59%); |     --dark-gray: hsl(0, 0%, 59%); | ||||||
|     --border-gray: hsla(228, 9%, 92%, 1); |     --border-gray: hsla(228, 9%, 92%, 1); | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|     /* default font stuff */ |     /* default font stuff */ | ||||||
|     --page-base-font-size: 16px; /* for rem calculations*/ |     --page-base-font-size: 16px; /* for rem calculations*/ | ||||||
|     --default-font-size: 18px; |     --default-font-size: 18px; | ||||||
|     --location-font-size: 14px; |     --location-font-size: 14px; | ||||||
|     --label-font-size: 10px; |     --label-font-size: 10px; | ||||||
| 
 |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| html { | html { | ||||||
|  | @ -30,7 +27,7 @@ html { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| body { | body { | ||||||
|     background-color: var(--site-color); |     background-color: var(--dark-cyan); | ||||||
|     font-size: var(--default-font-size); |     font-size: var(--default-font-size); | ||||||
|     font-weight: 700; |     font-weight: 700; | ||||||
|     font-family: 'Kumbh Sans', sans-serif; |     font-family: 'Kumbh Sans', sans-serif; | ||||||
|  | @ -78,6 +75,12 @@ body { | ||||||
| .nameAndAge { | .nameAndAge { | ||||||
|     margin-top: 4.5rem; |     margin-top: 4.5rem; | ||||||
|     display: inline-flex; |     display: inline-flex; | ||||||
|  |     padding-bottom: 0.25rem; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .border { | ||||||
|  |     border: 1px solid var(--border-gray); | ||||||
|  |     margin-top: 1.5rem; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .stats { | .stats { | ||||||
|  | @ -98,11 +101,7 @@ body { | ||||||
|     font-size: var(--location-font-size); |     font-size: var(--location-font-size); | ||||||
| 
 | 
 | ||||||
|     margin-top: 0.5rem; |     margin-top: 0.5rem; | ||||||
| } |     padding-bottom: 0.25rem; | ||||||
| 
 |  | ||||||
| .border { |  | ||||||
|     border: 1px solid var(--border-gray); |  | ||||||
|     margin-top: 1.5rem; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .label { | .label { | ||||||
|  | @ -111,6 +110,7 @@ body { | ||||||
|     color: var(--dark-grayish-blue); |     color: var(--dark-grayish-blue); | ||||||
| 
 | 
 | ||||||
|     margin-top: 0.5625rem; |     margin-top: 0.5625rem; | ||||||
|  |     padding-bottom: 0.1875rem; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .topCircle, .bottomCircle { | .topCircle, .bottomCircle { | ||||||
|  |  | ||||||
|  | @ -17,46 +17,50 @@ | ||||||
|   </style> --> |   </style> --> | ||||||
| </head> | </head> | ||||||
| <body> | <body> | ||||||
|   <div class="page"> |   <main> | ||||||
|     <div class="topCircle"></div> |     <div class="page"> | ||||||
|     <div class="card"> |       <div class="topCircle"></div> | ||||||
|       <div class="details"> |       <div class="card"> | ||||||
|         <div class="cardHeader"> |         <div class="details"> | ||||||
|           <div class="photo"></div> |           <div class="cardHeader"> | ||||||
|         </div> |             <div class="photo"></div> | ||||||
|         <div class="nameAndAge"> |           </div> | ||||||
|           <div class="name"> |           <div class="nameAndAge"> | ||||||
|             Victor Crest |             <div class="name"> | ||||||
|  |               Victor Crest | ||||||
|  |             </div> | ||||||
|  |             <div class="age"> | ||||||
|  |               26 | ||||||
|  |             </div> | ||||||
|  |           </div> | ||||||
|  |           <div class="location"> | ||||||
|  |             London | ||||||
|           </div> |           </div> | ||||||
|           <div class="age"> |  | ||||||
|             26 |  | ||||||
|           </div>   |  | ||||||
|         </div> |         </div> | ||||||
|         <div class="location"> |         <div class="border"></div> | ||||||
|           London |         <div class="stats"> | ||||||
|         </div> |           <div class="followers"> | ||||||
|       </div> |             <div class="stat">80K</div> | ||||||
|       <div class="border"></div> |             <div class="label">Followers</div> | ||||||
|       <div class="stats"> |           </div> | ||||||
|         <div class="followers"> |           <div class="likes"> | ||||||
|           <div class="stat">80K</div> |             <div class="stat">803K</div> | ||||||
|           <div class="label">Followers</div> |             <div class="label">Likes</div> | ||||||
|         </div> |           </div> | ||||||
|         <div class="likes"> |           <div class="photos"> | ||||||
|           <div class="stat">803K</div> |             <div class="stat">1.4K</div> | ||||||
|           <div class="label">Likes</div> |             <div class="label">Photos</div> | ||||||
|         </div> |           </div> | ||||||
|         <div class="photos"> |  | ||||||
|           <div class="stat">1.4K</div> |  | ||||||
|           <div class="label">Photos</div> |  | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|  |       <div class="bottomCircle"></div> | ||||||
|     </div> |     </div> | ||||||
|     <div class="bottomCircle"></div> |   </main> | ||||||
|   </div> |   <footer> | ||||||
|   <div class="attribution"> |     <div class="attribution"> | ||||||
|     Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.  |       Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. | ||||||
|     Coded by <a href="https://www.frontendmentor.io/profile/tarasis">Robert McGovern</a>. |       Coded by <a href="https://www.frontendmentor.io/profile/tarasis">Robert McGovern</a>. | ||||||
|   </div> |     </div> | ||||||
|  |   </footer> | ||||||
| </body> | </body> | ||||||
| </html> | </html> | ||||||
|  | @ -34,6 +34,7 @@ | ||||||
|                         <li><a href="./FrontendMentor/newbie/four-card-feature-section/index.html">Four Card Feature Section page</a></li> |                         <li><a href="./FrontendMentor/newbie/four-card-feature-section/index.html">Four Card Feature Section page</a></li> | ||||||
|                         <li><a href="./FrontendMentor/newbie/article-preview-component/index.html">Article Preview Component</a></li> |                         <li><a href="./FrontendMentor/newbie/article-preview-component/index.html">Article Preview Component</a></li> | ||||||
|                         <li><a href="./FrontendMentor/newbie/stats-preview-card-component/index.html">Stats Preview Card Component</a></li> |                         <li><a href="./FrontendMentor/newbie/stats-preview-card-component/index.html">Stats Preview Card Component</a></li> | ||||||
|  |                         <li><a href="./FrontendMentor/newbie/profile-card-component/">Profile Card Component</a></li> | ||||||
|                     </ul>     |                     </ul>     | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|  |  | ||||||
		Reference in New Issue