Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
海拥✘
HTML-CSS-JS
提交
78b78bba
H
HTML-CSS-JS
项目概览
海拥✘
/
HTML-CSS-JS
与 Fork 源项目一致
Fork自
inscode / HTML-CSS-JS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
HTML-CSS-JS
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
78b78bba
编写于
6月 21, 2023
作者:
6
628c8c471a7e4862742d8255
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Auto Commit
上级
ef53fd87
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
1476 addition
and
18 deletion
+1476
-18
index.html
index.html
+1390
-11
script.js
script.js
+32
-0
style.css
style.css
+54
-7
未找到文件。
index.html
浏览文件 @
78b78bba
此差异已折叠。
点击以展开。
script.js
浏览文件 @
78b78bba
// 初始化 isotope
var
$grid
=
$
(
'
.grid
'
).
isotope
({
itemSelector
:
'
.musour-icon
'
});
var
filters
=
{};
$
(
'
.filters
'
).
on
(
'
click
'
,
'
.button
'
,
function
(
event
)
{
var
$button
=
$
(
event
.
currentTarget
);
var
$buttonGroup
=
$button
.
parents
(
'
.button-group
'
);
var
filterGroup
=
$buttonGroup
.
attr
(
'
data-filter-group
'
);
filters
[
filterGroup
]
=
$button
.
attr
(
'
data-filter
'
);
var
filterValue
=
concatValues
(
filters
);
$grid
.
isotope
({
filter
:
filterValue
});
});
$
(
'
.button-group
'
).
each
(
function
(
i
,
buttonGroup
)
{
var
$buttonGroup
=
$
(
buttonGroup
);
$buttonGroup
.
on
(
'
click
'
,
'
button
'
,
function
(
event
)
{
$buttonGroup
.
find
(
'
.is-checked
'
).
removeClass
(
'
is-checked
'
);
var
$button
=
$
(
event
.
currentTarget
);
$button
.
addClass
(
'
is-checked
'
);
});
});
function
concatValues
(
obj
)
{
var
value
=
''
;
for
(
var
prop
in
obj
)
{
value
+=
obj
[
prop
];
}
return
value
;
}
\ No newline at end of file
style.css
浏览文件 @
78b78bba
html
{
height
:
100%
;
width
:
100%
;
:root
{
--accentOne
:
#A3B29F
;
--accentTwo
:
#D1D3B9
;
--accentThree
:
#D2BD76
;
--background
:
#eeeeee
;
--backgroundTwo
:
#e5e5e5
;
--text
:
#555555
;
--title
:
Oranienbaum
,
serif
;
--body
:
Open
Sans
,
sans
serif
;
}
body
{
margin
:
0px
!important
;
background-color
:
var
(
--background
);
}
a
{
text-decoration
:
none
!important
;
}
.musour
{
display
:
grid
;
height
:
100vh
;
width
:
100vw
;
grid-template-columns
:
280px
auto
;
overflow-y
:
hidden
;
}
.musour-left
{
padding
:
50px
;
color
:
var
(
--text
);
font
:
12px
var
(
--body
);
display
:
flex
;
height
:
calc
(
100vh
-
100px
);
flex-direction
:
column
;
}
.musour-title
{
font
:
40px
var
(
--title
);
line-height
:
40px
;
padding-top
:
3px
;
}
.musour-title
div
{
font-size
:
99px
;
margin-left
:
-2px
;
line-height
:
80px
;
color
:
#75d25d
;
}
.musour-title-2
{
background
:
linear-gradient
(
to
bottom
left
,
var
(
--accentOne
),
var
(
--accentTwo
));
font
:
700
10px
var
(
--body
);
line-height
:
10px
;
padding
:
14px
0px
16px
4px
;
text-align
:
center
;
color
:
var
(
--background
);
letter-spacing
:
4.2px
;
border-radius
:
10px
;
margin
:
15px
0px
30px
0px
;
cursor
:
pointer
;
transition
:
.3s
all
;
}
.musour-title-2
:hover
{
transform
:
scale
(
1.05
);
opacity
:
.8
;
}
.musour-blurb
{
text-align
:
justify
;
line-height
:
18px
;
}
.musour-filters
{
margin-top
:
30px
;
flex-grow
:
1
;
overflow
:
auto
;
}
.musour-filters
::-webkit-scrollbar-thumb
{
border-left
:
solid
15px
var
(
--background
);
background
:
linear-gradient
(
to
bottom
,
var
(
--accentOne
),
var
(
--accentTwo
));
}
.musour-filters
::-webkit-scrollbar
{
width
:
16px
;
}
.musour-filters
div
{
display
:
flex
;
flex-direction
:
column
;
}
.musour-filters
h1
{
background-color
:
var
(
--backgroundTwo
);
font
:
700
10px
var
(
--body
);
line-height
:
10px
;
padding
:
14px
0px
16px
4px
;
text-align
:
center
;
color
:
var
(
--text
);
letter-spacing
:
4.2px
;
border-radius
:
10px
;
margin
:
20px
0px
;
text-transform
:
uppercase
;
line-height
:
12px
;
}
.musour-filters
button
{
margin-top
:
0px
;
border
:
none
;
background
:
transparent
;
text-align
:
left
;
padding
:
0px
;
cursor
:
pointer
;
font
:
12px
var
(
--body
);
color
:
var
(
--text
);
line-height
:
20px
;
transition
:
.3s
all
;
}
.musour-filters
.is-checked
{
font-weight
:
700
!important
;
}
.musour-filters
button
::before
{
content
:
'+'
;
color
:
var
(
--accentOne
);
padding-right
:
10px
;
}
.musour-filters
button
:hover
{
color
:
var
(
--accentOne
);
}
.container
{
text-align
:
center
;
padding
:
64px
;
}
\ No newline at end of file
.musour-color
{
flex-direction
:
row
!important
;
flex-wrap
:
wrap
;
justify-content
:
center
;
gap
:
8px
;
}
.musour-color
button
{
height
:
20px
;
width
:
20px
;
background
:
linear-gradient
(
to
bottom
left
,
var
(
--accentOne
),
var
(
--accentTwo
));
border-radius
:
3px
;
}
.musour-color
.red
{
background
:
#B45758
!important
;
}
.musour-color
.orange
{
background
:
#AE8657
!important
;
}
.musour-color
.yellow
{
background
:
#AAA95F
!important
;
}
.musour-color
.green
{
background
:
#5C916B
!important
;
}
.musour-color
.blue
{
background
:
#6599B0
!important
;
}
.musour-color
.purple
{
background
:
#8564AD
!important
;
}
.musour-color
.pink
{
background
:
#B9619D
!important
;
}
.musour-color
.brown
{
background
:
#735E45
!important
;
}
.musour-color
.black
{
background
:
#555555
!important
;
}
.musour-color
.gray
{
background
:
#bbbbbb
!important
;
}
.musour-color
.white
{
background
:
var
(
--backgroundTwo
)
!important
;
}
.musour-color
button
::before
{
display
:
none
;
}
.musour-right
{
background
:
linear-gradient
(
to
bottom
left
,
var
(
--accentOne
),
#41c8fb
);
border-radius
:
50px
0px
0px
0px
;
padding
:
75px
;
min-width
:
490px
;
box-shadow
:
0px
0px
20px
rgba
(
44
,
44
,
44
,
.1
);
box-shadow
:
none
;
}
.musour-right
.grid
{
max-height
:
calc
(
100vh
-
150px
);
overflow
:
auto
;
}
.musour-right
.grid
::-webkit-scrollbar-thumb
{
background-color
:
var
(
--background
);
border-radius
:
5px
;
}
.musour-right
.grid
::-webkit-scrollbar
{
width
:
10px
;
}
.musour-icon
{
background-color
:
var
(
--background
);
padding
:
15px
;
border-radius
:
15px
;
width
:
100px
;
margin
:
0px
25px
25px
0px
;
box-shadow
:
5px
5px
10px
-3px
rgba
(
44
,
44
,
44
,
.05
);
height
:
110px
;
transform
:
scale
(
1
);
transition
:
.3s
all
;
}
.musour-icon
img
{
height
:
70px
;
width
:
100px
;
border-radius
:
5px
5px
0px
0px
;
margin-bottom
:
0px
!important
;
display
:
block
;
/* filter:grayscale(75%) contrast(100%); */
opacity
:
1
;
transition
:
.3s
all
;
}
.musour-icon
div
{
border-radius
:
0px
0px
5px
5px
;
background-color
:
var
(
--backgroundTwo
);
padding
:
10px
;
font
:
11px
var
(
--body
);
color
:
var
(
--text
);
text-transform
:
lowercase
;
line-height
:
13px
;
font-style
:
italic
;
height
:
20px
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
}
.musour-icon
div
b
{
display
:
block
;
font-style
:
normal
!important
;
color
:
var
(
--accentOne
);
text-transform
:
uppercase
;
}
.musour-icon
:hover
{
transform
:
scale
(
1
);
}
.musour-icon
:hover
img
{
opacity
:
1
;
filter
:
grayscale
(
0%
)
contrast
(
100%
)
!important
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录