mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
thumbnail: Show the right spinner based on dark/light mode.
This commit is contained in:
committed by
Tim Abbott
parent
b42863be4b
commit
39d6f4ce10
49
web/images/loading/loader-black.svg
Normal file
49
web/images/loading/loader-black.svg
Normal file
@@ -0,0 +1,49 @@
|
||||
<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;"><g transform="rotate(0 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(30 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(60 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.75s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(90 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(120 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(150 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.5s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(180 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(210 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(240 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.25s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(270 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(300 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(330 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#000">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g></svg>
|
After Width: | Height: | Size: 3.1 KiB |
49
web/images/loading/loader-white.svg
Normal file
49
web/images/loading/loader-white.svg
Normal file
@@ -0,0 +1,49 @@
|
||||
<svg width="30px" height="30px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;"><g transform="rotate(0 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(30 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(60 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.75s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(90 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(120 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(150 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.5s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(180 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(210 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(240 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.25s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(270 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(300 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g><g transform="rotate(330 50 50)">
|
||||
<rect x="47" y="15" rx="9.4" ry="3" width="6" height="20" fill="#ffffff">
|
||||
<animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animate>
|
||||
</rect>
|
||||
</g></svg>
|
After Width: | Height: | Size: 3.2 KiB |
@@ -389,6 +389,10 @@
|
||||
.rendered_markdown .message_inline_image {
|
||||
background: hsl(0deg 0% 100% / 3%);
|
||||
|
||||
img.image-loading-placeholder {
|
||||
content: url("../images/loading/loader-white.svg");
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: hsl(0deg 0% 100% / 15%);
|
||||
}
|
||||
|
@@ -412,6 +412,10 @@
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
img.image-loading-placeholder {
|
||||
content: url("../images/loading/loader-black.svg");
|
||||
}
|
||||
}
|
||||
|
||||
&.rtl .twitter-image,
|
||||
|
Reference in New Issue
Block a user