Открыть меню
Открыть персональное меню
Вы не представились системе
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: различия между версиями

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показано 17 промежуточных версий этого же участника)
Строка 42: Строка 42:
}
}


.heroes-panel {
.heroes-panel,
.items-panel{
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
Строка 49: Строка 50:
}
}


.heroes-panel__category {
.heroes-panel__category,
.items-panel__category{
display: flex;
display: flex;
     flex-direction: column;
     flex-direction: column;
Строка 57: Строка 59:
}
}


.heroes-panel__category-title {
.heroes-panel__category-title,
.items-panel__category-title{
display: flex;
display: flex;
align-items: center;
align-items: center;
}
}


.heroes-panel__category-title span[typeof="mw:File"] {
.heroes-panel__category-title span[typeof="mw:File"],
.items-panel__category-title span[typeof="mw:File"]{
margin-right: 5px;
margin-right: 5px;
width: 40px;
width: 40px;
Строка 68: Строка 72:
}
}


.heroes-panel__category-title span {
.heroes-panel__category-title span,
.items-panel__category-title span{
display: flex;
display: flex;
}
}


.heroes-panel__category-title span[typeof="mw:File"] span {
.heroes-panel__category-title span[typeof="mw:File"] span,
.items-panel__category-title span[typeof="mw:File"] span{
width: 100%;
width: 100%;
height: 100%;
height: 100%;
}
}


.heroes-panel__category-title img {
.heroes-panel__category-title img,
.items-panel__category-title img{
width: 100%;
width: 100%;
height: 100%;
height: 100%;
Строка 83: Строка 90:
}
}


.heroes-panel__category-block {
.heroes-panel__category-block,
.items-panel__category-block{
display: flex;
display: flex;
align-items: flex-start;
align-items: flex-start;
Строка 89: Строка 97:
}
}


.heroes-panel__category-list {
.heroes-panel__category-list,
.items-panel__category-list {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
Строка 96: Строка 105:
     flex-wrap: wrap;
     flex-wrap: wrap;
     width: 33%;
     width: 33%;
}
.items-panel__category-block-child {
display: flex;
flex-direction: column;
align-items: center;
width: 30%;
}
.items-panel__category-block-child:not(:nth-child(4n)) {
margin-right: 10px;
}
.items-panel__category-header-title {
font-size: 18px;
}
.items-panel__category-block-child .items-panel__category-list {
width: 100%;
margin: 0;
}
}


.heroes-panel__category-list li:nth-child(4n+1),
.heroes-panel__category-list li:nth-child(4n+1),
.heroes-panel__category-list li:nth-child(4n+2),
.heroes-panel__category-list li:nth-child(4n+2),
.heroes-panel__category-list li:nth-child(4n+3) {
.heroes-panel__category-list li:nth-child(4n+3),
.items-panel__category-list li:nth-child(4n+1),
.items-panel__category-list li:nth-child(4n+2),
.items-panel__category-list li:nth-child(4n+3){
margin-right: 10px;
margin-right: 10px;
}
}


.heroes-panel__category-list li:last-child {
.heroes-panel__category-list li:last-child,
.items-panel__category-list li:last-child{
margin-right: 0px;
margin-right: 0px;
}
}


.heroes-panel__hero-card {
.heroes-panel__hero-card,
.items-panel__hero-card {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
Строка 119: Строка 153:
}
}


.heroes-panel__hero-card span[typeof='mw:File'] {
.heroes-panel__hero-card span[typeof='mw:File'],
.items-panel__hero-card span[typeof='mw:File']{
     border: 2px solid #242329;
     border: 2px solid #242329;
     border-radius: 10px;
     border-radius: 10px;
Строка 126: Строка 161:
}
}


.heroes-panel__hero-card span[typeof='mw:File'] a {
.heroes-panel__hero-card span[typeof='mw:File'] a,
.items-panel__hero-card span[typeof='mw:File'] a{
width: 100%;
width: 100%;
height: 100%;
height: 100%;
}
}


.heroes-panel__hero-card span[typeof='mw:File']:hover {
.heroes-panel__hero-card span[typeof='mw:File']:hover,
.items-panel__hero-card span[typeof='mw:File']:hover {
border-color: #00f7d5;
border-color: #00f7d5;
border-width: 1px;
border-width: 1px;
}
}


.heroes-panel__hero-card span {
.heroes-panel__hero-card span,
.items-panel__hero-card span {
display: flex;
display: flex;
width: 100%;
width: 100%;
}
}


.heroes-panel__hero-card img {
.heroes-panel__hero-card img,
.items-panel__hero-card img {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
Строка 148: Строка 187:
}
}


.heroes-panel__hero-card__title a {
.heroes-panel__hero-card__title a,
.items-panel__hero-card__title a{
font-size: 11px;
font-size: 11px;
font-weight: 600;
font-weight: 600;
color: #38323d;
color: #38323d;
}
.stat-row-text {
margin: 5px 0;
}
}


