diff --git a/.gitattributes b/.gitattributes index ca05d79419..a583f16d78 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,6 +3,7 @@ .tx export-ignore ng.inx export-ignore README.md export-ignore +.github/assets export-ignore LICENSE export-ignore # Store every text file with LF; the working tree matches on every platform. diff --git a/.github/assets/readme-hero.jpg b/.github/assets/readme-hero.jpg new file mode 100644 index 0000000000..c99fb84331 Binary files /dev/null and b/.github/assets/readme-hero.jpg differ diff --git a/README.md b/README.md index 1d52818f9e..85cacb1d07 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Evolution CMS -![screenshot_1](https://user-images.githubusercontent.com/523389/105744390-5a720e00-5f3d-11eb-8405-7b0f7e28688a.jpg) +![Evolution CMS](.github/assets/readme-hero.jpg) [![CMS Evolution](https://img.shields.io/badge/CMS-Evolution-brightgreen.svg)](https://packagist.org/packages/evolution-cms/evolution) [![GitHub release](https://img.shields.io/github/release/evolution-cms/evolution.svg)](https://github.com/evolution-cms/evolution/releases) diff --git a/core/tests/Unit/Manager/MainLoaderSpinnerStyleTest.php b/core/tests/Unit/Manager/MainLoaderSpinnerStyleTest.php index b94edfea4f..534635d8ea 100644 --- a/core/tests/Unit/Manager/MainLoaderSpinnerStyleTest.php +++ b/core/tests/Unit/Manager/MainLoaderSpinnerStyleTest.php @@ -16,3 +16,22 @@ function mainLoaderCss(): string expect($css)->toMatch('/\.evo__logo::before \{[^}]*animation: rotateLogo [^;}]*\bpaused\b/') ->and($css)->toContain('#mainloader.show .evo__logo::before {animation-play-state: running;}'); }); + +function loginLoaderCss(): string +{ + return (string) file_get_contents(dirname(__DIR__, 4) . '/manager/media/style/default/login.tpl'); +} + +function loaderRingRules(string $css): array +{ + preg_match_all('/(?:#mainloader\.show )?\.evo__logo::before \{[^}]*\}/', $css, $matches); + + return $matches[0]; +} + +test('the login screen shows the same loader ring as the manager', function () { + $manager = loaderRingRules(mainLoaderCss()); + + expect($manager)->toHaveCount(2) + ->and(loaderRingRules(loginLoaderCss()))->toBe($manager); +}); diff --git a/manager/media/style/default/login.tpl b/manager/media/style/default/login.tpl index 2d272067c9..cbc05005f2 100755 --- a/manager/media/style/default/login.tpl +++ b/manager/media/style/default/login.tpl @@ -455,7 +455,8 @@ #mainloader.show {opacity: 0.75; visibility: visible; -webkit-transition-duration: 0.1s; transition-duration: 0.1s} #mainloader::before {display: none;} .evo__logo {font-size: 3.5em;position: fixed; top: 40%; left: 50%;} - .evo__logo::before {content: ""; display: block; position: absolute; z-index: 1; left: 50%; top: 50%; width: 120px; height: 120px; border-radius: 50%; transform: translate(-50%, -50%) rotate(0deg); animation: rotateLogo 2s linear infinite; box-shadow: 5px 5px 0 0 rgb(234, 132, 82), 14px -7px 0 0 rgba(111, 163, 219, 0.7), -7px 11px 0 0 rgba(112, 193, 92, 0.74), -11px -7px 0 0 rgba(147, 205, 99, 0.78);} + .evo__logo::before {content: ""; display: block; position: absolute; z-index: 1; left: 50%; top: 50%; width: 120px; height: 120px; border-radius: 50%; transform: translate(-50%, -50%) rotate(0deg); animation: rotateLogo 2s linear infinite paused; box-shadow: 5px 5px 0 0 #FFD700, 14px -7px 0 0 rgba(111, 163, 219, 0.7), -7px 11px 0 0 rgba(112, 193, 92, 0.74), -11px -7px 0 0 rgba(147, 205, 99, 0.78);} + #mainloader.show .evo__logo::before {animation-play-state: running;} @keyframes rotateLogo {to {transform: translate(-50%, -50%) rotate(360deg)}} /* loginbox keyframes */