Mudanças entre as edições de "MediaWiki:Common.css"
| Linha 1: | Linha 1: | ||
/** o código CSS colocado aqui será aplicado a todos os temas */ | /** o código CSS colocado aqui será aplicado a todos os temas */ | ||
| − | /* | + | /* Ajuste do menu de navegação lateral (Sidebar) */ |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
#mw-panel { | #mw-panel { | ||
| − | + | position: fixed; /* Fixa o menu à esquerda */ | |
| − | + | top: 0; | |
| − | + | left: 0; | |
| − | width: 250px | + | width: 250px; /* Largura fixa da barra lateral */ |
| − | + | height: 100vh; /* Ocupa toda a altura da tela */ | |
| − | + | background-color: #006400; /* Cor verde do IFSULDEMINAS */ | |
| − | + | padding: 20px; | |
| − | + | box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Sombra para destacar */ | |
| − | + | z-index: 1000; /* Garante que o menu fique acima de outros elementos */ | |
| − | + | overflow-y: auto; /* Adiciona scroll se o conteúdo for muito grande */ | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | /* | ||
| − | |||
| − | background-color: # | ||
| − | |||
| − | padding: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | box-shadow: 0 | ||
} | } | ||
| − | # | + | /* Links do menu lateral */ |
| − | list-style: none; | + | #mw-panel ul { |
| + | list-style: none; /* Remove os marcadores das listas */ | ||
padding: 0; | padding: 0; | ||
margin: 0; | margin: 0; | ||
| − | |||
| − | |||
} | } | ||
| − | # | + | #mw-panel li { |
| − | margin: | + | margin: 15px 0; |
} | } | ||
| − | # | + | #mw-panel a { |
color: white; | color: white; | ||
| + | text-decoration: none; | ||
font-weight: bold; | font-weight: bold; | ||
| − | + | padding: 10px; | |
| − | + | display: block; | |
border-radius: 5px; | border-radius: 5px; | ||
transition: background-color 0.3s ease; | transition: background-color 0.3s ease; | ||
} | } | ||
| − | # | + | #mw-panel a:hover { |
| − | background-color: # | + | background-color: #32CD32; /* Cor verde mais clara ao passar o mouse */ |
} | } | ||
| − | /* | + | /* Responsividade para dispositivos móveis */ |
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
| − | # | + | #mw-panel { |
| − | + | position: relative; /* O menu se torna estático em telas pequenas */ | |
| − | + | width: 100%; /* O menu ocupa toda a largura da tela */ | |
| + | height: auto; /* Ajusta a altura automaticamente */ | ||
} | } | ||
| + | } | ||
| − | # | + | /* Ajuste do conteúdo principal para não ser sobreposto pelo menu */ |
| − | margin: 10px | + | #content { |
| + | margin-left: 270px; /* Espaço para a barra lateral */ | ||
| + | padding: 20px; | ||
| + | background-color: #ffffff; | ||
| + | border-radius: 10px; | ||
| + | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra leve para destacar o conteúdo */ | ||
| + | } | ||
| + | |||
| + | /* Ajuste do conteúdo em dispositivos móveis */ | ||
| + | @media (max-width: 768px) { | ||
| + | #content { | ||
| + | margin-left: 0; /* Remove a margem em telas pequenas */ | ||
| + | padding: 10px; | ||
} | } | ||
} | } | ||
| + | |||
| + | |||
| + | |||
| + | |||
/* Tipografia geral */ | /* Tipografia geral */ | ||
Edição das 18h08min de 23 de setembro de 2024
/** o código CSS colocado aqui será aplicado a todos os temas */
/* Ajuste do menu de navegação lateral (Sidebar) */
#mw-panel {
position: fixed; /* Fixa o menu à esquerda */
top: 0;
left: 0;
width: 250px; /* Largura fixa da barra lateral */
height: 100vh; /* Ocupa toda a altura da tela */
background-color: #006400; /* Cor verde do IFSULDEMINAS */
padding: 20px;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
z-index: 1000; /* Garante que o menu fique acima de outros elementos */
overflow-y: auto; /* Adiciona scroll se o conteúdo for muito grande */
}
/* Links do menu lateral */
#mw-panel ul {
list-style: none; /* Remove os marcadores das listas */
padding: 0;
margin: 0;
}
#mw-panel li {
margin: 15px 0;
}
#mw-panel a {
color: white;
text-decoration: none;
font-weight: bold;
padding: 10px;
display: block;
border-radius: 5px;
transition: background-color 0.3s ease;
}
#mw-panel a:hover {
background-color: #32CD32; /* Cor verde mais clara ao passar o mouse */
}
/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
#mw-panel {
position: relative; /* O menu se torna estático em telas pequenas */
width: 100%; /* O menu ocupa toda a largura da tela */
height: auto; /* Ajusta a altura automaticamente */
}
}
/* Ajuste do conteúdo principal para não ser sobreposto pelo menu */
#content {
margin-left: 270px; /* Espaço para a barra lateral */
padding: 20px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra leve para destacar o conteúdo */
}
/* Ajuste do conteúdo em dispositivos móveis */
@media (max-width: 768px) {
#content {
margin-left: 0; /* Remove a margem em telas pequenas */
padding: 10px;
}
}
/* Tipografia geral */
body {
font-family: 'Open Sans', sans-serif;
line-height: 1.6;
background-color: #f4f4f4; /* Fundo claro */
color: #333;
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
color: #006400; /* Verde do IF para títulos */
margin-bottom: 20px;
}
a {
color: #006400; /* Cor dos links */
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: #32CD32;
}
/* Botões */
button, .button {
background-color: #006400;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover, .button:hover {
background-color: #228B22; /* Sombra mais clara no hover */
}
button:active, .button:active {
background-color: #32CD32;
}
/* 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;
}
}
/* Imagens responsivas */
img {
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Ajustes responsivos para tablets e dispositivos móveis */
@media (max-width: 1024px) {
#content {
padding: 15px;
max-width: 90%;
}
h1, h2, h3 {
font-size: 1.5em;
}
}
@media (max-width: 768px) {
h1, h2, h3 {
font-size: 1.2em;
}
#p-navigation ul {
flex-direction: column;
}
#p-navigation li {
margin: 10px 0;
}
}