/* Box sizing */
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
/* */
html {
overflow-y: scroll;
}
body { margin: 0; }
@media screen and (min-width: 700px) {
.g-Page {
width: 700px;
margin: 0 auto;
}
}
@media screen and (max-width: 700px) {
.g-Page { width: 100%; }
}
.g-Header {
position: fixed;
top: 0;
width: inherit;
}
.g-Aliments { margin-top: 110px; }
.g-Line {
height: 50px;
display: flex;
align-items: center;
}
.g-Line.g-Title {
height: 60px;
}
.g-Line.g-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;
}
.g-Line.g-Title > .g-Header--Sorted {
background-color: #505050;
}
.g-Line.g-Search {
width: 100%;
padding: 0 15px;
border: none;
box-shadow: 0px 4px 2px -2px rgba(0, 0, 0, 0.2);
font-size: 14px;
}
.g-Line > * { padding: 15px; }
.g-Line > *:nth-child(1) { width: 40%; }
.g-Line > *:nth-child(2) { width: 20%; }
.g-Line > *:nth-child(3) { width: 20%; }
.g-Line > *:nth-child(4) { width: 20%; }
.g-Aliment:nth-child(2n+1) { background-color: #F6F6F6; }
.g-Number {
text-align: right;
}
.g-Number--Low { color: green; }
.g-Number--Middle { color: orange; }
.g-Number--High { color: red; }