Skip to content

Commit c35bf4e

Browse files
jeawhanleewordpressfanmostafa-hishamMiraeld
authored
Closes #7591: As a website administrator, I want to see the Global Score in the WP Rocket dashboard (PR #7631)
Co-authored-by: WordPressFan <[email protected]> Co-authored-by: mostafa-hisham <[email protected]> Co-authored-by: WordPress Fan <[email protected]> Co-authored-by: Gaël Robin <[email protected]>
1 parent 673438f commit c35bf4e

File tree

30 files changed

+1044
-157
lines changed

30 files changed

+1044
-157
lines changed

assets/css/wpr-admin.css

Lines changed: 79 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,13 +1193,15 @@ div.wpr-upgrade-websites.notstacked {
11931193
.rocket-promo-banner > div {
11941194
display: flex;
11951195
flex-flow: column;
1196-
width: 50%;
11971196
}
11981197
@media (max-width: 783px) {
11991198
.rocket-promo-banner > div {
12001199
width: 100%;
12011200
}
12021201
}
1202+
.rocket-promo-banner > div {
1203+
width: 50%;
1204+
}
12031205

12041206
.rocket-promo-title {
12051207
font-weight: bold;
@@ -1294,13 +1296,15 @@ div.wpr-upgrade-websites.notstacked {
12941296
.rocket-renewal-expired-banner-container > div {
12951297
display: flex;
12961298
flex-flow: column;
1297-
width: 70%;
12981299
}
12991300
@media (max-width: 783px) {
13001301
.rocket-renewal-expired-banner-container > div {
13011302
width: 100%;
13021303
}
13031304
}
1305+
.rocket-renewal-expired-banner-container > div {
1306+
width: 70%;
1307+
}
13041308

13051309
.rocket-renew-message {
13061310
margin: 0 16px;
@@ -1354,20 +1358,6 @@ div.wpr-upgrade-websites.notstacked {
13541358
margin-left: 8px;
13551359
}
13561360

1357-
/* Speed Radar Styles */
1358-
.wpr-field-speed-radar {
1359-
margin-top: 20px;
1360-
}
1361-
1362-
.wpr-speed-radar-table {
1363-
width: 100%;
1364-
border-collapse: collapse;
1365-
background: #fff;
1366-
border: 1px solid #E8EBEE;
1367-
border-radius: 3px;
1368-
margin-bottom: 20px;
1369-
}
1370-
13711361
/*-----------------------------------------------*\
13721362
13731363
Navigation menu item
@@ -2661,6 +2651,75 @@ div.wpr-tutorial-item {
26612651
color: #00A66B;
26622652
}
26632653

2654+
.wpr-percentage-score-widget {
2655+
text-align: center;
2656+
padding: 8px;
2657+
}
2658+
.wpr-percentage-score-widget .wpr-page-num-txt {
2659+
margin: 24px 0 16px 0;
2660+
font-size: 14px;
2661+
line-height: 1.3;
2662+
}
2663+
.wpr-percentage-score-widget .wpr-score-no-urls {
2664+
background-image: url(../img/pma-light-pulp.svg);
2665+
background-repeat: no-repeat;
2666+
background-position: center;
2667+
background-size: contain;
2668+
width: 92px;
2669+
height: 92px;
2670+
margin: 0 auto;
2671+
display: block;
2672+
}
2673+
2674+
.wpr-percentage-indicator {
2675+
display: flex;
2676+
justify-content: center;
2677+
align-items: center;
2678+
}
2679+
.wpr-percentage-indicator .wpr-percentage-circle {
2680+
display: flex;
2681+
justify-content: center;
2682+
align-items: center;
2683+
width: 118px;
2684+
height: 118px;
2685+
font-size: 50px;
2686+
font-family: Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
2687+
font-weight: 500;
2688+
border-radius: 50%;
2689+
border: 3px solid;
2690+
}
2691+
.wpr-percentage-indicator .wpr-percentage-circle-sm {
2692+
width: 32px;
2693+
height: 32px;
2694+
font-size: 14px;
2695+
}
2696+
.wpr-percentage-indicator .wpr-percentage-circle.status-red {
2697+
border-color: #C01B1B;
2698+
color: #C01B1B;
2699+
background-color: #FBE4E4;
2700+
}
2701+
.wpr-percentage-indicator .wpr-percentage-circle.status-yellow {
2702+
border-color: #E9AA01;
2703+
color: #E9AA01;
2704+
background-color: #FFF7EA;
2705+
}
2706+
.wpr-percentage-indicator .wpr-percentage-circle.status-green {
2707+
border-color: #2E8F44;
2708+
color: #2E8F44;
2709+
background-color: #E8F8EB;
2710+
}
2711+
.wpr-percentage-indicator .wpr-percentage-circle.blurred {
2712+
filter: blur(4px);
2713+
}
2714+
.wpr-percentage-indicator .wpr-loading-img {
2715+
width: 118px;
2716+
height: 118px;
2717+
}
2718+
.wpr-percentage-indicator .wpr-loading-img-sm {
2719+
width: 32px;
2720+
height: 32px;
2721+
}
2722+
26642723
/*-----------------------------------------------*\
26652724
26662725
Custom checkbox
@@ -3095,10 +3154,6 @@ div.wpr-tutorial-item {
30953154
padding: 10px;
30963155
margin: 8px 0;
30973156
}
3098-
.wpr-multiple-select .wpr-list .wpr-list-header {
3099-
display: flex;
3100-
justify-content: space-between;
3101-
}
31023157
.wpr-multiple-select .wpr-list .wpr-list-header .wpr-multiple-select-exclude_js_ads:before {
31033158
font-family: "wpr-icomoon";
31043159
content: "\e9b7";
@@ -3114,6 +3169,10 @@ div.wpr-tutorial-item {
31143169
content: "\e927";
31153170
padding-right: 8px;
31163171
}
3172+
.wpr-multiple-select .wpr-list .wpr-list-header {
3173+
display: flex;
3174+
justify-content: space-between;
3175+
}
31173176
.wpr-multiple-select .wpr-list .wpr-list-header .wpr-list-header-arrow {
31183177
width: 15px;
31193178
cursor: pointer;

assets/css/wpr-admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/img/orange-loading.gif

449 KB
Loading

assets/img/pma-light-pulp.svg

Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)