@media screen and (max-width: 500px) {
.videos {
- text-align: center;
-
- /deep/ .video-miniature {
- padding-right: 0;
- height: auto;
- width: 100%;
- margin-bottom: 20px;
-
- .video-miniature-information {
- width: 100% !important;
-
- span {
- width: 100%;
- }
- }
-
- .video-thumbnail {
- width: 100%;
- height: auto;
-
- img {
- width: 100%;
- height: auto;
- }
- }
- }
+ @include video-miniature-small-screen;
}
}
<a routerLink="/search" [queryParams]="{ categoryOneOf: [ object.category.id ] }">{{ object.category.label }}</a>
</div>
- <div>
- <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user"></my-video-miniature>
- </div>
+ <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user"></my-video-miniature>
</div>
<div class="section" *ngFor="let object of overview.tags">
<a routerLink="/search" [queryParams]="{ tagOneOf: [ object.tag ] }">{{ object.tag }}</a>
</div>
- <div>
- <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user"></my-video-miniature>
- </div>
+ <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user"></my-video-miniature>
</div>
<div class="section channel" *ngFor="let object of overview.channels">
</a>
</div>
- <div>
- <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user"></my-video-miniature>
- </div>
+ <my-video-miniature *ngFor="let video of object.videos" [video]="video" [user]="user"></my-video-miniature>
</div>
</div>
text-align: center;
align-items: center;
}
+}
+
+@mixin video-miniature-small-screen {
+ text-align: center;
+
+ /deep/ .video-miniature {
+ padding-right: 0;
+ height: auto;
+ width: 100%;
+ margin-bottom: 20px;
+
+ .video-miniature-information {
+ width: 100% !important;
+
+ span {
+ width: 100%;
+ }
+ }
+
+ .video-thumbnail {
+ width: 100%;
+ height: auto;
+
+ img {
+ width: 100%;
+ height: auto;
+ }
+ }
+ }
}
\ No newline at end of file