MediaWiki:Common.css: различия между версиями
Внешний вид
LePacko (обсуждение | вклад) Новая страница: «→Размещённый здесь CSS будет применяться ко всем темам оформления: →Flexbox Grid System: .flex-container { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; } .flex-column { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 8px; } .flex-item { flex: 1; text-align: center; padding: 10px; border: 1px solid #ddd; border-radius: 4px; display: f...» |
LePacko (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
/* Размещённый здесь CSS будет применяться ко всем темам оформления */ | /* Размещённый здесь CSS будет применяться ко всем темам оформления */ | ||
/* | /* Основные стили для таблицы */ | ||
.flex-grid-container { | |||
width: 70%; | |||
max-width: 1000px; | |||
min-width: 320px; | |||
margin: 2em auto; | |||
padding: 20px; | |||
background: #fff; | |||
border-radius: 12px; | |||
box-shadow: 0 5px 15px rgba(0,0,0,0.08); | |||
} | |||
.grid-header { | |||
text-align: center; | |||
padding: 20px; | |||
font-size: 1.8em; | |||
font-weight: 700; | |||
color: #2c3e50; | |||
margin-bottom: 25px; | |||
border-bottom: 2px solid #f0f3f5; | |||
} | |||
.grid-header span { | |||
color: #1a5fb4; | |||
text-shadow: 0 2px 4px rgba(26, 95, 180, 0.1); | |||
} | |||
.flex-container { | .flex-container { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 25px; | ||
} | } | ||
| Строка 14: | Строка 39: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 20px; | ||
} | } | ||
. | .section-header { | ||
text-align: center; | |||
padding: 15px; | |||
font-weight: 600; | |||
font-size: 1.3em; | |||
color: #2c3e50; | |||
background: linear-gradient(to right, #f8f9fa, #e9ecef); | |||
border-radius: 8px; | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.05); | |||
} | |||
.grid-item { | |||
flex: 1; | flex: 1; | ||
text-align: center; | text-align: center; | ||
padding: | padding: 20px 15px; | ||
border: 1px solid # | border: 1px solid #e1e5e9; | ||
border-radius: | border-radius: 8px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
transition: all 0.3s | background: #ffffff; | ||
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); | |||
font-size: 1.1em; | |||
color: #34495e; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.03); | |||
} | } | ||
. | /* Эффекты при наведении */ | ||
.grid-item:hover { | |||
transform: translateY(-5px) scale(1.02); | |||
box-shadow: 0 8px 20px rgba(26, 95, 180, 0.15); | |||
border-color: #a0c0ff; | |||
background: #f8fbff; | |||
cursor: pointer; | |||
z-index: 10; | |||
} | |||
/* Адаптивность */ | |||
@media (max-width: 768px) { | |||
.flex-grid-container { | |||
width: 90%; | |||
padding: 15px; | |||
} | |||
.grid-header { | |||
font-size: 1.5em; | |||
} | |||
} | } | ||
@media (max-width: 480px) { | |||
.flex- | .flex-column { | ||
min-width: 100%; | |||
} | |||
.grid-item { | |||
padding: 18px 12px; | |||
} | |||
} | } | ||
Версия от 12:55, 1 июля 2025
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* Основные стили для таблицы */
.flex-grid-container {
width: 70%;
max-width: 1000px;
min-width: 320px;
margin: 2em auto;
padding: 20px;
background: #fff;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.grid-header {
text-align: center;
padding: 20px;
font-size: 1.8em;
font-weight: 700;
color: #2c3e50;
margin-bottom: 25px;
border-bottom: 2px solid #f0f3f5;
}
.grid-header span {
color: #1a5fb4;
text-shadow: 0 2px 4px rgba(26, 95, 180, 0.1);
}
.flex-container {
display: flex;
flex-wrap: wrap;
gap: 25px;
}
.flex-column {
flex: 1;
min-width: 300px;
display: flex;
flex-direction: column;
gap: 20px;
}
.section-header {
text-align: center;
padding: 15px;
font-weight: 600;
font-size: 1.3em;
color: #2c3e50;
background: linear-gradient(to right, #f8f9fa, #e9ecef);
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.grid-item {
flex: 1;
text-align: center;
padding: 20px 15px;
border: 1px solid #e1e5e9;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
background: #ffffff;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
font-size: 1.1em;
color: #34495e;
box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
/* Эффекты при наведении */
.grid-item:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 8px 20px rgba(26, 95, 180, 0.15);
border-color: #a0c0ff;
background: #f8fbff;
cursor: pointer;
z-index: 10;
}
/* Адаптивность */
@media (max-width: 768px) {
.flex-grid-container {
width: 90%;
padding: 15px;
}
.grid-header {
font-size: 1.5em;
}
}
@media (max-width: 480px) {
.flex-column {
min-width: 100%;
}
.grid-item {
padding: 18px 12px;
}
}