+
@if (tagsEnabled && entry.tags && entry.tags!.length > 0) {
-
+
{{ 'core.tag.tags' | translate }}:
@@ -85,15 +82,14 @@
}
@if (entry.uniquehash) {
-
+
{{ 'addon.blog.linktooriginalentry' | translate }}
}
-
@if (entry.lastmodified > entry.created || (entry.userid === currentUserId && entry.publishstate !== 'draft')) {
-
+
@if (entry.lastmodified > entry.created) {
diff --git a/src/addons/blog/pages/index/index.scss b/src/addons/blog/pages/index/index.scss
index c610046a4..e89eb0b9f 100644
--- a/src/addons/blog/pages/index/index.scss
+++ b/src/addons/blog/pages/index/index.scss
@@ -1,87 +1,68 @@
@use "theme/globals" as *;
:host {
-
- ion-card {
- padding: .5rem 1rem;
- }
-
.entry {
border-bottom: 1px solid var(--stroke);
&-visibility-permission {
display: flex;
align-items: center;
- font-size: 0.875rem;
- font-weight: 500;
+ font: var(-mdl-typography-label-font-lg);
ion-icon {
- margin-right: .3rem;
+ @include margin-horizontal(null, .3rem);
}
}
&-draft {
- margin-left: .3rem;
+ @include margin-horizontal(.3rem, null);
+
position: relative;
top: 4px;
}
&-subject {
core-format-text {
- font-size: 1.25rem;
- font-weight: 500;
- }
-
- &::part(native) {
- padding-left: 0;
+ font: var(--mdl-typography-heading4-font);
}
}
&-creation-info {
+ .entry-avatar {
+ @include margin(.6rem, .6rem, .6rem, 0px);
+ }
+
core-user-avatar {
- --userpicture-padding: .6rem;
- margin-left: -.5rem;
+ --core-avatar-size: 24px;
}
}
&-last-modification {
- --border-width: 0 0 1px 0;
-
- &::part(native) {
- padding: 0;
- }
+ --padding-end: 0px;
+ --padding-start: 0px;
+ --padding-top: 0px;
+ --padding-bottom: 0px;
ion-note {
padding-top: 0.9rem;
- font-size: 0.875rem;
- font-weight: 500;
+ font: var(-mdl-typography-label-font-lg);
}
ion-icon {
- margin-right: .3rem;
+ @include margin-horizontal(null, .3rem);
}
}
}
- .core-button-spinner {
- margin-right: -.5rem;
- align-self: start;
-
- ion-button::part(native) {
- --padding-end: 0;
- --padding-start: 0;
- --padding-left: 0;
- --padding-right: 0;
- }
+ ion-button.entry-options {
+ --padding-end: 0px;
+ --padding-start: 0px;
+ --padding-top: 0px;
+ --padding-bottom: 0px;
}
- core-comments ::ng-deep {
- &::part(native) {
- --padding-start: 0;
- }
- }
-
- .border-bottom {
- border-bottom: 1px solid var(--stroke);
+ core-comments ::ng-deep ion-item {
+ --inner-border-width: 1px 0px 0px 0px;
+ --padding-start: 0px;
}
}
diff --git a/src/addons/mod/data/components/actionsmenu/actionsmenu.html b/src/addons/mod/data/components/actionsmenu/actionsmenu.html
index 9e266e7f3..06b447d55 100644
--- a/src/addons/mod/data/components/actionsmenu/actionsmenu.html
+++ b/src/addons/mod/data/components/actionsmenu/actionsmenu.html
@@ -1,6 +1,6 @@
-
diff --git a/src/core/components/context-menu/context-menu-popover.scss b/src/core/components/context-menu/context-menu-popover.scss
index 128643a79..61afb48a1 100644
--- a/src/core/components/context-menu/context-menu-popover.scss
+++ b/src/core/components/context-menu/context-menu-popover.scss
@@ -3,9 +3,3 @@
ion-list {
padding: 0;
}
-
-ion-icon[slot=start] {
- @include margin-horizontal(0, 10px);
- width: 0.8em;
- height: 0.8em;
-}
diff --git a/src/core/components/context-menu/context-menu-popover.ts b/src/core/components/context-menu/context-menu-popover.ts
index 7f473f9c8..0961792c8 100644
--- a/src/core/components/context-menu/context-menu-popover.ts
+++ b/src/core/components/context-menu/context-menu-popover.ts
@@ -28,14 +28,12 @@ import { CoreContextMenuItemComponent } from './context-menu-item';
})
export class CoreContextMenuPopoverComponent {
- title: string;
uniqueId: string;
items: CoreContextMenuItemComponent[];
constructor(
navParams: NavParams,
) {
- this.title = navParams.get('title');
this.items = navParams.get('items') || [];
this.uniqueId = navParams.get('id');
}
diff --git a/src/core/components/context-menu/context-menu.ts b/src/core/components/context-menu/context-menu.ts
index 1f1d679da..bbbbca9ab 100644
--- a/src/core/components/context-menu/context-menu.ts
+++ b/src/core/components/context-menu/context-menu.ts
@@ -32,9 +32,15 @@ import { CoreDirectivesRegistry } from '@singletons/directives-registry';
export class CoreContextMenuComponent implements OnInit, OnDestroy {
@Input() icon = 'ellipsis-vertical'; // Icon to be shown on the navigation bar. Default: Kebab menu icon.
- @Input() title?: string; // Text to be shown on the top of the popover.
@Input('aria-label') ariaLabel?: string; // Aria label to be shown on the top of the popover.
+ /**
+ * Title to be shown on the top of the popover.
+ *
+ * @deprecated since 4.4. Use aria-label instead.
+ */
+ @Input() title?: string; // Text to be shown on the top of the popover.
+
hideMenu = true; // It will be unhidden when items are added.
uniqueId: string;
@@ -68,7 +74,7 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy {
* @inheritdoc
*/
ngOnInit(): void {
- this.ariaLabel = this.ariaLabel || this.title || Translate.instant('core.displayoptions');
+ this.ariaLabel = this.ariaLabel || Translate.instant('core.displayoptions');
}
/**
@@ -81,7 +87,7 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy {
// All items were moved to the "parent" menu. Add the item in there.
this.parentContextMenu.addItem(item);
- if (this.itemsMovedToParent.indexOf(item) == -1) {
+ if (this.itemsMovedToParent.indexOf(item) === -1) {
this.itemsMovedToParent.push(item);
}
} else if (this.items.indexOf(item) == -1) {
@@ -181,7 +187,6 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy {
event,
component: CoreContextMenuPopoverComponent,
componentProps: {
- title: this.title,
items: this.items,
},
id: this.uniqueId,
diff --git a/src/core/components/context-menu/core-context-menu-popover.html b/src/core/components/context-menu/core-context-menu-popover.html
index 4bcb093e2..eda89d1e4 100644
--- a/src/core/components/context-menu/core-context-menu-popover.html
+++ b/src/core/components/context-menu/core-context-menu-popover.html
@@ -1,22 +1,15 @@
-
- {{title}}
-
-
-
-
+ {{ item.content }}
-
-
-
+ {{ item.content }}
-
+
{{ prefetch.statusTranslatable | translate }}
-
{{ 'addon.storagemanager.deletedata' | translate }}
-
+
{{ 'core.courses.hidecourse' | translate }}
-
+
{{ 'core.courses.show' | translate }}
-
+
{{ 'core.courses.addtofavourites' | translate }}
-
+
{{ 'core.courses.removefromfavourites' | translate }}
diff --git a/src/theme/components/ion-item.scss b/src/theme/components/ion-item.scss
index 18ce5a72a..b7f13dd2b 100644
--- a/src/theme/components/ion-item.scss
+++ b/src/theme/components/ion-item.scss
@@ -47,12 +47,6 @@ ion-item.item {
&.item-has-interactive-control:focus-within {
@include core-focus-outline();
}
-
- &.icon-margin-reduced {
- [slot=start] {
- @include margin-horizontal(null, var(--mdl-spacing-4));
- }
- }
}
// Fake item.
@@ -167,6 +161,7 @@ ion-item .in-item {
text-overflow: inherit;
overflow: inherit;
+ white-space: inherit;
--color: initial;
color: var(--color);
@@ -203,6 +198,7 @@ ion-item > .in-item,
.item.ion-text-wrap > ion-checkbox::part(label),
ion-checkbox.ion-text-wrap::part(label),
ion-toggle.ion-text-wrap::part(label),
+.item.ion-text-wrap > ion-toggle::part(label),
.item.ion-text-wrap > ion-input > label,
ion-input.ion-text-wrap > label {
white-space: normal;
diff --git a/src/theme/components/ion-popover.scss b/src/theme/components/ion-popover.scss
index 67426340e..6fc5a0c37 100644
--- a/src/theme/components/ion-popover.scss
+++ b/src/theme/components/ion-popover.scss
@@ -25,4 +25,11 @@ ion-popover {
white-space: normal;
}
}
+
+
+ ion-item {
+ [slot=start] {
+ @include margin-horizontal(null, var(--mdl-spacing-4));
+ }
+ }
}