remove style in html #1678 (#1743)

This commit is contained in:
Eugenio Romano
2017-03-22 10:50:24 +00:00
committed by Denys Vuika
parent 44808a31a3
commit f3c9ffab8d
17 changed files with 78 additions and 22 deletions

View File

@@ -0,0 +1,3 @@
.about-container {
padding: 10px;
}

View File

@@ -1,4 +1,4 @@
<div style="padding: 10px"> <div class="about-container">
<h3>Packages</h3> <h3>Packages</h3>
<alfresco-datatable [data]="data"></alfresco-datatable> <alfresco-datatable [data]="data"></alfresco-datatable>
</div> </div>

View File

@@ -22,7 +22,8 @@ import { LogService } from 'ng2-alfresco-core';
@Component({ @Component({
selector: 'about-page', selector: 'about-page',
templateUrl: './about.component.html' templateUrl: './about.component.html',
styleUrls: ['./about.component.css']
}) })
export class AboutComponent implements OnInit { export class AboutComponent implements OnInit {

View File

@@ -15,3 +15,8 @@
.error-message--text { .error-message--text {
color: #d50000; color: #d50000;
} }
.options-container {
width: 250px;
margin: 20px;
}

View File

@@ -107,7 +107,7 @@
<context-menu-holder></context-menu-holder> <context-menu-holder></context-menu-holder>
<p style="width:250px;margin: 20px;"> <p class="options-container">
<label for="switch-multiple-file" class="mdl-switch mdl-js-switch mdl-js-ripple-effect"> <label for="switch-multiple-file" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
<input type="checkbox" id="switch-multiple-file" class="mdl-switch__input" (change)="toggleMultipleFileUpload()" > <input type="checkbox" id="switch-multiple-file" class="mdl-switch__input" (change)="toggleMultipleFileUpload()" >
<span class="mdl-switch__label">Multiple File Upload</span> <span class="mdl-switch__label">Multiple File Upload</span>
@@ -115,14 +115,14 @@
</p> </p>
<p style="width:250px;margin: 20px;"> <p class="options-container">
<label for="switch-folder-upload" class="mdl-switch mdl-js-switch mdl-js-ripple-effect"> <label for="switch-folder-upload" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
<input type="checkbox" id="switch-folder-upload" class="mdl-switch__input" (change)="toggleFolder()"> <input type="checkbox" id="switch-folder-upload" class="mdl-switch__input" (change)="toggleFolder()">
<span class="mdl-switch__label">Folder Upload</span> <span class="mdl-switch__label">Folder Upload</span>
</label> </label>
</p> </p>
<p style="width:250px;margin: 20px;"> <p class="options-container">
<label for="switch-accepted-file-type" class="mdl-switch mdl-js-switch mdl-js-ripple-effect"> <label for="switch-accepted-file-type" class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
<input type="checkbox" id="switch-accepted-file-type" class="mdl-switch__input" (change)="toggleAcceptedFilesType()"> <input type="checkbox" id="switch-accepted-file-type" class="mdl-switch__input" (change)="toggleAcceptedFilesType()">
<span class="mdl-switch__label">Filter extension</span> <span class="mdl-switch__label">Filter extension</span>

View File

@@ -2,6 +2,7 @@
width: 320px; width: 320px;
height: 320px; height: 320px;
} }
.setting-card > .mdl-card__title { .setting-card > .mdl-card__title {
color: #fff; color: #fff;
background: bottom right 15% no-repeat #1fbcd2; background: bottom right 15% no-repeat #1fbcd2;
@@ -23,4 +24,8 @@
.icon-margin { .icon-margin {
margin-right: 9px; margin-right: 9px;
} }
.table-row {
display: table-row;
}

View File

@@ -1,5 +1,5 @@
<div class="setting-container"> <div class="setting-container">
<div style="display: table-row"> <div class="table-row">
<div class="setting-card-padding"></div> <div class="setting-card-padding"></div>
<div class="setting-card mdl-card mdl-shadow--2dp"> <div class="setting-card mdl-card mdl-shadow--2dp">
<div class="mdl-card__title mdl-card--expand"> <div class="mdl-card__title mdl-card--expand">

View File

@@ -1,4 +1,7 @@
.chart {display: block; width: 100%;} .chart {
display: block;
width: 100%;
}
.analytics-row__entry { .analytics-row__entry {
cursor: pointer; cursor: pointer;
@@ -8,3 +11,16 @@
margin: 20px 20px 20px 20px; margin: 20px 20px 20px 20px;
float: right; float: right;
} }
.full-width {
width: 100%
}
.partial-width {
width: 80%;
margin-left: 20px
}
.clear-both {
clear: both;
}

View File

@@ -7,7 +7,7 @@
<i class="material-icons">{{report.icon}}</i> <i class="material-icons">{{report.icon}}</i>
</button> </button>
</div> </div>
<div style="clear: both"> </div> <div class="clear-both"> </div>
<div *ngFor="let report of reports; let idx = index"> <div *ngFor="let report of reports; let idx = index">
<div [ngSwitch]="report.type"> <div [ngSwitch]="report.type">
<div *ngSwitchCase="'pie'"> <div *ngSwitchCase="'pie'">
@@ -29,7 +29,7 @@
<h4>{{report.title}}</h4> <h4>{{report.title}}</h4>
<div *ngIf="!report.hasDatasets()">{{'ANALYTICS.MESSAGES.NO-DATA-FOUND' | translate}}</div> <div *ngIf="!report.hasDatasets()">{{'ANALYTICS.MESSAGES.NO-DATA-FOUND' | translate}}</div>
<div [attr.id]="'chart-table-' + report.id" *ngIf="report.hasDatasets()"> <div [attr.id]="'chart-table-' + report.id" *ngIf="report.hasDatasets()">
<table class="table table-responsive table-condensed" style="width: 80%;margin-left: 20px"> <table class="table table-responsive table-condensed" class="partial-width">
<tr> <tr>
<th *ngFor="let label of report.labels">{{label | translate}}</th> <th *ngFor="let label of report.labels">{{label | translate}}</th>
</tr> </tr>
@@ -45,7 +45,7 @@
<h4>{{report.title}}</h4> <h4>{{report.title}}</h4>
<div *ngIf="!report.hasDatasets()">{{'ANALYTICS.MESSAGES.NO-DATA-FOUND' | translate}}</div> <div *ngIf="!report.hasDatasets()">{{'ANALYTICS.MESSAGES.NO-DATA-FOUND' | translate}}</div>
<div [attr.id]="'chart-master-detail-table-' + report.id" *ngIf="report.hasDatasets()"> <div [attr.id]="'chart-master-detail-table-' + report.id" *ngIf="report.hasDatasets()">
<table class="table table-responsive table-condensed" style="width: 100%"> <table class="table table-responsive table-condensed" class="full-width">
<tr> <tr>
<th *ngFor="let label of report.labels">{{label | translate}}</th> <th *ngFor="let label of report.labels">{{label | translate}}</th>
</tr> </tr>
@@ -55,7 +55,7 @@
</table> </table>
</div> </div>
<div [attr.id]="'chart-master-detail-' + report.id" *ngIf="isShowDetails()"> <div [attr.id]="'chart-master-detail-' + report.id" *ngIf="isShowDetails()">
<table class="table table-responsive table-condensed" style="width: 100%"> <table class="table table-responsive table-condensed" class="full-width">
<tr> <tr>
<th *ngFor="let label of report.detailsTable.labels">{{label | translate}}</th> <th *ngFor="let label of report.detailsTable.labels">{{label | translate}}</th>
</tr> </tr>

View File

@@ -17,3 +17,7 @@
.number-widget__invalid .mdl-textfield__error { .number-widget__invalid .mdl-textfield__error {
visibility: visible !important; visibility: visible !important;
} }
.dropdown-container {
margin-top: 30px;
}

View File

@@ -12,7 +12,7 @@
</div> </div>
</div> </div>
<div class="mdl-cell mdl-cell--6-col"> <div class="mdl-cell mdl-cell--6-col">
<div style="margin-top: 30px"> <div class="dropdown-container">
<dropdown-widget [field]="duration" [group]="formGroup" [controllerName]="'timeType'" <dropdown-widget [field]="duration" [group]="formGroup" [controllerName]="'timeType'"
[showDefaultOption]="false" [showDefaultOption]="false"
(fieldChanged)="calculateDuration()"></dropdown-widget> (fieldChanged)="calculateDuration()"></dropdown-widget>

View File

@@ -24,3 +24,11 @@
.activiti-form-hide-button { .activiti-form-hide-button {
display: none; display: none;
} }
.activiti-debug-button {
float: right;
}
.activiti-task-title {
text-align: center
}

View File

@@ -1,6 +1,6 @@
<div> <div>
<div *ngIf="!hasForm()"> <div *ngIf="!hasForm()">
<h3 style="text-align: center">Please select a Task</h3> <h3 class="activiti-task-title">Please select a Task</h3>
</div> </div>
<div *ngIf="hasForm()"> <div *ngIf="hasForm()">
<div class="mdl-card mdl-shadow--2dp activiti-form-container {{form.className}}"> <div class="mdl-card mdl-shadow--2dp activiti-form-container {{form.className}}">
@@ -44,7 +44,7 @@ will be removed during future revisions
--> -->
<div *ngIf="showDebugButton" class="activiti-form-debug-container"> <div *ngIf="showDebugButton" class="activiti-form-debug-container">
<div style="float: right"> <div class="activiti-debug-button">
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-1" [class.is-checked]="debugMode"> <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-1" [class.is-checked]="debugMode">
<input type="checkbox" id="switch-1" class="mdl-switch__input" [(ngModel)]="debugMode"> <input type="checkbox" id="switch-1" class="mdl-switch__input" [(ngModel)]="debugMode">
<span class="mdl-switch__label"></span> <span class="mdl-switch__label"></span>

View File

@@ -221,3 +221,7 @@
margin-top: 5px; margin-top: 5px;
display: block; display: block;
} }
.alfresco-login__message{
color: blue;
}

