Skip to content

Commit f79a943

Browse files
committed
First Commit, Adding files needed for this project and Starting with Header section
0 parents  commit f79a943

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+10088
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## FrontEnd Track Practicing Template 1 (HTML & CSS)
2+
3+
Third demo template for practicing HTML and CSS based on Course material of Osama Elzero

css/all.min.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/master.css

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
/* Start Variables */
2+
:root {
3+
--main-color: #2196F3;
4+
--main-color-alt: #1787E0;
5+
--main-transition: 0.3s;
6+
}
7+
/* End Variables */
8+
9+
/* Start Global Rules */
10+
* {
11+
box-sizing: border-box;
12+
}
13+
14+
html {
15+
scroll-behavior: smooth;
16+
}
17+
18+
body {
19+
font-family: "Cairo", sans-serif;
20+
}
21+
22+
ul {
23+
list-style: none;
24+
}
25+
26+
a {
27+
text-decoration: none;
28+
}
29+
30+
.container {
31+
padding-left: 15px;
32+
padding-right: 15px;
33+
margin-left: auto;
34+
margin-right: auto;
35+
}
36+
37+
/* Small */
38+
@media (min-width: 768px) {
39+
.container {
40+
width: 750px;
41+
}
42+
}
43+
44+
/* Medium */
45+
@media (min-width: 992px) {
46+
.container {
47+
width: 970px;
48+
}
49+
}
50+
51+
/* Large */
52+
@media (min-width: 1200px) {
53+
.container {
54+
width: 1170px;
55+
}
56+
}
57+
/* End Global Rules */
58+
59+
/* Start Header */
60+
.header {
61+
background-color: white;
62+
position: relative;
63+
-webkit-box-shadow: 0 0 10px #ddd;
64+
-moz-box-shadow: 0 0 10px #ddd;
65+
box-shadow: 0 0 10px #ddd;
66+
}
67+
68+
.header .container {
69+
display: flex;
70+
justify-content: space-between;
71+
align-items: center;
72+
flex-wrap: wrap;
73+
position: relative;
74+
}
75+
76+
.header .logo {
77+
color: var(--main-color);
78+
font-size: 26px;
79+
font-weight: 700;
80+
height: 72px;
81+
display: flex;
82+
justify-content: center;
83+
align-items: center;
84+
}
85+
86+
@media (max-width: 767px) {
87+
.header .logo {
88+
height: 50px;
89+
width: 100%;
90+
}
91+
}
92+
93+
.header .main-nav {
94+
display: flex;
95+
}
96+
97+
@media (max-width: 767px) {
98+
.header .main-nav {
99+
margin: auto;
100+
}
101+
}
102+
103+
.header .main-nav > li > a {
104+
display: flex;
105+
justify-content: center;
106+
align-items: center;
107+
height: 72px;
108+
position: relative;
109+
color: black;
110+
padding: 0 30px;
111+
transition: var(--main-transition);
112+
overflow: hidden;
113+
}
114+
115+
@media (max-width: 767px) {
116+
.header .main-nav > li > a {
117+
padding: 10px;
118+
font-size: 14px;
119+
height: 30px;
120+
}
121+
}
122+
123+
.header .main-nav > li > a::before {
124+
content: "";
125+
position: absolute;
126+
width: 100%;
127+
height: 4px;
128+
background-color: var(--main-color);
129+
top: 0;
130+
left: -100%;
131+
transition: var(--main-transition);
132+
}
133+
134+
.header .main-nav > li > a:hover {
135+
color: var(--main-color);
136+
background-color: #fafafa;
137+
}
138+
139+
.header .main-nav > li > a:hover::before {
140+
left: 0;
141+
}
142+
/* End Header */

0 commit comments

Comments
 (0)