Skip to content

Commit

Permalink
fix start time for prominent programs, update css
Browse files Browse the repository at this point in the history
  • Loading branch information
joshinils committed Sep 5, 2020
1 parent 369684e commit d9610d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions models/programme.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def __init__(self, channelName: ChannelName, start: datetime, stop: datetime):
self.stop = datetime.strptime(stop, date_format)
self.data: Dict = {}
self.prominent = False
if self.start.hour > 20 and self.start.minute > 14:
if self.start.hour >= 20 and self.start.minute >= 1:
self.prominent = True
if self.start.hour > 21:
if self.start.hour >= 21:
self.prominent = True
self.onPrevDay = False

Expand Down
15 changes: 11 additions & 4 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ body {
}

.channel {
max-width: 300px;
max-width: 350px;
justify-content: space-between;
text-align: justify;
word-wrap: break-word;
Expand All @@ -50,7 +50,7 @@ body {
}

.onPrevDay {
background-color: #ddf;
background-color: #ededff;
}

.onDay {
Expand Down Expand Up @@ -90,16 +90,23 @@ body {
.start {
display: inline;
font-weight: bold;
font-size: 95%;
}

.prominent .start {
font-size: 130%;
}

.nonprominent .title {
font-weight: normal;
font-size: 95%;
font-weight: normal !important;
display: inline;
}

.prominent .title {
font-weight: bold;
display: inline;
font-size: 130%;
font-weight: normal;
}

.prominent .sub-title {
Expand Down

0 comments on commit d9610d9

Please sign in to comment.