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,6 +17,7 @@
|
||||||
</style> -->
|
</style> -->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<main>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="topCircle"></div>
|
<div class="topCircle"></div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
@ -54,9 +55,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="bottomCircle"></div>
|
<div class="bottomCircle"></div>
|
||||||
</div>
|
</div>
|
||||||
|
</main>
|
||||||
|
<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