.ability-card {
.ability-card {
   border: 1px solid #333;
   border: 1px solid #1c4669;
  background-color: #f5f5f5;
   border-radius: 8px;
   border-radius: 8px;
   padding: 10px;
   padding: 10px;
Строка 165: Строка 208:
.ability-header {
.ability-header {
   display: flex;
   display: flex;
  flex-direction: column;
   justify-content: space-between;
   justify-content: space-between;
   align-items: center;
   align-items: center;
   border-bottom: 1px solid #444;
   border-bottom: 1px solid #444;
   padding-bottom: 5px;
   padding-bottom: 5px;
}
.ability-top-info {
    display: flex;
    align-items: center;
}
.ability-top-info-icon {
margin-right: 10px;
}
.ability-top-info-name p {
font-size: 18px;
font-weight: 600;
line-height: 24px;
}
.ability-bottom-info {
display: flex;
justify-content: space-evenly;
width: 100%;
}
.ability-type-title,
.ability-type-text {
    font-size: 14px;
    line-height: 18px;
    color: #787b80;
}
.ability-type-title,
.ability-target-title,
.damage-type-title {
font-weight: 600;
}
.ability-target-title,
.ability-target-text {
    font-size: 14px;
    line-height: 18px;
    color: #0b9600;
}
.damage-type-title,
.damage-type-text {
    font-size: 14px;
    line-height: 18px;
    color: #787b80;
}
}


Строка 188: Строка 280:
.ability-target,
.ability-target,
.damage-type {
.damage-type {
  text-transform: uppercase;
  background-color: #f0f8ff;
   padding: 5px 10px;
   padding: 5px 10px;
   border-radius: 5px;
   border-radius: 5px;
Строка 213: Строка 303:
.herobox {
.herobox {
   width: 300px;
   width: 300px;
   border: 1px solid grey;
   border: 1px solid #1c4669;
   padding: 10px;
   padding: 10px;
   margin: 10px;
   margin: 10px;
Строка 220: Строка 310:


.hero-info {
.hero-info {
display: flex;
justify-content: center;
align-items: center;
   text-align: center;
   text-align: center;
   font-weight: bold;
   font-weight: bold;
   font-size: 120%;
   font-size: 120%;
   margin-bottom: 10px;
   margin-bottom: 5px;
}
 
.hero-info-image {
margin-right: 10px;
width: 50px;
height: 50px;
}
 
.hero-info-image p {
margin: 0;
}
 
.hero-info-text {
margin: 0;
}
}


Строка 231: Строка 338:
   justify-content: space-evenly;
   justify-content: space-evenly;
   margin-bottom: 10px;
   margin-bottom: 10px;
}
.hero-attributes-items {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-attributes-items-image {
width: 50px;
height: 50px;
}
}


Строка 271: Строка 390:
display: flex;
display: flex;
max-width: 500px;
max-width: 500px;
}
.ability-stats-item-title {
font-weight: 700;
}
}

Текущая версия от 18:38, 13 ноября 2024

/* Размещённый здесь CSS будет применяться ко всем темам оформления */
img {
	width: 100%;
	height: 100%;
}

.mw-headline {
	padding-bottom: 10px;
	border-bottom: 1px solid #000000;
}

.navigation-card-main {
	display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.navigation-card {
    width: 150px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 10px;
}

.navigation-card:not(:last-child) {
	margin-right: 10px;
}

.navigation-card__image {
	width: 100%;
	height: 100%;
}

.navigation-card__image img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}

.heroes-panel,
.items-panel{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content:center;
}

.heroes-panel__category,
.items-panel__category{
	display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	max-width: 1000px;
}

.heroes-panel__category-title,
.items-panel__category-title{
	display: flex;
	align-items: center;
}

.heroes-panel__category-title span[typeof="mw:File"],
.items-panel__category-title span[typeof="mw:File"]{
	margin-right: 5px;
	width: 40px;
	height: 35px;
}

.heroes-panel__category-title span,
.items-panel__category-title span{
	display: flex;
}

.heroes-panel__category-title span[typeof="mw:File"] span,
.items-panel__category-title span[typeof="mw:File"] span{
	width: 100%;
	height: 100%;
}

.heroes-panel__category-title img,
.items-panel__category-title img{
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.heroes-panel__category-block,
.items-panel__category-block{
	display: flex;
	align-items: flex-start;
	width: 100%;
}

.heroes-panel__category-list,
.items-panel__category-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    flex-wrap: wrap;
    width: 33%;
}

.items-panel__category-block-child {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 30%;
}

.items-panel__category-block-child:not(:nth-child(4n)) {
	margin-right: 10px;
}

.items-panel__category-header-title {
	font-size: 18px;
}

.items-panel__category-block-child .items-panel__category-list {
	width: 100%;
	margin: 0;
}

.heroes-panel__category-list li:nth-child(4n+1),
.heroes-panel__category-list li:nth-child(4n+2),
.heroes-panel__category-list li:nth-child(4n+3),
.items-panel__category-list li:nth-child(4n+1),
.items-panel__category-list li:nth-child(4n+2),
.items-panel__category-list li:nth-child(4n+3){
	margin-right: 10px;
}

.heroes-panel__category-list li:last-child,
.items-panel__category-list li:last-child{
	margin-right: 0px;
}

.heroes-panel__hero-card,
.items-panel__hero-card {
	display: flex;
	flex-direction: column;
    width: 60px;
    height: 100%;
	margin-top: 10px;
	align-items: center;
	justify-content: center;
	position: relative;
}

.heroes-panel__hero-card span[typeof='mw:File'],
.items-panel__hero-card span[typeof='mw:File']{
    border: 2px solid #242329;
    border-radius: 10px;
    height: 50px;
    transition: border-color 0.3s ease-in-out, border-width 0.3s ease-in-out;
}

.heroes-panel__hero-card span[typeof='mw:File'] a,
.items-panel__hero-card span[typeof='mw:File'] a{
	width: 100%;
	height: 100%;
}

.heroes-panel__hero-card span[typeof='mw:File']:hover,
.items-panel__hero-card span[typeof='mw:File']:hover {
	border-color: #00f7d5;
	border-width: 1px;
}

.heroes-panel__hero-card span,
.items-panel__hero-card span {
	display: flex;
	width: 100%;
}

.heroes-panel__hero-card img,
.items-panel__hero-card img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	border-radius: 10px;
}

.heroes-panel__hero-card__title a,
.items-panel__hero-card__title a{
	font-size: 11px;
	font-weight: 600;
	color: #38323d;
}

.stat-row-text {
	margin: 5px 0;
}

.ability-card {
  border: 1px solid #1c4669;
  border-radius: 8px;
  padding: 10px;
  width: 600px;
  font-family: Arial, sans-serif;
}

.ability-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.ability-top-info {
    display: flex;
    align-items: center;
}

.ability-top-info-icon {
	margin-right: 10px;
}

.ability-top-info-name p {
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
}

.ability-bottom-info {
	display: flex;
	justify-content: space-evenly;
	width: 100%;
}

.ability-type-title,
.ability-type-text {
    font-size: 14px;
    line-height: 18px;
    color: #787b80;
}

.ability-type-title,
.ability-target-title, 
.damage-type-title {
	font-weight: 600;
}

.ability-target-title,
.ability-target-text {
    font-size: 14px;
    line-height: 18px;
    color: #0b9600;	
}

.damage-type-title,
.damage-type-text {
    font-size: 14px;
    line-height: 18px;
    color: #787b80;		
}

.ability-icon {
  display: flex;
  align-items: center;
}

.ability-icon div {
  margin-right: 10px;
}

.ability-name {
  font-size: 24px;
  font-weight: bold;
}

.ability-type,
.ability-target,
.damage-type {
  padding: 5px 10px;
  border-radius: 5px;
}

.ability-description {
  margin-top: 10px;
}

.ability-stats {
  margin-top: 10px;
}

.additional-info {
  margin-top: 10px;
}

.additional-info strong {
  display: block;
  margin-bottom: 5px;
}

.herobox {
  width: 300px;
  border: 1px solid #1c4669;
  padding: 10px;
  margin: 10px;
  float: right;
}

.hero-info {
	display: flex;
	justify-content: center;
	align-items: center;
  text-align: center;
  font-weight: bold;
  font-size: 120%;
  margin-bottom: 5px;
}

.hero-info-image {
	margin-right: 10px;
	width: 50px;
	height: 50px;
}

.hero-info-image p {
	margin: 0;
}

.hero-info-text {
	margin: 0;
}

.hero-attributes {
  text-align: center;
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 10px;
}

.hero-attributes-items {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-attributes-items-image {
	width: 50px;
	height: 50px;
}

.hero-stats, .hero-extra-stats {
  font-size: 90%;
  border-top: 1px solid grey;
  padding-top: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
}

.items-actions .items-actions-list {
	display: flex;
	flex-direction: column;
	margin: 20px 0;
	list-style: none;
	
}

.items-actions-list-item {
	display: flex;
	align-items: center;
}

.items-actions-list-item:not(:last-child) {
	margin-bottom: 10px;
}

.items-actions-list-item-image {
	display: flex;
	margin-right: 10px;
	width: 40px;
	height: 40px;
}

.items-actions-list-item-text {
	display: flex;
	max-width: 500px;
}

.ability-stats-item-title {
	font-weight: 700;
}