-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile.css
139 lines (136 loc) · 2.76 KB
/
mobile.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
body {
font-family: Roboto, Arial;
font-size: 3rem;
}
.vineyard, .wine, .year {
border-radius: 4px;
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
0px 1px 3px 0px rgba(0, 0, 0, 0.12);
border-width: 1px;
border-style: solid;
border-color: #e0e0e0;
margin: 5px;
padding: 5px;
}
.vineyard {
font-weight: bold;
margin-bottom: 20px;
}
.wine {
background-color: #f0f0f0;
display: flex;
flex-direction: column;
font-weight: normal;
margin-top: 20px;
}
.year {
background-color: white;
display: grid;
font-size: 4rem;
grid-template-columns: 33% 33% 33%;
padding: 10px;
}
button.plus, button.minus {
font-size: 4rem;
font-weight: bold;
min-width: 5rem;
}
button.plus {
background-color: #4ee68d;
border-right: 2px solid #3db36e;
border-bottom: 2px solid #3db36e;
border-top: 2px solid #99ffc3;
border-left: 2px solid #99ffc3;
margin-left: 20px;
margin-right: 5px;
}
button.minus {
background-color: #e6737c;
border-right: 2px solid #b32430;
border-bottom: 2px solid #b32430;
border-top: 2px solid #ffb3b8;
border-left: 2px solid #ffb3b8;
}
/* Popup boxes. TODO: share with desktop version? */
.edit_background {
background: rgba(0, 0, 0, 0.3);
cursor: pointer;
display: none;
height: 100%;
left: 0;
position: fixed;
text-align: center;
top: 0;
width: 100%;
z-index: 10000;
}
.edit_container {
background-color: #4c9de9;
border: 2px solid #254d73;
border-radius: 8px;
box-shadow: 10px 10px 60px #555;
cursor: default;
display: inline-block;
height: auto;
max-width: 80%;
padding: 2%;
position: relative;
vertical-align: middle;
}
.edit_helper {
display: inline-block;
height: 100%;
vertical-align: middle;
}
table.edit_table > tr > td {
font-size: 3rem;
padding: 4px;
vertical-align: top;
}
table.edit_table > tr > td > button {
font-size: 10pt;
margin: 15px 3px;
padding: 5px 15px;
}
table.edit_table > tr > td > input.edit {
margin-top: -5px;
}
table.edit_table {
background: white;
border: 2px solid #336a9e;
border-radius: 6px;
display: inline-block;
padding: 10px;
}
td.label {
text-align: right;
vertical-align: top;
width: 50%;
}
/* Five-star ratings. TODO: share with desktop version? */
fieldset.rating {
border: none;
display: inline-block;
margin: 0;
padding: 0;
}
fieldset.rating > input {
display: none;
}
fieldset.rating > span {
color: #f0f0f0;
cursor: default;
float: right;
margin: -2px;
}
fieldset.rating:not(:hover) > input:checked ~ span {
color: #FFD700;
}
fieldset.rating:not(:hover) > input.fivestar:checked ~ span {
text-shadow: 0px 0px 3px #FFED85;
}
fieldset.rating:not(:checked) > span:hover,
fieldset.rating:not(:checked) > span:hover ~ span {
color: #FFED85;
}