mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-02 08:38:11 +08:00
Reduce website static content file size by a lot
This commit is contained in:
@@ -40,12 +40,11 @@
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
p:first-child {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
.section {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: Min(100%, 480px);
|
||||
}
|
||||
img {
|
||||
max-width: Min(100%, 480px);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,6 +392,7 @@ summary {
|
||||
padding-top: calc(100% / (16 / 9));
|
||||
}
|
||||
|
||||
img,
|
||||
iframe {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
@@ -399,6 +400,10 @@ summary {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.video-background {
|
||||
@@ -585,7 +590,7 @@ summary {
|
||||
&.left {
|
||||
padding-left: 80px;
|
||||
margin-left: -80px;
|
||||
-webkit-mask-image: url("https://static.graphite.rs/textures/torn-edge-left.png");
|
||||
-webkit-mask-image: url("https://static.graphite.rs/textures/torn-edge-left.png"); // TODO: Switch PNG to AVIF when Edge support has rolled out
|
||||
mask-image: url("https://static.graphite.rs/textures/torn-edge-left.png");
|
||||
-webkit-mask-position: top left;
|
||||
mask-position: top left;
|
||||
@@ -594,7 +599,7 @@ summary {
|
||||
&.right {
|
||||
padding-right: 120px;
|
||||
margin-right: -120px;
|
||||
-webkit-mask-image: url("https://static.graphite.rs/textures/torn-edge-right.png");
|
||||
-webkit-mask-image: url("https://static.graphite.rs/textures/torn-edge-right.png"); // TODO: Switch PNG to AVIF when Edge support has rolled out
|
||||
mask-image: url("https://static.graphite.rs/textures/torn-edge-right.png");
|
||||
-webkit-mask-position: top right;
|
||||
mask-position: top right;
|
||||
|
||||
Reference in New Issue
Block a user