Skip to content

Commit a2dc5ca

Browse files
committed
Changed the styles to be easier to be used.
1 parent 2fba90b commit a2dc5ca

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Creates a codeblock consisting of multiple languages and a special way of commen
88
The input is structured in a HTML-Style:
99
* `<multicodeblock>` - This is the main body of the codeblock and directly calls `MultiCodeBlock::renderMultiCodeBlock` by MediaWiki
1010
* `<codeblock lang="<language>">"` - These are the different codeblocks (languages). The order of these codeblocks decides the order in the navigation. The `language` is the filetype and not the name of the programming language itself, but it is possible to use the name.
11-
* `<code>` - This is the code itself and is going to be highlighted.
12-
* `<desc>` - The description is a block of different blocks of the description.
11+
* `<code>` - This is the code itself and is going to be highlighted. (There can be multiple code blocks)
12+
* `<desc>` - The description is a block of different blocks of the description. (There can be multiple `desc`-Tags)
1313
* `<position line="<line-number>">` - The positions are holding the description itself the the starting point of the description (relative to the code). It is possible to write in Wiki-Syntax in these.
1414

1515
So it would be something like this:

img/MultiCodeBlockPreview.png

2.85 KB
Loading

resources/ext.multicodeblock/css/codeblock.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.multicodeblock {
2+
margin-top: calc(2em + 15px);
3+
}
4+
15
.code-table tbody tr pre {
26
text-align: left;
37
}
@@ -39,6 +43,33 @@
3943
color: #fff;
4044
}
4145

46+
.outer.tab-content {
47+
padding: 0;
48+
}
49+
50+
.outer > .multicodeblock, .inner.tabs {
51+
height: 100%;
52+
border: none;
53+
flex-direction: column;
54+
margin-top: 0;
55+
}
56+
57+
.inner.tab-content {
58+
margin-top: calc(-2em - 10px);
59+
}
60+
61+
.inner.tab-sidebar {
62+
flex-direction: initial;
63+
width: 100%;
64+
display: flex;
65+
height: fit-content;
66+
transform: translateY(-100%);
67+
}
68+
69+
.inner.tab-button {
70+
padding: 10px;
71+
}
72+
4273
.tab-content {
4374
padding: 15px;
4475
display: none;

0 commit comments

Comments
 (0)