Merge remote-tracking branch 'origin/master'

Conflicts:
	src/app/theme/index.ts
This commit is contained in:
nixa 2016-05-02 17:14:40 +03:00
commit a182cb00ca
17 changed files with 118 additions and 53 deletions

View file

@ -1,13 +1,13 @@
import {Component, ViewEncapsulation} from 'angular2/core';
import {PopularApp} from './popularApp';
import {BaPanel} from '../../theme';
import {BaCard} from '../../theme';
@Component({
selector: 'dashboard',
pipes: [],
directives: [PopularApp, BaPanel],
directives: [PopularApp, BaCard],
encapsulation: ViewEncapsulation.None,
styles: [require('./dashboard.scss')],
template: require('./dashboard.html')

View file

@ -1,10 +1,10 @@
<div class="row">
<div class="col-xlg-9 col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="row">
<ba-panel class="col-xlg-4 col-lg-12 col-md-12 col-sm-5 col-xs-12"
ba-panel-class="popular-app medium-panel">
<ba-card class="col-xlg-4 col-lg-12 col-md-12 col-sm-5 col-xs-12"
baCardClass="popular-app medium-card">
<popular-app></popular-app>
</ba-panel>
</ba-card>
</div>
</div>
</div>

View file

@ -7,13 +7,13 @@
}
@media screen and (max-width: 1620px) {
.panel.feed-panel.large-panel {
.card.feed-card.large-card {
height: 824px;
}
}
.user-stats-panel {
.panel-title {
.user-stats-card {
.card-title {
padding: 0 0 15px;
}
}

View file

@ -1 +1,54 @@
@import '../dashboard';
@import "../../../theme/sass/conf/conf";
.card.popular-app {
&>.card-body {
padding: 0;
}
.popular-app-img {
position: relative;
background: rgba(0, 0, 0, 0.5);
padding: 30px 0;
height: 260px;
border-top-right-radius: 5px;
border-top-left-radius: 5px;
img {
max-width: 60%;
max-height: 70%;
position: absolute;
transform: translateY(-50%) translate(-50%);
top: 50%;
left: 50%;
}
}
.popular-app-cost {
font-size: 20px;
padding: 20px 22px;
border-bottom: 1px solid $border;
}
.popular-app-info {
padding: 20px 22px;
font-size: 20px;
text-align: center;
.info-label {
font-size: 12px;
}
}
.row {
margin: 0;
> div {
padding: 0;
}
}
}
body.badmin-transparent {
.popular-app-img {
border-top-right-radius: 5px;
border-top-left-radius: 5px;
}
.popular-app-cost {
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
box-shadow: 0px 1px 0px 0px rgba(255, 255, 255, 0.12);
}
}

View file

@ -0,0 +1,12 @@
import {Component, ViewEncapsulation, Input} from 'angular2/core';
@Component({
selector: 'ba-card',
styles: [require('./baCard.scss')],
template: require('./baCard.html'),
encapsulation: ViewEncapsulation.None
})
export class BaCard {
@Input() title:String;
@Input() baCardClass:String;
}

View file

@ -1,4 +1,4 @@
<div class="card {{panelType}} {{baPanelClass || ''}}" zoom-in ba-panel-blur>
<div class="card {{cardType}} {{baCardClass || ''}}" zoom-in ba-panel-blur>
<div *ngIf="title" class="card-header clearfix">
<h3 class="card-title">{{title}}</h3>
</div>

View file

@ -0,0 +1 @@
export * from './baCard.component';

View file

@ -1,12 +0,0 @@
import {Component, ViewEncapsulation, Input} from 'angular2/core';
@Component({
selector: 'ba-panel',
styles: [require('./baPanel.scss')],
template: require('./baPanel.html'),
encapsulation: ViewEncapsulation.None
})
export class BaPanel {
@Input() title:String;
@Input() baPanelClass:String;
}

View file

@ -1 +0,0 @@
export * from './baPanel.component';

View file

@ -1,5 +1,5 @@
export * from './pageTop';
export * from './msgCenter';
export * from './sidebar';
export * from './baPanel';
export * from './contentTop';
export * from './baCard';

View file

@ -198,3 +198,15 @@ a {
visibility: hidden !important;
}
}
.text-right {
text-align: right;
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}

View file

@ -47,20 +47,20 @@ h5 {
.typography-widget {
height: 100%;
.panel {
.card {
height: 620px;
}
.panel-title{
.card-title{
text-align: center;
width: 100%;
}
.panel.with-scroll .panel-body{
.card.with-scroll .card-body{
height: calc(100% - 45px);
}
.panel-content{
.card-content{
padding: 15px 22px 5px 22px;
}
@ -421,11 +421,11 @@ a.learn-more {
padding: 0 20px 50px 20px;
}
.panel.banner-column-panel {
.card.banner-column-card {
padding: 0;
margin-bottom: 90px;
.panel-body{
.card-body{
padding: 0;
}
}

View file

@ -1,5 +1,5 @@
$card-title-height: 44px;
$card-heading-font-size: 16px;
$card-header-font-size: 16px;
.card {
border: none;
@ -47,11 +47,11 @@ $card-heading-font-size: 16px;
height: 100%;
}
.card-heading, .card-footer {
.card-header, .card-footer {
height: $card-title-height;
font-size: $card-heading-font-size;
font-size: $card-header-font-size;
$vertical-padding: ($card-title-height - $card-heading-font-size) / 2;
$vertical-padding: ($card-title-height - $card-header-font-size) / 2;
padding: $vertical-padding 22px;
}
@ -65,7 +65,7 @@ $card-heading-font-size: 16px;
.card-white, .card-blur {
background-size: cover;
> .card-heading {
> .card-header {
background-color: transparent;
border: none;
color: $default-text;
@ -83,7 +83,7 @@ $card-heading-font-size: 16px;
}
.card-primary {
> .card-heading {
> .card-header {
color: $primary;
background-color: $primary-bg;
border-color: $primary-bg;
@ -91,7 +91,7 @@ $card-heading-font-size: 16px;
}
.card-success {
> .card-heading {
> .card-header {
color: $success;
background-color: $success-bg;
border-color: $success-bg;
@ -99,7 +99,7 @@ $card-heading-font-size: 16px;
}
.card-info {
> .card-heading {
> .card-header {
color: $info;
background-color: $info-bg;
border-color: $info-bg;
@ -107,7 +107,7 @@ $card-heading-font-size: 16px;
}
.card-warning {
> .card-heading {
> .card-header {
color: $warning;
background-color: $warning-bg;
border-color: $warning-bg;
@ -115,7 +115,7 @@ $card-heading-font-size: 16px;
}
.card-danger {
> .card-heading {
> .card-header {
color: $danger;
background-color: $danger-bg;
border-color: $danger-bg;
@ -123,13 +123,13 @@ $card-heading-font-size: 16px;
}
.card-primary, .card-success, .card-info, .card-warning, .card-danger {
.card-heading {
.card-header {
color: rgba(255, 255, 255, 0.8);
}
}
.card.bootstrap-card {
.card-body, .card-heading {
.card-body, .card-header {
p, div, span {
color: $default-text;
}
@ -142,7 +142,7 @@ $card-heading-font-size: 16px;
&.card-info,
&.card-warning,
&.card-danger {
.card-heading {
.card-header {
p, div, span {
color: rgba(255, 255, 255, 0.8);
}
@ -151,13 +151,13 @@ $card-heading-font-size: 16px;
}
.card-group .card.accordion-card {
.card-heading {
.card-header {
border-bottom: 0;
}
}
.card-group .card {
.card-heading {
.card-header {
border-bottom: 1px solid #ddd;
}
}

View file

@ -168,26 +168,26 @@
border: none;
}
.panel-primary, .panel-info, .panel-success, .panel-warning, .panel-danger, {
.panel-heading {
.card-primary, .card-info, .card-success, .card-warning, .card-danger, {
.card-header {
border-radius: 4px;
}
&.panel-open .panel-heading {
&.card-open .card-header {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
&:not(.panel-open) .panel-heading {
&:not(.card-open) .card-header {
transition-delay: .3s;
}
> .panel-heading + .panel-collapse > .panel-body {
> .card-header + .card-collapse > .card-body {
border-top: none;
}
}
.accordion-panel .panel-heading {
.accordion-card .card-header {
padding: 0;
.accordion-toggle {
display: inline-block;

View file

@ -1,3 +1,3 @@
@import "panel";
@import "card";
@import "dropdown";
@import "tabs";

View file

@ -96,7 +96,7 @@
p,
h1, h2, h3, h4, h5, h6,
.pie-chart-item,
.card-heading > .dropdown .dropdown-toggle,
.card-header > .dropdown .dropdown-toggle,
.card-title,
ol.blur span,
ul.blur,