Header partial wip

This commit is contained in:
Hazem Krimi
2023-10-31 00:10:41 +01:00
parent 44705e17f7
commit 4e31b2877b
21 changed files with 239 additions and 31 deletions
+74 -27
View File
@@ -1,42 +1,89 @@
@font-face {
font-family: 'Open Sans';
src: url('/fonts/OpenSans.ttf') format('ttf');
font-weight: normal;
font-style: normal;
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;
font-family: 'Open Sans';
src: url('/fonts/OpenSans-Italic.ttf') format('ttf');
font-weight: normal;
font-style: italic;
}
:root {
/* Colors */
--black: #131314;
--white: #FFFFFF;
--crimson: #BD1839;
--light-gray: #E7E7E7;
/* Colors */
--black: #131314;
--white: #ffffff;
--crimson: #bd1839;
--light-gray: #e7e7e7;
/* Background colors */
--dark-background: #1D1B1B;
--light-background: #FBFBFB;
/* Background colors */
--dark-background: #1d1b1b;
--light-background: #fbfbfb;
/* Radiuses */
--card-radius: 30px;
--form-radius: 9px;
/* Radiuses */
--card-radius: 1.875rem;
--form-radius: 0.563rem;
/* Shadows */
--shadow: 0px 4px 8px rgba(0, 0, 0, 0.04);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
margin: 0;
}
body {
font-size: 16px;
font-family: 'Open Sans', sans-serif;
background-color: var(--background);
color: var(--text);
}
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;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
a {
color: var(--text);
}
.vertical-separator {
border-left: 1px solid rgba(0, 0, 0, .25);
height: 24px;
}
+50
View File
@@ -0,0 +1,50 @@
:root {
--header-light-background: var(--white);
--header-dark-background: #676666;
}
header {
width: 85%;
margin: 3.125rem auto;
padding: 0.938rem 2.188rem;
border-radius: 0.75rem;
box-shadow: var(--header-shadow);
background-color: var(--header-background);
color: var(--text);
text-transform: uppercase;
display: flex;
align-items: center;
justify-content: space-between;
}
header #header-face {
display: flex;
align-items: center;
column-gap: 0.625rem;
}
header #header-face h3 {
font-weight: 600;
}
header #menus {
display: flex;
align-items: center;
column-gap: 1.563rem;
}
header #menus a {
text-decoration: none;
font-weight: 600;
font-size: 15px;
}
header #links {
display: flex;
align-items: center;
column-gap: 1.5rem;
}