From 3e53ef874c74b60bbedeaad869a77ee09d9dc5fa Mon Sep 17 00:00:00 2001 From: VLE2FE Date: Tue, 25 Aug 2020 09:01:45 +0200 Subject: [PATCH] fixed to the top button --- src/app/app.component.html | 13 +++++-------- src/app/app.component.scss | 14 +++----------- src/app/app.component.ts | 2 +- 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index d98d743..3d78944 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -53,16 +53,13 @@ -
-
- -
- -
- -
+
+
+ + + CR/APS1 and CR/ANA1 2020 diff --git a/src/app/app.component.scss b/src/app/app.component.scss index 2b6f0c7..c482ab2 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -14,21 +14,13 @@ width: 800px; } -.to-the-top-container { +.container { position: relative; overflow: hidden; } .to-the-top { - position: absolute; - top: 100vh; - bottom: 10px; + position: fixed; right: 1rem; - pointer-events: none; - - rb-icon-button { - position: sticky; - pointer-events: all; - top: calc(100vh - 3rem); - } + bottom: 20px; } diff --git a/src/app/app.component.ts b/src/app/app.component.ts index f8836e5..c40f010 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -22,7 +22,7 @@ export class AppComponent implements OnInit{ constructor( public login: LoginService, public router: Router, - private window: Window, + public window: Window, private modal: ModalService, public d: DataService ) {