From c0635953ccba055096397402b60371417578f410 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 7 Oct 2020 14:39:17 +0200 Subject: [PATCH] Design improvements. --- frontend/app-config/webpack.config.js | 3 +- frontend/app/_theme.html | 1054 +++++++++++------ .../pages/restore/restore-page.component.html | 4 +- .../contents/contents-page.component.html | 8 +- .../custom-view-editor.component.html | 12 +- .../shared/due-time-selector.component.html | 21 +- .../shared/forms/field-editor.component.html | 29 +- .../list/content-value-editor.component.html | 15 +- .../list/content-value-editor.component.ts | 4 +- .../shared/list/content.component.html | 8 +- .../references/content-creator.component.html | 2 +- .../content-selector-item.component.html | 2 +- .../content-selector.component.html | 6 +- .../cards/api-performance-card.component.html | 6 +- .../cards/api-traffic-card.component.html | 6 +- .../pages/dashboard-config.component.html | 14 +- .../actions/generic-action.component.html | 8 +- .../pages/rules/rule-wizard.component.html | 17 +- .../content-changed-trigger.component.html | 8 +- .../triggers/usage-trigger.component.html | 4 +- .../common/schema-edit-form.component.html | 4 +- .../export/schema-export-form.component.html | 16 +- .../schema/fields/field-wizard.component.html | 33 +- .../field-form-validation.component.html | 6 +- .../fields/forms/field-form.component.html | 8 +- .../fields/types/assets-ui.component.html | 8 +- .../types/assets-validation.component.html | 12 +- .../fields/types/boolean-ui.component.html | 6 +- .../types/boolean-validation.component.html | 6 +- .../types/date-time-validation.component.html | 2 +- .../fields/types/number-ui.component.html | 6 +- .../types/number-validation.component.html | 6 +- .../fields/types/references-ui.component.html | 6 +- .../references-validation.component.html | 6 +- .../fields/types/string-ui.component.html | 6 +- .../types/string-validation.component.html | 8 +- .../schema-preview-urls-form.component.html | 4 +- .../schema-field-rules-form.component.html | 8 +- .../schema-scripts-form.component.html | 4 +- .../schema/ui/schema-ui-form.component.html | 4 +- .../pages/schemas/schema-form.component.html | 8 +- .../clients/client-add-form.component.html | 8 +- .../client-connect-form.component.html | 4 +- .../pages/clients/client.component.html | 14 +- .../contributor-add-form.component.html | 6 +- .../contributors/contributor.component.html | 2 +- .../import-contributors-dialog.component.html | 14 +- .../language-add-form.component.html | 6 +- .../pages/languages/language.component.html | 27 +- .../pages/more/more-page.component.html | 4 +- .../pages/roles/role-add-form.component.html | 8 +- .../settings/pages/roles/role.component.html | 49 +- .../workflow-add-form.component.html | 8 +- .../workflows/workflow-step.component.html | 6 +- .../pages/workflows/workflow.component.html | 9 +- .../forms/editable-title.component.html | 4 +- .../editors/checkbox-group.component.html | 8 +- .../editors/checkbox-group.component.scss | 4 +- .../forms/editors/stars.component.html | 4 +- .../forms/editors/tag-editor.component.html | 6 +- .../angular/image-source.directive.ts | 5 +- .../modals/dialog-renderer.component.html | 14 +- .../framework/angular/pager.component.html | 2 +- .../framework/angular/pager.component.scss | 2 +- .../shared/components/app-form.component.html | 8 +- .../assets/asset-dialog.component.html | 18 +- .../assets/asset-folder-dialog.component.html | 4 +- .../assets/assets-selector.component.html | 8 +- .../comments/comment.component.html | 3 +- .../forms/geolocation-editor.component.html | 4 +- .../queries/filter-comparison.component.html | 6 +- .../search/queries/sorting.component.html | 2 +- .../search/search-form.component.html | 14 +- frontend/app/style.js | 8 + frontend/app/theme/_forms.scss | 5 + 75 files changed, 1064 insertions(+), 628 deletions(-) create mode 100644 frontend/app/style.js diff --git a/frontend/app-config/webpack.config.js b/frontend/app-config/webpack.config.js index 9f8c9d4c1..cf5deeebe 100644 --- a/frontend/app-config/webpack.config.js +++ b/frontend/app-config/webpack.config.js @@ -252,6 +252,7 @@ module.exports = function (env) { */ config.entry = { 'shims': './app/shims.ts', + 'style': './app/style.js', 'app': './app/app.ts' }; @@ -304,7 +305,7 @@ module.exports = function (env) { new plugins.HtmlWebpackPlugin({ filename: 'theme.html', hash: true, - chunks: [], + chunks: ['style'], chunksSortMode: 'none', template: 'app/_theme.html' }) diff --git a/frontend/app/_theme.html b/frontend/app/_theme.html index dde63e9a4..5c222f5c3 100644 --- a/frontend/app/_theme.html +++ b/frontend/app/_theme.html @@ -9,119 +9,129 @@ -
-
+
+
+
+

Squidex Theme

+
+
+
+ +
+
- - -
-
+
- Navbar - - - -
+
+
+ +
+
-
-
+
-
- - +
- +
- - - - - + + +
@@ -332,15 +328,15 @@
- +   - +
- +  
@@ -348,17 +344,16 @@
- + -
+
+
- +

Typography

@@ -383,7 +378,7 @@

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

The following is rendered as bold text.

The following is rendered as italicized text.

-

An abbreviation of the word attribute is attr.

+

The following is an abbreviation attr.

@@ -401,7 +396,7 @@
- +

Blockquotes

@@ -412,6 +407,7 @@

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
Someone famous in Source Title
@@ -420,20 +416,25 @@

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
Someone famous in Source Title
+ -
+
+
- +

Tables

+
+
+
+
@@ -493,39 +494,101 @@ + -
+
+
- +

Tables2

-
+
-
-
- Legend +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
#Column headingColumn headingColumn heading
1Column contentColumn contentColumn content
2Column contentColumn contentColumn content
+
+
+
+
+
+ +
+
+
+
+

Forms

+
+
+ + +
+ Legend + +
+

Validation error.

+ +
    +
  • An user with the same email aready exists.
  • +
+
+ +
+
+
- - - We'll never share your email with anyone else. + + + + + We will never share your email with anyone else.
+
- - - Input with just a line. + + + + + Input with just an underlined.
+
- - + + +
+
- - @@ -533,9 +596,11 @@
+
- - @@ -543,134 +608,187 @@
+
- + +
+ +
+ + +
+ + + +
+
+
- - - This is some placeholder block-level help text for the above input. It's a bit lighter and easily wraps to a new line. + + +
-
- Radio buttons -
- + +
+

Custom Radio buttons

+ +
+ +
-
- + +
+ +
-
- + +
+ +
-
-
-
- -
- -
-
+ +
+

Custom Checkboxes

-
-
-
-
- - -
- -
- - -
-
+
+ + +
-
-
- - -
+
+ + +
+ +
+ + +
+
-
- - -
+ +
-
- - -
Success! You've done it.
-
+
+ +
+ -
- - -
Shucks, try again.
-
+ +
-
- - -
+
+ -
- - -
+ +
-
- - -
+
+ -
- - -
-
- $ +
- - - -
- .00 + +
+ + +
-
-
- -
-
+
+ + + + +
Success! You've done it.
+
+ +
+ + + + +
Shucks, try again.
+
+ +
+ + +
+
You have entered an invalid value.
+
+ + +
+ +
+ + + + +
+ The app name cannot be changed later. +
+
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + +
+
+ $ +
+ + + +
+ .00 +
+
+
+ +
+
+ + + -
+
+
- +

Forms

Tabs

+
+
+ +
+
@@ -691,22 +826,14 @@

Pills

+
+
+
-
diff --git a/frontend/app/features/schemas/pages/schema/fields/types/assets-ui.component.html b/frontend/app/features/schemas/pages/schema/fields/types/assets-ui.component.html index 559426c59..87f84510e 100644 --- a/frontend/app/features/schemas/pages/schema/fields/types/assets-ui.component.html +++ b/frontend/app/features/schemas/pages/schema/fields/types/assets-ui.component.html @@ -4,7 +4,7 @@
- @@ -18,9 +18,9 @@
-
- -