my-portfolio/src/css/main.css

112 lines
2.6 KiB
CSS
Raw Normal View History

/******** Imports *******/
@import "/node_modules/normalize.css/normalize.css";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Share+Tech+Mono&family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap");
2021-09-01 20:37:31 +01:00
/*local imports*/
@import "nav.css";
@import "about.css";
2021-09-02 22:31:45 +01:00
@import "cv.css";
@import "mediaQueries.css";
/****** Root Style ******/
2021-07-31 11:49:38 +01:00
:root {
/* Colours */
--mainHue: 79;
--mainSat: 62%;
--mainLight: 51%;
--primaryDefault: hsla(var(--mainHue), var(--mainSat), var(--mainLight), 1);
--primaryHover: hsla(var(--mainHue), var(--mainSat), calc(var(--mainLight) - 10%), 1);
--timelineItemBrdr: hsla(var(--mainHue), var(--mainSat), calc(var(--mainLight) - 20%), 1);
--errorDefault: hsla(0, var(--mainSat), var(--mainLight), 1);
--grey: hsla(0, 0%, 39%, 1);
2021-07-09 17:14:02 +01:00
--mutedGrey: hsla(0, 0%, 67%, 0.58);
2021-07-31 11:49:38 +01:00
--mutedBlack: hsla(0, 0%, 0%, 0.25);
--navBack: hsla(0, 0%, 30%, 1);
/* Font Sizes */
--titleFS: 2.25rem;
--generalFS: 1.125rem;
--headingFS: 1.5rem;
}
/*** Template Styles ****/
2021-07-09 17:14:02 +01:00
html {
scroll-behavior: smooth;
}
2021-07-31 16:39:53 +01:00
body {
font-family: Noto Sans KR, sans-serif;
font-style: normal;
font-weight: 500;
font-size: var(--generalFS);
2021-07-31 16:39:53 +01:00
line-height: 1.625rem;
}
2021-07-31 11:49:38 +01:00
a:visited {
2021-07-09 17:14:02 +01:00
color: inherit;
}
2021-07-31 11:49:38 +01:00
h1, nav {
font-family: Share Tech Mono, monospace;
font-style: normal;
font-weight: normal;
font-size: var(--titleFS);
line-height: 2.5625rem;
text-transform: lowercase;
}
2021-07-31 11:49:38 +01:00
h2 {
font-family: Noto Sans KR, sans-serif;
font-style: normal;
font-weight: 500;
font-size: var(--headingFS);
line-height: 2.1875rem;
}
2021-07-31 11:49:38 +01:00
a.btn, form input[type="submit"] {
2021-07-09 17:14:02 +01:00
text-decoration: none;
display: inline-block;
padding: 1rem 2rem;
border-radius: 0.625em;
border: 0.3215em solid var(--primaryDefault);
color: #FFFFFF;
}
2021-07-31 11:49:38 +01:00
a.btn:hover {
border: 0.3215em solid var(--primaryHover);
2021-07-09 17:14:02 +01:00
}
2021-07-31 11:49:38 +01:00
a.btnPrimary, form input[type="submit"] {
2021-07-09 17:14:02 +01:00
background: var(--primaryDefault);
2021-07-17 19:08:13 +01:00
cursor: pointer;
2021-07-09 17:14:02 +01:00
}
2021-07-31 11:49:38 +01:00
a.btnOutline {
2021-07-09 17:14:02 +01:00
background: #FFFFFF;
color: var(--primaryDefault);
}
2021-07-31 11:49:38 +01:00
a.btnPrimary:hover, form input[type="submit"]:hover {
2021-07-09 17:14:02 +01:00
background: var(--primaryHover);
}
2021-07-31 11:49:38 +01:00
a.btn:active, form input[type="submit"]:active {
padding: 0.8rem 1.8rem;
2021-07-09 17:14:02 +01:00
}
2021-07-31 11:49:38 +01:00
.boxShadowOut:hover {
box-shadow: 0 6px 4px 0 var(--mutedBlack);
2021-07-09 17:14:02 +01:00
}
2021-07-31 11:49:38 +01:00
.boxShadowIn:active {
box-shadow: inset 0 6px 4px 0 var(--mutedBlack);
2021-07-09 17:14:02 +01:00
}
2021-07-31 11:49:38 +01:00
.textShadow:hover {
text-shadow: 0 6px 4px var(--mutedBlack);
}
section#about, section#curriculumvitae h1 {
padding: 0 5rem;
}