Skip to content

Commit 217f547

Browse files
author
Michiel Verkoijen
committed
Dashboard widget style fixes.
1 parent 489ae95 commit 217f547

3 files changed

Lines changed: 28 additions & 31 deletions

File tree

src/css/admin.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ div.tiny-account-status div.status-loading:before {
6262

6363
@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
6464
div.tiny-account-status div.status-loading:before {
65-
background-image: url(../images/spinner-2x.gif);
65+
background-image: url("../images/spinner-2x.gif");
6666
}
6767
}
6868

@@ -162,7 +162,7 @@ div.tiny-account-status.wide div.create button.loading, div.tiny-account-status.
162162

163163
@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
164164
div.tiny-account-status.wide div.create button.loading, div.tiny-account-status.wide div.update button.loading {
165-
background-image: url(../images/button-spinner-2x.gif) !important;
165+
background-image: url("../images/button-spinner-2x.gif") !important;
166166
}
167167
}
168168

src/css/dashboard-widget.css

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
#optimization-chart {
2-
margin: 12px 0 40px;
3-
min-width: 180px;
4-
}
5-
6-
#optimization-chart .value .percentage,
7-
#optimization-chart .value .label {
8-
color: #40444F;
9-
}
10-
111
div.tiny_dashboard_widget .inside {
122
margin: 0;
133
min-height: 200px;
14-
padding-bottom: 0px;
4+
padding-bottom: 0;
155
overflow: hidden;
166
}
177

@@ -36,8 +26,8 @@ div.tiny_dashboard_widget .inside .sky-background {
3626
height: 100%;
3727
width: 100%;
3828
opacity: 0.33;
39-
background: linear-gradient(180deg, #C6DDE4 0%, #FEFEFF 100%);
40-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33C6DDE4', endColorstr='#33FEFEFF',GradientType=0 ); /* IE6-9 */
29+
background: linear-gradient(180deg, #c6dde4 0%, #fefeff 100%);
30+
/* ie6-9 */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33C6DDE4', endColorstr='#33FEFEFF',GradientType=0 );
4131
}
4232

4333
div.tiny_dashboard_widget .inside .cloud,
@@ -127,9 +117,9 @@ div.tiny_dashboard_widget.full-optimized .inside.mobile div#optimization-chart {
127117
}
128118

129119
div.tiny_dashboard_widget .inside .media-library-optimized {
130-
display: none;
120+
display: none;
131121
position: relative;
132-
z-index: 1;
122+
z-index: 1;
133123
}
134124

135125
div.tiny_dashboard_widget.full-optimized .inside #widget-full-optimized,
@@ -139,8 +129,9 @@ div.tiny_dashboard_widget.half-optimized .inside #widget-half-optimized {
139129
display: block;
140130
}
141131

142-
div.tiny_dashboard_widget .widget-percentage, div.tiny_dashboard_widget .widget-label {
143-
color: #40444F;
132+
div.tiny_dashboard_widget .widget-percentage,
133+
div.tiny_dashboard_widget .widget-label {
134+
color: #40444f;
144135
}
145136

146137
div.tiny_dashboard_widget .widget-label {
@@ -153,14 +144,24 @@ div.tiny_dashboard_widget .widget-percentage {
153144
}
154145

155146
div.tiny_dashboard_widget .media-library-optimized {
156-
padding:10px 20px;
147+
padding: 10px 20px;
157148
padding-bottom: 0px;
158149
}
159150

160151
div.tiny_dashboard_widget .media-library-optimized p {
161152
margin-bottom: 0;
162153
}
163154

155+
div.tiny_dashboard_widget div#optimization-chart {
156+
margin: 12px 0 40px;
157+
min-width: 160px;
158+
}
159+
160+
div.tiny_dashboard_widget div#optimization-chart div.value div.percentage,
161+
div.tiny_dashboard_widget div#optimization-chart div.value div.label {
162+
color: #40444f;
163+
}
164+
164165
.ie8 div.tiny_dashboard_widget .inside .panda-background {
165166
background: none;
166167
}
@@ -176,7 +177,7 @@ div.tiny_dashboard_widget .media-library-optimized p {
176177
}
177178

178179
.ie8 div.tiny_dashboard_widget .inside .grass {
179-
background: url('../images/grass-ie8.png');
180+
background-image: url("../images/grass-ie8.png");
180181
background-repeat: no-repeat !important;
181182
background-position: bottom !important;
182183
width: 100%;

src/views/dashboard-widget.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
<?php $link = "<a href='" . admin_url( 'upload.php?page=tiny-bulk-optimization' ) . "'>" . esc_html__( 'bulk optimization', 'tiny-compress-images' ) . '</a>'; ?>
1+
<?php $link = "<a href='" . admin_url( 'upload.php?page=tiny-bulk-optimization' ) . "'>" . esc_html__( 'bulk optimization', 'tiny-compress-images' ) . '</a>'; ?>
2+
23
<style type="text/css" >
3-
.media-library-optimized,
4-
#optimization-chart {
5-
display: none;
6-
}
7-
.ie8 #optimization-chart {
8-
display: none !important;
9-
}
4+
div.media-library-optimized { display: none; }
5+
div#optimization-chart { display: none; }
6+
.ie8 #optimization-chart { display: none !important; }
107
</style>
11-
128
<div id="widget-spinner" class=""></div>
139
<div class="sky-background"></div>
1410
<div class="cloud"></div>
@@ -30,7 +26,7 @@
3026
<div class="media-library-optimized" id="widget-half-optimized">
3127
<p>
3228
<?php printf( esc_html__( '%s, you are doing good.', 'tiny-compress-images' ), $this->friendly_user_name() ) ?>
33-
<?php printf( esc_html__( 'With your current settings you can still optimize %s image sizes from your %s uploaded JPEG and PNG images.', 'tiny-compress-images' ), '<span id="unoptimised-sizes"></span>', '<span id="uploaded-images"></span>' ) ?>
29+
<?php printf( esc_html__( 'With your current settings you can still optimize %1$s image sizes from your %2$s uploaded JPEG and PNG images.', 'tiny-compress-images' ), '<span id="unoptimised-sizes"></span>', '<span id="uploaded-images"></span>' ) ?>
3430
<?php printf( wp_kses( __( 'Start the %s to optimize the remainder of your library.', 'tiny-compress-images' ), array( 'a' => array( 'href' => array() ) ) ), $link )?>
3531
</p>
3632
</div>

0 commit comments

Comments
 (0)