Skip to content

Commit

Permalink
(fix) timepicker styling improvements: mobile enhancements materializ…
Browse files Browse the repository at this point in the history
  • Loading branch information
gselderslaghs committed Oct 23, 2024
1 parent c631423 commit daec4e1
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions sass/components/_timepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/* Clock Digital Display */
.timepicker-digital-display {
width: 200px;
width: auto;
flex: 1 auto;
background-color: var(--md-sys-color-primary);;
padding: 10px;
Expand All @@ -27,11 +27,12 @@
.timepicker-text-container {
font-size: 4rem;
font-weight: bold;
text-align: center;
text-align: left;
color: var(--font-on-primary-color-medium);
font-weight: 400;
position: relative;
user-select: none;
padding: 1rem 1rem 1.5rem 1rem;

input[type=text]{
height: 4rem;
Expand All @@ -55,7 +56,7 @@ input[type=text].timepicker-input-hours {
}

input[type=text].timepicker-input-minutes {
width: 33%;
width: 36%;
margin-left: 3px;
}

Expand All @@ -66,11 +67,21 @@ input[type=text].text-primary {
.timepicker-display-am-pm {
font-size: 1.3rem;
position: absolute;
top: 1.2rem;
right: 1rem;
bottom: 1rem;
font-weight: 400;
bottom: auto;
}

.timepicker-modal .am-btn {
.timepicker-modal .pm-btn {
width: 3.6rem;
height: 2rem;
line-height: 2rem;
vertical-align: middle;
text-align: center;
}
}

/* Analog Clock Display */
.timepicker-analog-display {
Expand Down

0 comments on commit daec4e1

Please sign in to comment.