Skip to content

Commit

Permalink
Update cloud cover layout
Browse files Browse the repository at this point in the history
  • Loading branch information
patudom committed Jan 30, 2024
1 parent 827468f commit 35351a7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/CloudCover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ export default defineComponent({


<template>
<div class="cloud-cover-container my-2 p">
<div class="cloud-cover-container my-2 py-1">
<div>
<v-icon size="35">{{ cloudIcon }}</v-icon>
</div>

<div class="cloud-cover-label">
<div class="cloud-cover-label-text"> Historical median cloud cover: </div>
<div class="cloud-cover-label-text"> Median historical<br>cloud cover: </div>
<div class="cloud-cover-label-value">{{ cloudCoverFracToLabel }}</div>
</div>

Expand All @@ -88,21 +88,24 @@ export default defineComponent({
.cloud-cover-label {
display: flex;
flex-direction: column;
align-items: center;
padding-left: 10px;
}
.cloud-cover-label-text {
font-size: calc(1.1 * var(--default-font-size));
font-weight: normal;
width: 70%;
text-align: center;
}
.cloud-cover-label-value {
font-size: calc(1.5 * var(--default-font-size));
margin-left: 1rem;
/* no text wrapping */
white-space: nowrap;
font-weight: bold;
width: 30%;
}
</style>

0 comments on commit 35351a7

Please sign in to comment.