-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
130 lines (130 loc) · 2.5 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
body{
padding: 0;
margin: 0;
/*TO REMOVE UNWANTED SPACING*/
font-family: 'Ubuntu', sans-serif;
height: 2000px;
}
header{
background-color: rgb(48, 48, 48);
color: white;
padding: 10px;
}
.logo{
display: inline-block;
}
.logodiv{
display: flex;
align-items: center;
}
nav img{
height: 40px;
margin: 5px;
}
nav label{
font-size: 30px;
font-weight: bold
}
nav ul{
list-style: none;
float: right;
padding-inline-start: 0; /*TO REMOVE THE SPACE IN STARTING OF THE LIST*/
margin-right: 20px;
}
nav li{
display: inline-block;
}
nav li a{
text-decoration: none;
color: white;
border: 2px solid white;
padding: 5px 15px;
border-radius: 3px;
margin-left: 20px;
margin-right:20px;
font-weight: bold;
}
nav li a:hover{
color: rgb(50, 205, 171);
border-color: rgb(50, 205, 171);
background-color: rgba(255, 255, 255, 0.158);
}
li .active{
color: rgb(50, 205, 171);
border-color: rgb(50, 205, 171);
}
.main{
background-image: url('keyboard.jpg');
height: 550px;
background-size: cover;
background-position-x: center;
}
.submain{
background-color: rgba(0, 0, 0, 0.5);
height: 550px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.submain h1{
color: white;
font-size: 60px;
margin: 30px;
}
#icon{
display: none;
}
@media screen and (max-width:850px){
nav ul{
margin-right: 0px;
}
nav li a{
margin-right: 5px;
margin-left: 5px;
}
}
@media screen and (max-width:800px){
#icon{
display: block;
float: right;
line-height: 50px;
}
nav ul{
position: fixed;
width: 100%;
background-color: rgb(50, 205, 171);
top: 53px;/*LEFT 0 WAS DELETED*/
left: -100%;
transition: all .5s;
}
nav li{
display:block;
padding: 10px;
text-align: center;
}
nav li a{
border: none;
padding: none;
font-size: 20px;
}
nav ul.show{
left: 0;
}
li .active{
color: rgb(0, 162, 255);
}
nav li a:hover{
color: rgb(0, 162, 255);
border-color: none;
background-color: none;
}
}
@media screen and (max-width:450px){
nav label{
font-size: 20px;
}
.submain h1{
font-size: 40px;
}
}