Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit75da4897680fcf04ee5a51b0187c31049187bb97 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-07 17:10:19 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-03-07 17:10:19 +0800
Filesb91c1e077ed5163775379b11287b5d184de1c0cd /src
Spectre-Dark-Gruvbox-75da4897680fcf04ee5a51b0187c31049187bb97.tar
Spectre-Dark-Gruvbox-75da4897680fcf04ee5a51b0187c31049187bb97.tar.gz
Spectre-Dark-Gruvbox-75da4897680fcf04ee5a51b0187c31049187bb97.zip
Parent1c7685d9742a600279d3a66a3b2efcdb393b7a85 (diff)
Improve calendar events style
1 files changed, 12 insertions, 7 deletions
-rw-r--r--src/calendars.less19
diff --git a/src/calendars.less b/src/calendars.less
index 0a1fc42..5f97b94 100644
--- a/src/calendars.less
+++ b/src/calendars.less
@@ -40,7 +40,6 @@
.calendar-date {
border: 0;
- overflow: hidden;
padding: .5rem;
.date-item {
@@ -140,10 +139,12 @@
padding: 0;
.calendar-date {
+ align-items: flex-end;
border-bottom: .1rem solid @border-color;
border-right: .1rem solid @border-color;
+ display: flex;
+ flex-direction: column;
height: 10rem;
- text-align: right;
&:nth-child(7n) {
border-right: 0;
@@ -154,14 +155,15 @@
}
.date-item {
+ flex: 0 0 2.4rem;
height: 2.4rem;
padding: .1rem;
width: 2.4rem;
&.badge {
&::after {
- top: .25rem;
- right: .25rem;
+ top: 0;
+ right: 0;
}
}
}
@@ -194,6 +196,10 @@
}
}
+ .calendar-events {
+ overflow-y: auto;
+ }
+
.calendar-event {
background: @secondary-color;
color: @primary-color;
@@ -201,10 +207,9 @@
font-size: 1.2rem;
.label-base();
margin: .2rem auto;
- overflow: hidden;
+ overflow-y: hidden;
text-align: left;
- text-overflow: ellipsis;
- white-space: nowrap;
+ width: 100%;
}
}
}