Skip to content

Commit

Permalink
further tweaks to metadata text size
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Sep 10, 2024
1 parent 1b90b24 commit 0b39c17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const time = computed(() => {
<template>
<div
class="MetadataEduResource"
:class="{ '-compact text-sm lg:text-base': props.compact, 'text-body-lg': !props.compact }"
:class="{ '-compact text-sm xl:text-base': props.compact, 'text-body-lg': !props.compact }"
>
<div
v-if="primarySubject"
Expand All @@ -69,7 +69,7 @@ const time = computed(() => {
<div
v-if="time && showTime"
class="MetadataEduResourceItem"
:class="primarySubject && audience && time ? '-lgScreensOnly' : ''"
:class="primarySubject && audience && time ? '-xlScreensOnly' : ''"
>
<IconTime
class="MetadataEduResourceIcon text-[1.15em]"
Expand Down Expand Up @@ -103,12 +103,13 @@ const time = computed(() => {
}
&.-compact {
@apply flex flex-grow;
@apply flex flex-grow flex-wrap;
.MetadataEduResourceItem {
@apply whitespace-nowrap;
@apply max-w-none min-w-[4em];
@apply mr-6 mb-0;
&.-lgScreensOnly {
@apply hidden lg:flex;
&.-xlScreensOnly {
@apply hidden xl:flex;
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions packages/vue/src/components/MetadataEvent/MetadataEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const location = computed(() => {
<div
class="MetadataEvent"
:class="{
'-compact text-sm lg:text-base': props.compact,
'-compact text-sm xl:text-base': props.compact,
'text-body-lg': !props.compact,
'-allow-break': props.allowBreak
}"
Expand Down Expand Up @@ -173,8 +173,9 @@ const location = computed(() => {
}
&.-compact {
@apply flex flex-grow;
@apply flex flex-grow flex-wrap;
.MetadataEventItem {
@apply whitespace-nowrap;
@apply max-w-none min-w-[4em];
@apply mr-6 mb-0;
}
Expand Down

0 comments on commit 0b39c17

Please sign in to comment.