Шаблон:Dungeon Crusher Wiki/Navigation/styles.css: различия между версиями

(MrGorun изменил модель содержимого страницы Шаблон:Dungeon Crusher Wiki/Navigation/styles.css с «обычный текст» на «Sanitized CSS»)
Метки: изменение модели содержимого ручная отмена
 
Нет описания правки
 
(не показано 16 промежуточных версий этого же участника)
Строка 1: Строка 1:
.mainpage-navigation {
    display: grid;
    justify-content: space-around;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, 166px);
    margin-bottom: 0.5rem;
}
.mainpage-navigation .card {
.mainpage-navigation .card {
     width: calc(100%/5 - 0.4rem);
     box-sizing: border-box;
     min-width: calc(860px/5 - 2.8rem);
    border: 1px solid hsl( 203, 34%,  22%  );
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: hsl( 203, 44%, 14% );
    box-shadow: 0 1px 3px rgba(0,0,0,0.03),0 1px 2px rgba(0,0,0,0.06);
     transition: box-shadow 0.2s ease;
}
 
.mainpage-navigation .card img {
vertical-align: middle;
min-width: 166px;
transition: transform 0.2s cubic-bezier(0.77,0.2,0.05,1.0);
}
}


.mainpage-navigation .card:hover .card-caption {
.mainpage-navigation .card:hover .card-caption {
    color: white;
cursor: pointer;
}
 
.mainpage-navigation .card:hover .card-image a img {
transform: scale(1.1);
}
}


.mainpage-navigation .card-caption {
.mainpage-navigation .card-caption {
     padding: 0.4rem;
     padding: 0.4rem;
     background: #304665;
     background: hsl( 205, 75%, 8% );
    color: #bfcee7;
     text-align: center;
     text-align: center;
     transition: color 0.2s ease;
     transition: color 0.2s ease;
}
.mainpage-navigation .card-caption a {
color: #dfe1e3;
}
.mainpage-navigation .card-caption:hover {
color: #7cabc9;
}
}


.mainpage-navigation .card-image {
.mainpage-navigation .card-image {
     height: 180px;
     height: 180px;
     background-color: #2b2f36;
     background-color: hsl( 205, 75%, 8% );
     overflow: hidden;
     overflow: hidden;
}
@media ( max-width: 1000px ) {
.mainpage-navigation {
grid-template-columns: repeat(auto-fill, 130px);
}
.mainpage-navigation .card img {
min-width: 130px;
}
.mainpage-navigation .card-caption {
font-size: 0.8rem;
}
}
}

Текущая версия от 21:01, 26 ноября 2023

.mainpage-navigation {
    display: grid;
    justify-content: space-around;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, 166px);
    margin-bottom: 0.5rem;
}

.mainpage-navigation .card {
    box-sizing: border-box;
    border: 1px solid hsl( 203, 34%,  22%  );
    border-radius: 8px;
    overflow: hidden;
    background-color: hsl( 203, 44%, 14% );
    box-shadow: 0 1px 3px rgba(0,0,0,0.03),0 1px 2px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.mainpage-navigation .card img {
	vertical-align: middle;
	min-width: 166px;
	transition: transform 0.2s cubic-bezier(0.77,0.2,0.05,1.0);
}

.mainpage-navigation .card:hover .card-caption {
	cursor: pointer;
}

.mainpage-navigation .card:hover .card-image a img {
	transform: scale(1.1);
}

.mainpage-navigation .card-caption {
    padding: 0.4rem;
    background: hsl( 205, 75%, 8% );
    text-align: center;
    transition: color 0.2s ease;
}

.mainpage-navigation .card-caption a {
	color: #dfe1e3;
}

.mainpage-navigation .card-caption:hover {
	color: #7cabc9;
}

.mainpage-navigation .card-image {
    height: 180px;
    background-color: hsl( 205, 75%, 8% );
    overflow: hidden;
}

@media ( max-width: 1000px ) {
	.mainpage-navigation {
		grid-template-columns: repeat(auto-fill, 130px);
	}
	
	.mainpage-navigation .card img {
		min-width: 130px;
	}
	
	.mainpage-navigation .card-caption {
		font-size: 0.8rem;
	}
}