forked from sergiolopes/cenourapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.css
89 lines (79 loc) · 1.58 KB
/
menu.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
/* funcionamento */
#opcao-bolos:checked ~ #menu-bebidas,
#opcao-bebidas:checked ~ #menu-bolos {
display: none;
}
input[type=radio] {
display: none;
}
.menu {
width: 100%;
}
/* decoracao */
body {
background: #3D1A11;
font-family: sans-serif;
margin: 0;
text-align: center;
}
label {
background: center top no-repeat #563429;
background-size: 4em;
color: white;
display: block;
font-size: 75%;
padding: 4em 0 1em;
text-transform: uppercase;
}
label[for=opcao-bolos] {
background-image: url(imagens/icone-bolos.svg);
}
label[for=opcao-bebidas] {
background-image: url(imagens/icone-bebidas.svg);
}
:checked + label {
background-color: #E4876D;
}
/* posicionamento */
label {
width: 50%;
position: fixed;
bottom: 0;
z-index: 1;
}
label[for=opcao-bolos] {
left: 0;
}
label[for=opcao-bebidas] {
right: 0;
}
.menu {
margin-bottom: 100px;
}
/* animado */
html,
body {
overflow-x: hidden;
width: 100%;
}
.container-menus {
-webkit-transform: translateX(0);
transform: translateX(0);
-webkit-transition: transform 300ms ease;
transition: -webkit-transform 300ms ease;
width: 200%;
}
.container-menus .menu {
float: left;
width: 50%;
}
#opcao-bebidas:checked ~ .container-menus {
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
/* hack android velho */
body { -webkit-animation: bugfix infinite 1s; }
@-webkit-keyframes bugfix {
from { padding: 0; }
to { padding: 0; }
}