Fix Calander
This commit is contained in:
1 parent
ad6eded2cb
commit
4e4b3d60b1
2 files changed
+8
-6
No files matched your search
@@ -467,6 +467,8 @@ class Calendar(Box):
|
||||
"""Calendar widget displaying current month."""
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# Set Sunday as first day of week
|
||||
calendar.setfirstweekday(6) # 6 = Sunday
|
||||
super().__init__(
|
||||
name="calendar-widget",
|
||||
h_expand=True,
|
||||
|
||||
+6
-6
@@ -48,18 +48,18 @@
|
||||
}
|
||||
|
||||
#calendar-widget {
|
||||
margin: 12px;
|
||||
margin: 5px 10px 0px 10px;
|
||||
}
|
||||
|
||||
#calendar-month {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #1a87e6;
|
||||
margin-bottom: 8px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
#calendar-days-header {
|
||||
margin-bottom: 6px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
#calendar-day-header {
|
||||
@@ -67,7 +67,7 @@
|
||||
font-weight: 600;
|
||||
color: #ffffff;
|
||||
min-width: 18px;
|
||||
min-height: 16px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
#calendar-day-header-weekend {
|
||||
@@ -75,7 +75,7 @@
|
||||
font-weight: 600;
|
||||
color: #8e8d93;
|
||||
min-width: 18px;
|
||||
min-height: 16px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
#calendar-day {
|
||||
@@ -84,7 +84,7 @@
|
||||
font-weight: 500;
|
||||
color: #ffffff;
|
||||
min-width: 18px;
|
||||
min-height: 16px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
#calendar-day-weekend {
|
||||
|
||||
Reference in new issue
Block a user