Skip to content

Commit 1e08561

Browse files
committed
feat(riot-mui): set material-icon size to 24px globally
1 parent 228762c commit 1e08561

File tree

1 file changed

+36
-27
lines changed

1 file changed

+36
-27
lines changed

src/style.scss

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929

3030
@import './roboto.scss';
3131
@import './material-icons.scss';
32-
32+
3333
html > body {
3434
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif !important;
3535
font-size: 16px;
3636
}
3737

38-
html, body {
38+
html,
39+
body {
3940
margin: 0;
4041
height: 100%;
4142
}
@@ -70,7 +71,7 @@ pagination .container {
7071
}
7172

7273
/* 1515px * 0.95 = 1440px */
73-
@media screen and (min-width: 1515px){
74+
@media screen and (min-width: 1515px) {
7475
material-card,
7576
material-tabs,
7677
pagination .container {
@@ -80,11 +81,11 @@ pagination .container {
8081

8182
material-tabs {
8283
display: block;
83-
-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
84-
-ms-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
85-
-moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
86-
-o-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);
87-
box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
84+
-webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
85+
-ms-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
86+
-moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
87+
-o-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
88+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
8889
}
8990

9091
material-tabs material-button,
@@ -114,7 +115,7 @@ material-spinner {
114115
text-decoration: none;
115116
font-size: 20px;
116117
line-height: 1;
117-
letter-spacing: .02em;
118+
letter-spacing: 0.02em;
118119
font-weight: 400;
119120
}
120121

@@ -153,18 +154,22 @@ h2 {
153154
overflow: hidden;
154155
}
155156

157+
docker-registry-ui material-button > :first-child .content i.material-icons,
158+
docker-registry-ui material-button > :first-child .content i.material-icons.material-icons {
159+
font-size: 24px;
160+
}
161+
156162
.list > span i.material-icons,
157163
.list > li i.material-icons {
158164
margin-right: 32px;
159165
height: 24px;
160166
width: 24px;
161-
font-size: 24px;
162167
box-sizing: border-box;
163168
color: #757575;
164169
}
165170

166171
.list > span .right i.material-icons.animated {
167-
transition: all 350ms cubic-bezier(.4,0,.2,1);
172+
transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
168173
margin-right: 10px;
169174
}
170175

@@ -221,7 +226,7 @@ material-card table {
221226
width: 100%;
222227
border: none;
223228
position: relative;
224-
border: 1px solid rgba(0, 0, 0, .12);
229+
border: 1px solid rgba(0, 0, 0, 0.12);
225230
border-collapse: collapse;
226231
white-space: nowrap;
227232
font-size: 13px;
@@ -234,7 +239,7 @@ material-card table th {
234239
vertical-align: bottom;
235240
line-height: 24px;
236241
height: 48px;
237-
color: rgba(0, 0, 0, .54);
242+
color: rgba(0, 0, 0, 0.54);
238243
box-sizing: border-box;
239244
padding: 0 18px 12px 18px;
240245
text-align: right;
@@ -252,8 +257,8 @@ material-card table tbody tr:hover {
252257

253258
material-button > :first-child[inverted='true'],
254259
material-card table tbody tr {
255-
transition-duration: .28s;
256-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
260+
transition-duration: 0.28s;
261+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
257262
transition-property: background-color;
258263
}
259264

@@ -266,36 +271,39 @@ material-card table td {
266271
font-size: 16px;
267272
position: relative;
268273
height: 48px;
269-
border-top: 1px solid rgba(0, 0, 0, .12);
270-
border-bottom: 1px solid rgba(0, 0, 0, .12);
274+
border-top: 1px solid rgba(0, 0, 0, 0.12);
275+
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
271276
padding: 12px 18px;
272277
box-sizing: border-box;
273278
vertical-align: middle;
274279
text-align: right;
275280
}
276281

277282
tag-history-button button:hover,
278-
material-card table th.material-card-th-sorted-ascending:hover, material-card table th.material-card-th-sorted-descending:hover {
283+
material-card table th.material-card-th-sorted-ascending:hover,
284+
material-card table th.material-card-th-sorted-descending:hover {
279285
cursor: pointer;
280286
}
281287

282-
material-card table th.material-card-th-sorted-ascending:hover:before, material-card table th.material-card-th-sorted-descending:hover:before {
283-
color: rgba(0, 0, 0, .26);
288+
material-card table th.material-card-th-sorted-ascending:hover:before,
289+
material-card table th.material-card-th-sorted-descending:hover:before {
290+
color: rgba(0, 0, 0, 0.26);
284291
}
285292

286-
material-card table th.material-card-th-sorted-ascending:before, material-card table th.material-card-th-sorted-descending:before {
293+
material-card table th.material-card-th-sorted-ascending:before,
294+
material-card table th.material-card-th-sorted-descending:before {
287295
font-family: 'Material Icons';
288296
font-weight: 400;
289297
font-style: normal;
290298
line-height: 1;
291299
font-size: 16px;
292-
content: "\e5d8";
300+
content: '\e5d8';
293301
margin-right: 5px;
294302
vertical-align: sub;
295303
}
296304

297305
material-card table th.material-card-th-sorted-descending:before {
298-
content: "\e5db";
306+
content: '\e5db';
299307
}
300308

301309
material-button .content i.material-icons,
@@ -313,7 +321,7 @@ material-snackbar .toast {
313321
}
314322

315323
material-popup material-button:hover material-waves {
316-
background-color: hsla(0, 0%, 75%, .2);
324+
background-color: hsla(0, 0%, 75%, 0.2);
317325
}
318326

319327
material-popup .popup > .content {
@@ -343,7 +351,8 @@ material-footer {
343351
/* 5 + 2 + 3 + 24 + 3 + 2 + 18 */
344352
padding-right: 57px;
345353
}
346-
image-tag, .copy-to-clipboard {
354+
image-tag,
355+
.copy-to-clipboard {
347356
display: inline-block;
348357
}
349358
image-content-digest {
@@ -396,7 +405,7 @@ catalog-element material-card {
396405
}
397406

398407
catalog-element catalog-element material-card {
399-
transition: all 350ms cubic-bezier(.4,0,.2,1);
408+
transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
400409
z-index: 1;
401410
position: relative;
402411
}
@@ -411,7 +420,7 @@ catalog-element catalog-element > .content {
411420
margin-left: 3em;
412421
}
413422

414-
@media screen and (min-width: 1515px){
423+
@media screen and (min-width: 1515px) {
415424
catalog-element catalog-element > .content material-card {
416425
max-width: calc(1440px - 3em);
417426
}

0 commit comments

Comments
 (0)