lang input placement

This commit is contained in:
Baptiste Lemoine 2020-01-20 15:35:33 +01:00
parent f8568eb910
commit ff5c11e79c
10 changed files with 133 additions and 121 deletions

View File

@ -29,7 +29,7 @@
> >
<select <select
name="language" name="language"
class="Language-" class="language-selector"
(change)="switchLanguage(currentLang)" (change)="switchLanguage(currentLang)"
[(ngModel)]="currentLang" [(ngModel)]="currentLang"
> >

View File

@ -13,3 +13,7 @@ header {
i { i {
display: block; display: block;
} }
.language-selector {
width: auto;
}

View File

@ -31,21 +31,12 @@
</div > </div >
<button <button [routerLink]="'/step/visibility'"
(click)='submitCreationAndGoToEnd()' class="btn btn--primary btn--full">
class="btn btn--primary btn--full"
i18n="@@confirm" >
C'est parfait! C'est parfait!
<i
class='fa fa-paper-plane'
*ngIf="!config.loading" ></i >
<span
class="loading"
*ngIf="config.loading" >
<i class="fa fa-refresh fa-spin fa-fw" ></i >
</span >
</button> </button>
<div class="back" > <div class="back" >
<a <a
[routerLink]="'/step/answers'" [routerLink]="'/step/answers'"

View File

@ -15,7 +15,4 @@ export class ResumeComponent extends BaseComponent {
super(config); super(config);
} }
submitCreationAndGoToEnd() {
this.config.createPoll();
}
} }

View File

@ -94,7 +94,7 @@
</section > </section >
<section class="access" > <section class="access" >
<h2 > <h2 class='title' >
{{"visibility.access"|translate}} {{"visibility.access"|translate}}
</h2 > </h2 >
<label for="url" > <label for="url" >
@ -159,11 +159,21 @@
</div > </div >
</section > </section >
<a <button
[routerLink]="'/step/end'" (click)='submitCreationAndGoToEnd()'
class="btn btn-link btn--primary" > class="btn btn--primary btn--full"
i18n="@@confirm" >
{{"visibility.validate_btn"|translate}} {{"visibility.validate_btn"|translate}}
</a > <i
class='fa fa-paper-plane'
*ngIf="!config.loading" ></i >
<span
class="loading"
*ngIf="config.loading" >
<i class="fa fa-refresh fa-spin fa-fw" ></i >
</span >
</button >
<div class="back" > <div class="back" >
<a <a

View File

@ -0,0 +1,5 @@
:host {
h2 {
margin-top: 1em;
}
}

View File

@ -21,5 +21,8 @@ export class VisibilityComponent extends BaseComponent implements OnInit {
this.config.expirationDate = (this.config.addDaysToDate(this.config.expiracyDateDefaultInDays, new Date())).toISOString().substring(0, 10); this.config.expirationDate = (this.config.addDaysToDate(this.config.expiracyDateDefaultInDays, new Date())).toISOString().substring(0, 10);
} }
submitCreationAndGoToEnd() {
this.config.createPoll();
}
} }

View File

@ -97,10 +97,6 @@ input {
} }
} }
label {
font-weight: 600;
font-size: 18px;
}
.comment { .comment {
border-left: 6px solid $ugly-purple; border-left: 6px solid $ugly-purple;

View File

@ -6,7 +6,7 @@ a {
font-family: $default_font; font-family: $default_font;
font-weight: 600; font-weight: 600;
font-size: 1.6rem; font-size: 1.6rem;
color: $font_color; color: $font_color !important;
&, &,
&:hover { &:hover {

View File

@ -10,12 +10,17 @@
.logo_second { .logo_second {
color: $logo_color_2; color: $logo_color_2;
} }
.wrapper { .wrapper {
display: grid; display: grid;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: 80px; width: 20em;
margin-top: 1rem; margin-top: 1rem;
select {
float: right;
}
} }
.lang_icon { .lang_icon {
@ -23,6 +28,7 @@
grid-row: 1; grid-row: 1;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
margin-bottom: 1ch;
} }
.menu_icon { .menu_icon {