MediaWiki:Common.css: различия между версиями
Внешний вид
LePacko (обсуждение | вклад) Нет описания правки |
LePacko (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
/* Размещённый здесь CSS будет применяться ко всем темам оформления */ | /* Размещённый здесь CSS будет применяться ко всем темам оформления */ | ||
/* Flex | /* Flex Table System - Enhanced Borders */ | ||
.flex- | .flex-table-container { | ||
width: 70%; | width: 70%; | ||
max-width: 1000px; | max-width: 1000px; | ||
min-width: 320px; | min-width: 320px; | ||
margin: 2em auto; | margin: 2em auto; | ||
border: 1px solid #ddd; | |||
border-radius: 8px; | |||
padding: 20px; | |||
box-shadow: 0 2px 8px rgba(0,0,0,0.05); | |||
} | } | ||
. | .table-header { | ||
text-align: center; | text-align: center; | ||
padding: | padding: 15px; | ||
font-size: 1.8em; | font-size: 1.8em; | ||
font-weight: 700; | font-weight: 700; | ||
color: #2c3e50; | color: #2c3e50; | ||
margin- | border-bottom: 2px solid #ddd; | ||
margin: -10px -10px 20px -10px; | |||
background: #f8f9fa; | |||
border-radius: 6px 6px 0 0; | |||
} | } | ||
. | .table-header span { | ||
color: #1a5fb4; | color: #1a5fb4; | ||
} | } | ||
.flex- | .flex-table { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 15px; | ||
} | } | ||
. | .table-column { | ||
flex: 1; | flex: 1; | ||
min-width: 300px; | min-width: 300px; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
border: 1px solid #ddd; | |||
border-radius: 6px; | |||
overflow: hidden; | |||
} | } | ||
. | .column-header { | ||
text-align: center; | text-align: center; | ||
padding: 12px; | padding: 12px; | ||
| Строка 42: | Строка 51: | ||
font-size: 1.2em; | font-size: 1.2em; | ||
color: #2c3e50; | color: #2c3e50; | ||
border-bottom: | background: #f0f3f5; | ||
border-bottom: 1px solid #ddd; | |||
} | } | ||
. | .table-cell { | ||
flex: 1; | flex: 1; | ||
text-align: center; | text-align: center; | ||
padding: 15px; | padding: 15px; | ||
border: 1px solid # | border-bottom: 1px solid #eee; | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
display: block; | display: block; | ||
} | } | ||
. | .table-cell:last-child { | ||
transform: translateY(- | border-bottom: none; | ||
box-shadow: 0 4px 8px rgba( | } | ||
.table-cell:hover { | |||
background: #f8fbff; | |||
transform: translateY(-2px); | |||
box-shadow: 0 4px 8px rgba(26, 95, 180, 0.1); | |||
z-index: 2; | |||
} | } | ||
/* Адаптивность */ | /* Адаптивность */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.flex- | .flex-table-container { | ||
width: 90%; | width: 90%; | ||
padding: 15px; | |||
} | } | ||
} | } | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
. | .table-column { | ||
min-width: 100%; | min-width: 100%; | ||
} | } | ||
} | } | ||
Версия от 13:02, 1 июля 2025
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* Flex Table System - Enhanced Borders */
.flex-table-container {
width: 70%;
max-width: 1000px;
min-width: 320px;
margin: 2em auto;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.table-header {
text-align: center;
padding: 15px;
font-size: 1.8em;
font-weight: 700;
color: #2c3e50;
border-bottom: 2px solid #ddd;
margin: -10px -10px 20px -10px;
background: #f8f9fa;
border-radius: 6px 6px 0 0;
}
.table-header span {
color: #1a5fb4;
}
.flex-table {
display: flex;
flex-wrap: wrap;
gap: 15px;
}
.table-column {
flex: 1;
min-width: 300px;
display: flex;
flex-direction: column;
border: 1px solid #ddd;
border-radius: 6px;
overflow: hidden;
}
.column-header {
text-align: center;
padding: 12px;
font-weight: 600;
font-size: 1.2em;
color: #2c3e50;
background: #f0f3f5;
border-bottom: 1px solid #ddd;
}
.table-cell {
flex: 1;
text-align: center;
padding: 15px;
border-bottom: 1px solid #eee;
transition: all 0.3s ease;
display: block;
}
.table-cell:last-child {
border-bottom: none;
}
.table-cell:hover {
background: #f8fbff;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(26, 95, 180, 0.1);
z-index: 2;
}
/* Адаптивность */
@media (max-width: 768px) {
.flex-table-container {
width: 90%;
padding: 15px;
}
}
@media (max-width: 480px) {
.table-column {
min-width: 100%;
}
}