"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "93cffa89f68a1fc758a489b0e4d52522a88f736d"
svg-responsive.css 1.06 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Responsive styling for SVG images */

/* Make all SVG images responsive */
.document svg,
.document object[type="image/svg+xml"],
.rst-content svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
}

/* For raw HTML embedded SVGs */
.document .raw-html svg {
    max-width: 100%;
    height: auto;
    width: 100%;
}

/* Ensure container doesn't overflow */
.document .raw-html {
    max-width: 100%;
    overflow-x: auto;
}

/* Figure containers with captions */
.svg-figure {
    text-align: center;
    margin: 20px auto;
}

.svg-figure img {
    display: block;
    margin: 0 auto;
    height: auto;
}

/* Different width classes for figures */
.svg-figure.width-70 img {
    width: 70%;
    max-width: 100%;
}

.svg-figure.width-80 img {
    width: 80%;
    max-width: 100%;
}

.svg-figure.width-90 img {
    width: 90%;
    max-width: 100%;
}

.svg-figure.width-100 img {
    width: 100%;
}

/* Figure captions */
.svg-caption {
    font-style: italic;
    margin-top: 10px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.4;
}