More actions
mNo edit summary |
add some space |
||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
float: right; | float: right; | ||
padding: 0; | padding: 0; | ||
width: | box-sizing: border-box; | ||
width: 100%; | |||
max-width: 400px; | max-width: 400px; | ||
background-color: var(--x-bg); | background-color: var(--x-bg); | ||
color: var(--x-color); | color: var(--x-color); | ||
margin: 10px; | |||
} | |||
.sidebox > .mw-collapsible { | |||
display: grid; | |||
grid-template-columns: 1fr auto; | |||
grid-template-rows: auto 1fr; | |||
height: max-content; | |||
grid-template-areas: "headline button" "content content"; | |||
} | } | ||
.sidebox > .mw-collapsible > .mw-collapsible-toggle { | .sidebox > .mw-collapsible > .mw-collapsible-toggle { | ||
grid-area: button; | |||
display: block; | display: block; | ||
float: none; | |||
margin-right: 10px; | margin-right: 10px; | ||
} | } | ||
.sidebox > .mw-collapsible > .sidebox-header { | .sidebox > .mw-collapsible > .sidebox-header { | ||
grid-area: headline; | |||
padding: 10px; | padding: 10px; | ||
} | } | ||
.sidebox > .mw-collapsible > .sidebox-content { | .sidebox > .mw-collapsible > .sidebox-content { | ||
grid-area: content; | |||
padding: 10px; | padding: 10px; | ||
background-color: var(--x-bg-2); | background-color: var(--x-bg-2); | ||
} | |||
.sidebox .sidebox-content p { | |||
margin: 0; | |||
} | } |
Latest revision as of 01:19, 29 October 2024
.sidebox {
float: right;
padding: 0;
box-sizing: border-box;
width: 100%;
max-width: 400px;
background-color: var(--x-bg);
color: var(--x-color);
margin: 10px;
}
.sidebox > .mw-collapsible {
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: auto 1fr;
height: max-content;
grid-template-areas: "headline button" "content content";
}
.sidebox > .mw-collapsible > .mw-collapsible-toggle {
grid-area: button;
display: block;
float: none;
margin-right: 10px;
}
.sidebox > .mw-collapsible > .sidebox-header {
grid-area: headline;
padding: 10px;
}
.sidebox > .mw-collapsible > .sidebox-content {
grid-area: content;
padding: 10px;
background-color: var(--x-bg-2);
}
.sidebox .sidebox-content p {
margin: 0;
}