Combine Overview css definition and fix layouts

pull/12/head
Florian Hartwich 2017-10-07 19:32:16 +02:00
parent 7a6146f187
commit 840185d2e3
31 changed files with 93 additions and 142 deletions

View File

@ -1,13 +1,5 @@
.overview { .overview {
position: fixed; padding: 80px 0 0 10%!important;
overflow-y: scroll;
overflow-x: hidden;
bottom: 20px;
width: 100%;
padding-left: 50px;
padding-top: 190px;
margin-left: 10px;
height: 100vh;
} }
.trash { .trash {
@ -32,3 +24,11 @@
.cell-outline { .cell-outline {
outline: 1px solid #D4D4D4; outline: 1px solid #D4D4D4;
} }
.label {
display: block;
position: absolute;
font-size: 12px;
padding: 5px;
margin-left: 25%;
}

View File

@ -3,8 +3,7 @@
<h2>Admin Panel</h2> <h2>Admin Panel</h2>
<span *ngIf="showSuccessLabel" <span *ngIf="showSuccessLabel"
class="label label-success label-small" class="label label-success label-small">
style="margin-left: inherit">
Erfolgreich gespeichert Erfolgreich gespeichert
</span> </span>

View File

@ -8,7 +8,7 @@ import {SquadService} from "../services/squad-service/squad.service";
@Component({ @Component({
selector: 'admin-panel', selector: 'admin-panel',
templateUrl: './admin.component.html', templateUrl: './admin.component.html',
styleUrls: ['./admin.component.css'] styleUrls: ['./admin.component.css', '../style/overview.css']
}) })
export class AdminComponent { export class AdminComponent {

View File

@ -7,7 +7,7 @@ import {Subscription} from "rxjs/Subscription";
@Component({ @Component({
templateUrl: './edit-decoration.component.html', templateUrl: './edit-decoration.component.html',
styleUrls: ['./edit-decoration.component.css', '../../style/entry-form.css'] styleUrls: ['./edit-decoration.component.css', '../../style/entry-form.css', '../../style/overview.css']
}) })
export class EditDecorationComponent { export class EditDecorationComponent {

View File

@ -8,7 +8,7 @@ import {Subscription} from "rxjs/Subscription";
@Component({ @Component({
templateUrl: './edit-rank.component.html', templateUrl: './edit-rank.component.html',
styleUrls: ['./edit-rank.component.css', '../../style/entry-form.css'] styleUrls: ['./edit-rank.component.css', '../../style/entry-form.css', '../../style/overview.css']
}) })
export class EditRankComponent { export class EditRankComponent {

View File

@ -1,3 +1,8 @@
.overview {
width: 100%!important;
margin-left: 25px!important;
}
.decoration-preview { .decoration-preview {
padding: 5px; padding: 5px;
} }
@ -14,30 +19,24 @@
.table-container { .table-container {
margin-top: 40px; margin-top: 40px;
overflow-x: auto; overflow-x: auto;
width: 65%; width: 75%;
} min-width: 800px;
padding: 5px;
/* enable scrolling for long list of awardings */
.overview {
position: fixed;
overflow-y: scroll;
overflow-x: hidden;
width: 100%;
border-left: thin solid lightgrey;
padding: 20px 0 0 50px;
margin-left: 10px;
height: 100vh;
bottom: 10px;
} }
.form-group { .form-group {
width: 25%; width: 25%;
min-width: 300px;
} }
h3 { h3 {
margin: 80px 0 20px -20px; margin: 80px 0 20px -20px;
} }
label { .label {
display: block; display: block;
position: absolute;
font-size: 12px;
padding: 5px;
margin-left: 25%;
} }

View File

@ -17,7 +17,6 @@
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="decoration">Auszeichnung</label> <label for="decoration">Auszeichnung</label>
<select class="form-control" <select class="form-control"
@ -64,8 +63,7 @@
</button> </button>
<span *ngIf="showSuccessLabel" <span *ngIf="showSuccessLabel"
class="label label-success label-small" class="label label-success label-small">
style="margin-left: inherit">
Erfolgreich gespeichert Erfolgreich gespeichert
</span> </span>

View File

@ -10,7 +10,7 @@ import {LoginService} from "../../services/login-service/login-service";
@Component({ @Component({
templateUrl: './req-award.component.html', templateUrl: './req-award.component.html',
styleUrls: ['./req-award.component.css'], styleUrls: ['./req-award.component.css', '../../style/overview.css'],
}) })
export class RequestAwardComponent { export class RequestAwardComponent {

View File

@ -1,3 +1,7 @@
.overview {
margin-left: 25px!important;
}
.decoration-preview { .decoration-preview {
padding: 5px; padding: 5px;
} }
@ -15,19 +19,7 @@
margin-top: 40px; margin-top: 40px;
overflow-x: auto; overflow-x: auto;
width: 75%; width: 75%;
} padding: 5px;
/* enable scrolling for long list of awardings */
.overview {
position: fixed;
overflow-y: scroll;
overflow-x: hidden;
width: 100%;
border-left: thin solid lightgrey;
padding: 20px 0 0 50px;
margin-left: 10px;
height: 100vh;
bottom: 10px;
} }
.form-group { .form-group {
@ -38,6 +30,10 @@ h3 {
margin: 80px 0 20px -20px; margin: 80px 0 20px -20px;
} }
label { .label {
display: block; display: block;
position: absolute;
font-size: 12px;
padding: 5px;
margin-left: 25%;
} }

View File

@ -2,8 +2,7 @@
<h3>Offene Anträge - Auszeichnungen</h3> <h3>Offene Anträge - Auszeichnungen</h3>
<span *ngIf="showSuccessLabel" <span *ngIf="showSuccessLabel"
class="label label-success label-small" class="label label-success label-small">
style="margin-left: inherit">
Erfolgreich gespeichert Erfolgreich gespeichert
</span> </span>

View File

@ -6,7 +6,7 @@ import {LoginService} from "../../services/login-service/login-service";
@Component({ @Component({
templateUrl: './confirm-award.component.html', templateUrl: './confirm-award.component.html',
styleUrls: ['./confirm-award.component.css'], styleUrls: ['./confirm-award.component.css', '../../style/overview.css'],
}) })
export class ConfirmAwardComponent { export class ConfirmAwardComponent {

View File

@ -1,3 +1,7 @@
.overview {
margin-left: 25px!important;
}
.decoration-preview { .decoration-preview {
padding: 5px; padding: 5px;
} }
@ -15,19 +19,7 @@
margin-top: 40px; margin-top: 40px;
overflow-x: auto; overflow-x: auto;
width: 65%; width: 65%;
} padding: 5px;
/* enable scrolling for long list of awardings */
.overview {
position: fixed;
overflow-y: scroll;
overflow-x: hidden;
width: 100%;
border-left: thin solid lightgrey;
padding: 20px 0 0 50px;
margin-left: 10px;
height: 100vh;
bottom: 10px;
} }
.form-group { .form-group {
@ -38,6 +30,10 @@ h3 {
margin: 80px 0 20px -20px; margin: 80px 0 20px -20px;
} }
label { .label {
display: block; display: block;
position: absolute;
font-size: 12px;
padding: 5px;
margin-left: 25%;
} }

View File

@ -2,8 +2,7 @@
<h3>Offene Anträge - Beförderung</h3> <h3>Offene Anträge - Beförderung</h3>
<span *ngIf="showSuccessLabel" <span *ngIf="showSuccessLabel"
class="label label-success label-small" class="label label-success label-small">
style="margin-left: inherit">
Erfolgreich gespeichert Erfolgreich gespeichert
</span> </span>

View File

@ -7,7 +7,7 @@ import {LoginService} from "../../services/login-service/login-service";
@Component({ @Component({
templateUrl: './confirm-promotion.component.html', templateUrl: './confirm-promotion.component.html',
styleUrls: ['./confirm-promotion.component.css'], styleUrls: ['./confirm-promotion.component.css', '../../style/overview.css'],
}) })
export class ConfirmPromotionComponent { export class ConfirmPromotionComponent {

View File

@ -1,3 +1,7 @@
.overview {
margin-left: 25px!important;
}
.decoration-preview { .decoration-preview {
padding: 5px; padding: 5px;
} }
@ -15,29 +19,23 @@
margin-top: 40px; margin-top: 40px;
overflow-x: auto; overflow-x: auto;
width: 65%; width: 65%;
} min-width: 800px;
padding: 5px;
/* enable scrolling for long list of awardings */
.overview {
position: fixed;
overflow-y: scroll;
overflow-x: hidden;
width: 100%;
border-left: thin solid lightgrey;
padding: 20px 0 0 50px;
margin-left: 10px;
height: 100vh;
bottom: 10px;
} }
.form-group { .form-group {
width: 25%; width: 25%;
min-width: 300px;
} }
h3 { h3 {
margin: 80px 0 20px -20px; margin: 80px 0 20px -20px;
} }
label { .label {
display: block; display: block;
position: absolute;
font-size: 12px;
padding: 5px;
margin-left: 25%;
} }

View File

@ -58,8 +58,7 @@
</button> </button>
<span *ngIf="showSuccessLabel" <span *ngIf="showSuccessLabel"
class="label label-success label-small" class="label label-success label-small">
style="margin-left: inherit">
Erfolgreich gespeichert Erfolgreich gespeichert
</span> </span>

View File

@ -10,7 +10,7 @@ import {LoginService} from "../../services/login-service/login-service";
@Component({ @Component({
templateUrl: './req-promotion.component.html', templateUrl: './req-promotion.component.html',
styleUrls: ['./req-promotion.component.css'], styleUrls: ['./req-promotion.component.css', '../../style/overview.css'],
}) })
export class RequestPromotionComponent { export class RequestPromotionComponent {

View File

@ -8,7 +8,7 @@ import {Subscription} from "rxjs/Subscription";
@Component({ @Component({
templateUrl: './edit-squad.component.html', templateUrl: './edit-squad.component.html',
styleUrls: ['./edit-squad.component.css', '../../style/entry-form.css'] styleUrls: ['./edit-squad.component.css', '../../style/entry-form.css', '../../style/overview.css']
}) })
export class EditSquadComponent { export class EditSquadComponent {

View File

@ -1,13 +1,3 @@
.overview {
position: fixed;
overflow-y: scroll;
overflow-x: hidden;
border-left: thin solid lightgrey;
bottom: 20px;
padding: 70px 1% 0 1%;
height: 100vh;
}
h2 { h2 {
padding: 10px; padding: 10px;
} }

View File

@ -1,4 +1,4 @@
<div class="overview fade-in" xmlns="http://www.w3.org/1999/html"> <div class="overview fade-in" style="padding: 70px 1% 0 1%;" xmlns="http://www.w3.org/1999/html">
<h2 class="pull-left">Spielerstatistik - {{campaignPlayer.name}}</h2> <h2 class="pull-left">Spielerstatistik - {{campaignPlayer.name}}</h2>
<h2 class="pull-right">{{campaignPlayer.campaign.title}} Kampagne</h2> <h2 class="pull-right">{{campaignPlayer.campaign.title}} Kampagne</h2>

View File

@ -9,7 +9,8 @@ import {Location} from '@angular/common';
@Component({ @Component({
selector: 'campaign-player-detail', selector: 'campaign-player-detail',
templateUrl: './campaign-player-detail.component.html', templateUrl: './campaign-player-detail.component.html',
styleUrls: ['./campaign-player-detail.component.css', '../../style/list-entry.css', '../../style/hide-scrollbar.css'] styleUrls: ['./campaign-player-detail.component.css', '../../style/list-entry.css',
'../../style/hide-scrollbar.css', '../../style/overview.css']
}) })
export class CampaignPlayerDetailComponent { export class CampaignPlayerDetailComponent {

View File

@ -1,8 +0,0 @@
.overview {
position: fixed;
width: 25%;
min-width: 300px;
padding-left: 50px;
padding-top: 70px;
margin-left: 10px;
}

View File

@ -8,7 +8,7 @@ import {CampaignService} from "../../services/campaign-service/campaign.service"
@Component({ @Component({
selector: 'campaign-submit', selector: 'campaign-submit',
templateUrl: './campaign-submit.component.html', templateUrl: './campaign-submit.component.html',
styleUrls: ['./campaign-submit.component.css'] styleUrls: ['./campaign-submit.component.css', '../../style/entry-form.css', '../../style/overview.css']
}) })
export class CampaignSubmitComponent { export class CampaignSubmitComponent {

View File

@ -8,7 +8,7 @@ import {ChartUtils} from "../../utils/chart-utils";
@Component({ @Component({
selector: 'stats-overview', selector: 'stats-overview',
templateUrl: './stats-overview.component.html', templateUrl: './stats-overview.component.html',
styleUrls: ['./stats-overview.component.css', '../../style/list-entry.css'], styleUrls: ['./stats-overview.component.css', '../../style/list-entry.css', '../../style/overview.css'],
inputs: ['campaigns'], inputs: ['campaigns'],
providers: [{provide: CarouselConfig, useValue: {interval: false}}] providers: [{provide: CarouselConfig, useValue: {interval: false}}]
}) })

View File

@ -1,8 +0,0 @@
.overview {
position: fixed;
width: 25%;
min-width: 300px;
padding-left: 50px;
padding-top: 70px;
margin-left: 10px;
}

View File

@ -9,7 +9,8 @@ import {CampaignService} from "../../services/campaign-service/campaign.service"
@Component({ @Component({
selector: 'war-submit', selector: 'war-submit',
templateUrl: './war-submit.component.html', templateUrl: './war-submit.component.html',
styleUrls: ['./war-submit.component.css', '../../style/load-indicator.css'] styleUrls: ['./war-submit.component.css', '../../style/load-indicator.css',
'../../style/entry-form.css', '../../style/overview.css']
}) })
export class WarSubmitComponent { export class WarSubmitComponent {

View File

@ -1,3 +1,10 @@
.overview {
overflow: hidden!important;
padding-top: 80px!important;
width: 20%;
min-width: 280px;
}
h3 { h3 {
margin-left: -20px; margin-left: -20px;
} }
@ -10,17 +17,6 @@ label {
border-color: red; border-color: red;
} }
.overview {
position: fixed;
width: 25%;
min-width: 500px;
border-left: thin solid lightgrey;
padding-left: 50px;
padding-top: 20px;
margin-left: 10px;
height: 100vh;
}
.preview-image { .preview-image {
margin: 10px; margin: 10px;
} }

View File

@ -0,0 +1,9 @@
.overview {
position: fixed;
overflow-y: scroll;
overflow-x: hidden;
border-left: thin solid lightgrey;
padding: 20px 0 0 50px;
height: 100vh;
bottom: 10px;
}

View File

@ -18,19 +18,6 @@
width: 50%; width: 50%;
} }
/* enable scrolling for long list of awardings */
.overview {
position: fixed;
overflow-y: scroll;
overflow-x: hidden;
width: 100%;
border-left: thin solid lightgrey;
padding: 20px 0 0 50px;
margin-left: 10px;
height: 100vh;
bottom: 10px;
}
.form-group { .form-group {
width: 25%; width: 25%;
} }

View File

@ -8,7 +8,7 @@ import {DecorationService} from "../../services/decoration-service/decoration.se
@Component({ @Component({
templateUrl: './award-user.component.html', templateUrl: './award-user.component.html',
styleUrls: ['./award-user.component.css'], styleUrls: ['./award-user.component.css', '../../style/overview.css', '../../style/hide-scrollbar.css'],
}) })
export class AwardUserComponent { export class AwardUserComponent {

View File

@ -10,7 +10,7 @@ import {NgForm} from "@angular/forms";
@Component({ @Component({
templateUrl: './edit-user.component.html', templateUrl: './edit-user.component.html',
styleUrls: ['./edit-user.component.css', '../../style/entry-form.css'], styleUrls: ['./edit-user.component.css', '../../style/entry-form.css', '../../style/overview.css'],
}) })
export class EditUserComponent { export class EditUserComponent {