Created page with " If you want a card layout for the individual templates, you can add some custom-css to the page MediaWiki:Common.css. == Custom page templates selection == File:Manual:cu..." |
Changed categories. |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
If you want a card layout for the individual templates, you can add some custom-css to your wiki. | |||
{{Messagebox|boxtype=note|icon=|Note text=From BlueSpice 4.2, templates are automatically shown as cards and this customization is no longer necessary.|bgcolor=}} | |||
== Custom page templates selection == | == Custom page templates selection == | ||
[[File:Manual:custom page template selection.png|alt=Customized page templates selection|center|thumb|750x750px|Customized page templates selection]] | [[File:Manual:custom page template selection.png|alt=Customized page templates selection|center|thumb|750x750px|Customized page templates selection]]Simply add the following css information to your global style sheet ''MediaWiki:Common.css'' (admin permissions required):<syntaxhighlight lang="text"> | ||
<syntaxhighlight lang="text"> | |||
/** Customized page templates selection **/ | /** Customized page templates selection **/ | ||
.bs-pt- | .bs-pt-sect { | ||
margin-top: | margin-top:1em | ||
} | |||
.bs-pt-subsect h3 { | |||
margin:0 0.8em; | |||
} | |||
.bs-pt-items { | |||
margin-left: 0; | margin-left: 0; | ||
display: flex; | display: flex; | ||
Line 14: | Line 19: | ||
position: relative; | position: relative; | ||
} | } | ||
.bs-pt-item {position: relative; | .bs-pt-item { | ||
position: relative; | |||
word-wrap: break-word; | word-wrap: break-word; | ||
background-color: #e9e9ee; | background-color: #e9e9ee; | ||
Line 20: | Line 26: | ||
width: 31%; | width: 31%; | ||
border-radius: 5px; | border-radius: 5px; | ||
padding:20px | padding:20px 12pt | ||
} | |||
.pt-desc { | |||
margin-left:1.1em | |||
} | |||
@media only screen and (max-width: 576px) { | |||
.bs-pt-item { | |||
width:100%} | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[ | |||
[[de:Handbuch:Erweiterung/BlueSpicePageTemplates/Anpassung]] | |||
[[en:{{FULLPAGENAME}}]] |
Latest revision as of 07:05, 9 January 2023
If you want a card layout for the individual templates, you can add some custom-css to your wiki.
Custom page templates selection

Simply add the following css information to your global style sheet MediaWiki:Common.css (admin permissions required):
/** Customized page templates selection **/
.bs-pt-sect {
margin-top:1em
}
.bs-pt-subsect h3 {
margin:0 0.8em;
}
.bs-pt-items {
margin-left: 0;
display: flex;
flex-flow: row wrap;
position: relative;
}
.bs-pt-item {
position: relative;
word-wrap: break-word;
background-color: #e9e9ee;
margin: 1.16%;
width: 31%;
border-radius: 5px;
padding:20px 12pt
}
.pt-desc {
margin-left:1.1em
}
@media only screen and (max-width: 576px) {
.bs-pt-item {
width:100%}
}