mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
170 lines
2.1 KiB
CSS
170 lines
2.1 KiB
CSS
@font-face {
|
|
font-family: 'Open Sans';
|
|
src: url('/fonts/OpenSans.ttf') format('ttf');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
src: url('/fonts/OpenSans-Italic.ttf') format('ttf');
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
|
|
:root {
|
|
--black: #131314;
|
|
--white: white;
|
|
--crimson: #bd1839;
|
|
--light-gray: #e7e7e7;
|
|
--dark-background: #1d1b1b;
|
|
--light-background: #fbfbfb;
|
|
--partial-dark-background: var(--black);
|
|
--partial-light-background: #ececec;
|
|
--card-radius: 1.875rem;
|
|
--form-radius: 0.563rem;
|
|
--shadow: 0px 4px 8px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 0;
|
|
height: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: transparent;
|
|
}
|
|
|
|
::selection {
|
|
background: var(--text);
|
|
color: var(--background);
|
|
}
|
|
|
|
body {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
background-color: var(--background);
|
|
color: var(--text);
|
|
|
|
isolation: isolate;
|
|
user-select: text;
|
|
}
|
|
|
|
body::-webkit-scrollbar {
|
|
width: 0.5rem !important;
|
|
}
|
|
|
|
body::-webkit-scrollbar-thumb {
|
|
background-color: var(--text) !important;
|
|
}
|
|
|
|
#links .linkedin,
|
|
#links .github,
|
|
#links .cv-paper-flip,
|
|
#links .mail,
|
|
#nav-toggler svg path,
|
|
.arrow,
|
|
.eye,
|
|
.calendar,
|
|
.clock,
|
|
.share {
|
|
stroke: var(--text);
|
|
}
|
|
|
|
#links .twitter,
|
|
#links .rss,
|
|
#links .cv,
|
|
#links .moon > path {
|
|
fill: var(--text);
|
|
}
|
|
|
|
main {
|
|
width: 85%;
|
|
min-height: 70vh;
|
|
margin: auto;
|
|
}
|
|
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas,
|
|
svg {
|
|
max-width: 100%;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
main h1,
|
|
main h2,
|
|
main h3 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
main p {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
main h1 {
|
|
font-size: 4rem;
|
|
}
|
|
|
|
main h2 {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
main h3 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
a {
|
|
color: var(--text);
|
|
}
|
|
|
|
a,
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media only screen and (max-width: 1024px) {
|
|
main h1 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
main h2 {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
main h3 {
|
|
font-size: 1.25rem;
|
|
}
|
|
}
|