nitter/src/sass/tweet/media.scss

120 lines
2.0 KiB
SCSS
Raw Normal View History

2019-09-13 08:44:21 +00:00
@import '_variables';
.gallery-row {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
overflow: hidden;
flex-grow: 1;
max-height: 379.5px;
max-width: 533px;
2019-09-19 01:19:06 +00:00
pointer-events: all;
2019-09-13 08:44:21 +00:00
.still-image {
width: 100%;
2020-06-01 00:22:22 +00:00
display: flex;
2019-09-13 08:44:21 +00:00
}
}
.attachments {
margin-top: .35em;
display: flex;
flex-direction: row;
width: 100%;
max-height: 600px;
border-radius: 7px;
overflow: hidden;
flex-flow: column;
background-color: var(--bg_color);
2019-09-13 08:44:21 +00:00
align-items: center;
2019-09-19 01:19:06 +00:00
pointer-events: all;
2019-09-13 08:44:21 +00:00
.image-attachment {
width: 100%;
}
}
.attachment {
position: relative;
line-height: 0;
overflow: hidden;
margin: 0 .25em 0 0;
flex-grow: 1;
box-sizing: border-box;
min-width: 2em;
&:last-child {
margin: 0;
max-height: 530px;
}
}
2021-01-02 18:35:24 +00:00
.gallery-gif video {
max-height: 530px;
background-color: #101010;
}
2019-09-13 08:44:21 +00:00
.still-image {
max-height: 379.5px;
max-width: 533px;
justify-content: center;
img {
object-fit: cover;
max-width: 100%;
max-height: 379.5px;
flex-basis: 300px;
2020-07-18 21:12:38 +00:00
flex-grow: 1;
2019-09-13 08:44:21 +00:00
}
}
.image {
display: inline-block;
}
2020-06-01 00:22:22 +00:00
// .single-image {
// display: inline-block;
// width: 100%;
// max-height: 600px;
2019-09-19 01:02:56 +00:00
2020-06-01 00:22:22 +00:00
// .attachments {
// width: unset;
// max-height: unset;
// display: inherit;
// }
// }
2019-09-13 08:44:21 +00:00
.overlay-circle {
border-radius: 50%;
background-color: var(--dark_grey);
2019-09-13 08:44:21 +00:00
width: 40px;
height: 40px;
align-items: center;
display: flex;
border-width: 5px;
border-color: var(--play_button);
2019-09-13 08:44:21 +00:00
border-style: solid;
}
.overlay-triangle {
width: 0;
height: 0;
border-style: solid;
border-width: 12px 0 12px 17px;
border-color: transparent transparent transparent var(--play_button);
2019-09-13 08:44:21 +00:00
margin-left: 14px;
}
.media-gif {
2020-11-15 17:11:22 +00:00
display: table;
2019-09-13 08:44:21 +00:00
background-color: unset;
2019-10-23 07:54:23 +00:00
width: unset;
2019-09-13 08:44:21 +00:00
}
.media-body {
flex: 1;
padding: 0;
white-space: pre-wrap;
}