-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpanel-menu.html
More file actions
138 lines (132 loc) · 5.04 KB
/
panel-menu.html
File metadata and controls
138 lines (132 loc) · 5.04 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html, body {
min-height: 100%;
}
a {
text-decoration: none;
}
.page-wrap {
float: right;
width: 100%;
-webkit-transition: width .3s ease;
transition: width .3s ease;
}
.main-header {
position: relative;
width: 100%;
padding: 20px;
background: -webkit-linear-gradient(top, #3f94bf, #246485);
background: linear-gradient(to bottom, #3f94bf, #246485);
text-align: center;
color: #fff;
text-shadow: #222 0 -1px 1px;
}
.main-header a {
position: absolute;
left: 20px;
top: 20px;
color: #fff;
font-size: 32px;
}
.content {
padding: 20px;
}
.main-nav {
position: fixed;
top: 0;
width: 0;
min-height: 100%;
height: 100%;
background: #3B3B3B;
overflow-y: auto;
transition: width .3s ease;
}
.main-nav:after {
content: "";
position: absolute;
right: 0;
top: 0;
height: 100%;
width: 60px;
background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}
.main-nav a {
display: block;
background: -webkit-linear-gradient(top, #3e3e3e, #383838);
background: linear-gradient(to bottom, #3e3e3e, #383838);
border-top: 1px solid #484848;
border-bottom: 1px solid #2E2E2E;
color: #fff;
padding: 15px;
opacity: 0;
-webkit-transition: opacity .15s ease-in-out;
transition: opacity .15s ease-in-out;
}
.main-nav a:hover,
.main-nav a:focus {
background: -webkit-linear-gradient(top, #484848, #383838);
background: linear-gradient(to bottom, #484848, #383838);
}
.close {
display: none;
}
#main-nav:target {
width: 20%;
}
#main-nav:target + .page-wrap {
width: 80%;
}
#main-nav:target a {
opacity: 1;
}
#main-nav:target + .page-wrap .open {
display: none;
}
#main-nav:target + .page-wrap .close {
display: block;
}
</style>
</head>
<body>
<nav id="main-nav" class="main-nav">
<a href="#none">Menu 1</a>
<a href="#none">Menu 2</a>
<a href="#none">Menu 3</a>
<a href="#none">Menu 4</a>
<a href="#none">Menu 5</a>
<a href="#none">Menu 6</a>
</nav>
<div class="page-wrap">
<header class="main-header">
<a href="#main-nav" class="open">☰</a>
<a href="#none" class="close">☰</a>
<h1>CSS Panel Menu</h1>
</header>
<div class="content">
<p>It’s all about playing four quarters. I think we played well but the other team played well too. They took advantage of certain circumstances that arose. It’s a physical game.</p>
<p>We tried to capitalize on some mistakes they made. In the third quarter they ran some plays. They are very good at throwing the football. They have a good quarterback who is a real leader. There are no statistics for that.</p>
<p>We just need to show up, take things day by day, and prepare for the future. We’re looking at next week. We’re very optimistic. We’ll need to tighten up our game, make less mistakes, and stay focused.</p>
<p>There are 22 players out there. We’re 11 of them. This is a game played on grass. It’s full of intangibles. There are ups and downs. If we look at today’s champions, they are proven winners. They play football.</p>
<p>The groundwork has been laid so, now let’s look the future, make some good decisions, and take things to the next level.</p>
<p>It’s all about playing four quarters. I think we played well but the other team played well too. They took advantage of certain circumstances that arose. It’s a physical game.</p>
<p>We tried to capitalize on some mistakes they made. In the third quarter they ran some plays. They are very good at throwing the football. They have a good quarterback who is a real leader. There are no statistics for that.</p>
<p>We just need to show up, take things day by day, and prepare for the future. We’re looking at next week. We’re very optimistic. We’ll need to tighten up our game, make less mistakes, and stay focused.</p>
<p>There are 22 players out there. We’re 11 of them. This is a game played on grass. It’s full of intangibles. There are ups and downs. If we look at today’s champions, they are proven winners. They play football.</p>
<p>The groundwork has been laid so, now let’s look the future, make some good decisions, and take things to the next level.</p>
</div>
</div>
</body>
</html>