Compare commits
No commits in common. "39dfc1ed28571b520a035333ed04ed872ed73abf" and "95a95fc3314a537ddf4ca0257a89537c7d6d7aa3" have entirely different histories.
39dfc1ed28
...
95a95fc331
@ -1 +1 @@
|
||||
<svg class="color-immutable" width="59" height="20" viewBox="0 0 59 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M1.792.5h55.416c.71 0 1.292.58 1.292 1.3v16.4c0 .72-.58 1.3-1.292 1.3H1.792C1.082 19.5.5 18.92.5 18.2V1.8c0-.72.581-1.3 1.292-1.3Z" stroke="#fff"/><path d="M12.798 7.659h-2.405c-.047-.564-.258-.994-.633-1.29-.369-.3-.888-.45-1.558-.45-.596 0-1.06.118-1.392.356-.327.232-.49.559-.49.98 0 .38.158.654.474.823.306.169 1.081.406 2.326.712 1.313.327 2.223.657 2.729.989.933.612 1.4 1.463 1.4 2.555 0 1.197-.47 2.14-1.408 2.832-.828.606-1.949.91-3.362.91-1.571 0-2.792-.36-3.662-1.076-.87-.718-1.321-1.738-1.353-3.062h2.515c.037.644.203 1.121.499 1.432.464.496 1.163.744 2.096.744.633 0 1.134-.124 1.503-.372.416-.285.625-.673.625-1.163s-.293-.849-.878-1.076c-.322-.126-1.081-.356-2.278-.688-.75-.205-1.335-.4-1.756-.585-.422-.185-.76-.39-1.013-.617-.59-.528-.886-1.255-.886-2.183 0-1.113.462-1.994 1.384-2.642.786-.554 1.807-.831 3.062-.831 1.102 0 2.025.219 2.768.657 1.07.627 1.635 1.642 1.693 3.045ZM22.147 4.234v11.565h-2.31v-7.57h-2.721V6.552c.564-.016 1.023-.074 1.376-.174.359-.1.686-.264.981-.49.427-.328.715-.879.862-1.654h1.812ZM25.4069999999999964 12.896h2.183c.18.896.699 1.344 1.558 1.344.485 0 .878-.163 1.179-.49.306-.332.54-.847.704-1.543.105-.443.182-.946.23-1.51-.354.495-.718.849-1.092 1.06-.37.205-.82.308-1.353.308-.849 0-1.587-.248-2.215-.744A3.544 3.544 0 0 1 25.5735 9.97a4.446 4.446 0 0 1-.364-1.804c0-1.302.446-2.357 1.337-3.164.764-.696 1.682-1.044 2.752-1.044.66 0 1.269.148 1.828.443a3.962 3.962 0 0 1 1.408 1.258c.67.965 1.004 2.32 1.004 4.066 0 1.613-.295 2.99-.886 4.129-.77 1.482-1.935 2.222-3.496 2.222-1.039 0-1.898-.287-2.579-.862-.675-.575-1.065-1.347-1.17-2.317Zm3.844-6.985c-.496 0-.915.203-1.258.609-.342.411-.514.933-.514 1.566 0 .512.124.965.372 1.36.337.544.812.815 1.424.815.553 0 .996-.221 1.329-.664.31-.417.466-.912.466-1.487 0-.607-.16-1.12-.482-1.543a1.606 1.606 0 0 0-1.337-.656Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h59v20H0z"/></clipPath></defs></svg>
|
||||
<svg class="color-immutable" width="59" height="20" viewBox="0 0 59 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M1.792.5h55.416c.71 0 1.292.58 1.292 1.3v16.4c0 .72-.58 1.3-1.292 1.3H1.792C1.082 19.5.5 18.92.5 18.2V1.8c0-.72.581-1.3 1.292-1.3Z" stroke="#fff"/><path d="M12.798 7.659h-2.405c-.047-.564-.258-.994-.633-1.29-.369-.3-.888-.45-1.558-.45-.596 0-1.06.118-1.392.356-.327.232-.49.559-.49.98 0 .38.158.654.474.823.306.169 1.081.406 2.326.712 1.313.327 2.223.657 2.729.989.933.612 1.4 1.463 1.4 2.555 0 1.197-.47 2.14-1.408 2.832-.828.606-1.949.91-3.362.91-1.571 0-2.792-.36-3.662-1.076-.87-.718-1.321-1.738-1.353-3.062h2.515c.037.644.203 1.121.499 1.432.464.496 1.163.744 2.096.744.633 0 1.134-.124 1.503-.372.416-.285.625-.673.625-1.163s-.293-.849-.878-1.076c-.322-.126-1.081-.356-2.278-.688-.75-.205-1.335-.4-1.756-.585-.422-.185-.76-.39-1.013-.617-.59-.528-.886-1.255-.886-2.183 0-1.113.462-1.994 1.384-2.642.786-.554 1.807-.831 3.062-.831 1.102 0 2.025.219 2.768.657 1.07.627 1.635 1.642 1.693 3.045ZM22.147 4.234v11.565h-2.31v-7.57h-2.721V6.552c.564-.016 1.023-.074 1.376-.174.359-.1.686-.264.981-.49.427-.328.715-.879.862-1.654h1.812ZM25.4069999999999964 12.896h2.183c.18.896.699 1.344 1.558 1.344.485 0 .878-.163 1.179-.49.306-.332.54-.847.704-1.543.105-.443.182-.946.23-1.51-.354.495-.718.849-1.092 1.06-.37.205-.82.308-1.353.308-.849 0-1.587-.248-2.215-.744A3.544 3.544 0 0 1 35.35 9.97a4.446 4.446 0 0 1-.364-1.804c0-1.302.446-2.357 1.337-3.164.764-.696 1.682-1.044 2.752-1.044.66 0 1.269.148 1.828.443a3.962 3.962 0 0 1 1.408 1.258c.67.965 1.004 2.32 1.004 4.066 0 1.613-.295 2.99-.886 4.129-.77 1.482-1.935 2.222-3.496 2.222-1.039 0-1.898-.287-2.579-.862-.675-.575-1.065-1.347-1.17-2.317Zm3.844-6.985c-.496 0-.915.203-1.258.609-.342.411-.514.933-.514 1.566 0 .512.124.965.372 1.36.337.544.812.815 1.424.815.553 0 .996-.221 1.329-.664.31-.417.466-.912.466-1.487 0-.607-.16-1.12-.482-1.543a1.606 1.606 0 0 0-1.337-.656Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h59v20H0z"/></clipPath></defs></svg>
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@ -1 +1 @@
|
||||
<svg class="color-immutable" width="59" height="20" viewBox="0 0 59 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M1.792 0h55.416C58.197 0 59 .806 59 1.8v16.4c0 .994-.801 1.8-1.792 1.8H1.792A1.797 1.797 0 0 1 0 18.2V1.8C0 .806.803 0 1.792 0Z" fill="#000"/><path d="M12.798 7.659h-2.405c-.047-.564-.258-.994-.633-1.29-.369-.3-.888-.45-1.558-.45-.596 0-1.06.118-1.392.356-.327.232-.49.559-.49.98 0 .38.158.654.474.823.306.169 1.081.406 2.326.712 1.313.327 2.223.657 2.729.989.933.612 1.4 1.463 1.4 2.555 0 1.197-.47 2.14-1.408 2.832-.828.606-1.949.91-3.362.91-1.571 0-2.792-.36-3.662-1.076-.87-.718-1.321-1.738-1.353-3.062h2.515c.037.644.203 1.121.499 1.432.464.496 1.163.744 2.096.744.633 0 1.134-.124 1.503-.372.416-.285.625-.673.625-1.163s-.293-.849-.878-1.076c-.322-.126-1.081-.356-2.278-.688-.75-.205-1.335-.4-1.756-.585-.422-.185-.76-.39-1.013-.617-.59-.528-.886-1.255-.886-2.183 0-1.113.462-1.994 1.384-2.642.786-.554 1.807-.831 3.062-.831 1.102 0 2.025.219 2.768.657 1.07.627 1.635 1.642 1.693 3.045ZM22.147 4.234v11.565h-2.31v-7.57h-2.721V6.552c.564-.016 1.023-.074 1.376-.174.359-.1.686-.264.981-.49.427-.328.715-.879.862-1.654h1.812ZM25.4069999999999964 12.896h2.183c.18.896.699 1.344 1.558 1.344.485 0 .878-.163 1.179-.49.306-.332.54-.847.704-1.543.105-.443.182-.946.23-1.51-.354.495-.718.849-1.092 1.06-.37.205-.82.308-1.353.308-.849 0-1.587-.248-2.215-.744A3.544 3.544 0 0 1 25.5735 9.97a4.446 4.446 0 0 1-.364-1.804c0-1.302.446-2.357 1.337-3.164.764-.696 1.682-1.044 2.752-1.044.66 0 1.269.148 1.828.443a3.962 3.962 0 0 1 1.408 1.258c.67.965 1.004 2.32 1.004 4.066 0 1.613-.295 2.99-.886 4.129-.77 1.482-1.935 2.222-3.496 2.222-1.039 0-1.898-.287-2.579-.862-.675-.575-1.065-1.347-1.17-2.317Zm3.844-6.985c-.496 0-.915.203-1.258.609-.342.411-.514.933-.514 1.566 0 .512.124.965.372 1.36.337.544.812.815 1.424.815.553 0 .996-.221 1.329-.664.31-.417.466-.912.466-1.487 0-.607-.16-1.12-.482-1.543a1.606 1.606 0 0 0-1.337-.656Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h59v20H0z"/></clipPath></defs></svg>
|
||||
<svg class="color-immutable" width="59" height="20" viewBox="0 0 59 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M1.792 0h55.416C58.197 0 59 .806 59 1.8v16.4c0 .994-.801 1.8-1.792 1.8H1.792A1.797 1.797 0 0 1 0 18.2V1.8C0 .806.803 0 1.792 0Z" fill="#000"/><path d="M12.798 7.659h-2.405c-.047-.564-.258-.994-.633-1.29-.369-.3-.888-.45-1.558-.45-.596 0-1.06.118-1.392.356-.327.232-.49.559-.49.98 0 .38.158.654.474.823.306.169 1.081.406 2.326.712 1.313.327 2.223.657 2.729.989.933.612 1.4 1.463 1.4 2.555 0 1.197-.47 2.14-1.408 2.832-.828.606-1.949.91-3.362.91-1.571 0-2.792-.36-3.662-1.076-.87-.718-1.321-1.738-1.353-3.062h2.515c.037.644.203 1.121.499 1.432.464.496 1.163.744 2.096.744.633 0 1.134-.124 1.503-.372.416-.285.625-.673.625-1.163s-.293-.849-.878-1.076c-.322-.126-1.081-.356-2.278-.688-.75-.205-1.335-.4-1.756-.585-.422-.185-.76-.39-1.013-.617-.59-.528-.886-1.255-.886-2.183 0-1.113.462-1.994 1.384-2.642.786-.554 1.807-.831 3.062-.831 1.102 0 2.025.219 2.768.657 1.07.627 1.635 1.642 1.693 3.045ZM22.147 4.234v11.565h-2.31v-7.57h-2.721V6.552c.564-.016 1.023-.074 1.376-.174.359-.1.686-.264.981-.49.427-.328.715-.879.862-1.654h1.812ZM25.4069999999999964 12.896h2.183c.18.896.699 1.344 1.558 1.344.485 0 .878-.163 1.179-.49.306-.332.54-.847.704-1.543.105-.443.182-.946.23-1.51-.354.495-.718.849-1.092 1.06-.37.205-.82.308-1.353.308-.849 0-1.587-.248-2.215-.744A3.544 3.544 0 0 1 35.35 9.97a4.446 4.446 0 0 1-.364-1.804c0-1.302.446-2.357 1.337-3.164.764-.696 1.682-1.044 2.752-1.044.66 0 1.269.148 1.828.443a3.962 3.962 0 0 1 1.408 1.258c.67.965 1.004 2.32 1.004 4.066 0 1.613-.295 2.99-.886 4.129-.77 1.482-1.935 2.222-3.496 2.222-1.039 0-1.898-.287-2.579-.862-.675-.575-1.065-1.347-1.17-2.317Zm3.844-6.985c-.496 0-.915.203-1.258.609-.342.411-.514.933-.514 1.566 0 .512.124.965.372 1.36.337.544.812.815 1.424.815.553 0 .996-.221 1.329-.664.31-.417.466-.912.466-1.487 0-.607-.16-1.12-.482-1.543a1.606 1.606 0 0 0-1.337-.656Z" fill="#fff"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h59v20H0z"/></clipPath></defs></svg>
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
viewBox="0 0 48 48"
|
||||
fill="none"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs1" />
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="m 32.789566,14.396863 h -0.800142 v 4.800856 H 19.187142 V 14.408065 H 18.387 L 7.1850037,14.398464 H 6.3848611 V 32 h 3.6278469 c 1.230342,2.137515 4.314645,2.137515 5.544988,0 h 4.056723 c 1.230342,2.137515 4.314645,2.137515 5.544988,0 h 4.058323 c 1.231579,2.135374 4.313408,2.135374 5.544988,0 h 6.852421 l -0.491288,-1.1202 -2.731686,-6.234711 -0.0032,-4.647228 V 19.197719 H 36.78868 v -4.800856 h -4.000713 z m 2.400428,16.002852 h 3.976709 L 37.067128,25.610061 H 7.9851463 v 4.789654 h 1.6002852 c 0,-4.267426 6.4011405,-4.267426 6.4011405,0 h 3.20057 c 0,-4.267426 6.401141,-4.267426 6.401141,0 h 3.20057 c 0,-4.267426 6.401141,-4.267426 6.401141,0 z m 1.600285,-6.389939 H 7.9851463 v -8.011027 l 9.6017107,0.0096 v 4.789654 h 19.203422 z m -1.600285,-4.812057 v -3.200571 h -1.600285 v 3.200571 z M 20.787428,30.401315 c -0.0718,-2.201074 3.266366,-2.204413 3.19897,-0.0032 -0.06326,2.066345 -3.13157,2.069415 -3.19897,0.0032 z M 12.786002,28.80103 c -2.228986,-0.10197 -2.232387,3.294877 -0.0032,3.19737 2.038365,-0.09019 2.039874,-3.105131 0.0016,-3.19737 z m 17.603136,1.600285 c 0,-2.133713 3.200571,-2.133713 3.200571,0 0,2.133713 -3.200571,2.133713 -3.200571,0 z"
|
||||
fill="#000000"
|
||||
id="path1"
|
||||
style="stroke-width:1.60029" />
|
||||
</svg>
|
Before Width: | Height: | Size: 1.6 KiB |
31
index.css
31
index.css
@ -158,7 +158,6 @@ body {
|
||||
padding: 0.5em 1em;
|
||||
--offset: 0;
|
||||
grid-template-columns: repeat(var(--n-waggons), 1fr);
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.waggon {
|
||||
@ -213,36 +212,6 @@ body {
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.waggon.class-loc .class {
|
||||
background-color: var(--fg);
|
||||
mask-image: url("./icons/steam-locomotive.svg");
|
||||
-webkit-mask-image: url("./icons/steam-locomotive.svg");
|
||||
mask-size: contain;
|
||||
-webkit-mask-size: contain;
|
||||
mask-repeat: no-repeat;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
mask-position: center;
|
||||
-webkit-mask-position: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.waggon.form-start_links.class-loc .class {
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
|
||||
.waggon.class-familie .class {
|
||||
background-color: var(--fg);
|
||||
mask-image: url("./icons/sa-fa.svg");
|
||||
-webkit-mask-image: url("./icons/sa-fa.svg");
|
||||
mask-size: contain;
|
||||
-webkit-mask-size: contain;
|
||||
mask-repeat: no-repeat;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
mask-position: center;
|
||||
-webkit-mask-position: center;
|
||||
width: 100%;
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
.waggon .services {
|
||||
display: none;
|
||||
|
@ -41,16 +41,6 @@ def convert_svg(sn_svg):
|
||||
x = float(digit.group(1))
|
||||
x -= WIDTH
|
||||
path = path[:pos[0]+1] + str(x) + path[pos[0] + len(digit.group(1)):]
|
||||
|
||||
digits = list(re.finditer("A(.*? .*? .*? .*? .*? \d+(\.\d+)?)", path))[::-1]
|
||||
|
||||
for digit in digits:
|
||||
pos = digit.span()
|
||||
s, d = digit.group(1).rsplit(" ", 1)
|
||||
x = float(d)
|
||||
x -= WIDTH
|
||||
d = s + " " + str(x)
|
||||
path = path[:pos[0]+1] + d + path[pos[0] + len(digit.group(1)):]
|
||||
|
||||
path = S + "Z" + path
|
||||
sn_svg = sn_svg[:path_pos[0]] + path + sn_svg[path_pos[1]:]
|
||||
|
Loading…
Reference in New Issue
Block a user