Responsive homepage

pull/159/head
Chocobozzz 2017-12-11 08:50:43 +01:00
parent b1a134ee52
commit 3daf400219
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
7 changed files with 47 additions and 12 deletions

View File

@ -16,11 +16,8 @@
</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()">

View File

@ -61,6 +61,8 @@
}
@media screen and (max-width: 500px) {
width: 70px;
#peertube-title {
display: none;
}

View File

@ -6,5 +6,5 @@
<a class="upload-button" routerLink="/videos/upload">
<span class="icon icon-upload"></span>
Upload
<span class="upload-button-label">Upload</span>
</a>

View File

@ -6,6 +6,14 @@
&::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 {
@ -34,4 +42,17 @@
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;
}
}
}

View File

@ -4,6 +4,7 @@
</div>
<div
class="videos"
infiniteScroll
[infiniteScrollUpDistance]="1.5"
[infiniteScrollDistance]="0.5"

View File

@ -0,0 +1,7 @@
.videos {
text-align: center;
my-video-miniature {
text-align: left;
}
}

View File

@ -107,8 +107,8 @@ label {
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;
@ -116,11 +116,18 @@ label {
}
.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;
}
}
}
}