Vorlage:RubrikContainer/style.css: Unterschied zwischen den Versionen

Aus Star Citizen Wiki
(darkmode)
K (darkmode fix)
 
Zeile 134: Zeile 134:
  
 
@media (prefers-color-scheme: dark) {
 
@media (prefers-color-scheme: dark) {
.category-container h2 {
+
.skin-citizen .category-container h2 {
 
     background-color: #1a252d;
 
     background-color: #1a252d;
 
}
 
}
 
 
.category-container {
+
.skin-citizen .category-container {
 
     border: solid #1a252d;
 
     border: solid #1a252d;
 
}
 
}
 
}
 
}

Aktuelle Version vom 9. Februar 2020, 14:06 Uhr

.category-tiles {
	display: flex;
	flex-wrap: wrap;
}

.category-tiles .category-container {
	flex: 1 0 32%;
}

.category-container {
    border: solid #eee;
    border-width: 1px 1px 0.2em;
    box-shadow:  0 1px 2px 1px rgba(0,0,0,0.02);
    position: relative;
}

.category-container.no-content {
	margin-left: 0.25em;
	margin-right: 0.25em;
	margin-bottom: 0.5em;
	box-shadow: none;
	border-width: 0;
}

.category-container h2 {
    margin: 0;
    border: none;
    text-align: center;
    font-size: 0.9em;
    background-color: #eaecf0;
    font-family: sans-serif;
    line-height: 1.4;
    font-weight: bold;
    padding: 0.5em;
}

.category-container.no-content h2 {
	text-align: left;
	background-color: transparent;
	position: absolute;
	z-index: 1;
	transition: transform 0.2s;
	font-size: 1.6em;
	padding-right: 0;
	padding-bottom: 0;
}

.category-container.no-content:hover h2 {
	transform: scale(1.05);
}

.category-container.no-content h2 a {
    color: #fff;
    text-shadow: 2px 2px 2px #333;
}

.category-container > div {
    display: flex;
    height: 100%;
}

.category-container > div .category-content-container {
    padding: 0.5em;
    margin: 1em 40px 1em 40px;
    flex-basis: 75%;
}

.category-container.no-image > div .category-content-container {
    flex-basis: 100%;
}

.category-container div .category-image-container  {
    overflow: hidden;
    flex-basis: 25%;
    display: flex;
    align-items: stretch;
}

.category-container.no-content div .category-image-container {
    flex-basis: 100%;
}

.category-container div .category-image-container a img {
    object-fit: cover;
    height: 100%;
    transform-origin: center;
    transition: transform 0.2s;
    width: 100%;
    max-height: 125px;
    min-height: 100%;
    object-position: center;
}

.category-container div .category-image-container a .image-contain {
    object-fit: contain;
}

.category-container div .category-image-container a {
    width: 100%;
}

.category-container.no-content:hover div a img,
.category-container div a img:hover {
	transform: scale(1.05);
}

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

    .category-container > div {
        flex-wrap: wrap-reverse
    }

    .category-container > div .category-content-container {
        flex-basis: auto;
        margin-left: 1em;
        margin-right: 1em;
    }

    .category-container div .category-image-container {
        flex-basis: 100%;
    }
}

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

@media (prefers-color-scheme: dark) {
	.skin-citizen .category-container h2 {
    	background-color: #1a252d;
	}
	
	.skin-citizen .category-container {
    	border: solid #1a252d;
	}
}