mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 16:30:13 +01:00
feat(ui-features): add the buttons page
This commit is contained in:
parent
3d4cf8754f
commit
44318d9e25
9 changed files with 112 additions and 53 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
"tsconfig": "tsconfig.app.json",
|
"tsconfig": "tsconfig.app.json",
|
||||||
"testTsconfig": "tsconfig.spec.json",
|
"testTsconfig": "tsconfig.spec.json",
|
||||||
"styles": [
|
"styles": [
|
||||||
|
"../node_modules/roboto-fontface/css/roboto/sass/roboto-fontface.scss",
|
||||||
"../node_modules/normalize.css/normalize.css",
|
"../node_modules/normalize.css/normalize.css",
|
||||||
"../node_modules/font-awesome/scss/font-awesome.scss",
|
"../node_modules/font-awesome/scss/font-awesome.scss",
|
||||||
"../node_modules/ionicons/scss/ionicons.scss",
|
"../node_modules/ionicons/scss/ionicons.scss",
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
"ionicons": "2.0.1",
|
"ionicons": "2.0.1",
|
||||||
"ng2-ckeditor": "1.1.6",
|
"ng2-ckeditor": "1.1.6",
|
||||||
"normalize.css": "6.0.0",
|
"normalize.css": "6.0.0",
|
||||||
|
"roboto-fontface": "0.7.0",
|
||||||
"rxjs": "5.1.1",
|
"rxjs": "5.1.1",
|
||||||
"tether": "1.4.0",
|
"tether": "1.4.0",
|
||||||
"tinymce": "4.5.7",
|
"tinymce": "4.5.7",
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { NgaCardModule } from '@nga/theme';
|
import { NgaCardModule } from '@nga/theme';
|
||||||
import { CKEditorModule } from 'ng2-ckeditor';
|
import { NgaBootstrapModule } from '@nga/bootstrap';
|
||||||
|
|
||||||
@NgModule ({
|
@NgModule ({
|
||||||
exports: [
|
exports: [
|
||||||
|
|
@ -12,7 +12,7 @@ import { CKEditorModule } from 'ng2-ckeditor';
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
NgaCardModule,
|
NgaCardModule,
|
||||||
CKEditorModule,
|
NgaBootstrapModule,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class NgxSharedModule { }
|
export class NgxSharedModule { }
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright Akveo. All Rights Reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*/
|
||||||
@import '../components';
|
@import '../components';
|
||||||
@import 'variables';
|
@import 'variables';
|
||||||
|
|
||||||
|
|
@ -5,7 +10,13 @@
|
||||||
@import 'overrides/all';
|
@import 'overrides/all';
|
||||||
|
|
||||||
$theme-name: 'gorgeous';
|
$theme-name: 'gorgeous';
|
||||||
|
|
||||||
|
// @nga/theme module styles
|
||||||
@include nga-theme($theme-name) {
|
@include nga-theme($theme-name) {
|
||||||
@include nga-theme-overrides($theme-name);
|
@include nga-theme-overrides($theme-name);
|
||||||
@include custom-components-theme($theme-name);
|
@include custom-components-theme($theme-name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @nga/bootstrap module styles
|
||||||
|
@import '~@nga/bootstrap/styles/themes/nga.theme.default';
|
||||||
|
@include nga-bootstrap($theme-name);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright Akveo. All Rights Reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*/
|
||||||
@import 'variables';
|
@import 'variables';
|
||||||
@import '../components';
|
@import '../components';
|
||||||
@import 'overrides/all';
|
@import 'overrides/all';
|
||||||
|
|
@ -5,7 +10,13 @@
|
||||||
@import '~@nga/theme/styles/themes/nga.theme.default';
|
@import '~@nga/theme/styles/themes/nga.theme.default';
|
||||||
|
|
||||||
$theme-name: 'pure';
|
$theme-name: 'pure';
|
||||||
|
|
||||||
|
// @nga/theme module styles
|
||||||
@include nga-theme($theme-name) {
|
@include nga-theme($theme-name) {
|
||||||
@include nga-theme-overrides($theme-name);
|
@include nga-theme-overrides($theme-name);
|
||||||
@include custom-components-theme($theme-name);
|
@include custom-components-theme($theme-name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @nga/bootstrap module styles
|
||||||
|
@import '~@nga/bootstrap/styles/themes/nga.theme.default';
|
||||||
|
@include nga-bootstrap($theme-name);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CKEditorModule } from 'ng2-ckeditor';
|
||||||
|
|
||||||
import { NgxSharedModule } from '../../@shared/shared.module';
|
import { NgxSharedModule } from '../../@shared/shared.module';
|
||||||
|
|
||||||
|
|
@ -8,6 +9,7 @@ import { NgxEditorsRoutingModule, routedComponents } from './editors-routing.mod
|
||||||
imports: [
|
imports: [
|
||||||
NgxSharedModule,
|
NgxSharedModule,
|
||||||
NgxEditorsRoutingModule,
|
NgxEditorsRoutingModule,
|
||||||
|
CKEditorModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...routedComponents,
|
...routedComponents,
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
Flat buttons
|
Flat buttons
|
||||||
</nga-card-header>
|
</nga-card-header>
|
||||||
<nga-card-body>
|
<nga-card-body>
|
||||||
<ngx-flat-buttons></ngx-flat-buttons>
|
<ngx-flat-buttons class="button-panel"></ngx-flat-buttons>
|
||||||
</nga-card-body>
|
</nga-card-body>
|
||||||
</nga-card>
|
</nga-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
Raised buttons
|
Raised buttons
|
||||||
</nga-card-header>
|
</nga-card-header>
|
||||||
<nga-card-body>
|
<nga-card-body>
|
||||||
<ngx-raised-buttons></ngx-raised-buttons>
|
<ngx-raised-buttons class="button-panel"></ngx-raised-buttons>
|
||||||
</nga-card-body>
|
</nga-card-body>
|
||||||
</nga-card>
|
</nga-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
Different sizes
|
Different sizes
|
||||||
</nga-card-header>
|
</nga-card-header>
|
||||||
<nga-card-body>
|
<nga-card-body>
|
||||||
<ngx-sized-buttons></ngx-sized-buttons>
|
<ngx-sized-buttons class="button-panel df-size-button-panel"></ngx-sized-buttons>
|
||||||
</nga-card-body>
|
</nga-card-body>
|
||||||
</nga-card>
|
</nga-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
Disabled
|
Disabled
|
||||||
</nga-card-header>
|
</nga-card-header>
|
||||||
<nga-card-body>
|
<nga-card-body>
|
||||||
<ngx-disabled-buttons></ngx-disabled-buttons>
|
<ngx-disabled-buttons class="button-panel"></ngx-disabled-buttons>
|
||||||
</nga-card-body>
|
</nga-card-body>
|
||||||
</nga-card>
|
</nga-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
Large buttons
|
Large buttons
|
||||||
</nga-card-header>
|
</nga-card-header>
|
||||||
<nga-card-body>
|
<nga-card-body>
|
||||||
<ngx-large-buttons></ngx-large-buttons>
|
<ngx-large-buttons class="large-buttons-panel"></ngx-large-buttons>
|
||||||
</nga-card-body>
|
</nga-card-body>
|
||||||
</nga-card>
|
</nga-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,52 +1,64 @@
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
|
font-size: 1rem;
|
||||||
|
|
||||||
/deep/ {
|
/deep/ {
|
||||||
.basic-btns {
|
.basic-btns {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
margin-bottom: -8px;
|
margin-bottom: -8px;
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
font-size: 12px;
|
|
||||||
&.row-sm {
|
&.row-sm {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.row-xs {
|
&.row-xs {
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& {
|
& {
|
||||||
.row {
|
.row {
|
||||||
padding-bottom: 4px;
|
padding-bottom: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btns-row {
|
.btns-row {
|
||||||
& {
|
& {
|
||||||
div {
|
div {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.btns-same-width-sm {
|
.btns-same-width-sm {
|
||||||
.btn {
|
.btn {
|
||||||
width: 48px;
|
width: 48px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btns-same-width-md {
|
.btns-same-width-md {
|
||||||
.btn {
|
.btn {
|
||||||
width: 79px;
|
width: 79px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btns-same-width-lg {
|
.btns-same-width-lg {
|
||||||
.btn {
|
.btn {
|
||||||
width: 112px;
|
width: 112px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ul.btn-list {
|
|
||||||
|
ul {
|
||||||
|
&.btn-list {
|
||||||
margin: 0 0 0 -18px;
|
margin: 0 0 0 -18px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
padding-top: 6px;
|
padding-top: 6px;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
margin: 0 0 12px 18px;
|
margin: 0 0 12px 18px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
@ -54,10 +66,14 @@
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.btn-group-wrapper {
|
.btn-group-wrapper {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
$btn-icon-size: 34px;
|
$btn-icon-size: 34px;
|
||||||
|
|
||||||
.btn-icon {
|
.btn-icon {
|
||||||
width: $btn-icon-size;
|
width: $btn-icon-size;
|
||||||
height: $btn-icon-size;
|
height: $btn-icon-size;
|
||||||
|
|
@ -65,64 +81,84 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group-example {
|
.btn-group-example {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-toolbar-example {
|
.btn-toolbar-example {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-buttons-container {
|
.progress-buttons-container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16px;
|
|
||||||
span.button-title {
|
span {
|
||||||
|
.button-title {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
font-size: 14px;
|
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.row + .row {
|
.row + .row {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-panel {
|
.button-panel {
|
||||||
height: 315px;
|
height: 315px;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.large-buttons-panel {
|
.large-buttons-panel {
|
||||||
height: 202px;
|
height: 202px;
|
||||||
}
|
}
|
||||||
.button-panel.df-size-button-panel {
|
|
||||||
|
.button-panel {
|
||||||
|
&.df-size-button-panel {
|
||||||
.btn-xs {
|
.btn-xs {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-sm {
|
.btn-sm {
|
||||||
width: 90px;
|
width: 90px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-mm {
|
.btn-mm {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-md {
|
.btn-md {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-xm {
|
.btn-xm {
|
||||||
width: 175px;
|
width: 175px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-lg {
|
.btn-lg {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.button-wrapper {
|
.button-wrapper {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
}
|
}
|
||||||
.btn-group.flex-dropdown {
|
|
||||||
|
.btn-group {
|
||||||
|
&.flex-dropdown {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
13
yarn.lock
13
yarn.lock
|
|
@ -4662,6 +4662,10 @@ ripemd160@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-1.0.1.tgz#93a4bbd4942bc574b69a8fa57c71de10ecca7d6e"
|
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-1.0.1.tgz#93a4bbd4942bc574b69a8fa57c71de10ecca7d6e"
|
||||||
|
|
||||||
|
roboto-fontface@0.7.0:
|
||||||
|
version "0.7.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/roboto-fontface/-/roboto-fontface-0.7.0.tgz#2f36464e5c99353e8427f55f1fca7be1a8a417d9"
|
||||||
|
|
||||||
rsvp@^3.0.17:
|
rsvp@^3.0.17:
|
||||||
version "3.5.0"
|
version "3.5.0"
|
||||||
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.5.0.tgz#a62c573a4ae4e1dfd0697ebc6242e79c681eaa34"
|
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.5.0.tgz#a62c573a4ae4e1dfd0697ebc6242e79c681eaa34"
|
||||||
|
|
@ -5928,20 +5932,13 @@ write-file-stdout@0.0.2:
|
||||||
version "0.0.2"
|
version "0.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/write-file-stdout/-/write-file-stdout-0.0.2.tgz#c252d7c7c5b1b402897630e3453c7bfe690d9ca1"
|
resolved "https://registry.yarnpkg.com/write-file-stdout/-/write-file-stdout-0.0.2.tgz#c252d7c7c5b1b402897630e3453c7bfe690d9ca1"
|
||||||
|
|
||||||
ws@1.1.1:
|
ws@1.1.1, ws@^1.0.1:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.1.tgz#082ddb6c641e85d4bb451f03d52f06eabdb1f018"
|
resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.1.tgz#082ddb6c641e85d4bb451f03d52f06eabdb1f018"
|
||||||
dependencies:
|
dependencies:
|
||||||
options ">=0.0.5"
|
options ">=0.0.5"
|
||||||
ultron "1.0.x"
|
ultron "1.0.x"
|
||||||
|
|
||||||
ws@^1.0.1:
|
|
||||||
version "1.1.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.4.tgz#57f40d036832e5f5055662a397c4de76ed66bf61"
|
|
||||||
dependencies:
|
|
||||||
options ">=0.0.5"
|
|
||||||
ultron "1.0.x"
|
|
||||||
|
|
||||||
wtf-8@1.0.0:
|
wtf-8@1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/wtf-8/-/wtf-8-1.0.0.tgz#392d8ba2d0f1c34d1ee2d630f15d0efb68e1048a"
|
resolved "https://registry.yarnpkg.com/wtf-8/-/wtf-8-1.0.0.tgz#392d8ba2d0f1c34d1ee2d630f15d0efb68e1048a"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue