Difference between revisions of "Template:Window container"
(Created page with "{{#css: .window-container { max-width: 500px; width: auto; } .window-title { background-color: #888; padding: 2px; border-radius: 4px 4px 0 0; } .window-title p { color: white...") |
Coppersalts (talk | contribs) |
||
(21 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#css: | {{#css: | ||
.window-container { | .window-container { | ||
− | max-width: | + | max-width: {{{max-width|512px}}}; |
+ | min-width: 200px; | ||
width: auto; | width: auto; | ||
} .window-title { | } .window-title { | ||
− | background-color: #888; | + | background-color: {{{window-color|#888}}}; |
− | padding: 2px; | + | padding: 2px 4px; |
− | border-radius: | + | border-radius: 6px 6px 0 0; |
− | } .window-title | + | display: flex; |
+ | justify-content: space-between; | ||
+ | align-items: center; | ||
+ | } .window-title .title-text { | ||
color: white; | color: white; | ||
− | margin: 4px; | + | font-size: 16px; |
+ | font-weight: bold; | ||
+ | margin: 2px 4px; | ||
+ | display: flex; | ||
+ | gap: 6px; | ||
+ | align-items: center; | ||
+ | max-width: 100%; | ||
+ | overflow: auto; | ||
+ | } .window-title .title-text .title-icon { | ||
+ | width: 24px; | ||
+ | height: 24px; | ||
+ | } .window-title .title-text .title-icon img { | ||
+ | vertical-align: initial; | ||
} .window-main { | } .window-main { | ||
border-style: solid; | border-style: solid; | ||
border-width: 0 2px 2px 2px; | border-width: 0 2px 2px 2px; | ||
− | border-color: #888; | + | border-color: {{{window-color|#888}}}; |
− | background-color: #fff | + | background-color: {{{background-color|#fff}}} |
margin: 0; | margin: 0; | ||
− | + | }}<!-- | |
− | + | -->{{#ifeq:{{{css-only|false}}}|true||<div class=window-container> | |
− | |||
− | }} | ||
− | <div class=window-container> | ||
<div class=window-title> | <div class=window-title> | ||
− | + | {{#ifeq:{{{custom-title|false}}}|false|<div class=title-text><div class=title-icon>{{Crisp edges|[[File:{{{icon|{{{3|Slightly bigger seal emoji.png}}}}}}|24px]]}}</div> {{{title|{{{1|Lorem ipsum}}}}}}</div>|{{{custom-title|false}}}}} | |
+ | <div>{{Window container/Buttons}}</div> | ||
</div> | </div> | ||
<div class=window-main> | <div class=window-main> | ||
− | {{Lorem ipsum}} | + | {{{contents|{{{2|{{Div styling|{{Lorem ipsum}}|padding:4px;}}}}}}}} |
− | |||
</div> | </div> | ||
+ | </div>}}<!-- | ||
+ | --><noinclude> | ||
+ | [[Category:User interface elements]] | ||
+ | </noinclude> |
Latest revision as of 19:16, 28 January 2023
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.