-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: nice style and auto start/stop at
- Loading branch information
1 parent
3df0818
commit d1e45e4
Showing
6 changed files
with
120 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def safe_strftime(d, format_str='%Y-%m-%d %H:%M:%S') -> str: | ||
try: | ||
return d.strftime(format_str) | ||
except Exception: | ||
return '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
body { | ||
color: #555; | ||
} | ||
|
||
table { | ||
border-collapse: collapse; | ||
margin: 25px 0; | ||
font-size: 0.9em; | ||
font-family: sans-serif; | ||
min-width: 400px; | ||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
thead tr { | ||
background-color: #009879; | ||
color: #ffffff; | ||
text-align: left; | ||
} | ||
|
||
th, td { | ||
padding: 12px 15px; | ||
} | ||
|
||
tbody tr { | ||
border-bottom: 1px solid #dddddd; | ||
} | ||
|
||
tbody tr:nth-of-type(even) { | ||
background-color: #f3f3f3; | ||
} | ||
|
||
tbody tr:last-of-type { | ||
border-bottom: 2px solid #009879; | ||
} | ||
|
||
button { | ||
background-color: #555; | ||
border: none; | ||
color: #fff; | ||
font-size: 120%; | ||
padding: 12px 26px; | ||
text-align: center; | ||
text-decoration: none; | ||
display: inline-block; | ||
cursor: pointer; | ||
transition: background-color 0.5s; | ||
} | ||
|
||
button:hover { | ||
background-color: #999; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters