fix(greeting/events): event text box styling

This commit is contained in:
alexsparkes
2026-01-26 10:21:51 +00:00
parent ab2b969772
commit d88ed2eedd
3 changed files with 45 additions and 9 deletions

View File

@@ -213,6 +213,30 @@ table {
} }
} }
input[type='text'] {
height: 56px;
padding: 0 16px;
font-size: 16px;
outline: none;
transition: 0.2s ease;
@include themed {
background: t($modal-sidebar);
border: 1px solid t($modal-sidebarActive);
border-radius: t($borderRadius);
color: t($color);
&:hover,
&:focus {
border-color: t($color);
}
&::placeholder {
color: t($subColor);
}
}
}
.subtitle { .subtitle {
@include themed { @include themed {
color: t($subColor); color: t($subColor);
@@ -264,7 +288,8 @@ table {
padding-left: 10px; padding-left: 10px;
padding-right: 5px; padding-right: 5px;
input[type='tel'] { input[type='tel'],
input[type='number'] {
background: none; background: none;
outline: none; outline: none;
border: none; border: none;

View File

@@ -211,11 +211,16 @@ const GreetingOptions = ({ currentSubSection, onSubSectionChange, sectionName })
</label> </label>
<input <input
id="day" id="day"
type="tel" type="number"
min="1"
max="31"
value={event.date} value={event.date}
onChange={(e) => { onChange={(e) => {
const updatedEvent = { ...event, date: parseInt(e.target.value, 10) }; const value = parseInt(e.target.value, 10);
updateEvent(index, updatedEvent); if (value >= 1 && value <= 31) {
const updatedEvent = { ...event, date: value };
updateEvent(index, updatedEvent);
}
}} }}
/> />
<hr /> <hr />
@@ -224,11 +229,16 @@ const GreetingOptions = ({ currentSubSection, onSubSectionChange, sectionName })
</label> </label>
<input <input
id="month" id="month"
type="tel" type="number"
min="1"
max="12"
value={event.month} value={event.month}
onChange={(e) => { onChange={(e) => {
const updatedEvent = { ...event, month: parseInt(e.target.value, 10) }; const value = parseInt(e.target.value, 10);
updateEvent(index, updatedEvent); if (value >= 1 && value <= 12) {
const updatedEvent = { ...event, month: value };
updateEvent(index, updatedEvent);
}
}} }}
/> />
</div> </div>

View File

@@ -288,7 +288,8 @@ button.quicklinks {
flex-flow: column; flex-flow: column;
align-items: center; align-items: center;
min-width: 100px; min-width: 100px;
background-image: linear-gradient(to left, rgb(0 0 0), transparent, rgb(0 0 0)), background-image:
linear-gradient(to left, rgb(0 0 0), transparent, rgb(0 0 0)),
url('https://media.cntraveller.com/photos/615ee85…/16:9/w_2580,c_limit/Best%20Cities%20in%20the%20World%20-%20Grid.jpg'); url('https://media.cntraveller.com/photos/615ee85…/16:9/w_2580,c_limit/Best%20Cities%20in%20the%20World%20-%20Grid.jpg');
transition: 0.8s; transition: 0.8s;
text-align: left; text-align: left;
@@ -605,7 +606,7 @@ button.quicklinks {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 8px; gap: 8px;
padding: 0; padding-bottom: 50px;
} }
.quicklink-wrapper .quicklinkstext { .quicklink-wrapper .quicklinkstext {