MOBILE-3811 icon: Adapt new icons on all views

main
Pau Ferrer Ocaña 2022-01-18 16:26:30 +01:00
parent 18db3c58b6
commit f7010db091
5 changed files with 19 additions and 6 deletions

View File

@ -19,6 +19,7 @@ h4.core-bold {
.addon-block-timeline-activity core-mod-icon {
--margin-end: 0.5rem;
--margin-vertical: 0;
}
.addon-block-timeline-activity-time,

View File

@ -1,16 +1,19 @@
@import "~theme/globals";
:host {
display: inline-block;
--size: var(--module-icon-size);
--margin-end: 0px;
--margin-vertical: 0px;
margin-top: var(--margin-vertical);
margin-bottom: var(--margin-vertical);
margin-right: var(--margin-end);
@include margin-horizontal(null, var(--margin-end));
border-radius: 4px;
padding: 0.7rem;
background-color: $gray-lighter;
line-height: var(--size);
@each $type, $value in $activity-icon-colors {
&.#{$type} {
@ -28,6 +31,7 @@ img {
height: var(--size);
max-width: var(--size);
max-height: var(--size);
vertical-align: top;
&[alt] {
text-indent: -999999px;
@ -45,8 +49,3 @@ img {
--margin-vertical: 12px;
--margin-end: 12px;
}
:host-context([dir=rtl]) {
margin-right: unset;
margin-left: var(--margin-end);
}

View File

@ -87,6 +87,7 @@
}
core-mod-icon {
padding: 0.1rem;
--size: 16px;
}

View File

@ -0,0 +1,11 @@
@import "~theme/globals";
ion-item ion-icon {
display: inline-block;
border-radius: 4px;
padding: 0.7rem;
background-color: $gray-lighter;
line-height: var(--size);
--margin-end: 1rem;
@include margin-horizontal(null, var(--margin-end));
}

View File

@ -36,6 +36,7 @@ import { CoreUtils } from '@services/utils/utils';
@Component({
selector: 'page-core-sitehome-index',
templateUrl: 'index.html',
styleUrls: ['index.scss'],
})
export class CoreSiteHomeIndexPage implements OnInit, OnDestroy {