Skip to content

Commit bec9806

Browse files
committed
Add powershell styles
1 parent 7d44bf8 commit bec9806

File tree

1 file changed

+22
-0
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/CodeTabs

1 file changed

+22
-0
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/CodeTabs/_CodeTabs.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,28 @@
209209
}
210210
}
211211

212+
.language-powershell {
213+
max-height: 500px;
214+
overflow: auto;
215+
}
216+
217+
.openapi-tabs__code-item--powershell {
218+
color: var(--ifm-color-info);
219+
220+
&::after {
221+
content: "";
222+
width: 28px;
223+
height: 28px;
224+
background: url("https://raw.githubusercontent.com/devicons/devicon/master/icons/windows8/windows8-original.svg");
225+
margin-block: auto;
226+
}
227+
228+
&.active {
229+
border-bottom-color: var(--ifm-color-success);
230+
background-color: var(--ifm-color-emphasis-100);
231+
}
232+
}
233+
212234
@media only screen and (min-width: 768px) and (max-width: 996px) {
213235
.openapi-tabs__code-list {
214236
justify-content: space-around;

0 commit comments

Comments
 (0)