<div class="row">
- <div class="sub-menu">
+ <div class="sub-menu sub-menu-fixed">
<div class="links">
<a i18n routerLink="instance" routerLinkActive="active" class="title-page title-page-about">Instance</a>
+++ /dev/null
-.title-page-single {
- margin-top: 0;
-}
\ No newline at end of file
selector: 'my-account-videos',
templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html',
styleUrls: [
- '../../shared/shared-video-miniature/abstract-video-list.scss',
- './account-videos.component.scss'
+ '../../shared/shared-video-miniature/abstract-video-list.scss'
]
})
export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
color: $grey-actor-name;
margin-left: 5px;
}
-
- .video-channel-followers {
-
- }
}
}
+++ /dev/null
-.title-page-single {
- margin-top: 0;
-}
\ No newline at end of file
selector: 'my-video-channel-videos',
templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html',
styleUrls: [
- '../../shared/shared-video-miniature/abstract-video-list.scss',
- './video-channel-videos.component.scss'
+ '../../shared/shared-video-miniature/abstract-video-list.scss'
]
})
export class VideoChannelVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
-<div class="sub-menu" [ngClass]="{ 'no-scroll': isModalOpened }">
+<div class="sub-menu sub-menu-fixed" [ngClass]="{ 'no-scroll': isModalOpened }">
<ng-container *ngFor="let menuEntry of menuEntries; index as id">
<a *ngIf="menuEntry.routerLink && isDisplayed(menuEntry)" [routerLink]="menuEntry.routerLink" routerLinkActive="active" class="title-page title-page-settings">{{ menuEntry.label }}</a>
import { Subscription } from 'rxjs'
-import { filter, take } from 'rxjs/operators'
+import { filter } from 'rxjs/operators'
import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'
import { NavigationEnd, Router } from '@angular/router'
import { MenuService, ScreenService } from '@app/core'
.sub-menu {
background-color: pvar(--submenuColor);
width: 100%;
- height: $sub-menu-height;
display: flex;
align-items: center;
padding-left: $not-expanded-horizontal-margins;
padding-right: $not-expanded-horizontal-margins;
- position: fixed;
- z-index: #{z('header') - 1};
& + .margin-content {
- padding-top: $sub-menu-height + $sub-menu-margin-bottom;
+ padding-top: $sub-menu-margin-bottom;
+ }
+
+ &.sub-menu-fixed {
+ height: $sub-menu-height;
+ position: fixed;
+ z-index: #{z('header') - 1};
+
+ & + .margin-content {
+ padding-top: $sub-menu-height + $sub-menu-margin-bottom;
+ }
}
}