Skip to content

Commit 299cbe9

Browse files
committed
Docs - Docker - style update
1 parent a09ba3d commit 299cbe9

File tree

5 files changed

+46
-13
lines changed

5 files changed

+46
-13
lines changed

docs/.vitepress/theme/components/DbToolsBundleFlavorSwitcher.vue

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,10 @@ small {
177177
}
178178
179179
div[db-tools-flavor] {
180-
margin: -15px;
181-
margin-top: 25px;
182-
margin-bottom: 25px;
183-
padding: 15px;
184-
border-radius: 6px;
180+
margin: 25px -24px;
181+
padding: 12px 14px 12px 24px;
185182
position: relative;
186-
background: color-mix(in oklab, var(--db-tools-flavor-color) 4%, transparent);
183+
background: color-mix(in oklab, var(--db-tools-flavor-color) 5%, transparent);
187184
188185
&::before {
189186
display: block;
@@ -196,10 +193,24 @@ div[db-tools-flavor] {
196193
background-size: 18px 18px;
197194
background-position: center;
198195
background-repeat: no-repeat;
199-
border-radius: 6px 0 6px 0;
196+
border-radius: 0 0 6px 0;
200197
width: 22px;
201198
height: 22px;
202199
}
200+
201+
@media (min-width: 960px) {
202+
margin: 40px -20px 40px -30px;
203+
padding: 5px 20px 5px 30px;
204+
border-radius: 6px;
205+
206+
&::before {
207+
border-radius: 6px 0 6px 0;
208+
}
209+
}
210+
}
211+
212+
.dark div[db-tools-flavor] {
213+
border: solid 1px color-mix(in oklab, var(--db-tools-flavor-color) 20%, transparent);;
203214
}
204215
205216
span[db-tools-flavor] code {
@@ -212,4 +223,8 @@ span[db-tools-flavor] code {
212223
.vp-doc div[db-tools-flavor] div[class*="language-"] {
213224
border: solid 1px var(--vp-c-border);
214225
}
226+
.dark .vp-doc div[db-tools-flavor] div[class*="language-"] {
227+
border: none;
228+
}
229+
215230
</style>

docs/.vitepress/theme/components/DbToolsBundleHomeImage.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ svg {
168168
svg {
169169
margin-top: -2rem;
170170
margin-bottom: -4rem;
171+
transform: translateX(32px);
171172
}
172173
}
173-
</style>
174+
</style>

docs/content/getting-started/flavors.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ Right after you installed the bundle, and with zero configuration:
5252

5353
*DbToolsBundle* can be used in any CI/CD using its [*Docker* image](https://hub.docker.com/r/makinacorpus/dbtoolsbundle).
5454

55-
Every commands will be accessible with the `docker container run` utility.
55+
This image is based on [FrankenPHP](https://frankenphp.dev/docs/docker/). Every *DbtoolsBundle* commands can be run with `docker container run` utility.
5656

57-
All configuration can be set up mounting a config file (see [installation section](/getting-started/installation) for an example). This config file uses the exact same syntax as for the
58-
standalone flavor.
57+
All configuration can be set up mounting a config file (see [installation section](/getting-started/installation) for an example). This config file uses the exact same syntax as for the standalone flavor.
5958

6059
## Laravel (experimental) {#laravel}
6160

docs/content/getting-started/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation
22

3-
Installation method will depend on which flavor you want to use:
3+
Installation method will depend on which [flavor](./flavors.md) you want to use:
44

55
<FlavorSwitcher />
66

docs/content/getting-started/introduction.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DbToolsBundle
22

3-
**A PHP tool to backup, restore and anonymize databases**
3+
**A PHP tool to back up, restore and anonymize databases**
44

55
<svg version="1.1" style="margin: auto;" viewBox="0 0 162.94769 160.29467" width="244.06895" height="240.08168" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
66
<path d="m 64.176019,1.2999481 c -35.25899,0 -62.8806104,16.1131569 -62.8806104,36.6803579 v 62.880614 c 0,20.5672 27.6216204,36.68036 62.8806104,36.68036 35.258991,0 62.880601,-16.11316 62.880601,-36.68036 V 37.980306 c 0,-20.567201 -27.62161,-36.6803579 -62.880601,-36.6803579 z" style="fill:var(--vp-c-bg);fill-opacity:1;stroke:var(--vp-c-bg);stroke-width:2.5999;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
@@ -20,6 +20,24 @@ perform frequent database related tasks: backup, restore, anonymize...
2020

2121
<small>*And now for Devops with our [Docker image](https://hub.docker.com/r/makinacorpus/dbtoolsbundle).</small>
2222

23+
## A note about flavors
24+
25+
This library can be used in different contexts:
26+
27+
* as a standalone PHP library utlity
28+
* as a *Symfony* bundle
29+
* as a *Docker* image
30+
* as a *Laravel package* (expiremental)
31+
32+
We call these context "*flavors*". You can change the current flavor from
33+
the menu in the top left-hand corner.
34+
35+
Most of the content (text and examples) presented on this documentation will change according
36+
to this selected flavor. Whenever this happens, a visual hint indicates it.
37+
38+
Learn more about *flavors* in the [dedicated section](./flavors.md)
39+
40+
2341
---
2442

2543
This bundle is proudly developed by:

0 commit comments

Comments
 (0)