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
name="language"
class="Language-"
class="language-selector"
(change)="switchLanguage(currentLang)"
[(ngModel)]="currentLang"
>

View File

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

View File

@ -31,21 +31,12 @@
</div >
<button
(click)='submitCreationAndGoToEnd()'
class="btn btn--primary btn--full"
i18n="@@confirm" >
<button [routerLink]="'/step/visibility'"
class="btn btn--primary btn--full">
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>
<div class="back" >
<a
[routerLink]="'/step/answers'"

View File

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

View File

@ -94,7 +94,7 @@
</section >
<section class="access" >
<h2 >
<h2 class='title' >
{{"visibility.access"|translate}}
</h2 >
<label for="url" >
@ -159,11 +159,21 @@
</div >
</section >
<a
[routerLink]="'/step/end'"
class="btn btn-link btn--primary" >
<button
(click)='submitCreationAndGoToEnd()'
class="btn btn--primary btn--full"
i18n="@@confirm" >
{{"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" >
<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);
}
submitCreationAndGoToEnd() {
this.config.createPoll();
}
}

View File

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

View File

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

View File

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