-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu_tutorial.css
More file actions
155 lines (139 loc) · 2.96 KB
/
menu_tutorial.css
File metadata and controls
155 lines (139 loc) · 2.96 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/* body {
background-color: #f9f9f9;
margin: 0;
padding: 0;
} */
nav input{
opacity: 0;
position: absolute;
}
#menuToggle{
height: 100%;
}
@media screen
and (max-width: 768px){
nav a {
text-decoration: none;
color: #1E1E23;
opacity:1;
font-family: 'work sans', sans serif;
font-size: 1.5em;
font-weight: 400;
transition: 200ms;
}
a:hover {
opacity:0.5;
}
nav ul {
padding: 0;
list-style-type: none;
flex-direction: column;
justify-content: left;
align-items: flex-end;
}
/*
nav {
background-color: #1E1E23;
height: 65px;
} */
#menuToggle {
display: flex;
flex-direction: column;
position: relative;
top: 18px;
width: 100%;
left: 24px;
z-index: 1;
-webkit-user-select: none;
user-select: none;
}
#menuToggle input
{
width: 40px;
height: 32px;
/* position: absolute; */ /* As long as this is placed in an earlier portion of the code. Like the general use code. */
right: 25px;
top: -10px;
cursor: pointer;
opacity: 0;
z-index: 2;
}
#menuToggle span
{
width: 29px;
height: 2px;
margin-bottom: 5px;
position: relative;
align-self: flex-end;
margin-right: 35px;
background: #ffffff;
border-radius: 3px;
z-index: 1;
transform-origin: 5px 0px;
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
opacity 0.55s ease;
}
#menuToggle span:first-child
{
transform-origin: 0% 0%;
}
#menuToggle span:nth-last-child(2)
{
transform-origin: 0% 100%;
}
#menuToggle input:checked ~ span
{
opacity: 1;
transform: rotate(45deg) translate(-3px, -1px);
background: #36383F;
}
#menuToggle input:checked ~ span:nth-last-child(3)
{
opacity: 0;
transform: rotate(0deg) scale(0.2, 0.2);
}
#menuToggle input:checked ~ span:nth-last-child(2)
{
transform: rotate(-45deg) translate(0, -1px);
}
#menu
{
position: absolute;
right: 0px;
width: 220px;
height: 400px;
box-shadow: 0 0 10px #85888C;
margin: -50px 0 0 -50px;
padding: 50px;
padding-top: 125px;
background-color: #F5F6FA;
-webkit-font-smoothing: antialiased;
transform-origin: 0% 0%;
transform: translate(200%, 0);
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
opacity: 0;
/* transition: opacity 0.5s cubic-bezier(0.77,0.2,0.05,1.0), transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0); */
}
#menu li
{
padding: 10px 0;
transition-delay: 2s;
}
#menuToggle input:checked ~ ul
{
transform: none;
opacity: 1;
}
nav{
/* --nav-bar-height: 50px; */
--nav-bar-width: 50px;
/* background-color: var(--nav-bar-bgc); */
/* border: var(--nav-bar-border); */
/* position: fixed; */
/* box-shadow: var(--nav-bar-shadow); */
z-index: 100;
border-radius: 100%;
right: 0px;
}
}