mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 16:25:19 +01:00
Simplify CSS for media gallery
This commit is contained in:
parent
9769ffdcc2
commit
241cc1630f
2 changed files with 1 additions and 60 deletions
|
@ -327,7 +327,7 @@ class MediaGallery extends PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`media-gallery media-gallery--layout-${size}`} style={style} ref={this.handleRef}>
|
<div className='media-gallery' style={style} ref={this.handleRef}>
|
||||||
{(!visible || uncached) && (
|
{(!visible || uncached) && (
|
||||||
<div className={classNames('spoiler-button', { 'spoiler-button--click-thru': uncached })}>
|
<div className={classNames('spoiler-button', { 'spoiler-button--click-thru': uncached })}>
|
||||||
{spoilerButton}
|
{spoilerButton}
|
||||||
|
|
|
@ -6953,64 +6953,6 @@ a.status-card {
|
||||||
grid-template-columns: 50% 50%;
|
grid-template-columns: 50% 50%;
|
||||||
grid-template-rows: 50% 50%;
|
grid-template-rows: 50% 50%;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
|
|
||||||
&--layout-2 {
|
|
||||||
.media-gallery__item:nth-child(1) {
|
|
||||||
border-end-end-radius: 0;
|
|
||||||
border-start-end-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-gallery__item:nth-child(2) {
|
|
||||||
border-start-start-radius: 0;
|
|
||||||
border-end-start-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&--layout-3 {
|
|
||||||
.media-gallery__item:nth-child(1) {
|
|
||||||
border-end-end-radius: 0;
|
|
||||||
border-start-end-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-gallery__item:nth-child(2) {
|
|
||||||
border-start-start-radius: 0;
|
|
||||||
border-end-start-radius: 0;
|
|
||||||
border-end-end-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-gallery__item:nth-child(3) {
|
|
||||||
border-start-start-radius: 0;
|
|
||||||
border-end-start-radius: 0;
|
|
||||||
border-start-end-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&--layout-4 {
|
|
||||||
.media-gallery__item:nth-child(1) {
|
|
||||||
border-end-end-radius: 0;
|
|
||||||
border-start-end-radius: 0;
|
|
||||||
border-end-start-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-gallery__item:nth-child(2) {
|
|
||||||
border-start-start-radius: 0;
|
|
||||||
border-end-start-radius: 0;
|
|
||||||
border-end-end-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-gallery__item:nth-child(3) {
|
|
||||||
border-start-start-radius: 0;
|
|
||||||
border-start-end-radius: 0;
|
|
||||||
border-end-start-radius: 0;
|
|
||||||
border-end-end-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-gallery__item:nth-child(4) {
|
|
||||||
border-start-start-radius: 0;
|
|
||||||
border-end-start-radius: 0;
|
|
||||||
border-start-end-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-gallery__item {
|
.media-gallery__item {
|
||||||
|
@ -7018,7 +6960,6 @@ a.status-card {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 8px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
&--tall {
|
&--tall {
|
||||||
|
|
Loading…
Reference in a new issue