Browse Source

UI improvements.

pull/337/head
Sebastian Stehle 7 years ago
parent
commit
10cb1e4be0
  1. 6
      src/Squidex/app/features/schemas/pages/schema/schema-page.component.html
  2. 4
      src/Squidex/app/features/schemas/pages/schema/schema-page.component.scss
  3. 19
      src/Squidex/app/framework/angular/forms/code-editor.component.scss
  4. 19
      src/Squidex/app/framework/angular/forms/json-editor.component.scss

6
src/Squidex/app/features/schemas/pages/schema/schema-page.component.html

@ -6,7 +6,7 @@
</ng-container> </ng-container>
<ng-container menu> <ng-container menu>
<button type="button" class="btn btn-link btn-export mr-1" (click)="exportSchemaDialog.show()"> <button type="button" class="btn btn-link mr-1" (click)="exportSchemaDialog.show()">
JSON Preview JSON Preview
</button> </button>
@ -102,13 +102,15 @@
</ng-container> </ng-container>
<ng-container *sqxModalView="exportSchemaDialog;onRoot:true"> <ng-container *sqxModalView="exportSchemaDialog;onRoot:true">
<sqx-modal-dialog (closed)="exportSchemaDialog.hide()"> <sqx-modal-dialog (closed)="exportSchemaDialog.hide()" large="true">
<ng-container title> <ng-container title>
Export Schema Export Schema
</ng-container> </ng-container>
<ng-container content> <ng-container content>
<div class="json-preview">
<sqx-json-editor disabled [ngModel]="schemaExport"></sqx-json-editor> <sqx-json-editor disabled [ngModel]="schemaExport"></sqx-json-editor>
</div>
</ng-container> </ng-container>
</sqx-modal-dialog> </sqx-modal-dialog>
</ng-container> </ng-container>

4
src/Squidex/app/features/schemas/pages/schema/schema-page.component.scss

@ -20,10 +20,6 @@
margin: 0; margin: 0;
} }
.btn-export {
margin-right: 1rem;
}
.schemas { .schemas {
padding-bottom: 7rem; padding-bottom: 7rem;
} }

19
src/Squidex/app/framework/angular/forms/code-editor.component.scss

@ -1,8 +1,25 @@
@import '_mixins'; @import '_mixins';
@import '_vars'; @import '_vars';
.editor { // sass-lint:disable class-name-format
:host /deep/ {
.ace_editor {
background: $color-dark-foreground; background: $color-dark-foreground;
border: 1px solid $color-input; border: 1px solid $color-input;
height: 20rem; height: 20rem;
} }
.ace_active-line,
.ace_gutter-active-line {
background: none !important;
}
.ace_gutter-active-line {
background: darken($color-border, 5%) !important;
}
.ace_gutter {
background: $color-border !important;
}
}

19
src/Squidex/app/framework/angular/forms/json-editor.component.scss

@ -1,8 +1,25 @@
@import '_mixins'; @import '_mixins';
@import '_vars'; @import '_vars';
.editor { // sass-lint:disable class-name-format
:host /deep/ {
.ace_editor {
background: $color-dark-foreground; background: $color-dark-foreground;
border: 1px solid $color-input; border: 1px solid $color-input;
height: 20rem; height: 20rem;
} }
.ace_active-line,
.ace_gutter-active-line {
background: none !important;
}
.ace_gutter-active-line {
background: darken($color-border, 5%) !important;
}
.ace_gutter {
background: $color-border !important;
}
}
Loading…
Cancel
Save