-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.css
152 lines (145 loc) · 2.71 KB
/
home.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*Remove default styles*/
html body {
margin: 0;
padding: 0;
min-width: 100%;
width: 100%;
max-width: 100%;
min-height: 100%;
height: 100%;
max-height: 100%;
}
.body {
width: 100%;
}
/* Center div or text*/
.center{
margin-left: auto;
vertical-align: middle;
text-align: center;
}
.left {
float: left;
}
.small {
font-size: 75%; /* 75% of the baseline */
}
.medium {
font-size: 100%; /* 100% of the baseline */
}
.large {
font-size: 125%; /* 125% of the baseline */
}
/* Hamburger icon div*/
.container {
position: relative;
z-index: 1;
padding: .5em;
padding-left: .8em;
width: 1%;
}
.title{
width: 90%;
}
/*Nav bar at the top*/
.bar {
position: fixed;
z-index: 2;
background-color: #f0f0f0;
display: table;
width: 100%;
height: 2em;
}
/* applies to items in Nav Bar*/
.bar-item {
position: relative;
vertical-align: middle;
display: inline-table;
height: auto;
text-align: center;
}
/* Style Hamburger*/
.bar1, .bar2, .bar3 {
width: 35px;
height: 5px;
background-color: #333;
margin: 6px 0;
transition: 0.4s;
}
/* Rotate first bar */
.change .bar1 {
-webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
transform: rotate(-45deg) translate(-9px, 6px) ;
}
/* Fade out the second bar */
.change .bar2 {
opacity: 0;
}
/* Rotate last bar */
.change .bar3 {
-webkit-transform: rotate(45deg) translate(-8px, -8px) ;
transform: rotate(45deg) translate(-8px, -8px) ;
}
.space {
height: 3.5em;
}
/* Style Mobile Nav drawer*/
.drawer {
position: fixed;
z-index: 1;
background-color: #404040;
color: #ffffff;
height: 100%;
transition: 0.5s;
}
.open {
width: 60%;
}
.close {
overflow-x: hidden;
width: 0%;
-webkit-transition-timing-function: ease-out;
transition: 0.5s;
}
.drawer ul{
margin: 0; padding: 0;
}
.drawer ul li{
margin: 0; padding: 0;
height: 3em;
list-style: none;
padding-top: 1em;
padding-bottom: 1em;
padding-right: 1em;
}
.drawer ul li:hover{
-webkit-transition-timing-function: ease;
transition: 0.5s;
background-color: #333333;
-webkit-box-shadow: inset 10px 10px 35px -17px rgba(26,26,26,1);
-moz-box-shadow: inset 10px 10px 35px -17px rgba(26,26,26,1);
box-shadow: inset 10px 10px 35px -17px rgba(26,26,26,1);
}
/* Create overlay that falls over content when drawer is opened*/
.overlay {
position: absolute;
width: 100%;
height: 100%;
background-color: #000000;
}
.under {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
opacity: 0;
z-index: -1;
}
.over{
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
z-index: 1;
opacity: 1;
}