Change design of media tab on profiles in web UI (#31967)
This commit is contained in:
parent
00aaf77e04
commit
89df27a06c
27 changed files with 330 additions and 245 deletions
|
@ -242,6 +242,7 @@
|
|||
flex: 0 0 auto;
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
@ -5821,6 +5822,7 @@ a.status-card {
|
|||
.icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
filter: var(--overlay-icon-shadow);
|
||||
}
|
||||
|
||||
&:hover,
|
||||
|
@ -5915,6 +5917,10 @@ a.status-card {
|
|||
.icon-button {
|
||||
color: $white;
|
||||
|
||||
.icon {
|
||||
filter: var(--overlay-icon-shadow);
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
|
@ -5973,6 +5979,7 @@ a.status-card {
|
|||
.media-modal__page-dot {
|
||||
flex: 0 0 auto;
|
||||
background-color: $white;
|
||||
filter: var(--overlay-icon-shadow);
|
||||
opacity: 0.4;
|
||||
height: 6px;
|
||||
width: 6px;
|
||||
|
@ -7053,8 +7060,8 @@ a.status-card {
|
|||
width: 100%;
|
||||
min-height: 64px;
|
||||
display: grid;
|
||||
grid-template-columns: 50% 50%;
|
||||
grid-template-rows: 50% 50%;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
gap: 2px;
|
||||
|
||||
&--layout-2 {
|
||||
|
@ -7123,6 +7130,9 @@ a.status-card {
|
|||
position: relative;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
outline: 1px solid var(--media-outline-color);
|
||||
outline-offset: -1px;
|
||||
z-index: 1;
|
||||
|
||||
&--tall {
|
||||
grid-row: span 2;
|
||||
|
@ -7131,15 +7141,44 @@ a.status-card {
|
|||
&--wide {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
&--square {
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
&__overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
inset-inline-start: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
padding: 8px;
|
||||
z-index: 1;
|
||||
|
||||
&--corner {
|
||||
align-items: flex-start;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.icon {
|
||||
color: $white;
|
||||
filter: var(--overlay-icon-shadow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.media-gallery__item-thumbnail {
|
||||
cursor: zoom-in;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
color: $secondary-text-color;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
z-index: -1;
|
||||
|
||||
&,
|
||||
img {
|
||||
|
@ -7159,7 +7198,7 @@ a.status-card {
|
|||
position: absolute;
|
||||
top: 0;
|
||||
inset-inline-start: 0;
|
||||
z-index: 0;
|
||||
z-index: -2;
|
||||
background: $base-overlay-background;
|
||||
|
||||
&--hidden {
|
||||
|
@ -7172,22 +7211,16 @@ a.status-card {
|
|||
overflow: hidden;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.media-gallery__item-gifv-thumbnail {
|
||||
cursor: zoom-in;
|
||||
cursor: pointer;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.media-gallery__item-thumbnail-label {
|
||||
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
/* End Media Gallery */
|
||||
|
||||
.detailed,
|
||||
|
@ -7210,6 +7243,8 @@ a.status-card {
|
|||
border-radius: 8px;
|
||||
padding-bottom: 44px;
|
||||
width: 100%;
|
||||
outline: 1px solid var(--media-outline-color);
|
||||
outline-offset: -1px;
|
||||
|
||||
&.editable {
|
||||
border-radius: 0;
|
||||
|
@ -7266,6 +7301,7 @@ a.status-card {
|
|||
.video-player__controls {
|
||||
padding-top: 10px;
|
||||
background: transparent;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7279,19 +7315,18 @@ a.status-card {
|
|||
color: $white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
outline: 1px solid var(--media-outline-color);
|
||||
outline-offset: -1px;
|
||||
z-index: 2;
|
||||
|
||||
&.editable {
|
||||
border-radius: 0;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
video {
|
||||
display: block;
|
||||
z-index: 1;
|
||||
z-index: -2;
|
||||
}
|
||||
|
||||
&.fullscreen {
|
||||
|
@ -7310,7 +7345,7 @@ a.status-card {
|
|||
&__controls {
|
||||
position: absolute;
|
||||
direction: ltr;
|
||||
z-index: 2;
|
||||
z-index: -1;
|
||||
bottom: 0;
|
||||
inset-inline-start: 0;
|
||||
inset-inline-end: 0;
|
||||
|
@ -7625,26 +7660,16 @@ a.status-card {
|
|||
}
|
||||
|
||||
.account-gallery__container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 4px 2px;
|
||||
}
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 2px;
|
||||
|
||||
.account-gallery__item {
|
||||
border: 0;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
position: relative;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
margin: 2px;
|
||||
.media-gallery__item {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
&__icons {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
inset-inline-start: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 24px;
|
||||
.load-more {
|
||||
grid-column: span 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue