Module:ThemeAdjustments
Jump to navigation
Jump to search
Documentation for this module may be created at Module:ThemeAdjustments/doc
local p = {}
function p.addThemeStyles(frame)
local css = [[
/* Minimal .mw-body adjustments only */
.mw-body {
/* Keep sidebar spacing */
margin-left: 10em;
/* Add subtle border with theme colors */
border-left: 4px solid var(--teal-400);
border-radius: var(--border-radius-sm);
/* Ensure proper background */
background-color: var(--theme-page-background-color);
/* Fix any overflow issues */
position: relative;
z-index: 1;
}
/* Fix editor isolation - these are more specific */
body.action-edit .mw-body .CodeMirror,
body.action-submit .mw-body .CodeMirror,
body.action-edit .mw-body .ace_editor,
body.action-submit .mw-body .ace_editor {
font-size: 14px !important;
line-height: 1.5 !important;
}
/* Fix Ace editor line heights */
body.action-edit .ace_line,
body.action-submit .ace_line {
height: 20px !important;
line-height: 20px !important;
}
/* Game intro card styling via module */
.game-intro-card {
background: var(--card-bg-main);
border-radius: var(--border-radius-lg);
border: 1px solid var(--theme-border-color);
overflow: hidden;
box-shadow: var(--shadow-md);
margin-bottom: 20px;
}
.game-header {
background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-900) 100%);
padding: 15px 25px;
display: flex;
flex-direction: column;
}
.mana-text {
font-size: 1.8em;
font-weight: 900;
letter-spacing: 2px;
color: #fff;
text-shadow: 0 0 10px rgba(162, 242, 225, 0.5);
}
.mana-line {
height: 3px;
width: 50px;
background: var(--teal-200);
margin-top: 5px;
border-radius: 2px;
}
.game-content {
padding: 25px;
line-height: 1.6;
color: var(--theme-page-text-color);
}
]]
return frame:extensionTag{
name = 'style',
content = css
}
end
return p