-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
142 lines (128 loc) · 2.92 KB
/
styles.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
130
131
132
133
134
135
136
137
138
139
140
141
142
body {
margin: 0;
padding: 0;
height: 100vh;
/* 设置高度为视口高度 */
display: grid;
/* 使用 grid 布局 */
grid-template-rows: 1fr auto;
/* 第一行占用所有可用空间,第二行自动适应内容高度 */
overflow: hidden;
}
#ganttView {
width: 100%;
overflow: auto;
}
#footer {
width: 100%;
height: 30px;
/*设置固定高度*/
background-color: #ccc;
/* 设置背景色以区分 footer */
align-items: stretch;
/* 让子元素填满高度 */
padding-bottom: 1px;
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
}
#footer::-webkit-scrollbar {
display: none;
/* Chrome and Safari */
}
#footer {
scrollbar-width: thin;
/* Firefox */
-ms-overflow-style: none;
/* IE 10+ */
}
.dataBtn {
height: 100%;
border: none;
/* 去掉全部边框 */
border-right: 1px solid #491313;
/* 仅保留右边框 */
margin: 0;
/* 去掉与左右元素的间隔 */
padding: 0 10px;
/* 左右两边留 10px,因此总宽度为文字宽度 + 20px */
text-align: center;
/* 内部文字居中 */
background-color: transparent;
/* 可选:去掉背景颜色 */
flex-shrink: 0;
/* 防止收缩 */
}
#addBtn {
margin: 0;
height: 100%;
border: none;
font-size: 24px;
/* 加大字号 */
font-weight: bold;
/* 加粗 */
background-color: transparent;
/* 去掉背景颜色 */
}
#passDialog {
position: fixed;
/* Fixed position */
top: 0;
left: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
background-color: rgba(255, 255, 255, 1);
/* Black background with opacity */
z-index: 9999;
/* Make sure it does not overlap */
display: flex;
/* Use flexbox for centering contents */
justify-content: center;
align-items: center;
}
#sidebar {
position: fixed;
top: 40%;
right: -60px;
width: 60px;
height: 400px;
background-color: lightblue;
transition: right 0.5s ease;
border-top-left-radius: 60px;
border-bottom-left-radius: 60px;
transform: translateY(-50%);
z-index: 999;
}
#sidebar-button-panel {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.sidebar-button {
display: block;
width: 50px;
height: 30px;
background-color: lightblue;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
margin-bottom: 20px;
margin-right: 5px;
margin-left: 5px;
font-size: 8px;
font-weight: bold;
padding: 1px;
}
.sidebar-button:last-child {
margin-bottom: 0;
}
.sidebar-button:hover {
background-color: #04568d;
/* 颜色变淡 */
color: white;
/* 文字变白 */
border-radius: 5px;
}