Skip to content

Commit 34b628c

Browse files
Tim-Obertlinawolf
authored andcommitted
Extend styling of commands from property-cards
1 parent c461fd7 commit 34b628c

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
dl.command {
2+
@extend .property-card;
3+
4+
& > dt {
5+
a:not([class*=headerlink]) {
6+
float: right;
7+
}
8+
}
9+
10+
.command-description {
11+
margin-block: $spacer;
12+
}
13+
14+
.command-options,
15+
.command-arguments {
16+
section {
17+
margin-left: calc($spacer * 2);
18+
}
19+
}
20+
}

packages/typo3-docs-theme/assets/sass/theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
@import 'components/button';
3030
@import 'components/card';
3131
@import 'components/code';
32+
@import 'components/command';
3233
@import 'components/directoryTree';
3334
@import 'components/frame';
3435
@import 'components/images';

packages/typo3-docs-theme/resources/public/css/theme.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23831,6 +23831,17 @@ code {
2383123831
max-width: 60vw;
2383223832
}
2383323833
}
23834+
dl.command > dt a:not([class*=headerlink]) {
23835+
float: right;
23836+
}
23837+
dl.command .command-description {
23838+
margin-block: 1rem;
23839+
}
23840+
dl.command .command-options section,
23841+
dl.command .command-arguments section {
23842+
margin-left: 2rem;
23843+
}
23844+
2383423845
.directory-tree ul {
2383523846
margin-bottom: 0;
2383623847
list-style: none;
@@ -25233,7 +25244,7 @@ ul[class*=horizbuttons-][class*=-note-] > li:hover, ul[class*=horizbuttons-][cla
2523325244
content: "\f071";
2523425245
}
2523525246

25236-
.property-card, .rst-content dl.php, dl.confval {
25247+
.property-card, .rst-content dl.php, dl.confval, dl.command {
2523725248
background-color: #ffffff;
2523825249
border-radius: 0.375rem;
2523925250
margin-bottom: 1.5rem;
@@ -25243,20 +25254,20 @@ ul[class*=horizbuttons-][class*=-note-] > li:hover, ul[class*=horizbuttons-][cla
2524325254
word-wrap: anywhere;
2524425255
white-space: normal;
2524525256
}
25246-
.property-card > dt, .rst-content dl.php > dt, dl.confval > dt {
25257+
.property-card > dt, .rst-content dl.php > dt, dl.confval > dt, dl.command > dt {
2524725258
display: block;
2524825259
background-color: rgb(242.25, 242.25, 242.25);
2524925260
color: #000;
2525025261
font-size: 1.25em;
2525125262
padding: 0.25em 0.5em;
2525225263
margin-bottom: 0.75em;
2525325264
}
25254-
.property-card > dt code, .rst-content dl.php > dt code, dl.confval > dt code {
25265+
.property-card > dt code, .rst-content dl.php > dt code, dl.confval > dt code, dl.command > dt code {
2525525266
color: #000;
2525625267
word-wrap: anywhere;
2525725268
white-space: normal;
2525825269
}
25259-
.property-card > dd, .rst-content dl.php > dd, dl.confval > dd {
25270+
.property-card > dd, .rst-content dl.php > dd, dl.confval > dd, dl.command > dd {
2526025271
margin-right: 1rem;
2526125272
}
2526225273

0 commit comments

Comments
 (0)