From cb2b544526ae01cf1939a3487d16b00cd3bd8d15 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Fri, 22 Sep 2017 12:11:21 +0300 Subject: [PATCH 1/4] chat, todo & theme options tweaks --- .../theme-options.component.html | 126 ++++++++---------- .../theme-options.component.scss | 28 +++- .../content/apps/chat/chat.component.scss | 2 +- .../todo-details/todo-details.component.html | 51 ++++--- .../todo-details/todo-details.component.scss | 72 +--------- 5 files changed, 119 insertions(+), 160 deletions(-) diff --git a/src/app/core/components/theme-options/theme-options.component.html b/src/app/core/components/theme-options/theme-options.component.html index bae52a49..e49e995b 100644 --- a/src/app/core/components/theme-options/theme-options.component.html +++ b/src/app/core/components/theme-options/theme-options.component.html @@ -4,107 +4,95 @@
-
+
- -

Navigation:

- - - Top - Left - Right - None - - +
-

Toolbar:

- - - Below - Above - None - - +

Navigation:

+ + Top + Left + Right + None + -

Footer:

- - - Below - Above - None - - +

Toolbar:

+ + Below + Above + None + -

Layout Mode:

- - - Boxed - Fullwidth - - +

Footer:

+ + Below + Above + None + + +

Layout Mode:

+ + Boxed + Fullwidth + -

Colors:

+

Colors:

+
-

Toolbar Color

-
-

Navigation Bar Color

-
-

Footer Color

-
+ +
-

Animation:

+

Router Animation:

+ + + None + + + Slide up + + + Slide down + + + Slide right + + + Slide left + + + Fade in + + - -
-

Router Animation

