Skip to content

Commit

Permalink
Extend styling of commands from property-cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Obert committed Oct 31, 2024
1 parent 032b86f commit 56f89aa
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
20 changes: 20 additions & 0 deletions packages/typo3-docs-theme/assets/sass/components/_command.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
dl.command {
@extend .property-card;

& > dt {
a:not([class*=headerlink]) {
float: right;
}
}

.command-description {
margin-block: $spacer;
}

.command-options,
.command-arguments {
section {
margin-left: calc($spacer * 2);
}
}
}
1 change: 1 addition & 0 deletions packages/typo3-docs-theme/assets/sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
@import 'components/button';
@import 'components/card';
@import 'components/code';
@import 'components/command';
@import 'components/directoryTree';
@import 'components/frame';
@import 'components/images';
Expand Down
19 changes: 15 additions & 4 deletions packages/typo3-docs-theme/resources/public/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -23831,6 +23831,17 @@ code {
max-width: 60vw;
}
}
dl.command > dt a:not([class*=headerlink]) {
float: right;
}
dl.command .command-description {
margin-block: 1rem;
}
dl.command .command-options section,
dl.command .command-arguments section {
margin-left: 2rem;
}

.directory-tree ul {
margin-bottom: 0;
list-style: none;
Expand Down Expand Up @@ -25233,7 +25244,7 @@ ul[class*=horizbuttons-][class*=-note-] > li:hover, ul[class*=horizbuttons-][cla
content: "\f071";
}

.property-card, .rst-content dl.php, dl.confval {
.property-card, .rst-content dl.php, dl.confval, dl.command {
background-color: #ffffff;
border-radius: 0.375rem;
margin-bottom: 1.5rem;
Expand All @@ -25243,20 +25254,20 @@ ul[class*=horizbuttons-][class*=-note-] > li:hover, ul[class*=horizbuttons-][cla
word-wrap: anywhere;
white-space: normal;
}
.property-card > dt, .rst-content dl.php > dt, dl.confval > dt {
.property-card > dt, .rst-content dl.php > dt, dl.confval > dt, dl.command > dt {
display: block;
background-color: rgb(242.25, 242.25, 242.25);
color: #000;
font-size: 1.25em;
padding: 0.25em 0.5em;
margin-bottom: 0.75em;
}
.property-card > dt code, .rst-content dl.php > dt code, dl.confval > dt code {
.property-card > dt code, .rst-content dl.php > dt code, dl.confval > dt code, dl.command > dt code {
color: #000;
word-wrap: anywhere;
white-space: normal;
}
.property-card > dd, .rst-content dl.php > dd, dl.confval > dd {
.property-card > dd, .rst-content dl.php > dd, dl.confval > dd, dl.command > dd {
margin-right: 1rem;
}

Expand Down

0 comments on commit 56f89aa

Please sign in to comment.