Mudanças entre as edições de "MediaWiki:Common.css"
| Linha 33: | Linha 33: | ||
#mw-panel { | #mw-panel { | ||
display: none; /* Oculta sidebar em telas pequenas */ | display: none; /* Oculta sidebar em telas pequenas */ | ||
| + | } | ||
| + | } | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | /* Menu de navegação */ | ||
| + | #p-navigation { | ||
| + | background-color: #006400; /* Verde escuro do IF */ | ||
| + | color: white; | ||
| + | padding: 10px; | ||
| + | border-radius: 10px; | ||
| + | display: flex; | ||
| + | flex-wrap: wrap; | ||
| + | justify-content: space-between; | ||
| + | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
| + | } | ||
| + | |||
| + | #p-navigation ul { | ||
| + | list-style: none; | ||
| + | padding: 0; | ||
| + | margin: 0; | ||
| + | display: flex; | ||
| + | flex-wrap: wrap; | ||
| + | } | ||
| + | |||
| + | #p-navigation li { | ||
| + | margin: 10px 15px; | ||
| + | } | ||
| + | |||
| + | #p-navigation li a { | ||
| + | color: white; | ||
| + | font-weight: bold; | ||
| + | text-decoration: none; | ||
| + | padding: 10px 15px; | ||
| + | border-radius: 5px; | ||
| + | transition: background-color 0.3s ease; | ||
| + | } | ||
| + | |||
| + | #p-navigation li a:hover { | ||
| + | background-color: #32CD32; /* Cor de destaque */ | ||
| + | } | ||
| + | |||
| + | /* Menu em dispositivos móveis */ | ||
| + | @media (max-width: 768px) { | ||
| + | #p-navigation { | ||
| + | flex-direction: column; | ||
| + | padding: 20px; | ||
| + | } | ||
| + | |||
| + | #p-navigation li { | ||
| + | margin: 10px 0; | ||
} | } | ||
} | } | ||
Edição das 16h30min de 19 de setembro de 2024
/** o código CSS colocado aqui será aplicado a todos os temas */
/* Layout principal */
#content {
display: flex;
flex-direction: column;
align-items: center;
background-color: #ffffff;
padding: 20px;
margin: 0 auto;
max-width: 1200px; /* Largura máxima para desktops */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
@media (max-width: 768px) {
#content {
padding: 15px;
max-width: 100%;
}
}
/* Sidebar - Oculta em telas menores e deixa o conteúdo centralizado */
#mw-panel {
display: flex;
flex-direction: column;
background-color: #006400; /* Cor verde do IF */
padding: 10px;
width: 250px;
}
@media (max-width: 768px) {
#mw-panel {
display: none; /* Oculta sidebar em telas pequenas */
}
}
/* Menu de navegação */
#p-navigation {
background-color: #006400; /* Verde escuro do IF */
color: white;
padding: 10px;
border-radius: 10px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#p-navigation ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
}
#p-navigation li {
margin: 10px 15px;
}
#p-navigation li a {
color: white;
font-weight: bold;
text-decoration: none;
padding: 10px 15px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
#p-navigation li a:hover {
background-color: #32CD32; /* Cor de destaque */
}
/* Menu em dispositivos móveis */
@media (max-width: 768px) {
#p-navigation {
flex-direction: column;
padding: 20px;
}
#p-navigation li {
margin: 10px 0;
}
}
/* Rodapé */
#footer {
background-color: #006400;
color: white;
padding: 20px;
text-align: center;
margin-top: 20px;
border-radius: 5px;
}
#footer a {
color: white;
text-decoration: underline;
}
@media (max-width: 768px) {
#footer {
font-size: 14px;
}
}