</div>
<div class="sub-header-container">
- <div class="title-menu-left">
-
- <div class="title-menu-left-block menu">
- <my-menu *ngIf="isMenuDisplayed"></my-menu>
- </div>
+ <div *ngIf="isMenuDisplayed" class="title-menu-left">
+ <my-menu></my-menu>
</div>
<div class="main-col container-fluid" [ngClass]="getMainColClasses()">
}
@media screen and (max-width: 500px) {
+ width: 70px;
+
#peertube-title {
display: none;
}
<a class="upload-button" routerLink="/videos/upload">
<span class="icon icon-upload"></span>
- Upload
+ <span class="upload-button-label">Upload</span>
</a>
&::placeholder {
color: #000;
}
+
+ @media screen and (max-width: 800px) {
+ width: calc(100% - 150px);
+ }
+
+ @media screen and (max-width: 400px) {
+ width: calc(100% - 70px);
+ }
}
.icon.icon-search {
vertical-align: middle;
margin-right: 6px;
}
+
+ @media screen and (max-width: 400px) {
+ margin-right: 10px;
+ padding: 0 10px;
+
+ .icon.icon-upload {
+ margin-right: 0;
+ }
+
+ .upload-button-label {
+ display: none;
+ }
+ }
}
</div>
<div
+ class="videos"
infiniteScroll
[infiniteScrollUpDistance]="1.5"
[infiniteScrollDistance]="0.5"
+.videos {
+ text-align: center;
+
+ my-video-miniature {
+ text-align: left;
+ }
+}
font-weight: bold;
}
-// On small screen, menu is absolute and displayed over the page
-@media screen and (max-width: 500px) {
+// On small screen, menu is absolute
+@media screen and (max-width: 800px) {
.title-menu-left {
width: 120px;
position: absolute !important;
}
.main-col {
- width: 100% !important;
- }
+ margin-left: 0;
- .fake-menu {
- display: none;
+ &, &.expanded {
+ .margin-content {
+ //display: flex;
+ //flex-direction: column;
+ //align-items: center;
+ //justify-content: center;
+ margin-left: auto;
+ margin-right: auto;
+ }
+ }
}
}