MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Створена сторінка: →* Розміщений тут CSS буде застосовуватися до всіх тем оформлення: →Стилі для гарного блоку типів: .types-block { width: 100%; max-width: 1200px; margin: 20px auto; } .types-flex { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; } .type-item { background: #2a2a2a; border: 1px solid #444; border-radius: 8px; widt... |
Немає опису редагування |
||
| Рядок 1: | Рядок 1: | ||
/** Розміщений тут CSS буде застосовуватися до всіх тем оформлення */ | /** Розміщений тут CSS буде застосовуватися до всіх тем оформлення */ | ||
/* Стилі для гарного блоку типів */ | /* Стилі для гарного блоку типів */ | ||
/* ГОЛОВНА СТОРІНКА - ЗАГАЛЬНИЙ БЛОК */ | |||
.main-wiki-container { | |||
padding: 10px; | |||
font-family: 'Roboto', sans-serif; | |||
} | |||
.wiki-welcome { | |||
background: #2a2a2a; | |||
border: 1px solid #444; | |||
border-radius: 8px; | |||
padding: 20px; | |||
margin-bottom: 30px; | |||
box-shadow: 0 4px 6px rgba(0,0,0,0.2); | |||
} | |||
.wiki-welcome h1 { | |||
color: #0c4da2 !important; | |||
margin-top: 0; | |||
border-bottom: none !important; | |||
} | |||
/* СТИЛІ ДЛЯ КАРТОК ПОКОЛІНЬ */ | |||
.gen-cards-block { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 10px; | |||
margin-bottom: 30px; | |||
} | |||
.gen-card { | |||
background: #333; | |||
color: #fff !important; | |||
font-weight: bold; | |||
font-size: 18px; | |||
width: 45px; | |||
height: 45px; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
border-radius: 6px; | |||
border: 1px solid #555; | |||
transition: all 0.2s ease; | |||
text-decoration: none !important; | |||
} | |||
.gen-card:hover { | |||
background: #0c4da2; | |||
border-color: #001b70; | |||
transform: translateY(-2px); | |||
} | |||
/* СТИЛІ ДЛЯ КНОПОК ТИПІВ */ | |||
.types-grid-main { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 8px; | |||
margin-bottom: 30px; | |||
} | |||
.type-btn { | |||
padding: 8px 16px; | |||
border-radius: 4px; | |||
color: #fff !important; | |||
font-weight: bold; | |||
font-size: 14px; | |||
text-transform: uppercase; | |||
text-shadow: 1px 1px 2px rgba(0,0,0,0.5); | |||
border: 1px solid rgba(0,0,0,0.2); | |||
transition: transform 0.2s; | |||
text-decoration: none !important; | |||
} | |||
.type-btn:hover { | |||
transform: scale(1.05); | |||
} | |||
/* Кольори типів відповідно до оригіналу */ | |||
.type-fighting { background-color: #ba2219; } | |||
.type-water { background-color: #2681f0; } | |||
.type-fairy { background-color: #e58cb6; } | |||
.type-dragon { background-color: #552af3; } | |||
.type-ground { background-color: #d1b14a; } | |||
.type-rock { background-color: #bfa636; } | |||
.type-ice { background-color: #62cfef; } | |||
.type-flying { background-color: #8fa4f7; } | |||
.type-bug { background-color: #abb919; } | |||
.type-normal { background-color: #9fa19f; } | |||
.type-fire { background-color: #e63c12; } | |||
.type-ghost { background-color: #6a4f83; } | |||
.type-psychic { background-color: #f65387; } | |||
.type-steel { background-color: #a4a4be; } | |||
.type-dark { background-color: #583f32; } | |||
.type-grass { background-color: #70c334; } | |||
.type-electric { background-color: #f3ca22; } | |||
.type-poison { background-color: #931991; } | |||
/* СТИЛІ ДЛЯ КАРТОК ПОКЕМОНІВ */ | |||
.pokemon-cards-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); | |||
gap: 15px; | |||
} | |||
.poke-main-card { | |||
background: #2a2a2a; | |||
border: 1px solid #444; | |||
border-radius: 8px; | |||
padding: 10px; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
text-align: center; | |||
transition: all 0.2s ease; | |||
text-decoration: none !important; | |||
} | |||
.poke-main-card:hover { | |||
border-color: #0c4da2; | |||
background: #333; | |||
transform: translateY(-3px); | |||
box-shadow: 0 4px 8px rgba(12, 77, 162, 0.3); | |||
} | |||
.poke-main-card img { | |||
width: 80px; | |||
height: 80px; | |||
object-fit: contain; | |||
margin-bottom: 5px; | |||
} | |||
.poke-main-card span { | |||
color: #fff; | |||
font-size: 13px; | |||
font-weight: 500; | |||
} | |||
.types-block { | .types-block { | ||
width: 100%; | width: 100%; | ||
Поточна версія на 01:15, 22 червня 2026
/** Розміщений тут CSS буде застосовуватися до всіх тем оформлення */
/* Стилі для гарного блоку типів */
/* ГОЛОВНА СТОРІНКА - ЗАГАЛЬНИЙ БЛОК */
.main-wiki-container {
padding: 10px;
font-family: 'Roboto', sans-serif;
}
.wiki-welcome {
background: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
padding: 20px;
margin-bottom: 30px;
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.wiki-welcome h1 {
color: #0c4da2 !important;
margin-top: 0;
border-bottom: none !important;
}
/* СТИЛІ ДЛЯ КАРТОК ПОКОЛІНЬ */
.gen-cards-block {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 30px;
}
.gen-card {
background: #333;
color: #fff !important;
font-weight: bold;
font-size: 18px;
width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
border: 1px solid #555;
transition: all 0.2s ease;
text-decoration: none !important;
}
.gen-card:hover {
background: #0c4da2;
border-color: #001b70;
transform: translateY(-2px);
}
/* СТИЛІ ДЛЯ КНОПОК ТИПІВ */
.types-grid-main {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 30px;
}
.type-btn {
padding: 8px 16px;
border-radius: 4px;
color: #fff !important;
font-weight: bold;
font-size: 14px;
text-transform: uppercase;
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
border: 1px solid rgba(0,0,0,0.2);
transition: transform 0.2s;
text-decoration: none !important;
}
.type-btn:hover {
transform: scale(1.05);
}
/* Кольори типів відповідно до оригіналу */
.type-fighting { background-color: #ba2219; }
.type-water { background-color: #2681f0; }
.type-fairy { background-color: #e58cb6; }
.type-dragon { background-color: #552af3; }
.type-ground { background-color: #d1b14a; }
.type-rock { background-color: #bfa636; }
.type-ice { background-color: #62cfef; }
.type-flying { background-color: #8fa4f7; }
.type-bug { background-color: #abb919; }
.type-normal { background-color: #9fa19f; }
.type-fire { background-color: #e63c12; }
.type-ghost { background-color: #6a4f83; }
.type-psychic { background-color: #f65387; }
.type-steel { background-color: #a4a4be; }
.type-dark { background-color: #583f32; }
.type-grass { background-color: #70c334; }
.type-electric { background-color: #f3ca22; }
.type-poison { background-color: #931991; }
/* СТИЛІ ДЛЯ КАРТОК ПОКЕМОНІВ */
.pokemon-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 15px;
}
.poke-main-card {
background: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
transition: all 0.2s ease;
text-decoration: none !important;
}
.poke-main-card:hover {
border-color: #0c4da2;
background: #333;
transform: translateY(-3px);
box-shadow: 0 4px 8px rgba(12, 77, 162, 0.3);
}
.poke-main-card img {
width: 80px;
height: 80px;
object-fit: contain;
margin-bottom: 5px;
}
.poke-main-card span {
color: #fff;
font-size: 13px;
font-weight: 500;
}
.types-block {
width: 100%;
max-width: 1200px;
margin: 20px auto;
}
.types-flex {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.type-item {
background: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
width: calc(33.333% - 14px);
min-width: 280px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.title-type {
color: #fff;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
text-align: center;
padding: 10px;
font-size: 18px;
text-transform: uppercase;
}
.eff-block {
padding: 10px 15px;
border-bottom: 1px solid #3a3a3a;
}
.eff-block:last-child {
border-bottom: none;
}
.eff-title {
font-weight: bold;
font-size: 13px;
margin-bottom: 5px;
}
.eff-x2 { color: #4caf50; }
.eff-x05 { color: #ff9800; }
.eff-x0 { color: #9e9e9e; }
.eff-items {
display: flex;
flex-wrap: wrap;
gap: 5px;
align-items: center;
color: #aaa;
}
.eff-items img {
transition: transform 0.2s;
}
.eff-items img:hover {
transform: scale(1.1);
}
@media (max-width: 768px) {
.type-item { width: 100%; }
}