style to fix button nav

This commit is contained in:
Tykayn 2021-12-09 15:06:55 +01:00 committed by tykayn
parent 9c55186aa1
commit cf7e6603f9
15 changed files with 69 additions and 132 deletions

View File

@ -72,9 +72,7 @@ export class AppComponent implements OnInit, OnDestroy, AfterViewInit {
this.onHomePage = evt.url === '/'; this.onHomePage = evt.url === '/';
let mainelem = this.document.querySelector('#big_container'); window.scrollTo(0, 0);
console.log('mainelem', mainelem);
window.scrollTo(0, mainelem.offsetTop);
}); });
if (!environment.production) { if (!environment.production) {

View File

@ -21,7 +21,8 @@
<div class="columns"> <div class="columns">
<div class="column"> <div class="column">
<label class="pull-left" for="dateChoices_{{ id }}"> <label class="pull-left" for="dateChoices_{{ id }}">
Date {{ id + 1 }} - {{ choice.date_object | date: 'E':'Europe/Paris':'fr_FR' }} Date {{ id + 1 }}
<!-- - {{ choice.date_object | date: 'E':'Europe/Paris':'fr_FR' }}-->
</label> </label>
<span class="format-helper pull-right">JJ/MM/AAAA</span> <span class="format-helper pull-right">JJ/MM/AAAA</span>
</div> </div>

View File

@ -1,5 +1,7 @@
@import '../../../../../../../styles/variables'; @import '../../../../../../../styles/variables';
.day-list-container {
padding-bottom: 2rem;
}
.day-weekend { .day-weekend {
background: #dccfed; background: #dccfed;
} }

View File

@ -80,11 +80,11 @@
</div> </div>
</div> </div>
</div> </div>
<app-nav-steps
[next_step_number]="pollService.step_current + 1"
[previous_step_number]="pollService.step_current - 1"
[is_finish_step]="true"
></app-nav-steps>
</div> </div>
</div> </div>
<app-nav-steps
[next_step_number]="pollService.step_current + 1"
[previous_step_number]="pollService.step_current - 1"
[is_finish_step]="true"
></app-nav-steps>
</div> </div>

View File

@ -41,10 +41,9 @@
</div> </div>
</div> </div>
</div> </div>
<app-nav-steps
class="is-fixed-top"
[next_step_number]="pollService.step_current + 1"
[previous_step_number]="pollService.step_current - 1"
></app-nav-steps>
</form> </form>
<app-nav-steps
[next_step_number]="pollService.step_current + 1"
[previous_step_number]="pollService.step_current - 1"
></app-nav-steps>
</div> </div>

View File

@ -1,30 +1,24 @@
<div class="bottom-step-buttons" class="is-fixed-bottom"> <div class="bottom-step-buttons" style="">
<div class="container"> <button
<div class="columns half-columns"> *ngIf="display_previous_button"
<div class="column" *ngIf="display_previous_button"> class="button button-previous is-secondary pull-left"
<button [routerLink]="['/administration/step/' + previous_step_number]"
class="button button-previous is-secondary is-fullwidth" >
[routerLink]="['/administration/step/' + previous_step_number]" Précédent
> </button>
Précédent
</button> <button
</div> *ngIf="display_next_button"
<div class="column" [ngClass]="{ 'is-fullwidth': !display_previous_button }"> class="button button-next pull-right"
<button [ngClass]="{ 'is-finish': is_finish_step, 'is-primary': !is_finish_step }"
*ngIf="display_next_button" [routerLink]="['/administration/step/' + next_step_number]"
class="button button-next" (click)="runEndAction()"
[ngClass]="{ 'is-finish': is_finish_step, 'is-primary': !is_finish_step }" >
[routerLink]="['/administration/step/' + next_step_number]" <span *ngIf="is_finish_step">
(click)="runEndAction()" Enregistrer
> </span>
<span *ngIf="is_finish_step"> <span *ngIf="!is_finish_step">
Enregistrer Suivant
</span> </span>
<span *ngIf="!is_finish_step"> </button>
Suivant
</span>
</button>
</div>
</div>
</div>
</div> </div>

View File

@ -1,10 +1 @@
@import '../../../../styles/variables'; @import '../../../../styles/variables';
.bottom-step-buttons {
padding: 8px 16px;
}
.button {
&.is-secondary {
color: $secondary_color !important;
border-color: $secondary_color !important;
}
}

View File

@ -53,11 +53,7 @@
<div class="step-info"> <div class="step-info">
<div class="columns half-columns"> <div class="columns half-columns">
<div class="column"> <div class="column">
<a <a class="navbar-item pull-left is-hidden-mobile" [routerLink]="['/']" routerLinkActive="active">
class="navbar-item is-block pull-left is-hidden-mobile"
[routerLink]="['/']"
routerLinkActive="active"
>
<img src="assets/img/icone_home.png" alt="accueil FramaDate" /> <img src="assets/img/icone_home.png" alt="accueil FramaDate" />
</a> </a>
<h2 class="step-title-poll" *ngIf="pollService.step_current == 1"> <h2 class="step-title-poll" *ngIf="pollService.step_current == 1">

View File

@ -4,7 +4,7 @@
#creation_stepper { #creation_stepper {
@extend .fixed-box; @extend .fixed-box;
background: $white; background: $white;
height: 56px; height: 64px;
a { a {
@extend .clickable; @extend .clickable;

View File

@ -44,26 +44,26 @@
@import './styles/themes/all'; @import './styles/themes/all';
// most general dom elements // most general dom elements
@import './styles/partials/global'; @import './styles/partials/global';
@import './styles/partials/logo';
@import './styles/partials/navigation';
// main content elements // main content elements
@import './styles/partials/main'; @import './styles/partials/main';
@import './styles/partials/tables'; @import './styles/partials/tables';
@import './styles/partials/buttons'; @import './styles/partials/buttons';
// @import './styles/partials/links'; @import './styles/partials/logo';
@import './styles/partials/navigation';
@import './styles/partials/links';
@import './styles/partials/forms'; @import './styles/partials/forms';
@import './styles/partials/form-controls'; @import './styles/partials/form-controls';
@import './styles/partials/images'; @import './styles/partials/images';
// responsive, mobile first goal // responsive, mobile first
@import './styles/partials/responsive'; @import './styles/partials/responsive';
// reset suggested by material-angular // reset suggested by material-angular
html, //html,
body { //body {
height: 100%; // height: 100%;
} //}
body { body {
margin: 0; margin: 0;
font-family: Roboto, 'Helvetica Neue', sans-serif; font-family: $default_font;
} }

View File

@ -201,11 +201,9 @@ mat-checkbox {
} }
} }
.admin-form { .step {
.step { max-width: $main-column-width;
max-width: $main-column-width; margin: 0 auto;
margin: 0 auto;
}
} }
.fa { .fa {

View File

@ -1,50 +1 @@
@charset "UTF-8"; @charset "UTF-8";
a {
color: $primary !important;
@extend .button, .is-hoverable;
&:hover,
&:focus {
color: $dark !important;
background: $pale-purple;
}
&.active {
color: $dark !important;
&:hover,
&:focus {
color: $white !important;
background: $pale-purple;
}
}
.fa {
margin-right: 1ch;
}
}
.button,
.btn {
.fa {
margin-right: 1ch;
}
}
.list-my-polls {
a {
@extend .is-block;
}
sub {
margin-left: 2em;
}
}
.preview-url {
a {
overflow: hidden;
@extend .text-ellipsis;
}
framadate-copy-text {
float: right;
}
}

View File

@ -109,16 +109,25 @@ a span.ui-steps-number {
.bottom-step-buttons { .bottom-step-buttons {
box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.05); box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.05);
position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%;
z-index: 10; z-index: 10;
height: auto; height: auto;
background: $white; background: $white;
padding: 0.85rem;
padding: 8px 16px;
position: fixed !important;
width: 100vw;
position: fixed;
right: 0;
.button { .button {
width: 100%; display: inline-block;
display: block; }
.button {
&.is-secondary {
color: $secondary_color !important;
border-color: $secondary_color !important;
}
} }
} }

View File

@ -41,7 +41,7 @@ main {
.columns { .columns {
&.half-columns { &.half-columns {
max-width: $main-column-width; max-width: 100%;
margin: 0 auto; margin: 0 auto;
padding: 0; padding: 0;
@ -73,8 +73,6 @@ main {
} }
.button { .button {
width: 100%;
.is-half-offseted { .is-half-offseted {
float: right; float: right;
} }

View File

@ -68,5 +68,5 @@ $default_font: 'helvetica', 'proza_libre', 'Arial', 'DejaVu Sans Mono';
$title_font: 'helvetica', 'proza_libre', 'Arial', 'DejaVu Sans Mono'; $title_font: 'helvetica', 'proza_libre', 'Arial', 'DejaVu Sans Mono';
// sizes and breakpoints // sizes and breakpoints
$main-column-width: 900px; $main-column-width: 400px;
$mobile-size: 380px; $mobile-size: 400px;