View File

@@ -16,7 +16,7 @@
<div> <div>
<div *ngIf="error" id="login-error" data-automation-id="login-error" <div *ngIf="error" id="login-error" data-automation-id="login-error"
class="error mdl-card__supporting-text">{{errorMsg | translate }}</div> class="error mdl-card__supporting-text">{{errorMsg | translate }}</div>
<div *ngIf="success" id="login-success" data-automation-id="login-success" class="mdl-card__supporting-text" style="color: blue;">{{'LOGIN.MESSAGES.LOGIN-SUCCESS' | translate }}</div> <div *ngIf="success" id="login-success" data-automation-id="login-success" class="mdl-card__supporting-text" class="alfresco-login__message">{{'LOGIN.MESSAGES.LOGIN-SUCCESS' | translate }}</div>
</div> </div>
<!--USERNAME FIELD--> <!--USERNAME FIELD-->

View File

@@ -41,6 +41,7 @@
text-align: center; text-align: center;
width: 100%; width: 100%;
} }
:host .truncate { :host .truncate {
margin-left: 0; margin-left: 0;
white-space: nowrap; white-space: nowrap;
@@ -48,11 +49,11 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
:host .mdl-progress{ :host .mdl-progress {
width: 150px; width: 150px;
} }
@media (max-device-width: 360px){ @media (max-device-width: 360px) {
.truncate { .truncate {
max-width: 50px; max-width: 50px;
margin-left: 0px; margin-left: 0px;
@@ -63,6 +64,7 @@
.truncate { .truncate {
width: 60px; width: 60px;
} }
.mdl-progress { .mdl-progress {
width: 60px; width: 60px;
} }
@@ -91,3 +93,11 @@
display: table-cell; display: table-cell;
} }
} }
.full-width {
width: 100%;
}
.no-width {
width: 0%;
}

View File

@@ -18,8 +18,8 @@
<td class="mdl-data-table__cell--non-numeric"> <td class="mdl-data-table__cell--non-numeric">
<div class="mdl-progress mdl-js-progress is-upgraded" id="{{file.id}}"> <div class="mdl-progress mdl-js-progress is-upgraded" id="{{file.id}}">
<div class="progressbar bar bar1" attr.data-automation-id="dialog_progress_{{file.name}}" [style.width.%]="file.progress.percent"></div> <div class="progressbar bar bar1" attr.data-automation-id="dialog_progress_{{file.name}}" [style.width.%]="file.progress.percent"></div>
<div class="bufferbar bar bar2" style="width: 100%;"></div> <div class="bufferbar bar bar2" class="full-width"></div>
<div class="auxbar bar bar3" style="width: 0%;"></div> <div class="auxbar bar bar3" class="no-width"></div>
</div> </div>
</td> </td>
<td class="mdl-data-table__cell--non-numeric mdl-cell--hide-phone size-column" attr.data-automation-id="{{file.name}}_filesize">{{file.size}}</td> <td class="mdl-data-table__cell--non-numeric mdl-cell--hide-phone size-column" attr.data-automation-id="{{file.name}}_filesize">{{file.size}}</td>