-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathview.css
129 lines (129 loc) · 3.05 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/*
* @Author : 稻米鼠
* @Date : 2022-12-23 09:42:26
* @LastEditTime : 2022-12-23 10:26:44
* @FilePath : \ob-templates\Dataview\Month-View\view.css
* @Description :
*/
.dms-month-container {
display: flex;
flex-wrap: wrap;
}
.dms-month-table {
display: flex;
flex-direction: column;
width: 100%;
flex-grow: 0;
flex-shrink: 0;
line-height: 1.2em;
}
.dms-month-table > .dms-month-header > .dms-month-caption {
font-size: 1.6em;
line-height: 2.2em;
text-align: center;
}
.dms-month-tbody {
display: flex;
flex-direction: column;
}
.dms-month-table .dms-month-tr {
display: flex;
flex-grow: 1;
}
.dms-month-table .dms-month-th,
.dms-month-table .dms-month-td {
width: 14.23%;
text-align: center;
}
.dms-month-table .dms-month-th {
font-size: .8em;
}
.dms-month-table a.dms-month-td {
position: relative;
color: var(--normal-text);
text-decoration: none;
padding: .5em .1em;
display: flex;
flex-direction: column;
align-items: center;
}
.dms-month-table .dms-month-th:first-child,
.dms-month-table .dms-month-td:first-child {
color: rgb(233, 72, 120);
}
.dms-month-table .dms-month-th:last-child,
.dms-month-table .dms-month-td:last-child {
color: #3388cc;
}
.dms-month-table .dms-month-td.dms-other-month-day > * {
opacity: .3;
}
.dms-month-table .dms-month-td.dms-other-month-day > .dms-day-info {
opacity: 1;
}
.dms-month-table .dms-month-td.dms-today > .dms-day,
.dms-month-table .dms-month-td.dms-today > .dms-day-lunar {
position: relative;
z-index: 10;
}
.dms-month-table .dms-month-td.dms-today > .dms-day {
color: #FCFCFC;
}
.dms-month-table .dms-month-td.dms-today > .dms-day::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-month-table .dms-month-td > .dms-day-lunar {
font-size: .6em;
}
.dms-month-table .dms-month-td > .dms-day-mark-line {
margin: .1em 0;
width: .8em;
height: 3px;
border-radius: 3px;
}
.dms-month-table .dms-month-td > .dms-day-mark-sign {
text-align: center;
font-size: .5em;
opacity: .6;
}
.dms-month-table .dms-month-td > .dms-day-has-note {
background-color: rgba(51, 136, 204, .6);
}
.dms-month-table .dms-month-td > .dms-day-info {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
background-color: rgb(15, 40, 61);
border-radius: 3px;
box-shadow: 0 2px 12px rgba(128, 128,128, .3);
display: none;
font-size: .6em;
line-height: 1.4em;
color: #C3C3C3;
}
.dms-month-table .dms-month-td:hover > .dms-day-info {
display: flex;
flex-direction: column;
justify-content: center;
}
.dms-month-table .dms-month-td > .dms-day-info > * {
width: 100%;
}
.dms-month-table .dms-month-td > .dms-day-info > .dms-day-full-lunar {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: .5em;
}