forked from kizx/onemoe-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathonemoe.scss
169 lines (144 loc) · 3.65 KB
/
onemoe.scss
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
:root {
font-size: 10px;
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei,
Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
}
$color-bt: #339999;
$color-box: rgba(92, 105, 221, 0.0);
$color-shadow: rgba(79, 93, 179, 0.3);
$color-bg: rgba(199, 226, 249, 0.0);
body {
background: #e0eafc;
background-image: linear-gradient(0deg, #cfdef3, #e0eafc);
min-height: 100vh;
margin: auto;
padding: 0 0.5rem;
max-width: 1024px;
display: flex;
flex-direction: column;
justify-content: center;
@import "scss/head"; //顶部
@import "scss/pop"; //弹出菜单
// 升级提示
>div[style="position:absolute;"] {
top: 2rem;
background-color: yellow;
border-radius: 2px;
padding: 5px;
}
// 网盘标题
>h1.title {
margin: auto;
font-size: 3rem;
a {
font-family: Cursive;
text-decoration: none;
color: rgb(50, 144, 231);
text-shadow: 2px 2px 5px rgba(50, 144, 231, 0.3);
transition: 0.2s;
&:hover {
text-shadow: none;
font-size: 3.5rem;
}
}
}
@import "scss/disk"; // 多盘
// head.md
div.list-wrapper#head-om-div,
div.list-wrapper#head-div {
div.list-header-container {
div.readme {
p {
font-size: large;
padding: 0 1rem;
margin: 0px 0;
color: #333;
}
}
}
}
// 主体
div.list-wrapper#list-div {
background-color: rgba(245, 245, 245, 0.3);
border-radius: 5px;
border: solid 5px $color-box;
font-size: 1.5rem;
margin: 5px 0;
&:hover {
box-shadow: 0 0 10px $color-shadow;
}
@import "scss/path"; //文件路径栏
@import "scss/table"; //表格部分
}
// 底部readme
div.list-wrapper#foot-om-div,
div.list-wrapper#readme-div {
background-color: rgba(245, 245, 245, 0.3);
width: 100%;
margin: 15px auto 0;
border-radius: 3px;
border: solid 5px $color-box;
box-sizing: border-box;
div.markdown-body {
padding: 5px;
}
&:hover {
box-shadow: 0 0 10px $color-shadow;
}
}
div.list-wrapper#foot-om-div {
margin-top: 20px;
.customfile {
padding: 10px;
}
}
// 利用时间撑开页面
>div[style="color: rgba(247,247,249,0);"] {
margin-top: 1rem;
flex: 1 0;
display: flex;
align-items: flex-end;
}
select[name="theme"] {
// -moz-appearance: none;
// -webkit-appearance: none;
border: solid 2px dimgrey;
border-radius: 4px;
background-color: gainsboro;
min-height: 25px;
max-width: 110px;
cursor: pointer;
font-size: 13px;
&:hover {
box-shadow: 0 0 10px #696969;
background-color: #e9e9e9;
}
}
}
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
width: 10px;
height: 110px;
background-color: #f5f5f5;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
background-color: #f5f5f5;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: #bdbdbd;
}
/*滑块效果*/
::-webkit-scrollbar-thumb:hover {
border-radius: 5px;
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: rgba(0, 0, 0, 0.4);
}