Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Binary file added .github/assets/readme-hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
19 changes: 19 additions & 0 deletions core/tests/Unit/Manager/MainLoaderSpinnerStyleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
3 changes: 2 additions & 1 deletion manager/media/style/default/login.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down