nitter/src/sass/tweet/media.scss

113 lines
1.9 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%;
2019-09-19 01:02:56 +00:00
display: block;
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: $bg_color;
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;
}
}
.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;
}
}
.image {
display: inline-block;
}
.single-image {
display: inline-block;
2019-09-19 01:02:56 +00:00
width: 100%;
max-height: 600px;
.attachments {
width: unset;
max-height: unset;
display: inherit;
}
2019-09-13 08:44:21 +00:00
}
.overlay-circle {
border-radius: 50%;
background-color: $dark_grey;
width: 40px;
height: 40px;
align-items: center;
display: flex;
border-width: 5px;
border-color: $play_button_red;
border-style: solid;
}
.overlay-triangle {
width: 0;
height: 0;
border-style: solid;
border-width: 12px 0 12px 17px;
border-color: transparent transparent transparent $play_button_red;
margin-left: 14px;
}
.media-gif {
display: inline-block;
background-color: unset;
}
.media-body {
flex: 1;
padding: 0;
white-space: pre-wrap;
}