From 627dc8ef89c13fa091d0e943a2e19190896637b5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 17 Dec 2016 14:47:53 +0100 Subject: [PATCH] Vars cleanup --- .../schemas/pages/schemas-page.component.html | 42 ++++++++-- .../schemas/pages/schemas-page.component.scss | 73 +++++++++++++++++- .../schemas/pages/schemas-page.component.ts | 13 +++- .../shell/pages/app/left-menu.component.html | 8 +- .../shell/pages/app/left-menu.component.scss | 50 ++++-------- src/Squidex/app/theme/_bootstrap.scss | 73 +++++++----------- src/Squidex/app/theme/_vars.scss | 14 +--- .../app/theme/icomoon/fonts/icomoon.eot | Bin 4128 -> 4256 bytes .../app/theme/icomoon/fonts/icomoon.svg | 1 + .../app/theme/icomoon/fonts/icomoon.ttf | Bin 3964 -> 4092 bytes .../app/theme/icomoon/fonts/icomoon.woff | Bin 4040 -> 4168 bytes src/Squidex/app/theme/icomoon/selection.json | 27 +++++++ src/Squidex/app/theme/icomoon/style.css | 13 ++-- 13 files changed, 209 insertions(+), 105 deletions(-) diff --git a/src/Squidex/app/features/schemas/pages/schemas-page.component.html b/src/Squidex/app/features/schemas/pages/schemas-page.component.html index 4065255cd..bf77e8bbe 100644 --- a/src/Squidex/app/features/schemas/pages/schemas-page.component.html +++ b/src/Squidex/app/features/schemas/pages/schemas-page.component.html @@ -1,14 +1,46 @@ -
+
-

Schemas

+
+

Schemas

- - - + + + +
+
+
+ +
+
+ + + +
+
+ asdasd
+
+ + \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schemas-page.component.scss b/src/Squidex/app/features/schemas/pages/schemas-page.component.scss index 83df9045e..fb77971f2 100644 --- a/src/Squidex/app/features/schemas/pages/schemas-page.component.scss +++ b/src/Squidex/app/features/schemas/pages/schemas-page.component.scss @@ -2,6 +2,75 @@ @import '_mixins'; .panel { - min-width: 600px; - max-width: 600px; + min-width: 450px; + max-width: 450px; +} + +.panel-header { + min-height: 150px; + max-height: 150px; +} + +.subheader { + margin-top: 1rem; + margin-right: -40px; +} + +.search-form { + & { + position: relative; + margin-top: .5rem; + } + + .form-control { + padding-left: 50px; + } + + .icon-search { + @include absolute(8px, auto, auto, 12px); + color: $color-accent-dark; + font-size: 1.3rem; + font-weight: lighter; + } +} + +.btn-new { + & { + padding-left: 0; + background: transparent; + border: 0; + color: darken($color-accent-dark, 15%); + font-size: 1.05rem; + } + + &:hover { + color: darken($color-accent-dark, 5%); + outline: 0; + } + + &:focus { + color: $color-accent-dark; + outline: 0; + } + + .icon-plus { + & { + @include circle(24px); + background: transparent; + border: 2px solid darken($color-accent-dark, 15%); + font-size: .8rem; + font-weight: bold; + vertical-align: baseline; + line-height: 20px; + display: inline-block; + } + + &:hover { + border-color: darken($color-accent-dark, 5%); + } + + &:focus { + border-color: $color-accent-dark; + } + } } \ No newline at end of file diff --git a/src/Squidex/app/features/schemas/pages/schemas-page.component.ts b/src/Squidex/app/features/schemas/pages/schemas-page.component.ts index 151203a06..4150517cb 100644 --- a/src/Squidex/app/features/schemas/pages/schemas-page.component.ts +++ b/src/Squidex/app/features/schemas/pages/schemas-page.component.ts @@ -10,6 +10,8 @@ import { Component } from '@angular/core'; import { AppComponentBase, AppsStoreService, + fadeAnimation, + ModalView, NotificationService, UsersProviderService } from 'shared'; @@ -17,11 +19,20 @@ import { @Component({ selector: 'sqx-schemas-page', styleUrls: ['./schemas-page.component.scss'], - templateUrl: './schemas-page.component.html' + templateUrl: './schemas-page.component.html', + animations: [ + fadeAnimation + ] }) export class SchemasPageComponent extends AppComponentBase { + public modalDialog = new ModalView(); + constructor(apps: AppsStoreService, notifications: NotificationService, users: UsersProviderService) { super(apps, notifications, users); } + + public createSchema() { + this.modalDialog.show(); + } } diff --git a/src/Squidex/app/shell/pages/app/left-menu.component.html b/src/Squidex/app/shell/pages/app/left-menu.component.html index f17306f05..5cb772d73 100644 --- a/src/Squidex/app/shell/pages/app/left-menu.component.html +++ b/src/Squidex/app/shell/pages/app/left-menu.component.html @@ -1,21 +1,21 @@