From 392967bd82230c3dda968c46e91cdc55e61ab208 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Fri, 9 Jun 2017 17:54:01 +0200 Subject: [PATCH] More bootstrap elements used. --- src/Squidex/Views/Profile/Profile.cshtml | 11 ++++++----- .../event-consumers-page.component.html | 8 ++++---- .../pages/users/users-page.component.html | 2 +- .../pages/content/content-field.component.html | 4 ++-- .../schemas/pages/schema/field.component.html | 16 ++++++++-------- .../pages/schema/schema-page.component.html | 4 ++-- .../schema/types/boolean-ui.component.html | 4 ++-- .../schema/types/date-time-ui.component.html | 4 ++-- .../pages/schema/types/number-ui.component.html | 4 ++-- .../pages/schema/types/string-ui.component.html | 4 ++-- .../pages/schemas/schema-form.component.html | 8 ++++---- .../pages/languages/language.component.html | 8 ++++---- .../shared/components/app-form.component.html | 8 ++++---- src/Squidex/app/theme/_bootstrap-vars.scss | 1 + src/Squidex/app/theme/_bootstrap.scss | 12 ++++++++++-- src/Squidex/app/theme/_common.scss | 4 ---- src/Squidex/app/theme/_forms.scss | 17 ----------------- src/Squidex/app/theme/_static.scss | 6 +----- 18 files changed, 55 insertions(+), 70 deletions(-) diff --git a/src/Squidex/Views/Profile/Profile.cshtml b/src/Squidex/Views/Profile/Profile.cshtml index 968abdf82..c64855702 100644 --- a/src/Squidex/Views/Profile/Profile.cshtml +++ b/src/Squidex/Views/Profile/Profile.cshtml @@ -4,16 +4,17 @@ @model Squidex.Controllers.UI.Profile.ProfileVM @{ + ViewBag.Theme = "white"; ViewBag.Title = "Profile"; }
-
-

Welcome, @Model.DisplayName

-
- +

Edit Profile

+ +

Personal Information

