Smaller screens
This commit is contained in:
@@ -118,7 +118,7 @@
|
|||||||
grid-column: span 7;
|
grid-column: span 7;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
font-size: 0.9em;
|
font-size: 1em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: #c5c6c7;
|
color: #c5c6c7;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
@@ -133,6 +133,15 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.consecutive-days-off li {
|
.consecutive-days-off li {
|
||||||
font-size: 0.9em;
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.month-name {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
.consecutive-days-off li {
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -552,7 +552,7 @@ export const ptoData = {
|
|||||||
GB: 20, // 28 total working days, 8-10 paid public holidays
|
GB: 20, // 28 total working days, 8-10 paid public holidays
|
||||||
|
|
||||||
// United States
|
// United States
|
||||||
US: 0, // No federal or state statutory minimum
|
US: 10, // No federal or state statutory minimum, we put 10 days as a default
|
||||||
|
|
||||||
// Uruguay
|
// Uruguay
|
||||||
UY: 20, // 20 days, 5 paid public holidays
|
UY: 20, // 20 days, 5 paid public holidays
|
||||||
|
|||||||
@@ -112,12 +112,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header h2 {
|
.header h2 {
|
||||||
font-size: 2em;
|
font-size: 2.3rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header p {
|
.header p {
|
||||||
font-size: 1em;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-box {
|
.content-box {
|
||||||
@@ -132,6 +132,7 @@
|
|||||||
|
|
||||||
.content-box p {
|
.content-box p {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
line-height: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
@@ -205,7 +206,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
font-size: 0.8em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-box {
|
.color-box {
|
||||||
@@ -257,7 +258,7 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 3px;
|
padding: 2px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||||
@@ -265,8 +266,8 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 30px;
|
width: 28px;
|
||||||
height: 30px;
|
height: 28px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -309,9 +310,9 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<h2>Stretch My Time Off</h2>
|
<h2>Stretch My Time Off</h2>
|
||||||
<p>
|
<p>
|
||||||
In {selectedCountry}, there are {holidays.length} public holidays in {year}.
|
In <strong>{selectedCountry}</strong>, there are <strong>{holidays.length}</strong> public holidays in <strong>{year}</strong>.
|
||||||
<br />
|
<br />
|
||||||
Let's stretch your time off from {daysOff} days to {consecutiveDaysOff.reduce((total, group) => total + group.totalDays, 0)} days.
|
Let's stretch your time off from <strong>{daysOff} days</strong> to <strong>{consecutiveDaysOff.reduce((total, group) => total + group.totalDays, 0)} days</strong>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -323,10 +324,9 @@
|
|||||||
and have
|
and have
|
||||||
<span class="arrow-controls">
|
<span class="arrow-controls">
|
||||||
<button on:click={() => { if (daysOff > 0) { daysOff--; updateHolidays(); } }} aria-label="Decrease days off">▼</button>
|
<button on:click={() => { if (daysOff > 0) { daysOff--; updateHolidays(); } }} aria-label="Decrease days off">▼</button>
|
||||||
<span class="bold">{daysOff} days</span>
|
<span class="bold">{daysOff}</span>
|
||||||
<button on:click={() => { daysOff++; updateHolidays(); }} aria-label="Increase days off">▲</button>
|
<button on:click={() => { daysOff++; updateHolidays(); }} aria-label="Increase days off">▲</button>
|
||||||
</span>of vacation in
|
</span>days off in<span class="arrow-controls">
|
||||||
<span class="arrow-controls">
|
|
||||||
<button on:click={() => { year--; updateHolidays(); }} aria-label="Previous year">▼</button>
|
<button on:click={() => { year--; updateHolidays(); }} aria-label="Previous year">▼</button>
|
||||||
<span class="bold">{year}</span>
|
<span class="bold">{year}</span>
|
||||||
<button on:click={() => { year++; updateHolidays(); }} aria-label="Next year">▲</button>
|
<button on:click={() => { year++; updateHolidays(); }} aria-label="Next year">▲</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user