<li class="gridListItem gridListItemMessage">
<div class="gridListItemImage">
{if $customIcons[$message->getObjectTypeName()]|isset}
- <div class="gridListItemLargeIcon">
- {icon size=48 name=$customIcons[$message->getObjectTypeName()]}
- </div>
- <div class="gridListItemSmallIcon">
- {icon size=32 name=$customIcons[$message->getObjectTypeName()]}
- </div>
+ {icon size=48 name=$customIcons[$message->getObjectTypeName()]}
{elseif $message->getUserProfile()}
{user object=$message->getUserProfile() type='avatar48' ariaHidden='true' tabindex='-1'}
{else}
- <div class="gridListItemLargeIcon">
- {icon size=48 name='file'}
- </div>
- <div class="gridListItemSmallIcon">
- {icon size=32 name='file'}
- </div>
+ {icon size=48 name='file'}
{/if}
</div>
<h3 class="gridListItemTitle">
- <a href="{$message->getLink($query)}">{$message->getSubject()}</a>
+ <a href="{$message->getLink($query)}" class="gridListItemLink">{$message->getSubject()}</a>
</h3>
{hascontent}
.gridListItemTitle {
grid-area: title;
+ @include wcfFontHeadline;
}
.gridListItemMeta {
color: var(--wcfContentDimmedText);
grid-area: meta;
+
+ a,
+ a:hover,
+ a:focus {
+ color: inherit;
+ pointer-events: none;
+ }
}
.gridListItemType {
color: var(--wcfContentDimmedText);
grid-area: type;
justify-self: end;
+ white-space: nowrap;
}
.gridListItemContent {
margin-top: 10px;
}
+.gridListItemLink {
+ color: inherit;
+
+ &::before {
+ content: "";
+ inset: 0;
+ position: absolute;
+ }
+
+ &:hover,
+ &:focus {
+ color: inherit;
+ }
+}
+
@include screen-xs {
.gridListItem {
padding: var(--padding) 0;
"image title"
"image meta"
"content content";
- grid-template-columns: 32px auto;
- }
-
- .gridListItemImage {
- position: relative;
- top: 4px;
-
- .userAvatarImage {
- height: 32px;
- width: 32px;
- }
- }
-
- .gridListItemLargeIcon {
- display: none;
- }
-
- .gridListItemMeta a {
- color: inherit;
- pointer-events: none;
+ grid-template-columns: 48px auto;
}
.gridListItemType {
}
}
-@include screen-sm-up {
- .gridListItemSmallIcon {
- display: none;
- }
-}
-
@include screen-sm-down {
.gridListItemTitle {
display: -webkit-box;
}
}
-@include screen-sm-up {
- .gridListItemTitle {
- @include wcfFontHeadline;
- }
-}
-
@include screen-md-up {
.gridListItemTitle {
overflow: hidden;