MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| (44 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
.current-box { | .current-box { | ||
width: 100%; | width: 100%; | ||
display: flex; | |||
overflow: hidden; | overflow: hidden; | ||
text-align: center; | |||
gap: 2%; /* Adds 2% margin between text and media */ | |||
margin-top: 0; | |||
} | |||
.current-text { | |||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
flex: 0 0 60%; | |||
text-align: center; | text-align: center; | ||
background-color: #fdf4ff; | background-color: #fdf4ff; | ||
box-sizing: border-box; | |||
margin-top: 0; | |||
} | } | ||
.current-header { | .current-text-header { | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 115%; | font-size: 115%; | ||
background-color: #eecdf2; | background-color: #eecdf2; | ||
display: block; | display: block; | ||
margin-top: 0; | |||
padding: 0.2em 0.4em; | |||
border-top: 1px solid #a2a9b1; | |||
border-bottom: 1px solid #a2a9b1; | |||
} | } | ||
.current- | .current-text-header:first-child { | ||
margin-top: 0; | |||
border-top: 0px solid #a2a9b1; | |||
} | } | ||
.current-media { | .current-media { | ||
border: 1px solid #a2a9b1; | |||
flex: 0 0 38%; | |||
text-align: center; | text-align: center; | ||
background-color: # | background-color: #f5fffa; | ||
box-sizing: border-box; | |||
margin-top: 0; | |||
} | |||
.current-media-header { | |||
font-weight: bold; | |||
font-size: 115%; | |||
background-color: #cef2e0; | |||
display: block; | |||
margin-top: 0; | |||
padding: 0.2em 0.4em; | |||
border-top: 1px solid #a2a9b1; | |||
border-bottom: 1px solid #a2a9b1; | |||
} | |||
.current-media-header:first-child { | |||
margin-top: 0; | |||
border-top: 0px solid #a2a9b1; | |||
} | } | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.current-box { | |||
flex-direction: column; | |||
gap: 0; /* Removes gap in mobile view */ | |||
} | |||
.current-text { | .current-text { | ||
width: 100%; | width: 100%; | ||
padding-left: 1%; | |||
padding-right: 1%; | |||
padding-bottom: 0; | |||
} | } | ||
.current-media { | .current-media { | ||
width: 100%; | width: 100%; | ||
padding-top: 0; | padding-top: 0; | ||
text- | padding-left: 1%; | ||
padding-right: 1%; | |||
padding-bottom: 0; | |||
} | |||
.current-text-header, | |||
.current-media-header { | |||
margin-left: -1%; /* Adjusted for mobile padding */ | |||
margin-right: -1%; | |||
padding: 0 1%; | |||
} | } | ||
} | } | ||
/* Note: I removed float properties as they're not needed with flexbox */ | |||
.eras-table { | .eras-table { | ||
| Line 133: | Line 173: | ||
left: 0; | left: 0; | ||
width: 100% !important; | width: 100% !important; | ||
height: 100% !important; | height: 100% !important; | ||
max-width: | padding-left: 2%; | ||
padding-right: 2%; | |||
padding-bottom: 2%; | |||
padding-top: 2%; | |||
max-width: 100%; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | |||
.navbox { | |||
padding: 0 !important; | |||
} | } | ||