Skip to content

Commit 2022463

Browse files
committed
SUPP0RT-650: Fixed display of counters on steps in pdf
1 parent 2ecf129 commit 2022463

File tree

4 files changed

+55
-9
lines changed

4 files changed

+55
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ composer coding-standards-check
177177
```sh
178178
docker run --volume ${PWD}:/app --workdir /app node:16.13.2 yarn install
179179
docker run --volume ${PWD}:/app --workdir /app node:16.13.2 yarn encore dev
180-
```
180+
```

docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
version: "3"
22

33
networks:
4+
frontend:
5+
external: true
46
app:
57
driver: bridge
68
internal: false
@@ -44,13 +46,20 @@ services:
4446
image: nginx:latest
4547
networks:
4648
- app
49+
- frontend
4750
depends_on:
4851
- phpfpm
4952
ports:
5053
- '80'
5154
volumes:
5255
- ./.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
5356
- ./:/app:delegated
57+
# Let the container be accessible both internally and externally on the same domain.
58+
container_name: ${COMPOSE_DOMAIN}
59+
labels:
60+
- "traefik.enable=true"
61+
- "traefik.docker.network=frontend"
62+
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
5463

5564
memcached:
5665
image: 'memcached:latest'
@@ -65,6 +74,7 @@ services:
6574
image: mailhog/mailhog
6675
networks:
6776
- app
77+
- frontend
6878
ports:
6979
- "1025"
7080
- "8025"

web/profiles/custom/os2loop/themes/os2loop_theme/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ docker run --volume ${PWD}:/app --workdir /app node:16 yarn build
2222
Watch for changes:
2323

2424
```sh
25-
docker run --interactive --tty --volume ${PWD}:/app --workdir /app node:latest yarn watch
25+
docker run --interactive --tty --volume ${PWD}:/app --workdir /app node:16 yarn watch
2626
```
2727

2828
During development you may want to run it with your locally installed

web/profiles/custom/os2loop/themes/os2loop_theme/assets/components/pdf/pdf.scss

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,49 @@ img {
4949
display: initial !important;
5050
}
5151

52-
// Quick 'n' dirty solution.
53-
.paragraph--type--os2loop-documents-step {
54-
&::marker,
55-
.step--collapse-toggle {
56-
font: {
57-
size: 1.25rem;
58-
weight: bold;
52+
.title {
53+
margin-bottom: 1em;
54+
55+
.title-icon,
56+
.title-information {
57+
display: inline-block;
58+
vertical-align: top;
59+
}
60+
61+
.title-icon {
62+
margin-right: 1em;
63+
}
64+
}
65+
66+
ol.os2loop-documents-steps {
67+
list-style-type: none;
68+
counter-reset: item;
69+
margin: 0;
70+
padding: 0;
71+
72+
> li {
73+
padding-left: 2rem;
74+
75+
> .step--collapse-toggle {
76+
display: inline;
77+
position: relative;
78+
79+
font: {
80+
size: 1.25rem;
81+
weight: bold;
82+
}
83+
84+
counter-increment: item;
85+
86+
&::before {
87+
content: counters(item, ".") ". ";
88+
white-space: pre;
89+
display: inline;
90+
}
91+
92+
p {
93+
display: inline;
94+
}
5995
}
6096
}
6197
}

0 commit comments

Comments
 (0)