Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit641ce569f95f8af8a8eefe89da8f4cea632181e1 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-13 14:22:48 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-03-13 14:22:48 +0800
Filese96edce5bdd351d86623928c48495d5b122d2164 /src
Spectre-Dark-Gruvbox-641ce569f95f8af8a8eefe89da8f4cea632181e1.tar
Spectre-Dark-Gruvbox-641ce569f95f8af8a8eefe89da8f4cea632181e1.tar.gz
Spectre-Dark-Gruvbox-641ce569f95f8af8a8eefe89da8f4cea632181e1.zip
Parenteec526773f8853876945c4d8dd4020c420dd64d2 (diff)
Cleanup Calendars code
1 files changed, 6 insertions, 17 deletions
-rw-r--r--src/calendars.less23
diff --git a/src/calendars.less b/src/calendars.less
index 9494558..f069fb2 100644
--- a/src/calendars.less
+++ b/src/calendars.less
@@ -6,7 +6,6 @@
text-align: center;
.calendar-nav {
- align-content: space-between;
align-items: center;
background: @bg-color;
border-top-left-radius: @border-radius;
@@ -63,14 +62,14 @@
.control-transition();
cursor: pointer;
display: inline-block;
- height: 3.2rem;
+ height: 2.4rem;
line-height: 2rem;
- padding: .5rem;
+ padding: .1rem;
text-align: center;
text-decoration: none;
vertical-align: middle;
white-space: nowrap;
- width: 3.2rem;
+ width: 2.4rem;
&.date-today {
background: @secondary-color;
@@ -95,8 +94,8 @@
&.badge {
&::after {
position: absolute;
- top: .4rem;
- right: .4rem;
+ top: .2rem;
+ right: .2rem;
transform: translate(50%, -50%);
}
}
@@ -110,7 +109,7 @@
&::before {
background: @secondary-color;
content: "";
- height: 3.2rem;
+ height: 2.4rem;
position: absolute;
top: 50%;
left: 50%;
@@ -159,18 +158,8 @@
.date-item {
align-self: flex-end;
flex: 0 0 2.4rem;
- height: 2.4rem;
margin-right: .5rem;
margin-top: .5rem;
- padding: .1rem;
- width: 2.4rem;
-
- &.badge {
- &::after {
- top: .2rem;
- right: .2rem;
- }
- }
}
.calendar-range {