vue实现电商多条件筛选效果代码
代码语言:html
所属分类:搜索
代码描述:vue实现电商多条件筛选效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style>
:root {
--primary: #6b5bfd;
--greyLight: #e3ebf8;
--greyLight-2: #d7e3f1;
--greyLight-3: #b5c4da;
--greyDark: #a1a9c7;
--greyDark-2: #5a6181;
}
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 62.5%;
overflow-y: scroll;
font-family: 'Inter', sans-serif;
-webkit-font-smoothing: antialiased;
letter-spacing: .6px;
line-height: 1.4;
background: var(--greyLight);
}
.container {
min-height: 100vh;
width: 60rem;
margin: auto;
display: flex;
color: var(--greyDark-2);
}
.container li {
list-style: none;
}
.container button {
border: none;
font-family: inherit;
background: none;
cursor: pointer;
outline: none;
padding: 1rem;
}
.accordion {
width: 24rem;
height: 100%;
display: flex;
flex-direction: column;
margin: 6rem;
margin-right: 0;
cursor: pointer;
}
.accordion__content {
border-bottom: 1px solid var(--greyLight);
}
.accordion__title {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
font-weight: 700;
background: #ffffff;
position: relative;
z-index: 200;
}
.accordion__title h2 {
font-size: 1.4rem;
}
.accordion__title span {
transition: transform .5s ease;
}
.accordion__title span.rotate {
transform: rotateZ(-180deg);
transform-origin: 50% 50%;
}
.accordion__items {
display: flex;
flex-direction: column;
width: 100%;
font-size: 1.2rem;
list-style: none;
background: white;
z-index: 100;
}
.accordion__items.colours {
display: grid;
grid-template-columns: repeat(6, 4rem);
}
.accordion__items.colours button {
grid-column: 1 / 7;
}
.accordion__item {
color: var(--greyDark-2);
display: flex;
transition: all .3s ease;
}
.accordion__item:hov.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0