Skip to content

Commit

Permalink
remove borders
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Nov 25, 2023
1 parent d34a402 commit d709992
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
21 changes: 12 additions & 9 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,33 @@ body {
@apply !pr-0;
}
audio {
@apply h-10 border-2 border-primary rounded-xl;
@apply h-10;
}
audio::-webkit-media-controls-enclosure {
@apply bg-neutral max-h-10 rounded-lg;
@apply bg-base-100 max-h-10 rounded-lg;
}
audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button {
[data-theme="dark"] audio::-webkit-media-controls-mute-button, [data-theme="dark"] video::-webkit-media-controls-mute-button {
background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJXaW5kb3dUZXh0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8cGF0aCBkPSJNMyA5djZoNGw1IDVWNEw3IDlIM3ptMTMuNSAzYzAtMS43Ny0xLjAyLTMuMjktMi41LTQuMDN2OC4wNWMxLjQ4LS43MyAyLjUtMi4yNSAyLjUtNC4wMnpNMTQgMy4yM3YyLjA2YzIuODkuODYgNSAzLjU0IDUgNi43MXMtMi4xMSA1Ljg1LTUgNi43MXYyLjA2YzQuMDEtLjkxIDctNC40OSA3LTguNzdzLTIuOTktNy44Ni03LTguNzd6Ii8+DQogICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPg0KPC9zdmc+');
}
[data-theme="dark"] audio::-webkit-media-controls-mute-button, [data-theme="dark"] video::-webkit-media-controls-mute-button {
audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button {
background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJXaW5kb3ciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICAgIDxwYXRoIGQ9Ik0zIDl2Nmg0bDUgNVY0TDcgOUgzem0xMy41IDNjMC0xLjc3LTEuMDItMy4yOS0yLjUtNC4wM3Y4LjA1YzEuNDgtLjczIDIuNS0yLjI1IDIuNS00LjAyek0xNCAzLjIzdjIuMDZjMi44OS44NiA1IDMuNTQgNSA2Ljcxcy0yLjExIDUuODUtNSA2LjcxdjIuMDZjNC4wMS0uOTEgNy00LjQ5IDctOC43N3MtMi45OS03Ljg2LTctOC43N3oiLz4NCiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+DQo8L3N2Zz4NCg==')
}
audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button {
[data-theme="dark"] audio::-webkit-media-controls-play-button, [data-theme="dark"] video::-webkit-media-controls-play-button {
background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJXaW5kb3dUZXh0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8cGF0aCBkPSJNOCA1djE0bDExLTd6Ii8+DQogICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPg0KPC9zdmc+")
}
[data-theme="dark"] audio::-webkit-media-controls-play-button, [data-theme="dark"] video::-webkit-media-controls-play-button {
audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button {
background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJXaW5kb3ciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICAgIDxwYXRoIGQ9Ik04IDV2MTRsMTEtN3oiLz4NCiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+DQo8L3N2Zz4NCg==")
}
video {
@apply rounded-lg border-2 border-primary;
@apply rounded-lg shadow-xl;
}
video::-webkit-media-controls-fullscreen-button {
background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJXaW5kb3dUZXh0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+DQogICAgPHBhdGggZD0iTTcgMTRINXY1aDV2LTJIN3YtM3ptLTItNGgyVjdoM1Y1SDV2NXptMTIgN2gtM3YyaDV2LTVoLTJ2M3pNMTQgNXYyaDN2M2gyVjVoLTV6Ii8+DQo8L3N2Zz4=")
video::-webkit-media-controls-panel {
background: linear-gradient(to bottom, transparent, theme(backgroundColor.base-300)) repeat-x bottom left
}
[data-theme="dark"] video::-webkit-media-controls-fullscreen-button {
background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJXaW5kb3dUZXh0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+DQogICAgPHBhdGggZD0iTTcgMTRINXY1aDV2LTJIN3YtM3ptLTItNGgyVjdoM1Y1SDV2NXptMTIgN2gtM3YyaDV2LTVoLTJ2M3pNMTQgNXYyaDN2M2gyVjVoLTV6Ii8+DQo8L3N2Zz4=")
}
video::-webkit-media-controls-fullscreen-button {
background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJXaW5kb3ciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4NCiAgICA8cGF0aCBkPSJNNyAxNEg1djVoNXYtMkg3di0zem0tMi00aDJWN2gzVjVINXY1em0xMiA3aC0zdjJoNXYtNWgtMnYzek0xNCA1djJoM3YzaDJWNWgtNXoiLz4NCjwvc3ZnPg0K")
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/MessageBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const fileUrl = computed(() => {
<div v-else-if="isLengthy && showReadMore" class="flex justify-end font-bold">
<a @click="showReadMore = false">Hide content</a>
</div>
<img v-if="file?.type.startsWith('image/')" :src="fileUrl" width="512" height="512" class="rounded-lg border-2 border-primary" />
<img v-if="file?.type.startsWith('image/')" :src="fileUrl" width="512" height="512" class="rounded-lg shadow-xl" />
<audio
v-else-if="file?.type.startsWith('audio/')"
:src="fileUrl"
Expand All @@ -94,7 +94,7 @@ const fileUrl = computed(() => {
<a :href="fileUrl">link to the video</a> instead.
</p>
</video>
<div v-else-if="file" class="flex items-center justify-center gap-2 rounded-lg border-2 border-primary bg-base-200 p-2">
<div v-else-if="file" class="flex items-center justify-center gap-2 rounded-lg bg-base-200 p-2 shadow-xl">
<ph-file-fill class="h-6 w-6" />
<div class="flex flex-col gap-1">
<p class="font-bold">{{ file.name.substring(0, file.name.lastIndexOf('.')) }}</p>
Expand Down

0 comments on commit d709992

Please sign in to comment.