Skip to content
Permalink
4af500123b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
568 lines (568 sloc) 10 KB
a {
cursor: pointer;
}
.show {
display: block !important;
}
::-webkit-scrollbar {
display: none;
}
[ng:cloak],
[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
display: none !important;
}
.input-field .prefix ~ input,
.input-field .prefix ~ textarea,
.input-field .prefix ~ label,
.input-field .prefix ~ .validate ~ label,
.input-field .prefix ~ .autocomplete-content {
margin-left: 0;
width: 100%;
position: absolute;
}
select.no-materialize {
display: block;
}
ul.tabs {
background: none;
}
ul.tabs .tab a {
color: inherit;
}
ul.tabs .tab a:hover {
color: inherit;
}
.f404 {
text-align: center;
}
.collapsible-body {
padding: 1em;
box-sizing: border-box;
}
.card-title,
.collapsible-header {
text-transform: capitalize;
}
select {
display: block !important;
}
.food-search {
padding-top: 0.5em;
}
.food-search i {
cursor: pointer;
top: 6px;
right: 0;
}
.food-search .input-field label.active {
transform: translateY(-120%);
}
.food-search .input-field.col label {
left: 0;
}
.barcode {
margin: 0;
}
.food-filter {
display: flex;
flex-flow: row no-wrap;
justify-content: center;
width: 100%;
padding: 0 1em;
}
@media all and (max-width: 599px) {
.food-filter {
flex-flow: row wrap;
}
}
.food-filter .by-category {
flex: 1 500px;
}
.food-filter .by-category a {
color: #000;
}
.food-filter nav {
background-color: #f5f5f5;
}
.grade {
padding-right: 2em;
}
@media all and (min-width: 600px) {
.grade {
padding: 0 2em 0 0;
}
}
.grade nav {
display: flex;
align-items: center;
padding: 0 0.9em 0 1.3em;
}
.grade nav label {
position: relative;
top: 2px;
}
.green[type="checkbox"].filled-in:checked+label:after {
border-color: #7ae076;
background-color: #7ae076;
}
.yellow[type="checkbox"].filled-in:checked+label:after {
border-color: #fddf7b;
background-color: #fddf7b;
}
.red[type="checkbox"].filled-in:checked+label:after {
border-color: #fd7b7b;
background-color: #fd7b7b;
}
.gray[type="checkbox"].filled-in:checked+label:after {
border-color: #808080;
background-color: #808080;
}
[type="checkbox"]+label {
padding-left: 26px;
}
.table-toggle .switch {
display: flex;
}
.table-toggle label {
margin: 0 auto;
}
.foods {
display: flex;
padding: 3em;
flex-wrap: wrap;
}
.foods .card-panel {
background: #f5f5f5;
flex-grow: 1;
display: flex;
padding: 0;
margin: 0.5em;
align-items: center;
cursor: pointer;
transition: all 0.2s;
}
.foods .card-panel:hover {
transform: scale(0.95);
}
.foods .card-panel.add {
background-color: #4ba8f8;
color: #fff;
}
@media all and (min-width: 500px) {
.foods .card-panel.add {
max-width: 17em;
}
}
.foods .card-panel.add i {
font-size: 2.5em;
}
.foods .card-panel.add .health {
background-color: rgba(0,0,0,0.27);
}
.foods .card-panel h5 {
font-size: 1.4em;
margin: 0.3em 0.7em;
}
.foods .health {
width: 3em;
min-width: 3em;
min-height: 3em;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #800080;
}
.foods .health i {
color: #fff;
}
.foods .rank-1 {
background-color: #7ae076;
}
.foods .rank-2 {
background-color: #fddf7b;
}
.foods .rank-3 {
background-color: #fd7b7b;
}
.foods .rank-4 {
background-color: #808080;
}
.foods .table-rank {
width: 3.5em;
}
.foods table {
font-size: 1.2em;
}
.foods td,
.foods th {
cursor: pointer;
padding: 0.8em;
}
.foods tr.add {
background-color: #4ba8f8;
color: #fff;
}
.foods tr.add td:first-child {
background-color: rgba(0,0,0,0.27);
}
.foodModal {
display: flex;
align-items: center;
justify-content: center;
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: #000; /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.foodModal .CRUD {
font-size: 1.1em;
padding: 1em;
border: 1px solid #f0f0f0;
min-width: 300px;
max-width: 500px;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
background: #fff;
}
.foodModal .CRUD [type="radio"]:not(:checked)+label,
.foodModal .CRUD [type="radio"]:checked+label {
padding-left: 1.7em;
padding-right: 1em;
}
.foodModal .CRUD .grade {
margin-bottom: 2em;
}
.foodModal .CRUD h4 {
margin: 5px 0 25px 0;
}
.foodModal .CRUD p {
font-size: 1.1em;
font-weight: 500;
color: #bbb;
margin-bottom: 5px;
}
.foodModal .CRUD p span {
color: initial;
font-weight: normal;
}
.foodModal .CRUD a.btn {
width: 48%;
}
.foodModal .CRUD .orange {
float: right;
}
.foodModal .CRUD .nutrition {
margin-bottom: 1.5em;
}
.foodModal .CRUD .nutrition td {
padding: 0.5em 5px;
}
.foodModal .CRUD .nutrition td:first-child {
font-weight: 500;
width: 50%;
}
.foodTable {
display: flex;
flex-flow: row wrap;
align-content: stretch;
width: 100%;
}
.foodTableItem {
display: inline-flex;
flex: 1 430px;
margin-bottom: 12px;
font-size: 1.2em;
align-items: center;
margin-right: 1em;
max-width: 100%;
padding-right: 1em;
background: #f5f5f5;
transition: all 0.2s;
cursor: pointer;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}
@media all and (min-width: 760px) {
.foodTableItem {
max-width: calc(50% - 1em);
}
}
.foodTableItem:hover {
transform: scale(0.95);
}
.foodTableItem span {
flex-basis: 100px;
margin-right: 1em;
}
.foodTableItem .foodCat {
text-align: right;
}
.foodTableItem .name {
flex-grow: 1;
white-space: nowrap;
text-overflow: ellipsis;
overflow-y: hidden;
}
.foodTableItem .barcode {
flex-basis: 117px;
color: #888;
font-size: 1rem;
text-align: right;
margin-right: 0;
}
.foodTableItem .health {
height: 35px;
width: 35px;
min-height: 35px;
min-width: 35px;
max-height: 35px;
max-width: 35px;
}
.foodTableItem .health i {
font-size: 21px;
}
.floatBlock,
.addNutrientBtn,
.nutrientBlock {
align-items: center;
box-shadow: 1px 2px 3px 0px rgba(0,0,0,0.2);
cursor: pointer;
display: flex;
transition: all 0.1s;
}
.floatBlock:hover,
.addNutrientBtn:hover,
.nutrientBlock:hover {
transform: scale(0.95);
}
h1.nutrientsTitle {
text-align: center;
}
.nutrientsDiv {
display: flex;
padding: 2em 3em;
flex-wrap: wrap;
justify-content: space-between;
}
.nutrientsDiv.n2 {
margin: -0.5em -0.5em 0 -0.5em;
}
.addNutrientBtn {
background: #4ba8f8;
width: 100%;
color: #fff;
}
.addNutrientBtn .plus {
background: rgba(0,0,0,0.27);
padding: 8px;
font-size: 40px;
}
.addNutrientBtn .text {
padding-left: 1em;
font-size: 25px;
}
.nutrientBlock {
align-items: center;
background: #f0f0f0;
flex-basis: 350px;
flex-grow: 1;
font-size: 20px;
justify-content: space-between;
margin: 0.5em;
padding: 0.7em;
}
.nutrientBlock .delete {
color: #fd7b7b;
}
.spacer {
height: 80px;
}
.nav-main {
display: flex;
justify-content: space-between;
color: #fff;
background-color: rgba(0,0,0,0.8);
position: fixed;
top: 0;
height: 4.5em;
width: 100%;
z-index: 10;
}
.nav-main .logo-area {
display: flex;
height: 4.5em;
align-items: center;
padding-right: 2em;
}
.nav-main .logo-area * {
display: inline;
}
.nav-main .logo-area i {
font-size: 4rem;
}
.nav-main .logo-area h4 {
font-size: 2.6rem;
font-weight: 500;
margin: 0;
}
.nav-main .links {
margin-left: auto;
}
.nav-main .links .tabs {
height: auto;
}
.nav-main .links .tabs .tab {
height: 4.5em;
line-height: 4.5em;
}
.nav-main .links .tabs .indicator {
background-color: #fff;
top: 0;
height: 5px;
}
.nav-main .sign-in {
display: flex;
align-items: center;
margin-right: 0.5em;
}
.nav-main .sign-in a.btn {
margin: 0.5em;
}
footer {
display: flex;
align-items: center;
justify-content: center;
padding: 2em;
}
footer * {
margin: 0 1em;
}
.hero {
height: 70vh;
background-size: cover;
}
.howItWorks {
background-color: #eee;
margin: 0;
padding: 1em;
}
header.label {
cursor: auto;
color: #fff;
font-size: 1.5em;
position: absolute;
left: -0.3em;
background-color: #bbb;
}
header.label:hover {
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
background-color: #bbb;
}
header.label i {
font-size: 1em;
display: inline-flex;
vertical-align: -5%;
}
.newsFeed article {
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: 5em;
}
.newsFeed article h4,
.newsFeed article h5 {
text-align: center;
}
.newsFeed article * {
width: 65%;
}
@media all and (min-width: 700px) {
.featuredUser {
margin-bottom: 2em;
}
.featuredUser article {
align-items: center;
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 1.5em 1em;
}
.featuredUser .left {
flex: 1 35%;
padding: 0 25px;
text-align: center;
}
.featuredUser .left img {
width: 100%;
max-width: 30em;
min-width: 15em;
border-radius: 800px;
}
.featuredUser .right {
flex: 1 60%;
padding: 0 2vw;
}
.featuredUser .right h1 {
font-size: 5vw;
margin: 0 0 1rem 0;
}
}
@media all and (max-width: 699px) {
.featuredUser {
margin-bottom: 0.8em;
}
.featuredUser article {
display: flex;
align-items: center;
justify-content: center;
margin: 1em 1em 1.5em 1em;
}
.featuredUser article .left img {
width: 10em;
border-radius: 800px;
}
.featuredUser article .right {
margin-left: 5vw;
}
.featuredUser article .right h1 {
font-size: 2em;
margin: 0 0 1rem 0;
}
.featuredUser article .right p {
display: none;
}
}
@media all and (min-width: 700px) and (min-width: 1200px) {
.featuredUser article {
margin: 3em auto;
max-width: 1200px;
}
}
@media all and (min-width: 700px) and (min-width: 1200px) {
.featuredUser .right h1 {
font-size: 60px;
}
}
.competition-cards {
display: flex;
flex-flow: row wrap;
justify-content: space-around;
padding: 6em 2em;
}
.competition-cards .card.small {
flex: 0 400px;
height: auto;
margin: 1.5em 0.5em;
}
.competition-cards .card.small .img {
height: 200px;
background-size: cover;
}