Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Documentation-rendertest/ImagesAndFigures/FloatAndAlignment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Image float left

.. |example-teaser-left| image:: ../images/q150_cccccc.png
:alt: Left floating image
:class: float-left with-shadow
:class: float-start with-shadow

|example-teaser-left|
Typesetting is the composition of text by means of arranging physical
Expand All @@ -41,7 +41,7 @@ Image float right

.. |example-teaser-right| image:: ../images/q150_cccccc.png
:alt: Right floating image
:class: float-right with-shadow
:class: float-end with-shadow

|example-teaser-right|
Typesetting is the composition of text by means of arranging physical
Expand All @@ -62,7 +62,8 @@ Figure float left

.. figure:: ../images/q150_cccccc.png
:alt: Left floating figure
:class: float-left with-shadow
:align: left
:class: with-shadow

A figure floated to the left

Expand All @@ -85,7 +86,8 @@ Figure float right

.. figure:: ../images/q150_cccccc.png
:alt: Right floating figure
:class: float-right with-shadow
:align: right
:class: with-shadow

A figure floated to the right

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ext-dom": "*",
"ext-libxml": "*",
"brotkrueml/twig-codehighlight": "^1.0",
"league/flysystem": "^1.1.10",
"league/flysystem": "^3.29",
"phpdocumentor/dev-server": "^1.9.4",
"phpdocumentor/filesystem": "^1.9",
"phpdocumentor/guides": "^1.9",
Expand Down
157 changes: 100 additions & 57 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/typo3-docs-theme/assets/sass/components/_images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ figure {
&:not(:first-child) {
@extend .mt-3;
}
&.float-start,
&.float-end,
// Deprecated: legacy Bootstrap 4 class names — remove after migration period (see #1179)
&.float-left,
&.float-right {
margin-bottom: $spacer;
max-width: 50%;
}
&.float-start,
&.float-left {
float: left;
margin-right: $spacer;
}
&.float-end,
&.float-right {
float: right;
margin-left: $spacer;
Expand All @@ -37,6 +42,8 @@ figure {
}

@media (max-width: 575.98px) {
figure.float-start,
figure.float-end,
figure.float-left,
figure.float-right {
float: none;
Expand Down
14 changes: 14 additions & 0 deletions packages/typo3-docs-theme/assets/sass/components/_rst.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@
display: inline-block;
max-width: 100%;
height: auto;
// Deprecated: legacy Bootstrap 4 class names — remove after migration period (see #1179)
&.float-start,
&.float-left {
float: left;
margin-right: $spacer;
margin-bottom: $spacer;
}
&.float-end,
&.float-right {
float: right;
margin-left: $spacer;
Expand All @@ -57,6 +60,17 @@
}
}
}
@media (max-width: 575.98px) {
img.float-start,
img.float-end,
img.float-left,
img.float-right {
float: none;
max-width: 100%;
margin-left: 0;
margin-right: 0;
}
}
.plantuml object {
height: auto !important;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use T3Docs\Typo3DocsTheme\Directives\ConfvalMenuDirective;
use T3Docs\Typo3DocsTheme\Directives\DirectoryTreeDirective;
use T3Docs\Typo3DocsTheme\Directives\FigureDirective;
use T3Docs\Typo3DocsTheme\Directives\ImageDirective;
use T3Docs\Typo3DocsTheme\Directives\GlossaryDirective;
use T3Docs\Typo3DocsTheme\Directives\GroupTabDirective;
use T3Docs\Typo3DocsTheme\Directives\IncludeDirective;
Expand Down Expand Up @@ -203,6 +204,7 @@
->set(DirectoryTreeDirective::class)
->set(FigureDirective::class)
->arg('$startingRule', service(DirectiveContentRule::class))
->set(ImageDirective::class)
->set(GlossaryDirective::class)
->set(GroupTabDirective::class)
->set(IncludeDirective::class)
Expand Down
Loading