Skip to content

Commit

Permalink
Improve styling for Nova 4
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Nov 15, 2022
1 parent 8bde58b commit be481ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/js/card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"/js/card.js": "/js/card.js?id=2e71b40f4dc29568566449fbbb2decb2"
"/js/card.js": "/js/card.js?id=52759fb84ae6045cf2111b25c1687975"
}
22 changes: 9 additions & 13 deletions resources/js/components/Card.vue
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<template>
<Card class="h-auto max-w-xs">
<Card class="h-auto max-w-md">
<div class="px-3 py-3">
<div class="mt-2" id="app">
<table align="center" class="w-full">
<tr>
<th class="tableHeader">City</th>
<th class="tableHeader">Time</th>
<tr class="timezoneRow">
<th class="uppercase tracking-wide font-bold text-xs">City</th>
<th class="uppercase tracking-wide font-bold text-xs">Time</th>
</tr>
<tr v-for="(tzInfo, tzRawName) in this.times">
<td class="timezoneRow">
<div>{{tzInfo.name}}</div>
<td>
<div><b>{{tzInfo.name}}</b></div>
<div v-if="card.timezoneDescriptions.hasOwnProperty(tzRawName)" class="text-xs text-grey mb-2">
{{card.timezoneDescriptions[tzRawName]}}
</div>
</td>
<td class="timezoneRow">
<td style="white-space: nowrap;">
<time>{{tzInfo.time}}</time>
<span v-if="tzInfo.night" class="night">🌙</span>
<span v-if="!tzInfo.night" class="day">☀️</span>
<span v-if="tzInfo.night" class="night ml-1">🌙</span>
<span v-if="!tzInfo.night" class="day ml-1">☀️</span>
</td>
</tr>
</table>
Expand All @@ -41,10 +41,6 @@
.timezoneRow {
height: 35px !important;
}
.tableHeader {
background-color: transparent !important;
}
</style>

<script>
Expand Down

0 comments on commit be481ea

Please sign in to comment.