-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathview.css
96 lines (93 loc) · 2.25 KB
/
view.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* @Author : 稻米鼠
* @Date : 2022-12-25 17:20:13
* @LastEditTime : 2023-01-12 19:39:52
* @FilePath : \ob-templates\Dataview\Year-View\view.css
* @Description :
*/
.dms-year-caption {
text-align: center;
font-size: 1.8em;
font-weight: 700;
line-height: 2.4;
}
.dms-year-months {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.dms-year-month-box {
padding: .5em;
flex-grow: 1;
}
.dms-year-month-box > .dms-year-month-name {
text-align: center;
font-weight: 200;
}
.dms-year-month-box > .dms-year-month-week-name {
border-bottom: 3px solid rgba(128, 128, 128, .3);
}
.dms-year-month-box > .dms-year-month-week-name,
.dms-year-month-box > .dms-year-month-tr {
display: flex;
flex-wrap: nowrap;
font-size: .5em;
}
.dms-year-month-box > .dms-year-month-tr:nth-child(3) {
justify-content: flex-end;
}
.dms-year-month-box > .dms-year-month-tr:last-child {
justify-content: flex-start;
}
.dms-year-month-box .dms-year-month-th,
.dms-year-month-box .dms-year-month-day {
width: 14.23%;
box-sizing: border-box;
padding: .5em .3em;
text-align: center;
color: var(--normal-text);
line-height: 1em;
white-space: nowrap;
}
.dms-year-month-box a.dms-year-month-day {
text-decoration: none;
position: relative;
display: flex;
z-index: 10;
aspect-ratio: 1 / 1;
justify-content: center;
align-items: center;
}
.dms-year-month-box a.dms-year-month-day:hover {
text-decoration: none;
}
.dms-year-month-box a.dms-year-month-day.dms-year-today {
color: #FCFCFC;
}
.dms-year-month-box a.dms-year-month-day.dms-year-today::before {
content: " ";
position: absolute;
width: 1.6em;
height: 1.6em;
border-radius: 2em;
left: 50%;
top: 50%;
z-index: -1;
transform: translate(-50%, -50%);
background-color: rgba(233, 72, 120, .4);
}
.dms-year-month-box a.dms-year-month-day > .dms-year-day-mark {
position: absolute;
left: 50%;
bottom: 0;
width: 1em;
height: 2px;
border-radius: 2px;
transform: translate(-50%, 0);
}
.dms-year-month-box .dms-year-month-weekday-0 {
color: rgb(233, 72, 120);
}
.dms-year-month-box .dms-year-month-weekday-6 {
color: rgb(51, 135, 204);
}