+ @if (!string.IsNullOrWhiteSpace(ViewBag.SuccessMessage)) {
@@ -68,7 +69,7 @@ @if (Model.HasPasswordAuth) { -
Password
+

Password

@if (Model.HasPassword) { diff --git a/src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html b/src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html index 7bb7701fd..367d17a5c 100644 --- a/src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html +++ b/src/Squidex/app/features/administration/pages/event-consumers/event-consumers-page.component.html @@ -25,10 +25,10 @@ Name - + Event Number - + Actions @@ -44,10 +44,10 @@ {{eventConsumer.name}} - + {{eventConsumer.lastHandledEventNumber}} - + diff --git a/src/Squidex/app/features/administration/pages/users/users-page.component.html b/src/Squidex/app/features/administration/pages/users/users-page.component.html index 84ed1525e..0710ebaad 100644 --- a/src/Squidex/app/features/administration/pages/users/users-page.component.html +++ b/src/Squidex/app/features/administration/pages/users/users-page.component.html @@ -68,7 +68,7 @@ {{user.email}} - +
-
+ {{field.properties.hints}} -
+ diff --git a/src/Squidex/app/features/schemas/pages/schema/field.component.html b/src/Squidex/app/features/schemas/pages/schema/field.component.html index cf6f0ff19..f14dea51a 100644 --- a/src/Squidex/app/features/schemas/pages/schema/field.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/field.component.html @@ -76,9 +76,9 @@
- + The name of the field in the API response. - +
@@ -90,9 +90,9 @@ - + Define the display name for the field for documentation and user interfaces. - + @@ -104,9 +104,9 @@ - + Define some hints for the user and editor for the field for documentation and user interfaces. - + @@ -116,9 +116,9 @@ List Field -
+ List fields are shown as a column in the content list. If no list field is defined, the first field is shown. -
+ diff --git a/src/Squidex/app/features/schemas/pages/schema/schema-page.component.html b/src/Squidex/app/features/schemas/pages/schema/schema-page.component.html index dce86d7eb..46e4e69ef 100644 --- a/src/Squidex/app/features/schemas/pages/schema/schema-page.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/schema-page.component.html @@ -77,9 +77,9 @@ -
+ You can the field as localizable. It means that is dependent on the language, e.g. a city name. -
+ diff --git a/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.html index 163dce32b..f9d3c5453 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/boolean-ui.component.html @@ -5,9 +5,9 @@
- + Define the placeholder for the input control. - +
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.html index 7b503c721..c76e2ac9c 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/date-time-ui.component.html @@ -5,9 +5,9 @@
- + Define the placeholder for the input control. - +
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.html index 193c44198..ec17c0a58 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/number-ui.component.html @@ -5,9 +5,9 @@
- + Define the placeholder for the input control. - +
diff --git a/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.html b/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.html index 2174e2724..14a5d4168 100644 --- a/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.html +++ b/src/Squidex/app/features/schemas/pages/schema/types/string-ui.component.html @@ -5,9 +5,9 @@
- + Define the placeholder for the input control. - +
diff --git a/src/Squidex/app/features/schemas/pages/schemas/schema-form.component.html b/src/Squidex/app/features/schemas/pages/schemas/schema-form.component.html index 59c2b2976..a6c60dcb5 100644 --- a/src/Squidex/app/features/schemas/pages/schemas/schema-form.component.html +++ b/src/Squidex/app/features/schemas/pages/schemas/schema-form.component.html @@ -12,12 +12,12 @@ - + The schema name becomes part of the api url,
e.g {{apiUrl.buildUrl("api/content/")}}{{appName}}/{{schemaName | async}}/. -
- + + It must contain lower case letters (a-z), numbers and dashes only, and cannot be longer than 40 characters. The name cannot be changed later. - +
diff --git a/src/Squidex/app/features/settings/pages/languages/language.component.html b/src/Squidex/app/features/settings/pages/languages/language.component.html index dfbecff92..36258b647 100644 --- a/src/Squidex/app/features/settings/pages/languages/language.component.html +++ b/src/Squidex/app/features/settings/pages/languages/language.component.html @@ -62,9 +62,9 @@ Is Master -
+ Master language is the last fallback language, when no value for a content and a language is available. -
+
@@ -72,9 +72,9 @@ Is Optional -
+ Values for optional languages must not be specified, even if the field is set to required. -
+
diff --git a/src/Squidex/app/shared/components/app-form.component.html b/src/Squidex/app/shared/components/app-form.component.html index 0cab1e907..2d64ea8f9 100644 --- a/src/Squidex/app/shared/components/app-form.component.html +++ b/src/Squidex/app/shared/components/app-form.component.html @@ -12,13 +12,13 @@ - + The app name becomes part of the api url,
e.g {{apiUrl.buildUrl("api/content/")}}{{appName | async}}/. -
+ - + It must contain lower case letters (a-z), numbers and dashes only, and cannot be longer than 40 characters. The name cannot be changed later. - +
diff --git a/src/Squidex/app/theme/_bootstrap-vars.scss b/src/Squidex/app/theme/_bootstrap-vars.scss index 0945a94fc..cbff84299 100644 --- a/src/Squidex/app/theme/_bootstrap-vars.scss +++ b/src/Squidex/app/theme/_bootstrap-vars.scss @@ -10,6 +10,7 @@ $btn-secondary-border: $color-theme-secondary; $input-bg-disabled: $color-disabled; $input-border-color: $color-input; +$input-color-placeholder: $color-empty; $dropdown-border-color: $color-border; diff --git a/src/Squidex/app/theme/_bootstrap.scss b/src/Squidex/app/theme/_bootstrap.scss index 63f248b3d..bb5042969 100644 --- a/src/Squidex/app/theme/_bootstrap.scss +++ b/src/Squidex/app/theme/_bootstrap.scss @@ -3,8 +3,16 @@ @import './../../node_modules/bootstrap/scss/mixins/_buttons'; -.col-right { - text-align: right; +h1 { + font-size: 1.3rem; +} + +h2 { + font-size: 1.1rem; +} + +h3 { + font-size: 1.05rem; } .navbar { diff --git a/src/Squidex/app/theme/_common.scss b/src/Squidex/app/theme/_common.scss index 49cb100be..202f54da5 100644 --- a/src/Squidex/app/theme/_common.scss +++ b/src/Squidex/app/theme/_common.scss @@ -13,10 +13,6 @@ body { } } -h1 { - font-size: 2rem; -} - .user-ref { color: $color-theme-blue-dark; } diff --git a/src/Squidex/app/theme/_forms.scss b/src/Squidex/app/theme/_forms.scss index 461f67725..256b49678 100644 --- a/src/Squidex/app/theme/_forms.scss +++ b/src/Squidex/app/theme/_forms.scss @@ -49,23 +49,6 @@ text-align: right; } -input, -select { - &.form-control { - @include placeholder-color($color-empty); - padding-top: 0; - padding-bottom: 0; - height: calc(2.5rem - 2px); - } -} - -.form-hint { - font-size: .8rem; - margin-top: .1rem; - margin-bottom: 0; - color: lighten($color-text, 30%); -} - .form-error, .form-success { @include border-radius(4px); diff --git a/src/Squidex/app/theme/_static.scss b/src/Squidex/app/theme/_static.scss index fb754a247..ed1742c84 100644 --- a/src/Squidex/app/theme/_static.scss +++ b/src/Squidex/app/theme/_static.scss @@ -11,7 +11,7 @@ noscript { .profile { & { - width: 20rem; + max-width: 20rem; margin: 0 auto; padding: 1rem 2rem; } @@ -87,10 +87,6 @@ noscript { } } - .form-group { - margin-bottom: .5rem; - } - .external { &-button { text-align: left;