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

230 lines
4.5 KiB
SCSS
Raw Normal View History

2019-02-28 04:35:29 +01:00
@import "variables";
@import "mixins";
2019-06-24 21:42:37 +02:00
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-06-24 21:42:37 +02:00
position: relative;
2019-02-28 04:35:29 +01:00
2020-04-15 04:12:07 +02:00
&__img {
&--1 {
width: 100%;
height: 100%;
display: inline-block;
}
&--2 {
width: 49%;
height: 100%;
display: inline-block;
&:last-child {
margin-left: 2%; // border: 1px greenyellow solid;
}
}
&--3-1 {
width: 49%;
height: 100%;
float: left;
}
&--3-2 {
width: 49%;
height: 49%;
margin-left: 2%;
float: left;
&:nth-child(even) {
margin-bottom: 2%;
}
}
&--4 {
width: 49%;
height: 49%;
margin-bottom: 2%;
float: left;
&:nth-child(even) {
margin-left: 2%;
}
}
}
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-06-24 21:42:37 +02:00
2020-04-15 03:38:04 +02:00
&--link {
//display: inline;
2019-02-26 05:38:15 +01:00
cursor: zoom-in;
2020-04-15 03:38:04 +02:00
outline: 1px solid orange;
2019-02-26 05:38:15 +01:00
}
2019-06-24 21:42:37 +02:00
2018-09-22 02:43:02 +02:00
&--1 {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
2019-06-24 21:42:37 +02:00
2018-09-22 02:43:02 +02:00
&--link-2 {
width: 49%;
height: 100%;
2019-06-24 21:42:37 +02:00
2018-09-22 02:43:02 +02:00
&:last-child {
margin-left: 2%; // border: 1px greenyellow solid;
}
2019-06-24 21:42:37 +02:00
2020-04-15 03:38:04 +02:00
& img, & video {
2018-09-22 02:43:02 +02:00
width: 49%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
2020-04-15 03:38:04 +02:00
// & video {
// object-fit: cover;
// object-position: 50% 50%;
// }
2018-09-22 02:43:02 +02:00
}
2019-06-24 21:42:37 +02:00
2018-09-22 02:43:02 +02:00
&--link-3-1 {
width: 49%;
height: 100%;
float: left;
2019-06-24 21:42:37 +02:00
2020-04-15 03:38:04 +02:00
& img, & video {
2018-09-22 02:43:02 +02:00
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
}
2019-06-24 21:42:37 +02:00
2018-09-22 02:43:02 +02:00
&--link-3-2 {
width: 49%;
height: 49%;
margin-left: 2%;
float: left;
2019-06-24 21:42:37 +02:00
2018-09-22 02:43:02 +02:00
&:nth-child(even) {
margin-bottom: 2%;
}
2019-06-24 21:42:37 +02:00
2020-04-15 03:38:04 +02:00
& img, & video {
2018-09-22 02:43:02 +02:00
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
}
}
2019-06-24 21:42:37 +02:00
2018-09-22 02:43:02 +02:00
&--link-4 {
width: 49%;
height: 49%;
2019-06-24 21:42:37 +02:00
2018-09-22 02:43:02 +02:00
&:nth-child(even) {
margin-left: 2%;
}
2019-06-24 21:42:37 +02:00
2020-04-15 03:38:04 +02:00
& img, & video {
2018-09-22 02:43:02 +02:00
width: 49%;
height: 49%;
object-fit: cover;
object-position: 50% 50%;
margin-bottom: 2%;
}
}
2018-09-21 05:27:04 +02:00
}
2019-06-24 21:42:37 +02:00
2020-04-15 03:38:04 +02:00
// &__gifv {
// width: 100%;
// height: 100%;
// object-fit: cover;
// cursor: zoom-in;
// border-radius: 2px;
// }
2019-06-24 21:42:37 +02:00
2019-02-28 04:35:29 +01:00
&__video {
width: 100%;
height: 100%;
object-fit: contain;
background-color: black;
border-radius: 2px;
}
2019-06-24 21:42:37 +02:00
&__play-control {
2019-02-28 04:35:29 +01:00
z-index: 2;
position: absolute;
2019-04-13 20:27:55 +02:00
bottom: 5px;
2019-06-24 21:42:37 +02:00
left: 0;
2019-02-28 04:35:29 +01:00
// outline: 1px greenyellow solid;
}
2019-06-24 21:42:37 +02:00
2019-02-28 04:35:29 +01:00
&__control {
z-index: 1;
position: absolute;
bottom: 0;
left: 0;
right: 0;
opacity: 0;
transition: all .2s;
height: 100px;
padding-top: 55px;
&--button {
2019-09-28 20:22:11 +02:00
display: inline-block;
color: rgb(211, 211, 211);
2019-02-28 04:35:29 +01:00
font-size: 16px;
padding: 10px 15px;
2019-04-13 20:27:55 +02:00
width: 40px;
height: 40px;
2019-02-28 04:35:29 +01:00
&:hover {
2019-06-24 21:42:37 +02:00
color: #fff;
2019-02-28 04:35:29 +01:00
}
}
2019-06-24 21:42:37 +02:00
&--play {
2019-04-13 20:27:55 +02:00
position: absolute;
left: 0;
}
2019-02-28 04:35:29 +01:00
&--expand {
position: absolute;
right: 0;
}
&--mute {
2019-04-13 20:27:55 +02:00
position: absolute;
left: 40px;
// margin-left: 40px;
2019-02-28 04:35:29 +01:00
}
2019-06-24 21:42:37 +02: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
}
2019-06-24 21:42:37 +02:00
2019-02-28 04:35:29 +01:00
&__hover {
&:hover .galery__control {
opacity: 100;
2019-06-24 21:42:37 +02:00
2019-02-28 04:35:29 +01:00
}
2019-02-28 02:19:47 +01:00
}
2019-06-24 21:42:37 +02:00
}
.audio {
width: calc(100%);
height: 30px;
&:focus {
outline: none;
}
2018-09-21 05:27:04 +02:00
}