aboutsummaryrefslogtreecommitdiff
path: root/public/main.css
blob: 29f031c374f0ca7f0add21154cdbecd1a0360017 (plain)
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
html {
  box-sizing: border-box;
  overflow-y: scroll;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body { margin: 0; }

@media screen and (min-width: 700px) {
  .page {
    width: 700px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 700px) {
  .page { width: 100%; }
}

.header {
  position: fixed;
  top: 0;
  width: inherit;
}

.line {
  height: 50px;
  display: flex;
  align-items: center;
}

.line.title {
  height: 60px;
}

.line.title > * {
  border: 0;
  background-color: #333333;
  color: white;
  cursor: pointer;
  height: 60px;
  font-size: 17px;
  padding: 0 15px;
  text-align: left;
  transition: background-color 0.2s ease-in-out;
}

.line.title > *.sorted {
  background-color: #505050;
}

.line.search {
  width: 100%;
  padding: 0 15px;
  border: none;
  box-shadow: 0px 4px 2px -2px rgba(0, 0, 0, 0.2);
  font-size: 14px;
}

.aliments { margin-top: 110px; }

.line > * { padding: 15px; }

.line > *:nth-child(1) { width: 40%; }
.line > *:nth-child(2) { width: 20%; }
.line > *:nth-child(3) { width: 20%; }
.line > *:nth-child(4) { width: 20%; }

.line > .good { color: green; }
.line > .medium { color: orange; }
.line > .bad { color: red; }
.line > .number { text-align: right; }

.aliment:nth-child(2n+1) { background-color: #F6F6F6; }