Skip to content

Commit

Permalink
Tweak the look of the timer and the marker tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Jun 1, 2024
1 parent 10611a5 commit c212f68
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/less/partials/_control-bar.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@active-controls: #bbb;
@monospace: Consolas, Menlo, 'Bitstream Vera Sans Mono', monospace;

div.ap-player {
div.ap-control-bar {
Expand Down Expand Up @@ -50,24 +51,20 @@ div.ap-control-bar {
}

span.ap-timer {
display: block;
display: flex;
flex: 0 0 auto;
min-width: 50px;
margin: 0 10px;
height: 100%;
text-align: center;
font-size: 14px;
font-size: 13px;
line-height: 100%;
cursor: default;

span {
font-size: inherit;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding-bottom: 0.075em;
box-sizing: border-box;
margin: auto;
font-family: @monospace;
}

.ap-time-remaining {
Expand Down Expand Up @@ -206,13 +203,14 @@ span.ap-marker-container span.ap-marker-tooltip {
visibility: hidden;
background-color: #333;
color: @active-controls;
font-family: @monospace;
text-align: center;
padding: 0.1em 0.6em 0.1em 0.6em;
padding: 0 0.5em;
border-radius: 4px;
position: absolute;
z-index: 1;
white-space: nowrap; /* Prevents the text from wrapping and makes sure the tooltip width adapts to the text length */
font-size: 14px;
font-size: 13px;
line-height: 2em;
bottom: 100%;
left: 50%;
Expand Down

0 comments on commit c212f68

Please sign in to comment.