enrecipes/app/app.scss

898 lines
14 KiB
SCSS
Raw Normal View History

2020-09-15 11:10:16 +00:00
// NativeScript core theme
// @see https://docs.nativescript.org/ui/theme
2021-03-21 17:02:04 +00:00
@import "~@nativescript/theme/core"; // Override variables here
2021-01-23 17:20:15 +00:00
$gray0: #fff;
$gray1: #f0f0f0;
$gray2: #e0e0e0;
$gray3: #d1d1d1;
$gray4: #c2c2c2;
$gray5: #858585;
$gray6: #575757;
$gray7: #393939;
$gray8: #292929;
2021-02-28 15:10:26 +00:00
$gray9: #1a1a1a;
2021-01-23 17:20:15 +00:00
$gray10: #000;
$orange: #ff5200;
2021-01-23 17:20:15 +00:00
$fabRipple: #ffa94d;
2020-11-10 18:28:48 +00:00
$red: #c92a2a;
2021-01-23 17:20:15 +00:00
$breakfast: #ffa94d;
$lunch: #69db7c;
$dinner: #4dabf7;
$snacks: #9775fa; // Global SCSS styling
2020-09-15 11:10:16 +00:00
// @see https://docs.nativescript.org/ui/styling
.ns-modal,
Page {
2021-03-23 06:16:25 +00:00
font-family: "Inter-Medium";
2020-09-15 11:10:16 +00:00
}
2021-03-23 06:16:25 +00:00
.tb {
font-family: "Inter-Bold";
2020-09-15 11:10:16 +00:00
}
2021-01-23 17:20:15 +00:00
.er {
2021-03-21 17:02:04 +00:00
font-family: "enrecipes";
2020-10-14 19:32:32 +00:00
font-size: 24;
2020-11-02 11:36:53 +00:00
vertical-alignment: center;
&.small {
padding: 0;
font-size: 16;
}
2020-10-14 19:32:32 +00:00
}
2021-01-23 17:20:15 +00:00
.today {
color: $orange;
}
2021-03-21 17:02:04 +00:00
.ns-modal {
TextField,
TextView,
TimePickerField {
border-color: $gray2;
&.ns-dark {
border-color: $gray8;
}
}
}
2020-10-14 19:32:32 +00:00
.ns-light {
2021-01-23 17:20:15 +00:00
.count,
2020-10-14 19:32:32 +00:00
ActionBar,
ListPicker,
Page,
2020-11-28 19:21:57 +00:00
TabStripItem,
Tabs {
2020-11-10 18:28:48 +00:00
color: $gray9;
background: $gray1;
2020-10-14 19:32:32 +00:00
}
2021-03-21 17:02:04 +00:00
TextField,
TextView,
TimePickerField {
border-color: $gray2;
}
2020-10-14 19:32:32 +00:00
.hr {
2021-01-23 17:20:15 +00:00
border-color: $gray2;
2020-10-14 19:32:32 +00:00
}
.sd {
2020-11-10 18:28:48 +00:00
background: $gray1;
2020-10-14 19:32:32 +00:00
}
2020-12-29 10:35:19 +00:00
.combination,
2021-01-23 17:20:15 +00:00
.hasPlans,
2020-11-02 11:36:53 +00:00
.overviewItem,
2021-03-21 17:02:04 +00:00
// .recipeItem,
2021-01-13 05:02:48 +00:00
.titleContainer {
2021-01-23 17:20:15 +00:00
background: $gray0;
2020-11-28 19:21:57 +00:00
}
2021-01-23 17:20:15 +00:00
.note,
.tag {
background: $gray2;
2020-10-14 19:32:32 +00:00
}
2021-03-21 17:02:04 +00:00
.combinationToken,
.fieldLabel,
2021-01-23 17:20:15 +00:00
.dayName,
2021-01-13 05:02:48 +00:00
.group-info,
2020-11-10 18:28:48 +00:00
.option .info {
2021-01-23 17:20:15 +00:00
color: $gray6;
}
.done .count {
color: $gray0;
2020-10-14 19:32:32 +00:00
}
2020-11-02 11:36:53 +00:00
.imageHolder {
2021-01-23 17:20:15 +00:00
color: $gray3;
background: $gray2;
2020-10-14 19:32:32 +00:00
}
2021-01-23 17:20:15 +00:00
.activeDay {
2020-11-10 18:28:48 +00:00
color: $gray1;
background: $gray9;
2020-10-14 19:32:32 +00:00
}
.dayContainer,
.instruction {
2020-11-10 18:28:48 +00:00
border-color: $gray9;
}
MDProgress {
progress-background-color: $gray4;
}
2021-03-23 09:59:00 +00:00
.fab {
2021-01-23 17:20:15 +00:00
color: $gray0;
2020-11-02 11:36:53 +00:00
}
2021-01-23 17:20:15 +00:00
.emptyState .icon {
color: $gray4;
}
2020-10-14 19:32:32 +00:00
}
.ns-dark {
2021-01-23 17:20:15 +00:00
.count,
2020-10-14 19:32:32 +00:00
ActionBar,
ListPicker,
Page,
2020-11-28 19:21:57 +00:00
TabStripItem,
Tabs {
2021-01-23 17:20:15 +00:00
color: $gray2;
2020-11-10 18:28:48 +00:00
background: $gray9;
2020-10-14 19:32:32 +00:00
}
2021-03-21 17:02:04 +00:00
TextField,
TextView,
TimePickerField {
border-color: $gray8;
}
2020-10-14 19:32:32 +00:00
.hr {
2021-01-23 17:20:15 +00:00
border-color: $gray8;
2020-10-14 19:32:32 +00:00
}
.sd {
2020-11-10 18:28:48 +00:00
background: $gray9;
2020-10-14 19:32:32 +00:00
}
2020-12-29 10:35:19 +00:00
.combination,
2021-01-23 17:20:15 +00:00
.hasPlans,
2020-11-02 11:36:53 +00:00
.overviewItem,
2021-03-23 06:16:25 +00:00
// .recipeItem,
2021-01-23 17:20:15 +00:00
.titleContainer {
2020-11-10 18:28:48 +00:00
background: $gray8;
2020-10-14 19:32:32 +00:00
}
2021-01-23 17:20:15 +00:00
.note,
.tag {
background: $gray10;
2020-11-02 11:36:53 +00:00
}
2021-03-21 17:02:04 +00:00
.combinationToken,
2021-01-23 17:20:15 +00:00
.dayName,
2021-01-13 05:02:48 +00:00
.group-info,
2021-03-21 17:02:04 +00:00
.option .info,
.fieldLabel {
2020-11-10 18:28:48 +00:00
color: $gray5;
2020-10-14 19:32:32 +00:00
}
2021-01-23 17:20:15 +00:00
.done .count {
color: $gray10;
}
2020-11-02 11:36:53 +00:00
.imageHolder {
2021-01-23 17:20:15 +00:00
color: $gray9;
background: $gray10;
2020-10-14 19:32:32 +00:00
}
2021-01-23 17:20:15 +00:00
.activeDay {
2020-11-10 18:28:48 +00:00
color: $gray9;
2021-01-23 17:20:15 +00:00
background: $gray2;
2020-10-14 19:32:32 +00:00
}
.dayContainer,
.instruction {
2021-01-23 17:20:15 +00:00
border-color: $gray2;
2020-11-10 18:28:48 +00:00
}
MDProgress {
2021-01-23 17:20:15 +00:00
progress-background-color: $gray5;
2020-11-10 18:28:48 +00:00
}
2021-03-23 09:59:00 +00:00
.fab {
2020-11-10 18:28:48 +00:00
color: $gray9;
2020-10-14 19:32:32 +00:00
}
2021-01-23 17:20:15 +00:00
.emptyState .icon {
color: $gray6;
}
2020-10-14 19:32:32 +00:00
}
2020-11-02 11:36:53 +00:00
// -----------------------------
2020-10-14 19:32:32 +00:00
// Elements
TextField,
TextView,
TimePickerField {
2020-10-21 17:54:45 +00:00
width: 100%;
font-size: 14;
2021-03-21 17:02:04 +00:00
padding: 12 8;
margin: 0 0 4;
border-bottom-width: 1;
// border-bottom-color: $gray5;
2021-01-23 17:20:15 +00:00
placeholder-color: $gray5;
2020-10-14 19:32:32 +00:00
}
TextView {
line-height: 12;
}
ListPicker {
width: 25%;
}
2021-03-23 09:59:00 +00:00
TextField.searchBar {
margin: 0;
border-color: transparent;
2020-11-10 18:28:48 +00:00
}
2020-10-22 18:36:50 +00:00
TabView {
2021-01-23 17:20:15 +00:00
tab-text-color: $gray5;
2020-10-22 18:36:50 +00:00
}
2020-10-14 19:32:32 +00:00
.inputField {
2021-03-21 17:02:04 +00:00
margin-bottom: 16;
TextField {
horizontal-alignment: left;
}
2020-10-14 19:32:32 +00:00
}
.fieldLabel {
2020-11-02 11:36:53 +00:00
font-size: 12;
2021-03-21 17:02:04 +00:00
// margin-left: 8;
padding: 0;
2020-10-14 19:32:32 +00:00
}
2020-11-10 18:28:48 +00:00
.progressContainer {
2020-11-06 09:07:41 +00:00
width: 100%;
}
2021-01-23 17:20:15 +00:00
.hr {
padding: 0;
}
2020-12-29 10:35:19 +00:00
// .category,
// .group-header,
.text-btn,
2020-11-10 18:28:48 +00:00
MDActivityIndicator {
color: $orange;
}
2020-11-10 18:28:48 +00:00
MDProgress {
progress-color: $orange;
}
2020-12-29 10:35:19 +00:00
Switch {
background-color: $orange;
2021-01-23 17:20:15 +00:00
off-background-color: $gray5;
2020-12-29 10:35:19 +00:00
}
2020-11-02 11:36:53 +00:00
// -----------------------------
2020-10-14 19:32:32 +00:00
// Side Drawer
.sd {
2021-03-23 06:16:25 +00:00
padding: 8 0;
}
2020-10-14 19:32:32 +00:00
.sd-item {
2021-03-21 17:02:04 +00:00
border-radius: 8;
2021-03-23 06:16:25 +00:00
margin: 0 8;
2020-10-21 17:54:45 +00:00
height: 48;
vertical-alignment: center;
2021-01-23 17:20:15 +00:00
.er {
2020-11-02 11:36:53 +00:00
font-size: 24;
2020-12-29 10:35:19 +00:00
margin: 0 24 0 0;
2020-11-02 11:36:53 +00:00
}
2021-01-23 17:20:15 +00:00
&.selected .er {
color: $orange;
}
&.selected {
color: $orange;
2020-11-10 18:28:48 +00:00
background: rgba($orange, 0.1);
2021-02-28 15:10:26 +00:00
.mdr {
2020-11-10 18:28:48 +00:00
ripple-color: transparent;
}
}
2020-11-02 11:36:53 +00:00
Label {
2021-03-23 06:16:25 +00:00
padding: 0 16 0 0;
2020-12-29 10:35:19 +00:00
font-size: 14;
2020-10-21 17:54:45 +00:00
vertical-alignment: center;
2021-01-23 17:20:15 +00:00
&.er {
2020-11-10 18:28:48 +00:00
padding: 0 0 0 16;
}
}
2021-02-28 15:10:26 +00:00
.mdr {
2020-11-10 18:28:48 +00:00
padding: 0 16;
2020-10-21 17:54:45 +00:00
}
2021-01-23 17:20:15 +00:00
MDButton.er {
margin: 0;
}
2020-12-29 10:35:19 +00:00
.recipeCount {
padding: 4;
font-size: 14;
margin: 0 8 0 0;
vertical-alignment: center;
}
2020-10-14 19:32:32 +00:00
}
.sd-group-header {
2020-10-21 17:54:45 +00:00
width: 100%;
2021-03-23 06:16:25 +00:00
padding: 8 8 8 16;
2021-01-23 17:20:15 +00:00
MDButton.er {
2020-12-29 10:35:19 +00:00
margin: 0;
2021-03-23 06:16:25 +00:00
width: 32;
height: 32;
min-width: 0;
2020-12-29 10:35:19 +00:00
}
.filterPath {
2021-03-23 06:16:25 +00:00
line-height: 0;
2020-12-29 10:35:19 +00:00
}
}
.noTags {
font-size: 14;
text-align: center;
margin: 8;
2020-11-10 18:28:48 +00:00
}
2021-02-28 15:10:26 +00:00
.mdr {
2021-03-21 17:02:04 +00:00
border-radius: 8;
2020-11-10 18:28:48 +00:00
}
MDButton {
padding: 8;
min-width: 0;
min-height: 0;
2021-01-23 17:20:15 +00:00
&.er {
2020-11-10 18:28:48 +00:00
padding: 0;
width: 48;
height: 48;
margin: 0 8 0 0;
border-radius: 99;
}
2020-10-14 19:32:32 +00:00
}
2021-01-23 17:20:15 +00:00
MDButton,
2021-02-28 15:10:26 +00:00
.mdr {
2021-01-23 17:20:15 +00:00
ripple-color: rgba($gray5, 0.2);
}
2020-11-02 11:36:53 +00:00
// -----------------------------
// HOME
2020-11-10 18:28:48 +00:00
.emptyStateContainer {
width: 100%;
height: 100%;
}
2020-11-10 18:28:48 +00:00
.emptyState {
line-height: 8;
padding: 0 32;
text-align: center;
2020-12-29 10:35:19 +00:00
font-size: 14;
horizontal-alignment: center;
2020-11-02 11:36:53 +00:00
.icon {
font-size: 64;
text-align: center;
margin-bottom: 16;
}
2020-11-06 09:07:41 +00:00
.logo {
width: 64;
margin-bottom: 16;
}
2020-11-02 11:36:53 +00:00
.title {
2020-12-29 10:35:19 +00:00
font-size: 18;
2020-11-02 11:36:53 +00:00
text-align: center;
padding: 0;
horizontal-alignment: center;
2021-01-23 17:20:15 +00:00
.er {
2020-11-02 11:36:53 +00:00
font-size: 24;
vertical-alignment: center;
}
}
2021-01-13 05:02:48 +00:00
.searchAll {
font-size: 14;
width: auto;
height: auto;
min-width: 0;
padding: 12;
2021-03-21 17:02:04 +00:00
border-radius: 8;
2021-01-13 05:02:48 +00:00
letter-spacing: 0;
// text-transform: none;
margin: 16;
color: $orange;
horizontal-alignment: center;
}
}
2020-11-02 11:36:53 +00:00
// -----------------------------
// Recipe Items
2021-03-21 17:02:04 +00:00
CollectionView {
2020-12-29 10:35:19 +00:00
font-size: 14;
2020-11-02 11:36:53 +00:00
}
2021-01-23 17:20:15 +00:00
.recipeContainer {
padding: 0;
}
.layout1 {
padding: 0;
2021-03-23 06:16:25 +00:00
margin: 8 16;
2021-03-21 17:02:04 +00:00
border-radius: 8;
.imageHolder {
&.card {
border-radius: 8;
Image {
border-radius: 8;
}
}
}
2020-11-02 11:36:53 +00:00
.recipeInfo {
2021-03-21 17:02:04 +00:00
vertical-align: top;
2020-12-29 10:35:19 +00:00
margin: 0;
padding: 8;
.attr,
.category {
font-size: 10;
2020-11-02 11:36:53 +00:00
padding: 0;
margin: 0;
}
.title {
margin: 0;
2021-03-23 06:16:25 +00:00
padding: 0;
2020-11-02 11:36:53 +00:00
}
2020-12-29 10:35:19 +00:00
.attrContainer {
2021-03-23 06:16:25 +00:00
padding: 2 0 0;
2020-12-29 10:35:19 +00:00
.attr {
2021-03-23 06:16:25 +00:00
padding: 0 8 0 2;
2020-11-02 11:36:53 +00:00
}
}
2021-03-21 17:02:04 +00:00
.tagsContainer {
margin-top: 4;
}
2020-11-02 11:36:53 +00:00
}
}
2021-01-23 17:20:15 +00:00
.layout2 {
2021-03-21 17:02:04 +00:00
.recipeInfo {
vertical-alignment: stretch;
padding: 8;
.tagsContainer {
margin-top: 2;
}
}
}
.layout3 {
2021-01-23 17:20:15 +00:00
padding: 0;
2021-03-23 06:16:25 +00:00
margin: 8;
2021-03-21 17:02:04 +00:00
border-radius: 8;
2021-01-23 17:20:15 +00:00
.imageHolder {
vertical-alignment: center;
&.card {
2021-03-21 17:02:04 +00:00
border-radius: 8;
2021-01-23 17:20:15 +00:00
Image {
2021-03-21 17:02:04 +00:00
border-radius: 8;
2021-01-23 17:20:15 +00:00
}
}
}
.recipeInfo {
margin: 0;
padding: 8;
.attr,
.category {
font-size: 10;
padding: 0;
margin: 0;
}
.title {
margin: 0;
2021-03-23 06:16:25 +00:00
padding: 0;
2021-01-23 17:20:15 +00:00
}
}
.tagsContainer {
padding: 4 0 0;
}
}
2021-03-23 06:16:25 +00:00
.firstItem {
padding: 8 0 0;
}
.lastItem {
padding-top: 0;
padding-right: 0;
padding-left: 0;
padding-bottom: 84;
}
.odd {
padding-left: 8;
}
.even {
padding-right: 8;
}
.selected {
background: rgba($orange, 0.1);
}
2020-12-29 10:35:19 +00:00
.tagsContainer {
padding: 2 0 0;
.tag {
font-size: 10;
2021-03-23 06:16:25 +00:00
padding: 1 6 2;
2020-12-29 10:35:19 +00:00
margin: 0 4 0 0;
line-height: 0;
2021-03-23 06:16:25 +00:00
border-radius: 8;
2020-12-29 10:35:19 +00:00
}
}
2020-11-02 11:36:53 +00:00
.imageHolder {
vertical-alignment: center;
&.card {
2021-03-23 06:16:25 +00:00
border-radius: 8;
Image {
2021-03-23 06:16:25 +00:00
border-radius: 8;
}
}
}
2020-11-02 11:36:53 +00:00
// -----------------------------
// SETTINGS
2020-10-14 19:32:32 +00:00
.group-header {
2020-12-29 10:35:19 +00:00
// text-transform: uppercase;
2020-10-21 17:54:45 +00:00
padding: 8;
2020-10-14 19:32:32 +00:00
}
2020-12-29 10:35:19 +00:00
.group-info {
2021-03-23 06:16:25 +00:00
padding: 16 16 16 64;
2020-12-29 10:35:19 +00:00
line-height: 6;
}
2021-03-21 17:02:04 +00:00
2020-10-14 19:32:32 +00:00
.main-container {
2020-11-28 19:21:57 +00:00
padding: 8 8 88;
2020-10-14 19:32:32 +00:00
.option {
2021-03-21 17:02:04 +00:00
padding: 14 0;
2020-12-29 10:35:19 +00:00
font-size: 14;
2021-01-23 17:20:15 +00:00
.er {
2021-03-21 17:02:04 +00:00
padding: 0;
margin: 0 24 0 16;
2020-10-14 19:32:32 +00:00
}
2020-11-10 18:28:48 +00:00
.info {
2020-10-14 19:32:32 +00:00
font-size: 12;
2020-12-29 10:35:19 +00:00
padding-top: 0;
2021-03-21 17:02:04 +00:00
line-height: 4;
}
Label {
padding: 0;
2020-10-14 19:32:32 +00:00
}
2020-11-10 18:28:48 +00:00
StackLayout {
2021-03-21 17:02:04 +00:00
margin: 0;
padding: 0;
// margin: 9 24 9 0;
2020-11-10 18:28:48 +00:00
}
2020-10-14 19:32:32 +00:00
}
}
2020-11-02 11:36:53 +00:00
// -----------------------------
// ABOUT
2021-03-21 17:02:04 +00:00
.app-info-container {
.app-icon {
margin-top: 16;
background: $orange;
border-radius: 99;
horizontal-alignment: center;
}
.app-name {
font-size: 20;
padding: 0;
margin-top: 16;
horizontal-alignment: center;
}
.app-version {
font-size: 14;
horizontal-alignment: center;
}
.app-info {
text-align: center;
padding: 8 16 24;
line-height: 6;
2020-10-14 19:32:32 +00:00
}
}
2020-11-02 11:36:53 +00:00
// -----------------------------
// VIEW RECIPE
.viewRecipe {
2020-12-29 10:35:19 +00:00
.attr,
2020-11-02 11:36:53 +00:00
.category,
.ingredient,
2020-12-29 10:35:19 +00:00
.tag,
.tagsTitle {
font-size: 14;
2020-11-02 11:36:53 +00:00
}
2020-12-29 10:35:19 +00:00
.attr,
2020-11-02 11:36:53 +00:00
.category {
2020-12-29 10:35:19 +00:00
margin: 0 12;
2020-11-02 11:36:53 +00:00
}
2020-12-29 10:35:19 +00:00
.small {
font-size: 10;
2020-11-02 11:36:53 +00:00
}
.title {
2020-12-29 10:35:19 +00:00
font-size: 18;
2020-11-02 11:36:53 +00:00
line-height: 6;
2020-12-29 10:35:19 +00:00
padding: 0 12;
}
.ratingContainer {
2021-01-23 17:20:15 +00:00
margin: 16 8 8;
2020-11-02 11:36:53 +00:00
}
2021-01-23 17:20:15 +00:00
.rate,
.rated {
padding: 0 8 0 0;
}
.rate {
color: $gray5;
}
.rated {
color: $orange;
2020-12-29 10:35:19 +00:00
}
.tagsContainer {
2021-01-23 17:20:15 +00:00
padding: 0;
margin: 12 12 0;
2020-12-29 10:35:19 +00:00
.tag {
2021-03-23 06:16:25 +00:00
padding: 0 6 2;
margin: 2 8 8 0;
2020-12-29 10:35:19 +00:00
}
}
2020-11-02 11:36:53 +00:00
.overviewContainer {
2021-01-23 17:20:15 +00:00
margin: 8 8 12;
2020-11-02 11:36:53 +00:00
.overviewItem {
2021-03-21 17:02:04 +00:00
border-radius: 8;
2020-12-29 10:35:19 +00:00
margin: 4;
2021-03-21 17:02:04 +00:00
// elevation: 1;
2021-01-23 17:20:15 +00:00
.er {
2020-12-29 10:35:19 +00:00
padding: 16 0 0 16;
2020-11-02 11:36:53 +00:00
horizontal-alignment: left;
}
.itemCount {
2020-12-29 10:35:19 +00:00
font-size: 14;
padding: 8 16 16;
2020-11-02 11:36:53 +00:00
}
}
}
.count {
width: 24;
height: 24;
margin: 0 0 0 8;
text-align: center;
2020-12-29 10:35:19 +00:00
vertical-alignment: top;
horizontal-alignment: center;
2020-11-06 09:07:41 +00:00
border-radius: 99;
2021-01-23 17:20:15 +00:00
border-width: 2;
border-color: $gray5;
2021-03-23 06:16:25 +00:00
line-height: 0;
2020-11-02 11:36:53 +00:00
}
2020-11-28 19:21:57 +00:00
.instruction {
2020-12-29 10:35:19 +00:00
font-size: 14;
2020-11-02 11:36:53 +00:00
line-height: 6;
2020-12-29 10:35:19 +00:00
padding: 2 0 24 35;
2020-11-02 11:36:53 +00:00
margin: 0 0 0 19;
border-width: 0 0 0 2;
2021-01-23 17:20:15 +00:00
border-color: $gray5;
2020-11-02 11:36:53 +00:00
}
.instruction.noBorder {
border-color: transparent;
}
2021-01-23 17:20:15 +00:00
.done .count {
background: $orange;
border-color: $orange;
}
.done .instruction {
opacity: 0.4;
text-decoration: line-through;
}
2020-12-29 10:35:19 +00:00
.combination {
2021-01-23 17:20:15 +00:00
margin: 0 16 8;
2021-03-21 17:02:04 +00:00
border-radius: 8;
2020-12-29 10:35:19 +00:00
font-size: 14;
.combinationTitle {
2021-01-13 05:02:48 +00:00
padding: 14 16;
2020-11-02 11:36:53 +00:00
margin: 0;
2020-11-15 10:51:10 +00:00
line-height: 6;
2020-11-02 11:36:53 +00:00
}
}
2020-12-29 10:35:19 +00:00
.note {
font-size: 14;
2020-11-02 11:36:53 +00:00
line-height: 6;
2021-01-23 17:20:15 +00:00
padding: 14 16;
margin: 0 0 8;
2021-03-21 17:02:04 +00:00
border-radius: 8;
2020-10-14 19:32:32 +00:00
}
}
2020-11-02 11:36:53 +00:00
// -----------------------------
2021-03-23 09:59:00 +00:00
// APPBAR
.appbar {
z-index: 99;
2020-11-11 15:49:06 +00:00
height: 56;
2021-03-23 09:59:00 +00:00
margin: 8;
padding: 0;
border-radius: 99;
background: $gray0;
elevation: 16;
android-elevation: 16;
GridLayout {
padding: 0;
margin: 0;
}
.er {
padding: 0;
margin: 4 4 4 0;
&.menu {
margin: 4;
}
}
.fab {
width: 56;
height: 56;
margin: 0;
background: $orange;
ripple-color: $fabRipple;
}
.title {
@extend .tb;
padding: 0 0 0 8;
text-align: left;
vertical-align: center;
font-size: 18;
}
2020-10-14 19:32:32 +00:00
}
2020-11-02 11:36:53 +00:00
// -----------------------------
// EDIT RECIPE
2020-10-14 19:32:32 +00:00
.sectionTitle {
2021-03-23 06:16:25 +00:00
@extend .tb;
2020-12-29 10:35:19 +00:00
font-size: 18;
2020-10-14 19:32:32 +00:00
}
2020-11-02 11:36:53 +00:00
.text-btn {
2020-10-14 19:32:32 +00:00
font-size: 14;
2020-11-02 11:36:53 +00:00
horizontal-alignment: left;
2020-11-10 18:28:48 +00:00
padding: 12;
margin: 8 0 0;
2020-11-10 18:28:48 +00:00
min-width: 0;
2020-09-15 11:10:16 +00:00
}
2021-01-23 17:20:15 +00:00
MDButton.x {
2021-03-21 17:02:04 +00:00
margin: 0 0 5;
2020-11-11 13:50:33 +00:00
width: 32;
height: 32;
2020-11-10 18:28:48 +00:00
min-width: 0;
2021-01-23 17:20:15 +00:00
vertical-alignment: center;
2020-10-21 17:54:45 +00:00
}
2020-11-02 11:36:53 +00:00
// -----------------------------
// MEAL PLANNER
2021-01-23 17:20:15 +00:00
.calendar {
padding: 0 8;
.navBtn {
horizontal-alignment: center;
margin: 0;
}
.monthName {
text-align: center;
vertical-alignment: center;
font-size: 18;
padding: 24 0;
}
.dayName {
padding: 8 4;
font-size: 12;
text-align: center;
}
.day {
font-size: 14;
margin: 4;
width: 32;
height: 32;
// horizontal-alignment: center;
border-radius: 99;
text-align: center;
}
}
2020-11-23 09:49:58 +00:00
.dayPlan {
2021-01-23 17:20:15 +00:00
padding: 0 8 88;
width: 100%;
2020-11-23 09:49:58 +00:00
.plansContainer {
2021-01-23 17:20:15 +00:00
margin: 16 0 0 8;
2020-12-29 10:35:19 +00:00
padding: 0;
border-left-width: 8;
&.breakfast {
2020-12-29 10:35:19 +00:00
border-left-color: $breakfast;
}
&.lunch {
2020-12-29 10:35:19 +00:00
border-left-color: $lunch;
}
&.dinner {
2020-12-29 10:35:19 +00:00
border-left-color: $dinner;
}
&.snacks {
2020-12-29 10:35:19 +00:00
border-left-color: $snacks;
}
.periodLabel {
2020-12-29 10:35:19 +00:00
text-transform: capitalize;
vertical-alignment: center;
2020-11-23 09:49:58 +00:00
font-size: 14;
padding: 0 0 0 16;
}
2021-01-13 05:02:48 +00:00
.recipe {
margin: 0 8;
.titleContainer {
2021-03-21 17:02:04 +00:00
border-radius: 8;
2021-01-23 17:20:15 +00:00
margin: 0 0 8 8;
2021-01-13 05:02:48 +00:00
}
.recipeTitle {
font-size: 14;
2020-12-29 10:35:19 +00:00
padding: 14 16;
line-height: 6;
}
}
2021-01-23 17:20:15 +00:00
.x {
margin: 8 0 16 8;
vertical-alignment: center;
}
}
}
// -----------------------------
2020-11-02 11:36:53 +00:00
// DIALOGS
2020-10-22 18:36:50 +00:00
.dialogContainer {
2020-11-23 09:49:58 +00:00
max-width: 480;
width: 100%;
2020-11-10 18:28:48 +00:00
color: $gray9;
background: $gray1;
2021-03-21 17:02:04 +00:00
border-radius: 8;
2020-12-29 10:35:19 +00:00
font-size: 14;
2021-03-21 17:02:04 +00:00
margin: 64 0;
2020-10-22 18:36:50 +00:00
&.dark {
2021-01-23 17:20:15 +00:00
color: $gray2;
2020-11-10 18:28:48 +00:00
background: $gray9;
2020-10-22 18:36:50 +00:00
}
2021-03-21 17:02:04 +00:00
.dialogHeader {
padding: 24;
}
2021-01-13 05:02:48 +00:00
.dialogIcon {
2021-03-21 17:02:04 +00:00
font-size: 24;
vertical-alignment: center;
2021-01-13 05:02:48 +00:00
}
2020-10-22 18:36:50 +00:00
.dialogTitle {
2021-03-23 06:16:25 +00:00
@extend .tb;
2020-11-23 09:49:58 +00:00
line-height: 6;
2021-03-21 17:02:04 +00:00
padding: 0 0 0 18;
2020-12-29 10:35:19 +00:00
font-size: 18;
2021-03-21 17:02:04 +00:00
vertical-alignment: center;
2020-10-22 18:36:50 +00:00
}
2020-11-02 11:36:53 +00:00
.dialogInput {
padding: 0 24 16;
}
2020-10-22 18:36:50 +00:00
.dialogDescription {
2020-11-10 18:28:48 +00:00
line-height: 6;
padding: 0 24 8;
2020-10-22 18:36:50 +00:00
}
.actionItem {
2021-03-21 17:02:04 +00:00
width: 100%;
2020-11-10 18:28:48 +00:00
letter-spacing: 0;
text-transform: none;
2021-03-21 17:02:04 +00:00
line-height: 1;
2020-11-28 19:21:57 +00:00
padding: 13 24;
2020-11-02 11:36:53 +00:00
margin: 0;
2020-12-29 10:35:19 +00:00
border-radius: 1;
background: transparent;
2021-03-21 17:02:04 +00:00
// background: red;
2020-12-29 10:35:19 +00:00
}
.actionToggle {
background: $orange;
2020-10-22 18:36:50 +00:00
}
2020-11-02 11:36:53 +00:00
.actionsContainer {
2020-11-10 18:28:48 +00:00
padding: 8;
2020-11-02 11:36:53 +00:00
}
2021-01-13 05:02:48 +00:00
.shareItem {
2021-03-21 17:02:04 +00:00
border-radius: 8;
margin: 0 8 8;
// elevation: 1;
2021-01-13 05:02:48 +00:00
text-align: center;
2021-01-23 17:20:15 +00:00
.er {
2021-01-13 05:02:48 +00:00
padding: 16 0 0;
}
.item {
padding: 8 16 16;
}
}
2020-11-02 11:36:53 +00:00
.action {
2020-10-22 18:36:50 +00:00
font-size: 12;
2020-11-10 18:28:48 +00:00
padding: 12;
min-width: 0;
2020-12-29 10:35:19 +00:00
color: $orange;
2020-10-22 18:36:50 +00:00
}
2020-11-10 18:28:48 +00:00
MDButton.actionIcon {
2020-12-29 10:35:19 +00:00
font-size: 14;
2020-11-10 18:28:48 +00:00
width: auto;
height: auto;
min-width: 0;
padding: 16 24;
2021-03-21 17:02:04 +00:00
border-radius: 8;
2020-11-10 18:28:48 +00:00
letter-spacing: 0;
text-transform: none;
margin: 0 16 16;
}
2020-10-22 18:36:50 +00:00
}
2020-11-02 11:36:53 +00:00
// -----------------------------
2020-11-10 18:28:48 +00:00
MDActivityIndicator {
2020-11-02 11:36:53 +00:00
width: 24;
height: 24;
2020-11-11 15:49:06 +00:00
margin: 16 12;
}
2020-11-02 11:36:53 +00:00
// -----------------------------
// Transitions
.bounce-enter-active {
animation-name: bounce-in;
2020-11-02 11:36:53 +00:00
animation-duration: 1s;
animation-fill-mode: forwards;
2020-11-02 11:36:53 +00:00
animation-timing-function: ease-in-out;
}
.bounce-leave-active {
2021-03-23 09:59:00 +00:00
transform: scale(0);
opacity: 0;
}
@keyframes bounce-in {
0% {
transform: scale(0);
opacity: 0;
}
2020-11-02 11:36:53 +00:00
25% {
2021-03-23 09:59:00 +00:00
transform: scale(1);
opacity: 1;
}
2021-03-23 09:59:00 +00:00
55% {
transform: scale(0.8);
}
2021-03-23 09:59:00 +00:00
80% {
transform: scale(1);
}
}