Шаблон:Startseite/style.css

Материал из DISTRICT 9 RP | WIKI
.category-tiles.category-row .category-container {
    flex-basis: 20%;
    min-height: 250px;
}
.category-container-tin {
	flex-basis: 0% !important;
    min-width: 200px;
}

.category-container.no-content h2 span:empty {
    display: none;
}

.category-tiles.category-row .category-container.small {
 	align-items: center;
    position: relative;
    flex-direction: row-reverse;
    min-height: 130px;
    flex-basis: 20%;
}

.category-container.small>div {
    display: flex;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

.category-tiles.cat-row .info-container {
    flex-grow: 0;
    flex-direction: row;
    padding: 0.75rem 1rem;
    flex-basis: 16%;
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
    text-align: right;
}

.cat-row .info-container div {
    display: block;
    height: auto;
    flex-basis: 100%;
}

.cat-row .info-container div p {
    margin: 0;
}

.cat-row .info-container div p.title {
    color: #4a4a4a;
    font-weight: normal;
    font-size: 0.8rem;
}

.cat-row .info-container div p {
    color: #4a4a4a;
    font-size: 1.25rem;
    font-weight: 600;
}

.category-container.no-content h2 {
	background-color: #4a4a4a;
}
.category-container.no-content.small h2 {
	background: rgba(0,0,0,0)linear-gradient(to bottom,rgba(0,0,0,0.2)0px,rgba(0,0,0,0.5)50%,rgba(0,0,0,0.2)100%)repeat 0 0;
    flex-grow: 1;
    font-size: 1.1rem;
    text-align: left;
    z-index: 1;
    display: flex;
    height: 100%;
}

.category-container .category-image-container {
    margin: 10px 10px 0;
    border-radius: 10px;
}

.category-container.no-content.small.image .category-image-container {
    margin: 0px !important;
}

.category-container.no-content h2 a {
	padding: 0.5rem;
}

.category-container.no-content.small h2 a {
	padding: 0 0.5rem;
	line-height: 85px;
}

/* Just to get a full height link LOL */
.cta .category-container.no-content h2 a {
	height: 100%;
	line-height: 224px;
}

.category-tiles.cat-row {
    justify-content: space-between;
}

p.stat-container {
	margin: 0;
	margin-bottom: 0.5rem;
	display: flex;
	flex-grow: 1;
	gap: 0.5rem;
}

p.stat-container span {
	display:block;
	text-align: center;
	margin: 0;
}

p.stat-container .wiki-stats {
	flex-grow: 1;
}

p.stat-container .pu-version, 
p.stat-container .ptu-version {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	flex-basis: 16.5%;
}
p.stat-container .pu-version {
	background-color: #4a4a4a;
}
p.stat-container .ptu-version {
	color: #fff;
	background-color: #e5b831;
}
.mw-parser-output p.stat-container .pu-version,
.mw-parser-output p.stat-container .ptu-version {
	display: flex !important;
}
.mw-message-box {
    border-radius: 10px;
}
body.skin-citizen .mw-message-box.pu-version a,
body.skin-citizen .mw-message-box.ptu-version a {
	align-items: center;
    display: flex;
    margin-left: auto;
    color: #fff !important;
    font-weight: normal;
}

/*!! Muss noch mal ueberarbeitet werden und angepasst werden fuer die zukunft !!*/
.category-container.no-content.discord.image,
.category-container.no-content.twitter.image,
.category-container.no-content.youtube.image {
	min-height: unset;
}

.category-container.no-content.discord.image .category-image-container,
.category-container.no-content.twitter.image .category-image-container,
.category-container.no-content.youtube.image .category-image-container {
	margin: 0;
}

.category-container.no-content.discord.image img,
.category-container.no-content.twitter.image img,
.category-container.no-content.youtube.image img {
	width: auto;
    margin: auto;
    display: flex;
    height: 40px;
    padding: 25px;
}

.discord {
	height: 100px;
	background-color: #5865F2;
}
.category-container.no-content.discord.image {
    flex-basis: 55%;
}

.twitter {
	height: 100px;
	background-color: #1D9BF0;
}

.youtube {
	height: 100px;
	background-color: #FF0000;
}
/*!! Muss noch mal ueberarbeitet werden und angepasst werden fuer die zukunft !!*/


/** WIP: Featured Article **/
.category-container.featured-article {
	min-height: 250px;
	position: relative;
	flex-basis: 50%;
	display: flex;
	flex-direction: column;
}

.category-container.featured-article .category-container-title {
	z-index: 1;
	margin-top: auto;
	padding: 0 0 0.5rem 1.5rem;
	flex-direction: column;
}

.category-container.featured-article .category-container-title h3 {
  color: #4a4a4a;
  font-weight: normal;
}

.category-container.featured-article .category-container-title h2 {
  background: unset;
  font-size: 1.5rem;
}

.category-container.featured-article .category-image-containerainer {
	position: absolute;
	width: 100%;
}

.category-container.featured-article .category-image-containerainer .category-image-container {
	flex-basis: 100%;
}


@media screen and (min-width: 768px) {
	.category-tiles.cat-row .category-container:first-of-type {
		flex-basis: 60%;
	}
}

@media screen and (max-width: 768px) {
	.category-tiles .category-container.no-content {
	    flex-basis: 32%;
	}
	
	.category-tiles .category-container.no-content.small {
	    flex-basis: 47%;
	    flex-grow: 1;
	}
}

@media screen and (max-width: 740px) {
	.mw-message-box.pu-version,
	.mw-message-box.ptu-version {
    	flex-wrap: wrap;
    	flex-direction: column;
    	align-content: center;
	}
}

@media screen and (max-width: 425px) {
	.category-tiles .category-container.no-content {
	    flex-basis: 47%;
	}

	.category-tiles.cat-row .category-container:first-of-type {
		flex-basis: 100%;
	}
}

@media screen and (max-width: 375px) {
	.category-tiles .category-container.no-content {
	    flex-basis: 100%;
	    margin-left: 0;
	    margin-right: 0;
	}
	
	.category-tiles .category-container.no-content.info-container {
    	flex-basis: calc( 50% - 0.25rem );
    	min-width: auto;
	}
}