enrecipes/app/app.scss

581 lines
7.5 KiB
SCSS
Raw Permalink Normal View History

2021-06-15 11:04:42 +00:00
// Colours
2021-04-01 10:55:35 +00:00
$gray0: #f8f9fa;
$gray1: #f1f3f5;
$gray2: #e9ecef;
$gray3: #dee2e6;
$gray4: #ced4da;
$gray5: #adb5bd;
$gray6: #868e96;
$gray7: #495057;
$gray8: #343a40;
$gray9: #212529;
$gray10: #000000;
$orange: #ff5200;
2021-04-01 10:55:35 +00:00
2021-06-15 11:04:42 +00:00
// FontSizes based on Minor Third
$t1: 25;
$t2: 21;
$t3: 17;
$t4: 14;
2021-06-18 12:52:03 +00:00
$t5: 12; // Base
2021-06-15 11:04:42 +00:00
$t6: 10;
Page {
2021-06-15 11:04:42 +00:00
font-family: 'Inter-Medium', sans-serif;
font-size: $t4;
2020-09-15 11:10:16 +00:00
}
2021-04-01 10:55:35 +00:00
.ico {
2021-06-18 12:52:03 +00:00
font-family: 'EnRecipes';
font-size: 23;
&.s {
2021-06-15 11:04:42 +00:00
font-size: $t3;
2021-04-12 18:09:48 +00:00
opacity: 0.5;
2020-11-02 11:36:53 +00:00
}
2020-10-14 19:32:32 +00:00
}
2021-06-18 12:52:03 +00:00
.vc {
vertical-align: center;
}
2021-04-12 18:09:48 +00:00
.tb {
2021-06-15 11:04:42 +00:00
font-family: 'Inter-Bold', sans-serif;
2021-04-12 18:09:48 +00:00
}
2021-06-18 12:52:03 +00:00
.tc {
2021-04-01 10:55:35 +00:00
text-align: center;
2021-01-23 17:20:15 +00:00
}
2021-04-01 10:55:35 +00:00
.tw {
text-wrap: true;
2021-03-21 17:02:04 +00:00
}
2021-06-18 12:52:03 +00:00
.pTitle {
2021-06-15 11:04:42 +00:00
font-size: $t1;
2021-06-05 18:10:03 +00:00
padding: 16 16 24;
2021-04-01 10:55:35 +00:00
}
2021-06-18 12:52:03 +00:00
2021-04-01 10:55:35 +00:00
.Light {
color: $gray9;
background: $gray1;
Page,
2021-04-14 09:27:40 +00:00
.sticky {
2020-11-10 18:28:48 +00:00
background: $gray1;
2020-10-14 19:32:32 +00:00
}
2021-03-21 17:02:04 +00:00
TextField,
2021-04-01 10:55:35 +00:00
TextView {
border-color: $gray3;
placeholder-color: $gray5;
2021-03-21 17:02:04 +00:00
}
2021-04-01 10:55:35 +00:00
.modalInput {
2021-01-23 17:20:15 +00:00
border-color: $gray2;
2020-10-14 19:32:32 +00:00
}
2021-04-01 10:55:35 +00:00
.appbar,
2021-04-12 18:09:48 +00:00
.modal {
2021-01-23 17:20:15 +00:00
background: $gray0;
2021-06-18 12:52:03 +00:00
box-shadow: 0 2 rgba($gray10, 0.1);
2020-11-28 19:21:57 +00:00
}
2021-06-18 12:52:03 +00:00
.fLabel,
2021-04-01 10:55:35 +00:00
.sub {
2021-01-23 17:20:15 +00:00
color: $gray6;
}
2021-04-01 10:55:35 +00:00
.imgHolder {
2021-01-23 17:20:15 +00:00
color: $gray3;
background: $gray2;
2020-10-14 19:32:32 +00:00
}
2021-06-20 17:54:47 +00:00
.snackbar {
2020-11-10 18:28:48 +00:00
color: $gray1;
background: $gray9;
2020-10-14 19:32:32 +00:00
}
2021-04-12 18:09:48 +00:00
.fab {
2021-04-14 09:27:40 +00:00
color: #fff;
2021-01-23 17:20:15 +00:00
}
2020-10-14 19:32:32 +00:00
}
2021-04-01 10:55:35 +00:00
.Dark {
color: $gray1;
background: $gray9;
Page,
2021-04-14 09:27:40 +00:00
.sticky {
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,
2021-04-01 10:55:35 +00:00
TextView {
2021-03-21 17:02:04 +00:00
border-color: $gray8;
2021-04-01 10:55:35 +00:00
placeholder-color: $gray6;
2021-03-21 17:02:04 +00:00
}
2021-04-01 10:55:35 +00:00
.modalInput {
border-color: $gray7;
2020-10-14 19:32:32 +00:00
}
2021-04-01 10:55:35 +00:00
.appbar,
2021-04-12 18:09:48 +00:00
.modal {
2021-04-01 10:55:35 +00:00
color: $gray0;
2020-11-10 18:28:48 +00:00
background: $gray8;
2020-10-14 19:32:32 +00:00
}
2021-06-18 12:52:03 +00:00
.fLabel,
2021-04-01 10:55:35 +00:00
.sub {
2020-11-10 18:28:48 +00:00
color: $gray5;
2020-10-14 19:32:32 +00:00
}
2021-04-01 10:55:35 +00:00
.imgHolder {
2021-01-23 17:20:15 +00:00
color: $gray9;
background: $gray10;
2020-10-14 19:32:32 +00:00
}
2021-06-20 17:54:47 +00:00
.snackbar {
2020-11-10 18:28:48 +00:00
color: $gray9;
2021-04-01 10:55:35 +00:00
background: $gray1;
2020-11-10 18:28:48 +00:00
}
2021-04-12 18:09:48 +00:00
.fab {
2020-11-10 18:28:48 +00:00
color: $gray9;
2020-10-14 19:32:32 +00:00
}
2021-04-01 10:55:35 +00:00
}
.Black {
color: $gray2;
background: $gray10;
2021-04-12 18:09:48 +00:00
Page,
2021-04-14 09:27:40 +00:00
.sticky {
2021-04-01 10:55:35 +00:00
background: $gray10;
}
TextField,
TextView {
border-color: $gray9;
placeholder-color: $gray7;
}
.modalInput {
border-color: $gray8;
}
.appbar,
2021-04-12 18:09:48 +00:00
.modal {
2021-04-01 10:55:35 +00:00
color: $gray1;
background: $gray9;
}
2021-06-18 12:52:03 +00:00
.fLabel,
2021-04-01 10:55:35 +00:00
.sub {
2021-01-23 17:20:15 +00:00
color: $gray6;
}
2021-04-01 10:55:35 +00:00
.imgHolder {
color: $gray10;
background: $gray9;
}
2021-06-20 17:54:47 +00:00
.snackbar {
2021-04-01 10:55:35 +00:00
color: $gray10;
background: $gray2;
}
2021-04-12 18:09:48 +00:00
.fab {
2021-04-01 10:55:35 +00:00
color: $gray10;
}
}
2021-06-18 12:52:03 +00:00
2021-04-01 10:55:35 +00:00
TextField.combField,
2021-06-18 12:52:03 +00:00
#search {
2021-04-01 10:55:35 +00:00
border-color: transparent;
2020-10-14 19:32:32 +00:00
}
2021-06-05 18:10:03 +00:00
2020-11-02 11:36:53 +00:00
// -----------------------------
2020-10-14 19:32:32 +00:00
// Elements
TextField,
2021-04-01 10:55:35 +00:00
TextView {
2021-06-18 12:52:03 +00:00
// width: 100%;
2021-04-01 10:55:35 +00:00
padding: 14 8;
2021-03-21 17:02:04 +00:00
border-bottom-width: 1;
2020-10-14 19:32:32 +00:00
}
TextView {
2021-04-01 10:55:35 +00:00
line-height: 4;
2020-10-14 19:32:32 +00:00
}
2021-06-18 12:52:03 +00:00
#search {
2021-06-20 17:54:47 +00:00
padding: 13 8;
2020-10-22 18:36:50 +00:00
}
2021-06-18 12:52:03 +00:00
.inputC {
2021-04-01 10:55:35 +00:00
margin-bottom: 24;
2020-10-14 19:32:32 +00:00
}
2021-06-18 12:52:03 +00:00
.fLabel {
2021-06-15 11:04:42 +00:00
font-size: $t5;
2020-10-14 19:32:32 +00:00
}
2021-05-22 08:56:31 +00:00
progress {
2021-06-05 18:10:03 +00:00
color: $orange;
height: 2;
2021-04-12 18:09:48 +00:00
background-color: $gray5;
2020-11-10 18:28:48 +00:00
}
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
}
2021-05-22 08:56:31 +00:00
button {
2021-04-01 10:55:35 +00:00
z-index: 0;
padding: 8;
2021-04-12 18:09:48 +00:00
border-radius: 12;
2021-04-01 10:55:35 +00:00
min-width: 0;
min-height: 0;
2021-06-18 12:52:03 +00:00
text-transform: none;
background-color: transparent;
&.sst {
width: 48;
height: 48;
}
2021-04-01 10:55:35 +00:00
&.ico {
width: 48;
height: 48;
2021-06-05 18:10:03 +00:00
padding: 0;
margin: 0;
2021-06-15 11:04:42 +00:00
&:active {
@extend .fade;
}
2020-11-10 18:28:48 +00:00
}
2021-06-18 12:52:03 +00:00
&.si {
width: 40;
height: 40;
}
2021-04-01 10:55:35 +00:00
&.text {
color: $orange;
}
2021-06-18 12:52:03 +00:00
&.st {
2021-06-15 11:04:42 +00:00
font-size: $t5;
2021-04-01 10:55:35 +00:00
padding: 12;
2020-12-29 10:35:19 +00:00
}
2021-06-18 12:52:03 +00:00
&.big {
margin-top: 8;
padding: 16 0;
2021-06-15 11:04:42 +00:00
}
2021-04-01 10:55:35 +00:00
&.rate {
margin: 0 4 0 0;
width: 32;
height: 32;
2021-06-18 12:52:03 +00:00
}
&.fb:active {
@extend .fade;
2020-11-10 18:28:48 +00:00
}
2020-10-14 19:32:32 +00:00
}
2021-06-05 18:10:03 +00:00
ActivityIndicator {
width: 24;
height: 24;
margin: 12;
color: $orange;
}
2020-11-02 11:36:53 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// Home
.segment {
border-radius: 12;
2021-06-18 12:52:03 +00:00
padding: 8;
.v {
padding: 0 4;
2021-06-05 18:10:03 +00:00
}
2021-06-15 11:04:42 +00:00
}
2021-06-18 12:52:03 +00:00
.t3 {
font-size: $t3;
}
.empty {
2021-04-01 10:55:35 +00:00
padding: 16 16 8;
}
2021-06-05 18:10:03 +00:00
2020-11-02 11:36:53 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// Recipe Item
2021-06-18 12:52:03 +00:00
.recipe {
2021-04-01 10:55:35 +00:00
padding: 8 16;
2021-06-18 12:52:03 +00:00
.info {
2021-06-15 11:04:42 +00:00
padding: 0 8 4;
2021-04-01 10:55:35 +00:00
}
.title {
padding: 0 0 4;
}
2021-06-15 11:04:42 +00:00
}
2021-06-18 12:52:03 +00:00
.oh {
2021-06-15 11:04:42 +00:00
orientation: horizontal;
}
2021-06-18 12:52:03 +00:00
.t6 {
font-size: $t6;
}
2021-06-15 11:04:42 +00:00
.attr {
font-size: $t6;
2021-06-18 12:52:03 +00:00
padding: 0 4 2;
}
2021-06-18 12:52:03 +00:00
.simple .info {
2021-04-01 10:55:35 +00:00
padding: 8 0;
2021-03-21 17:02:04 +00:00
}
2021-04-01 10:55:35 +00:00
.minimal .title {
2021-01-23 17:20:15 +00:00
padding: 0;
2021-04-01 10:55:35 +00:00
}
.grid {
padding: 8;
2021-06-18 12:52:03 +00:00
.info {
2021-04-21 10:30:57 +00:00
padding: 8 0 4;
2021-01-23 17:20:15 +00:00
}
2021-04-01 10:55:35 +00:00
&.odd {
padding: 8 8 8 16;
}
&.even {
padding: 8 16 8 8;
2021-01-23 17:20:15 +00:00
}
2021-03-23 06:16:25 +00:00
}
2021-06-18 12:52:03 +00:00
.photogrid .info {
2021-04-21 10:30:57 +00:00
padding: 8 0 0;
}
2021-03-23 06:16:25 +00:00
.lastItem {
2021-04-01 10:55:35 +00:00
margin-bottom: 128;
2021-03-23 06:16:25 +00:00
}
2021-04-01 10:55:35 +00:00
.imgHolder {
2021-04-12 18:09:48 +00:00
border-radius: 12;
}
2021-05-22 08:56:31 +00:00
2021-06-05 18:10:03 +00:00
// -----------------------------
// CookingTimer
.timer {
padding: 8 16 0;
2021-05-22 08:56:31 +00:00
.info {
2021-06-05 18:10:03 +00:00
margin: 8 8 8 16;
&.r {
margin: 8 16 8 8;
}
2021-05-22 08:56:31 +00:00
}
progress {
margin: 8 0 0;
}
}
2021-06-05 18:10:03 +00:00
2021-05-22 08:56:31 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// Settings
2021-06-18 18:36:38 +00:00
.groupInfo {
2021-04-01 10:55:35 +00:00
padding: 16 16 16 72;
2021-06-15 11:04:42 +00:00
&.r {
padding: 16 72 16 16;
}
2020-12-29 10:35:19 +00:00
}
2021-06-05 18:10:03 +00:00
.options {
2020-10-14 19:32:32 +00:00
.option {
2021-04-12 18:09:48 +00:00
vertical-align: center;
2021-06-15 11:04:42 +00:00
padding: 14 16;
2021-04-01 10:55:35 +00:00
.ico {
2021-06-15 11:04:42 +00:00
width: 40;
text-align: center;
2020-10-14 19:32:32 +00:00
}
2021-06-15 11:04:42 +00:00
.info {
padding: 0 16;
2021-04-01 10:55:35 +00:00
@extend .tw;
2020-10-14 19:32:32 +00:00
}
2021-04-01 10:55:35 +00:00
.sub {
2021-06-15 11:04:42 +00:00
font-size: $t5;
2020-11-10 18:28:48 +00:00
}
2020-10-14 19:32:32 +00:00
}
2021-05-22 08:56:31 +00:00
}
2021-04-01 10:55:35 +00:00
2020-11-02 11:36:53 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// About
2021-06-18 18:36:38 +00:00
.appInfo {
.logo {
2021-03-21 17:02:04 +00:00
horizontal-alignment: center;
}
2021-04-01 10:55:35 +00:00
.name {
2021-06-15 11:04:42 +00:00
font-size: $t2;
2021-03-21 17:02:04 +00:00
}
2021-04-01 10:55:35 +00:00
.info {
2021-03-21 17:02:04 +00:00
padding: 8 16 24;
2021-04-01 10:55:35 +00:00
line-height: 4;
2020-10-14 19:32:32 +00:00
}
}
2021-06-05 18:10:03 +00:00
2020-11-02 11:36:53 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// ViewRecipe
2021-04-01 10:55:35 +00:00
.photo {
2021-04-12 18:09:48 +00:00
border-radius: 12;
2021-04-01 10:55:35 +00:00
margin: 24 16 0 0;
vertical-align: top;
}
2021-06-18 18:36:38 +00:00
.imgV {
2021-04-12 18:09:48 +00:00
width: 96;
height: 96;
opacity: 0;
background: #000;
}
2021-06-18 18:36:38 +00:00
.attrT {
2021-04-01 10:55:35 +00:00
margin: 8 16;
2021-06-15 11:04:42 +00:00
.sub {
font-size: $t5;
2021-01-23 17:20:15 +00:00
}
2021-06-18 18:36:38 +00:00
.v {
2021-04-01 10:55:35 +00:00
@extend .tb;
@extend .tw;
2021-01-23 17:20:15 +00:00
}
2021-05-22 08:56:31 +00:00
}
2021-06-18 12:52:03 +00:00
.check {
2021-04-01 10:55:35 +00:00
padding: 0 16;
2021-06-18 12:52:03 +00:00
.v {
2021-06-05 18:10:03 +00:00
padding: 14 16;
2021-04-01 10:55:35 +00:00
line-height: 4;
2020-11-02 11:36:53 +00:00
}
2021-04-01 10:55:35 +00:00
}
.done {
opacity: 0.5;
2021-06-18 12:52:03 +00:00
.v {
2021-04-01 10:55:35 +00:00
text-decoration: line-through;
2020-10-14 19:32:32 +00:00
}
}
2021-04-01 10:55:35 +00:00
.note {
2021-06-18 12:52:03 +00:00
padding: 16 24;
2021-04-12 18:09:48 +00:00
line-height: 4;
}
2021-06-05 18:10:03 +00:00
2020-11-02 11:36:53 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// AppBar
2021-06-18 12:52:03 +00:00
2021-03-23 09:59:00 +00:00
.appbar {
2021-06-20 17:54:47 +00:00
margin: 0 8 8;
2021-04-12 18:09:48 +00:00
border-radius: 16;
2021-06-20 17:54:47 +00:00
padding: 2;
.ico {
margin: 2;
2021-06-05 18:10:03 +00:00
}
2020-10-14 19:32:32 +00:00
}
2021-04-01 10:55:35 +00:00
.toolbar {
2021-06-18 12:52:03 +00:00
height: 1;
2021-06-20 17:54:47 +00:00
vertical-align: bottom;
2021-06-18 12:52:03 +00:00
transform: translateY(48);
2021-06-20 17:54:47 +00:00
padding: 4 2;
2021-04-01 10:55:35 +00:00
.tool {
2021-06-18 12:52:03 +00:00
orientation: horizontal;
2021-06-20 17:54:47 +00:00
padding: 0 8;
2021-06-18 12:52:03 +00:00
}
2021-06-20 17:54:47 +00:00
.v {
2021-06-18 12:52:03 +00:00
padding: 0 4;
2021-04-01 10:55:35 +00:00
}
}
.fab {
2021-04-12 18:09:48 +00:00
border-radius: 12;
2021-04-01 10:55:35 +00:00
background: $orange;
}
2021-06-05 18:10:03 +00:00
2020-11-02 11:36:53 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// EditRecipe
2021-06-18 12:52:03 +00:00
.section {
padding: 0 16;
2021-04-01 10:55:35 +00:00
margin: 32 0 16;
2020-09-15 11:10:16 +00:00
}
2021-06-18 12:52:03 +00:00
.t2 {
font-size: $t2;
}
2021-04-14 09:27:40 +00:00
.sticky {
width: 100%;
padding: 0 16 16;
2020-10-21 17:54:45 +00:00
}
2021-06-05 18:10:03 +00:00
2020-11-02 11:36:53 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// MealPlanner
2021-06-15 11:04:42 +00:00
.calendar {
2021-06-20 17:54:47 +00:00
padding: 0 16 16;
2021-06-15 11:04:42 +00:00
.accent.sub {
2021-06-18 12:52:03 +00:00
color: rgba($orange, 0.6);
2021-01-23 17:20:15 +00:00
}
}
2021-06-15 11:04:42 +00:00
.plans {
2021-06-20 17:54:47 +00:00
margin: 0 16;
2021-06-15 11:04:42 +00:00
.date {
2021-06-20 17:54:47 +00:00
padding: 16 0 8;
2021-06-15 11:04:42 +00:00
}
2021-06-18 12:52:03 +00:00
.type {
2021-06-15 11:04:42 +00:00
padding: 8 0;
}
2021-06-18 12:52:03 +00:00
.plan {
2021-06-15 11:04:42 +00:00
min-height: 48;
2021-06-18 12:52:03 +00:00
padding: 4 0;
2021-06-15 11:04:42 +00:00
}
2021-06-18 12:52:03 +00:00
.info {
min-height: 40;
padding: 0 8;
}
.note {
padding: 4 0;
}
}
2021-06-05 18:10:03 +00:00
// -----------------------------
2021-06-05 18:10:03 +00:00
// Dialogs
2021-04-01 10:55:35 +00:00
.modal {
max-width: 320;
width: 100%;
2021-04-12 18:09:48 +00:00
border-radius: 12;
2021-04-01 10:55:35 +00:00
margin: 72 0;
.title {
2021-03-23 06:16:25 +00:00
@extend .tb;
2021-04-01 10:55:35 +00:00
@extend .tw;
padding: 16;
2021-06-15 11:04:42 +00:00
font-size: $t2;
2021-04-01 10:55:35 +00:00
}
.input {
padding: 0 16 8;
2020-10-22 18:36:50 +00:00
}
2021-04-01 10:55:35 +00:00
ListPicker {
2021-06-05 18:10:03 +00:00
width: 30%;
height: 144;
2021-05-22 08:56:31 +00:00
margin: 16 0;
2020-10-22 18:36:50 +00:00
}
2021-04-01 10:55:35 +00:00
.listItem {
line-height: 4;
padding: 13 16;
2021-06-15 11:04:42 +00:00
background-color: transparent;
2020-11-02 11:36:53 +00:00
}
2021-04-01 10:55:35 +00:00
.actions {
padding: 4;
2020-10-22 18:36:50 +00:00
}
2021-04-01 10:55:35 +00:00
.filters {
padding: 8;
margin: 0 0 8;
2020-11-10 18:28:48 +00:00
}
2020-10-22 18:36:50 +00:00
}
2021-06-05 18:10:03 +00:00
2020-11-02 11:36:53 +00:00
// -----------------------------
// Transitions
2021-06-18 18:36:38 +00:00
.select {
color: $orange;
animation-name: select;
2021-04-01 10:55:35 +00:00
animation-duration: 0.2s;
animation-fill-mode: forwards;
2021-05-22 08:56:31 +00:00
animation-timing-function: ease;
}
2021-06-18 18:36:38 +00:00
.deselect {
background-color: transparent;
}
@keyframes select {
0% {
2021-04-01 10:55:35 +00:00
background-color: transparent;
}
2021-04-01 10:55:35 +00:00
100% {
2021-06-18 12:52:03 +00:00
background-color: rgba($orange, 0.1);
}
2021-04-01 10:55:35 +00:00
}
.fade {
animation-name: fade;
animation-duration: 0.2s;
animation-fill-mode: forwards;
2021-05-22 08:56:31 +00:00
animation-timing-function: ease;
2021-04-01 10:55:35 +00:00
}
@keyframes fade {
0% {
2021-04-12 18:09:48 +00:00
opacity: 1;
}
2021-04-01 10:55:35 +00:00
100% {
2021-06-18 12:52:03 +00:00
opacity: 0.75;
}
}
2021-06-05 18:10:03 +00:00
// -----------------------------
// Helpers
2021-06-15 11:04:42 +00:00
.f {
2021-06-05 18:10:03 +00:00
transform: scaleX(-1);
}
2021-06-15 11:04:42 +00:00
.accent {
2021-06-05 18:10:03 +00:00
color: $orange;
}
.hal {
horizontal-alignment: left;
&.r {
horizontal-alignment: right;
}
}
2021-06-18 12:52:03 +00:00
.har {
horizontal-alignment: right;
&.r {
horizontal-alignment: left;
}
}
.edge {
width: 16;
}
2021-06-18 18:36:38 +00:00
.ls {
height: 72;
}
.lh4 {
line-height: 4;
}