Adjust calendar headings (#3656)

This commit is contained in:
Jaco Greeff 2020-09-11 09:33:05 +02:00 committed by GitHub
parent d7f9a45f68
commit 000179c5ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 10 deletions

View File

@ -50,7 +50,7 @@ function Day ({ className, date, hasNextDay, now, scheduled, setNextDay, setPrev
return (
<div className={className}>
<h1>
<div>{date.getDate()} {monthRef.current[date.getMonth()]} {date.getFullYear()} {isToday && <DayTime />}</div>
<div className='highlight--color'>{date.getDate()} {monthRef.current[date.getMonth()]} {date.getFullYear()} {isToday && <DayTime />}</div>
<Button.Group>
<Button
icon='chevron-left'

View File

@ -44,7 +44,7 @@ function Month ({ className, hasNextMonth, lastDay, now, scheduled, setDay, setN
return (
<div className={className}>
<h1>
<div>{monthRef.current[dateMonth.getMonth()]} {dateMonth.getFullYear()}</div>
<div className='highlight--color'>{monthRef.current[dateMonth.getMonth()]} {dateMonth.getFullYear()}</div>
<Button.Group>
<Button
icon='chevron-left'

View File

@ -146,16 +146,14 @@ export default React.memo(styled(CalendarApp)`
flex-wrap: nowrap;
> div {
background-color: #fff;
border: 1px solid #eeecea;
border-radius: 0.25rem;
&+div {
margin-left: 1.5rem;
}
> div {
background-color: #fff;
border: 1px solid #eeecea;
border-radius: 0.25rem;
}
.ui--Button-Group {
margin-top: 0;
}
@ -165,7 +163,7 @@ export default React.memo(styled(CalendarApp)`
align-items: center;
display: flex;
justify-content: space-between;
padding: 0 0 0 1rem;
padding: 0.5rem 0.5rem 0 1rem;
.ui--Button {
font-size: 1rem;

View File

@ -54,7 +54,7 @@ export default React.memo(styled(Head)`
th {
font-family: sans-serif;
font-weight: 100;
padding: 0.75rem 1rem 0.5rem;
padding: 0.75rem 1rem 0.25rem;
text-align: right;
vertical-align: baseline;
white-space: nowrap;