- - - None - - - Slide up - - - Slide down - - - Slide right - - - Slide left - - - Fade in - - -
-
+
-
diff --git a/src/app/core/components/theme-options/theme-options.component.scss b/src/app/core/components/theme-options/theme-options.component.scss index f2670861..950c472c 100644 --- a/src/app/core/components/theme-options/theme-options.component.scss +++ b/src/app/core/components/theme-options/theme-options.component.scss @@ -26,11 +26,14 @@ width: 360px; transform: translate3d(100%, 0, 0); z-index: 999; - max-width: 80vw; - max-height: calc(100vh - 180px); + max-height: calc(100vh - 200px); + padding: 24px; overflow: auto; @include media-breakpoint-down('xs') { + top: -120px; + max-height: calc(100vh - 60px); + width: 90vw; } .close-button { @@ -38,6 +41,23 @@ top: 8px; right: 8px; } + + h3 { + font-size: 14px; + font-weight: 500; + color: rgba(0, 0, 0, 0.54); + } + + .mat-divider{ + display: block !important; + width: 100%; + margin: 24px 0 16px 0; + } + + .colors { + display: block !important; + width: 100%; + } } .theme-options-panel-overlay { @@ -50,6 +70,10 @@ bottom: 0; z-index: 998; + @include media-breakpoint-down('sm') { + background: rgba(0, 0, 0, 0.37); + } + &.hidden { display: none; } diff --git a/src/app/main/content/apps/chat/chat.component.scss b/src/app/main/content/apps/chat/chat.component.scss index c7b2e19f..2d483473 100644 --- a/src/app/main/content/apps/chat/chat.component.scss +++ b/src/app/main/content/apps/chat/chat.component.scss @@ -28,7 +28,7 @@ > .mat-sidenav-content, > .mat-drawer-content { display: flex; - flex: 1 0 auto; + flex: 1 1 auto; min-height: 100%; height: auto; } diff --git a/src/app/main/content/apps/todo/todo-details/todo-details.component.html b/src/app/main/content/apps/todo/todo-details/todo-details.component.html index 9884527d..b16980c6 100644 --- a/src/app/main/content/apps/todo/todo-details/todo-details.component.html +++ b/src/app/main/content/apps/todo/todo-details/todo-details.component.html @@ -1,16 +1,21 @@
- check_box - Select a todo + check_box + + Select + a todo +
-
@@ -49,14 +54,16 @@
- +
@@ -68,9 +75,9 @@
-
+
- + @@ -85,14 +92,16 @@
- + + {{notes.value.length}} / 500
@@ -80,7 +80,7 @@ - +
diff --git a/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html b/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html index a2df3ca7..c788af9e 100644 --- a/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html +++ b/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html @@ -151,7 +151,6 @@
-
+
diff --git a/src/app/main/content/apps/contacts/sidenavs/main/main.component.scss b/src/app/main/content/apps/contacts/sidenavs/main/main.component.scss index 5c6b97f8..c239a34f 100644 --- a/src/app/main/content/apps/contacts/sidenavs/main/main.component.scss +++ b/src/app/main/content/apps/contacts/sidenavs/main/main.component.scss @@ -11,7 +11,7 @@ flex-direction: column; padding: 0; - @include media-breakpoint(gt-md) { + @include media-breakpoint(gt-sm) { padding: 24px 4px 24px 24px; } @@ -21,7 +21,7 @@ flex: 0 1 auto; padding: 0; - @include media-breakpoint(gt-md) { + @include media-breakpoint(gt-sm) { @include mat-elevation(4); } diff --git a/src/app/main/content/apps/dashboards/project/project.component.html b/src/app/main/content/apps/dashboards/project/project.component.html index 7d785fe9..6dc003d4 100644 --- a/src/app/main/content/apps/dashboards/project/project.component.html +++ b/src/app/main/content/apps/dashboards/project/project.component.html @@ -79,7 +79,8 @@
- @@ -121,7 +122,8 @@
- @@ -163,7 +165,8 @@
- @@ -204,7 +207,8 @@
- diff --git a/src/app/main/content/apps/mail/dialogs/compose/compose.component.html b/src/app/main/content/apps/mail/dialogs/compose/compose.component.html index aecdd630..ac423a74 100644 --- a/src/app/main/content/apps/mail/dialogs/compose/compose.component.html +++ b/src/app/main/content/apps/mail/dialogs/compose/compose.component.html @@ -21,7 +21,7 @@ type="email"> - + diff --git a/src/app/main/content/apps/scrumboard/board/dialogs/card/card.component.html b/src/app/main/content/apps/scrumboard/board/dialogs/card/card.component.html index 75e65ef5..2b7ca5d4 100644 --- a/src/app/main/content/apps/scrumboard/board/dialogs/card/card.component.html +++ b/src/app/main/content/apps/scrumboard/board/dialogs/card/card.component.html @@ -386,7 +386,6 @@
diff --git a/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.html b/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.html index 3782a525..aaecb99b 100644 --- a/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.html +++ b/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.html @@ -1,18 +1,16 @@
- + drag_handle + class="mr-16" fxFlex="0 1 auto">
-
+
{{todo.title}} @@ -25,9 +23,7 @@
-
-
{{tags | getById:tagId:'title'}}
@@ -37,20 +33,20 @@
- - diff --git a/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.ts b/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.ts index 5a4c2c76..765db6ca 100644 --- a/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.ts +++ b/src/app/main/content/apps/todo/todo-list/todo-list-item/todo-list-item.component.ts @@ -78,40 +78,34 @@ export class FuseTodoListItemComponent implements OnInit, OnDestroy /** * Toggle star - * @param event */ toggleStar(event) { event.stopPropagation(); this.todo.toggleStar(); - this.todoService.updateTodo(this.todo); } /** * Toggle Important - * @param event */ toggleImportant(event) { event.stopPropagation(); this.todo.toggleImportant(); - this.todoService.updateTodo(this.todo); } /** * Toggle Completed - * @param event */ toggleCompleted(event) { event.stopPropagation(); this.todo.toggleCompleted(); - this.todoService.updateTodo(this.todo); } } diff --git a/src/app/main/content/apps/todo/todo-list/todo-list.component.scss b/src/app/main/content/apps/todo/todo-list/todo-list.component.scss index 8fb43255..6c063deb 100644 --- a/src/app/main/content/apps/todo/todo-list/todo-list.component.scss +++ b/src/app/main/content/apps/todo/todo-list/todo-list.component.scss @@ -5,4 +5,5 @@ overflow-y: auto; position: relative; padding: 0; + border-right: 1px solid rgba(0, 0, 0, .12); } diff --git a/src/app/main/content/apps/todo/todo.component.scss b/src/app/main/content/apps/todo/todo.component.scss index 903a75e5..b702ba18 100644 --- a/src/app/main/content/apps/todo/todo.component.scss +++ b/src/app/main/content/apps/todo/todo.component.scss @@ -39,6 +39,10 @@ @include media-breakpoint-down(lg) { + fuse-todo-list { + border-right: 0; + } + fuse-todo-list, fuse-todo-details { flex: 1 0 100%; diff --git a/src/app/main/content/apps/todo/todo.service.ts b/src/app/main/content/apps/todo/todo.service.ts index e91d84f1..bae4a873 100644 --- a/src/app/main/content/apps/todo/todo.service.ts +++ b/src/app/main/content/apps/todo/todo.service.ts @@ -381,8 +381,6 @@ export class TodoService implements Resolve this.getTodos().then(todos => { - this.setCurrentTodo(todo.id); - resolve(todos); }, reject); diff --git a/src/app/main/content/components/widget/widget.component.html b/src/app/main/content/components/widget/widget.component.html index bf6dc57b..46717337 100644 --- a/src/app/main/content/components/widget/widget.component.html +++ b/src/app/main/content/components/widget/widget.component.html @@ -45,7 +45,7 @@
@@ -86,7 +86,7 @@
From 67476107717699c331def24aea4aa15166e36102 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Fri, 22 Sep 2017 16:04:59 +0300 Subject: [PATCH 3/4] Fixed: Fullwidth simple page layout doesn't scroll + Added: New logo to the various pages + Fixed: Mobile zoom is not disabled + Fixed: Profile timeline mobile order is not correct + Fixed: Quickpanel focusses to the form elements causing it to scroll on mobile devices when opened + Various demo page mobile fixes --- src/app/core/scss/partials/_page-layouts.scss | 5 ++++- .../apps/scrumboard/scrumboard.component.scss | 1 + .../forgot-password.component.html | 2 +- .../forgot-password.component.scss | 7 ------- .../authentication/login-2/login-2.component.html | 4 +++- .../authentication/login-2/login-2.component.scss | 8 -------- .../authentication/login/login.component.html | 8 ++++++-- .../authentication/login/login.component.scss | 7 ------- .../register-2/register-2.component.html | 4 +++- .../register-2/register-2.component.scss | 8 -------- .../register/register.component.html | 8 ++++++-- .../register/register.component.scss | 7 ------- .../reset-password/reset-password.component.html | 2 +- .../reset-password/reset-password.component.scss | 7 ------- .../pages/coming-soon/coming-soon.component.html | 4 ++-- .../pages/coming-soon/coming-soon.component.scss | 7 ------- .../pages/invoices/compact/compact.component.html | 8 ++++---- .../pages/invoices/compact/compact.component.scss | 9 +-------- .../pages/invoices/modern/modern.component.html | 9 +++++---- .../pages/invoices/modern/modern.component.scss | 9 --------- .../pages/maintenance/maintenance.component.html | 2 +- .../pages/maintenance/maintenance.component.scss | 9 +-------- .../profile/tabs/timeline/timeline.component.html | 6 ++---- .../profile/tabs/timeline/timeline.component.scss | 2 +- .../main/content/ui/forms/forms.component.scss | 1 + .../main/quick-panel/quick-panel.component.html | 15 +++++++++------ src/index.html | 2 +- 27 files changed, 53 insertions(+), 108 deletions(-) diff --git a/src/app/core/scss/partials/_page-layouts.scss b/src/app/core/scss/partials/_page-layouts.scss index 5abc20e8..51595b0a 100644 --- a/src/app/core/scss/partials/_page-layouts.scss +++ b/src/app/core/scss/partials/_page-layouts.scss @@ -273,6 +273,10 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); } // Fullwidth + &.fullwidth { + overflow: auto; + } + &.fullwidth, &.inner-sidenav { min-height: 100%; @@ -445,7 +449,6 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); &.simple { &.fullwidth { - overflow: visible; > .content { flex: 1 0 auto; diff --git a/src/app/main/content/apps/scrumboard/scrumboard.component.scss b/src/app/main/content/apps/scrumboard/scrumboard.component.scss index 23b5efdd..067b0ea0 100644 --- a/src/app/main/content/apps/scrumboard/scrumboard.component.scss +++ b/src/app/main/content/apps/scrumboard/scrumboard.component.scss @@ -5,6 +5,7 @@ #boards { width: 100%; + overflow: auto; .board-list { padding: 32px 0; diff --git a/src/app/main/content/pages/authentication/forgot-password/forgot-password.component.html b/src/app/main/content/pages/authentication/forgot-password/forgot-password.component.html index 1eb104b1..2e7cc32f 100644 --- a/src/app/main/content/pages/authentication/forgot-password/forgot-password.component.html +++ b/src/app/main/content/pages/authentication/forgot-password/forgot-password.component.html @@ -5,7 +5,7 @@
RECOVER YOUR PASSWORD
diff --git a/src/app/main/content/pages/authentication/forgot-password/forgot-password.component.scss b/src/app/main/content/pages/authentication/forgot-password/forgot-password.component.scss index 12c789e0..f9038d5c 100644 --- a/src/app/main/content/pages/authentication/forgot-password/forgot-password.component.scss +++ b/src/app/main/content/pages/authentication/forgot-password/forgot-password.component.scss @@ -31,14 +31,7 @@ .logo { width: 128px; - height: 128px; - line-height: 128px; - font-size: 86px; - font-weight: 500; margin: 32px auto; - color: #FFFFFF; - border-radius: 2px; - background: mat-color($accent); } .title { diff --git a/src/app/main/content/pages/authentication/login-2/login-2.component.html b/src/app/main/content/pages/authentication/login-2/login-2.component.html index 8177b1bc..eb52f550 100644 --- a/src/app/main/content/pages/authentication/login-2/login-2.component.html +++ b/src/app/main/content/pages/authentication/login-2/login-2.component.html @@ -1,8 +1,9 @@
+
@@ -13,6 +14,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ullamcorper nisl erat, vel convallis elit fermentum pellentesque. Sed mollis velit facilisis facilisis viverra.
+
diff --git a/src/app/main/content/pages/authentication/login-2/login-2.component.scss b/src/app/main/content/pages/authentication/login-2/login-2.component.scss index f63666af..5753222d 100644 --- a/src/app/main/content/pages/authentication/login-2/login-2.component.scss +++ b/src/app/main/content/pages/authentication/login-2/login-2.component.scss @@ -17,15 +17,7 @@ .logo { width: 128px; - height: 128px; - line-height: 128px; - font-size: 86px; - font-weight: 500; margin-bottom: 32px; - color: #FFFFFF; - border-radius: 2px; - text-align: center; - background: mat-color($accent); } .title { diff --git a/src/app/main/content/pages/authentication/login/login.component.html b/src/app/main/content/pages/authentication/login/login.component.html index 4221ec98..e44e36a3 100644 --- a/src/app/main/content/pages/authentication/login/login.component.html +++ b/src/app/main/content/pages/authentication/login/login.component.html @@ -3,8 +3,9 @@
- +
+
+
\ No newline at end of file diff --git a/src/app/main/content/pages/authentication/login/login.component.scss b/src/app/main/content/pages/authentication/login/login.component.scss index aab0e1dd..c02feb61 100644 --- a/src/app/main/content/pages/authentication/login/login.component.scss +++ b/src/app/main/content/pages/authentication/login/login.component.scss @@ -31,14 +31,7 @@ .logo { width: 128px; - height: 128px; - line-height: 128px; - font-size: 86px; - font-weight: 500; margin: 32px auto; - color: #FFFFFF; - border-radius: 2px; - background: mat-color($accent); } .title { diff --git a/src/app/main/content/pages/authentication/register-2/register-2.component.html b/src/app/main/content/pages/authentication/register-2/register-2.component.html index 5092e6fe..4418defe 100644 --- a/src/app/main/content/pages/authentication/register-2/register-2.component.html +++ b/src/app/main/content/pages/authentication/register-2/register-2.component.html @@ -1,8 +1,9 @@
+
@@ -13,6 +14,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ullamcorper nisl erat, vel convallis elit fermentum pellentesque. Sed mollis velit facilisis facilisis viverra.
+
diff --git a/src/app/main/content/pages/authentication/register-2/register-2.component.scss b/src/app/main/content/pages/authentication/register-2/register-2.component.scss index e583e60c..9d8943da 100644 --- a/src/app/main/content/pages/authentication/register-2/register-2.component.scss +++ b/src/app/main/content/pages/authentication/register-2/register-2.component.scss @@ -17,15 +17,7 @@ .logo { width: 128px; - height: 128px; - line-height: 128px; - font-size: 86px; - font-weight: 500; margin-bottom: 32px; - color: #FFFFFF; - border-radius: 2px; - text-align: center; - background: mat-color($accent); } .title { diff --git a/src/app/main/content/pages/authentication/register/register.component.html b/src/app/main/content/pages/authentication/register/register.component.html index d38b333d..7f1a9f34 100644 --- a/src/app/main/content/pages/authentication/register/register.component.html +++ b/src/app/main/content/pages/authentication/register/register.component.html @@ -3,8 +3,9 @@
- +
+
+
\ No newline at end of file diff --git a/src/app/main/content/pages/authentication/register/register.component.scss b/src/app/main/content/pages/authentication/register/register.component.scss index 4c170672..9527db41 100644 --- a/src/app/main/content/pages/authentication/register/register.component.scss +++ b/src/app/main/content/pages/authentication/register/register.component.scss @@ -31,14 +31,7 @@ .logo { width: 128px; - height: 128px; - line-height: 128px; - font-size: 86px; - font-weight: 500; margin: 32px auto; - color: #FFFFFF; - border-radius: 2px; - background: mat-color($accent); } .title { diff --git a/src/app/main/content/pages/authentication/reset-password/reset-password.component.html b/src/app/main/content/pages/authentication/reset-password/reset-password.component.html index e9f2c27d..d0d118dc 100644 --- a/src/app/main/content/pages/authentication/reset-password/reset-password.component.html +++ b/src/app/main/content/pages/authentication/reset-password/reset-password.component.html @@ -6,7 +6,7 @@
RESET YOUR PASSWORD
diff --git a/src/app/main/content/pages/authentication/reset-password/reset-password.component.scss b/src/app/main/content/pages/authentication/reset-password/reset-password.component.scss index 1bdee4f1..68beef6a 100644 --- a/src/app/main/content/pages/authentication/reset-password/reset-password.component.scss +++ b/src/app/main/content/pages/authentication/reset-password/reset-password.component.scss @@ -31,14 +31,7 @@ .logo { width: 128px; - height: 128px; - line-height: 128px; - font-size: 86px; - font-weight: 500; margin: 32px auto; - color: #FFFFFF; - border-radius: 2px; - background: mat-color($accent); } .title { diff --git a/src/app/main/content/pages/coming-soon/coming-soon.component.html b/src/app/main/content/pages/coming-soon/coming-soon.component.html index fa19777e..06e7e5e4 100644 --- a/src/app/main/content/pages/coming-soon/coming-soon.component.html +++ b/src/app/main/content/pages/coming-soon/coming-soon.component.html @@ -6,8 +6,8 @@
-
-