ui: Drop logo backgrounds for index, apps, and system pages

- When the box shadows are dropped, the cards overlay on those backgrounds is
not pleasant.

Tests:

- MediaWiki functional tests pass.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2024-11-02 17:46:58 -07:00 committed by James Valleroy
parent 3c07d245d4
commit d14eb15a43
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
5 changed files with 2 additions and 308 deletions

View File

@ -77,8 +77,8 @@ class TestMediawikiApp(functional.BaseAppTests):
def test_upload_svg_image(self, session_browser, login):
"""Test uploading an SVG image."""
_upload_image(session_browser, 'admin', 'whatever123',
'apps-background.svg')
assert _image_exists(session_browser, 'Apps-background.svg')
'freedombox-logo-standard.svg')
assert _image_exists(session_browser, 'Freedombox-logo-standard.svg')
def test_backup_restore(self, session_browser, login):
"""Test backup and restore of pages and images."""

View File

@ -637,18 +637,6 @@ a.menu_link_active {
z-index: -1;
}
.index-page .card-list:before {
background-image: url('../img/freedombox-logo-background.svg');
}
.apps-page .card-list-primary:before {
background-image: url('../img/apps-background.svg');
}
.system-page .system-section-title:first-child:before {
background-image: url('../img/system-background.svg');
}
.names-table {
table-layout: fixed;
overflow-wrap: break-word;

View File

@ -1,160 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="111.50169mm"
height="111.5124mm"
viewBox="0 0 395.08471 395.12267"
id="svg2"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="apps-background.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.49497475"
inkscape:cx="-401.04489"
inkscape:cy="-100.15367"
inkscape:document-units="px"
inkscape:current-layer="g3807"
showgrid="false"
inkscape:snap-page="false"
showguides="true"
inkscape:window-width="1509"
inkscape:window-height="1010"
inkscape:window-x="92"
inkscape:window-y="33"
inkscape:window-maximized="0"
inkscape:guide-bbox="true"
inkscape:measure-start="166.17,406.586"
inkscape:measure-end="115.662,389.414"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-48.218843,-45.219296)">
<g
id="g3807"
transform="translate(1.6503903e-6,-359.08813)">
<g
id="g5380"
style="fill:#000000;fill-opacity:0.03137255">
<g
id="g3777"
style="fill:#000000;fill-opacity:0.03137255">
<rect
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect20"
width="112.5"
height="112.5"
x="48.218842"
y="404.30743"
ry="30.226379" />
<rect
ry="30.226379"
y="404.30743"
x="189.5112"
height="112.5"
width="112.5"
id="rect67"
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<rect
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect69"
width="112.5"
height="112.5"
x="330.80356"
y="404.30743"
ry="30.226379" />
</g>
<g
id="g3785"
transform="translate(-5.5273489e-7,141.10568)"
style="fill:#000000;fill-opacity:0.03137255">
<rect
ry="30.226379"
y="404.30743"
x="48.218842"
height="112.5"
width="112.5"
id="rect3779"
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<rect
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect3781"
width="112.5"
height="112.5"
x="189.5112"
y="404.30743"
ry="30.226379" />
<rect
ry="30.226379"
y="404.30743"
x="330.80356"
height="112.5"
width="112.5"
id="rect3783"
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<g
transform="translate(-5.5273489e-7,282.62267)"
id="g3793"
style="fill:#000000;fill-opacity:0.03137255">
<rect
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect3787"
width="112.5"
height="112.5"
x="48.218842"
y="404.30743"
ry="30.226379" />
<rect
ry="30.226379"
y="404.30743"
x="189.5112"
height="112.5"
width="112.5"
id="rect3789"
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<rect
style="fill:#000000;fill-opacity:0.03137255;fill-rule:evenodd;stroke:none;stroke-width:1.11995912px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="rect3791"
width="112.5"
height="112.5"
x="330.80356"
y="404.30743"
ry="30.226379" />
</g>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -1,72 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="111.48425mm"
height="86.076721mm"
viewBox="0 0 395.02288 304.99626"
id="svg2"
version="1.1"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="freedombox-logo-background.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="253.51181"
inkscape:cy="-88.105928"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:snap-page="false"
showguides="true"
inkscape:window-width="1509"
inkscape:window-height="1010"
inkscape:window-x="1911"
inkscape:window-y="108"
inkscape:window-maximized="0"
inkscape:guide-bbox="true"
inkscape:measure-start="166.17,406.586"
inkscape:measure-end="115.662,389.414"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-48.207506,-45.194866)">
<path
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:0.03137255;stroke:none;stroke-width:0.79384387"
d="m 81.328607,45.19699 c -0.682706,-0.008 -1.363109,0.008 -2.034146,0.02461 -9.759911,0.273399 -18.392412,3.261428 -23.964239,9.650126 -17.417333,19.974303 1.755187,38.549772 8.409817,63.805204 8.885659,33.7001 -1.219581,69.56009 25.750316,93.15265 9.288925,8.12364 20.505545,10.26385 31.282455,11.26267 -14.16868,16.69421 -22.711402,39.84445 -18.05995,63.63151 7.37807,37.73179 41.86685,64.03994 78.64008,63.45789 1.26809,-0.0198 2.548,-0.089 3.82046,-0.17361 2.54482,-0.16925 5.09036,-0.45789 7.64074,-0.89308 21.82134,-3.72455 39.64631,-16.48369 50.18578,-34.11051 0.35136,-0.58753 0.68207,-1.18791 1.01715,-1.78615 0.33501,-0.59817 0.67382,-1.20236 0.99231,-1.81092 0.37089,-0.64254 1.23982,-0.64548 1.61246,0 0.31848,0.6084 0.6573,1.21284 0.9923,1.81092 7.70592,13.75588 19.74075,24.73331 34.65621,31.05914 0.64856,0.27507 1.30063,0.53664 1.95984,0.79385 4.61437,1.80083 9.49596,3.17474 14.58688,4.04367 3.82546,0.65271 7.65972,1.00652 11.46112,1.06669 0.63357,0.0103 1.2534,0.008 1.88538,0 1.26404,-0.0119 2.53927,-0.0492 3.7956,-0.12399 24.49787,-1.45091 47.31707,-14.71287 61.02675,-35.05321 0.35152,-0.52148 0.70248,-1.03208 1.04185,-1.56285 0.67882,-1.0616 1.33112,-2.15219 1.95984,-3.24984 1.88625,-3.29294 3.56182,-6.75013 4.96152,-10.34474 1.63302,-4.19371 2.90507,-8.56938 3.79553,-13.12326 4.65129,-23.78706 -3.71765,-46.9373 -17.88625,-63.63151 10.7769,-0.99882 21.81975,-3.13903 31.10875,-11.26267 26.96989,-23.59256 16.86466,-59.45255 25.75031,-93.15265 6.65464,-25.255432 25.80223,-43.830901 8.38498,-63.805204 -5.57175,-6.388698 -14.00594,-9.376647 -23.7657,-9.650126 -0.67914,-0.01905 -1.36787,-0.02858 -2.05908,-0.02461 -20.8411,-0.02223 -42.50954,8.378546 -64.45012,18.77933 -26.28012,12.456919 -45.1817,27.227814 -60.40659,45.29872 -0.51076,0.59379 -0.99374,1.21426 -1.48847,1.81099 -0.50321,0.6142 -1.01794,1.21395 -1.51322,1.83577 l 58.07461,33.73836 -91.86266,53.33639 -8.03768,101.19025 -2.08384,-105.85408 -10.86566,-6.30114 -7.98813,100.27241 -2.08384,-106.12701 -10.89051,-6.32598 -7.96328,100.59494 -2.13338,-106.44954 -10.81612,-6.27629 -8.01291,100.84294 -2.1086,-106.74716 -10.79136,-6.25151 -8.03767,101.14063 -2.1086,-107.04485 55.6186,-32.29952 c -0.50147,-0.64309 -1.00365,-1.27515 -1.51322,-1.91023 -0.18703,-0.22989 -0.38112,-0.46495 -0.57061,-0.69461 -14.74454,-18.182675 -32.94135,-33.086224 -58.14908,-45.670792 -1.43732,-0.735973 -2.87712,-1.437176 -4.29167,-2.108688 -1.04748,-0.49655 -2.12957,-0.99818 -3.24984,-1.513226 -20.09878,-9.360451 -39.71474,-16.679851 -59.215759,-17.216489 -0.671427,-0.02382 -1.348028,-0.04605 -2.009454,-0.04921 z"
id="path13394"
sodipodi:nodetypes="cccccccccccccccscccccccccsccccccccccccccccccccccccccccccccccc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -1,62 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
viewBox="0 -240 421.42371 421.46419"
id="svg5455"
sodipodi:docname="system-background.svg"
width="111.50169mm"
height="111.5124mm"
inkscape:version="0.92.3 (2405546, 2018-03-11)">
<metadata
id="metadata5461">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs5459" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1053"
id="namedview5457"
showgrid="false"
inkscape:zoom="1.1125147"
inkscape:cx="252.43968"
inkscape:cy="139.00361"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
inkscape:current-layer="svg5455"
units="mm" />
<g
transform="matrix(0.3670157,0,0,-0.3670157,-9.5494289,190.93977)"
id="g5453"
style="fill:#000000;fill-opacity:0.03137255">
<path
d="m 600,1174 q 33,0 74,-5 l 38,-152 5,-1 q 49,-14 94,-39 l 5,-2 134,80 q 61,-48 104,-105 l -80,-134 3,-5 q 25,-44 39,-93 l 1,-6 152,-38 q 5,-43 5,-73 0,-34 -5,-74 l -152,-38 -1,-6 q -15,-49 -39,-93 l -3,-5 80,-134 Q 1006,190 950,146 l -134,81 -5,-3 q -44,-25 -94,-39 l -5,-2 -38,-151 q -43,-5 -74,-5 -33,0 -74,5 l -38,151 -5,2 q -49,14 -94,39 l -5,3 -134,-81 q -60,48 -104,105 l 80,134 -3,5 q -25,45 -38,93 l -2,6 -151,38 q -6,42 -6,74 0,33 6,73 l 151,38 2,6 q 13,48 38,93 l 3,5 -80,134 q 47,61 105,105 l 133,-80 5,2 q 45,25 94,39 l 5,1 38,152 q 43,5 74,5 z m 0,-359 q -89,0 -152,-63 -63,-63 -63,-151.5 0,-88.5 63,-151.5 63,-63 152,-63 89,0 152,63 63,63 63,151.5 0,88.5 -63,151.5 -63,63 -152,63 z"
id="path5451"
inkscape:connector-curvature="0"
style="fill:#000000;fill-opacity:0.03137255" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB