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 === '/';
let mainelem = this.document.querySelector('#big_container');
console.log('mainelem', mainelem);
window.scrollTo(0, mainelem.offsetTop);
window.scrollTo(0, 0);
});
if (!environment.production) {

View File

@ -21,7 +21,8 @@
<div class="columns">
<div class="column">
<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>
<span class="format-helper pull-right">JJ/MM/AAAA</span>
</div>

View File

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

View File

@ -80,11 +80,11 @@
</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>
<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>

View File

@ -41,10 +41,9 @@
</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>
<app-nav-steps
[next_step_number]="pollService.step_current + 1"
[previous_step_number]="pollService.step_current - 1"
></app-nav-steps>
</div>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,50 +1 @@
@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 {
box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.05);
position: fixed;
bottom: 0;
left: 0;
width: 100%;
z-index: 10;
height: auto;
background: $white;
padding: 0.85rem;
padding: 8px 16px;
position: fixed !important;
width: 100vw;
position: fixed;
right: 0;
.button {
width: 100%;
display: block;
display: inline-block;
}
.button {
&.is-secondary {
color: $secondary_color !important;
border-color: $secondary_color !important;
}
}
}

View File

@ -41,7 +41,7 @@ main {
.columns {
&.half-columns {
max-width: $main-column-width;
max-width: 100%;
margin: 0 auto;
padding: 0;
@ -73,8 +73,6 @@ main {
}
.button {
width: 100%;
.is-half-offseted {
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';
// sizes and breakpoints
$main-column-width: 900px;
$mobile-size: 380px;
$main-column-width: 400px;
$mobile-size: 400px;