User:Irukaza/common.css:修订间差异

H萌娘,万物皆可H的百科全书!
跳到导航 跳到搜索
imported>=海豚=
无编辑摘要
imported>=海豚=
无编辑摘要
第1行: 第1行:
/*
* Citizen - Gallery Styles
* https://starcitizen.tools
*/


@import '../../resources/variables.less';
@import '../../resources/mixins.less';
@gallery-clutter: 2px;
.skin-citizen {
ul.gallery {
ul.gallery {
display: flex;
display: flex;
第15行: 第5行:
justify-content: center;
justify-content: center;
padding: 0;
padding: 0;
margin: @content-margin-top -@gallery-clutter;
}
}


ul.mw-gallery {
ul.mw-gallery {
&-packed,
 
&-packed-hover,
&-packed-overlay {
text-align: left;
text-align: left;
 
}
div.thumb img {
div.thumb img {
width: 100% !important; // fill empty space
width: 100% !important; 
height: auto;
height: auto;
}
}
 
li.gallerybox {
li.gallerybox {
flex-grow: 1;
flex-grow: 1;
margin: @gallery-clutter;
}


div.gallerytextwrapper {
div.gallerytextwrapper {
right: 0;
right: 0;
width: auto !important; // fill empty space
width: auto ;
margin: 0;
margin: 0;
background: transparent;
background: transparent;
transition: @transition-background-quick;
}
}
}
}


&-packed-hover,
div.thumb:after {
&-packed-overlay {
div.thumb {
/* Gallary text background */
&:after {
position: absolute;
position: absolute;
right: 0;
right: 0;
第57行: 第36行:
content: '';
content: '';
}
}
}


div.gallerytextwrapper {
div.gallerytextwrapper {
border-radius: var( --border-radius--small );
border-radius: 1px;
}
}


div.gallerytext {
div.gallerytext {
color: #a2a9b1; // color-base50
color: #a2a9b1;
}
}
}


&-packed-hover li.gallerybox:hover,
&-packed-overlay li.gallerybox {
div.thumb:after {
div.thumb:after {
background: linear-gradient( to top, #000, transparent );
background: linear-gradient( to top, #000, transparent );
第80行: 第55行:
background: #000;
background: #000;
}
}
}


&-traditional,
&-nolines {
margin-right: -@gallery-clutter * 2;
margin-left: -@gallery-clutter * 2;


li.gallerybox {
margin: @gallery-clutter * 2;
}
}
}


li.gallerybox {
li.gallerybox {
display: block;
display: block;
 
width: 100%; 
> div {
width: 100% !important; // fill empty space
height: auto;
height: auto;
}
}
 
div.thumb {
div.thumb {
overflow: hidden; // for border radius
overflow: hidden; 
width: 100% !important; // fill empty space
width: 100% !important; 
height: auto;
height: auto;
border-color: var( --border-color-base );
margin: 0;
background-color: var( --background-color-framed );
border-radius: var( --border-radius--small );
}
}
}
div.gallerytext {
padding: @content-margin-top / 2 0;
color: var( --color-base--subtle );
font-size: @content-caption-size;


p {
p {
第124行: 第78行:
display: inline;
display: inline;
}
}
}
}

2021年6月19日 (六) 11:35的版本

	ul.gallery {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		padding: 0;
	}

	ul.mw-gallery {

			text-align: left;
	}
			div.thumb img {
				width: 100% !important; 
				height: auto;
}
			li.gallerybox {
				flex-grow: 1;
}

				div.gallerytextwrapper {
					right: 0;
					width: auto ;
					margin: 0;
					background: transparent;
				}

			div.thumb:after {
					position: absolute;
					right: 0;
					bottom: 0;
					left: 0;
					display: block;
					height: 60%;
					border-radius: 0 0 var( --border-radius--small ) var( --border-radius--small );
					content: '';
				}

			div.gallerytextwrapper {
				border-radius: 1px;
			}

			div.gallerytext {
				color: #a2a9b1;
			}

			div.thumb:after {
				background: linear-gradient( to top, #000, transparent );
			}

			div.gallerytextwrapper:hover {
				/* Prevent overflow with long caption */
				overflow: hidden;
				max-height: 90%;
				background: #000;
			}
		



	li.gallerybox {
		display: block;
			width: 100%; 
			height: auto;
		}
		
		div.thumb {
			overflow: hidden; 
			width: 100% !important; 
			height: auto;
		}

		p {
			margin-top: 0;
		}

		a.image {
			display: inline;
		}