Sengi-Windows-MacOS-Linux/src/app/components/stream/status/attachements/attachements.component.scss

136 lines
3.0 KiB
SCSS
Raw Normal View History

2019-02-28 04:35:29 +01:00
@import "variables";
@import "mixins";
2018-09-22 02:43:02 +02:00
.galery {
2018-09-21 05:27:04 +02:00
width: 100%;
2018-09-22 02:43:02 +02:00
height: 150px;
2018-09-21 05:27:04 +02:00
overflow: hidden;
border-radius: 2px;
2019-02-28 04:35:29 +01:00
position : relative;
2018-09-22 02:43:02 +02:00
&__image {
2018-09-21 05:27:04 +02:00
width: 100%;
2018-09-22 02:43:02 +02:00
height: 100%;
2019-02-26 05:38:15 +01:00
&--link {
cursor: zoom-in;
}
2018-09-22 02:43:02 +02:00
&--1 {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
&--link-2 {
width: 49%;
height: 100%;
&:last-child {
margin-left: 2%; // border: 1px greenyellow solid;
}
& img {
width: 49%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
}
&--link-3-1 {
width: 49%;
height: 100%;
float: left;
& img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
}
&--link-3-2 {
width: 49%;
height: 49%;
margin-left: 2%;
float: left;
&:nth-child(even) {
margin-bottom: 2%;
}
& img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
}
&--link-4 {
width: 49%;
height: 49%;
&:nth-child(even) {
margin-left: 2%;
}
& img {
width: 49%;
height: 49%;
object-fit: cover;
object-position: 50% 50%;
margin-bottom: 2%;
}
}
2018-09-21 05:27:04 +02:00
}
2019-02-28 04:35:29 +01:00
&__gifv {
2019-02-28 02:19:47 +01:00
width: 100%;
height: 100%;
object-fit: cover;
2019-02-28 02:28:39 +01:00
cursor: zoom-in;
2019-02-28 04:35:29 +01:00
border-radius: 2px;
}
&__video {
width: 100%;
height: 100%;
object-fit: contain;
background-color: black;
border-radius: 2px;
}
&__play-control{
z-index: 2;
position: absolute;
bottom: 0;
left: 5px;
// outline: 1px greenyellow solid;
}
&__control {
z-index: 1;
position: absolute;
bottom: 0;
left: 0;
right: 0;
opacity: 0;
transition: all .2s;
height: 100px;
padding-top: 55px;
&--button {
@include clearButton;
color: rgb(211, 211, 211);
font-size: 16px;
padding: 10px 15px;
&:hover {
color: #fff;
}
}
&--expand {
position: absolute;
right: 0;
}
&--mute {
margin-left: 40px;
}
2019-02-28 04:55:07 +01:00
background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .1), rgba(0, 0, 0, .6), rgba(0, 0, 0, 1));
2019-02-28 04:35:29 +01:00
}
&__hover {
&:hover .galery__control {
opacity: 100;
}
2019-02-28 02:19:47 +01:00
}
2018-09-21 05:27:04 +02:00
}