书籍分类筛选搜素列表页面效果代码
代码语言:html
所属分类:布局界面
代码描述:书籍分类筛选搜素列表页面效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/foundation.min.css">
<style>
/*
* Imports
*/
@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700,900);
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:400,700);
/*
* Variables
*/
/* Single Line truncation */
/* Multiline truncation */
/*
* Global styles
*/
html,
body,
.main,
.main-container {
height: 100%;
}
body {
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #313131;
background: #ecf0f1;
}
.row {
max-width: 1024px;
}
/*
* Typography
*/
body,
p,
a,
li {
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px;
}
a {
color: #219e9a;
}
h2,
h3 {
margin-top: 6px;
margin-bottom: 6px;
font-size: 28px;
font-weight: bold;
letter-spacing: -1px;
color: #313131;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 24px;
}
h4 {
margin-bottom: 12px;
font-size: 22px;
line-height: 40px;
color: rgba(49, 49, 49, 0.7);
}
p:not(.author) {
font-size: 15px;
font-weight: 300;
line-height: 1.4;
}
p.author {
margin-bottom: 10px;
letter-spacing: -1px;
font-weight: 400;
color: rgba(49, 49, 49, 0.5);
}
/*
* Button
*/
a.button {
margin-bottom: 0;
padding: 8px 14px;
font-size: 14px;
font-weight: 600;
border-radius: 3px;
background-color: rgba(49, 49, 49, 0.5);
}
a.button:hover, a.button:focus {
background-color: #219e9a;
}
/*
* Header
*/
.page-header {
position: relative;
margin-bottom: 55px;
width: 100%;
border-bottom: 1px solid #d2d6d5;
background-color: #fff;
}
.main-logo {
display: inline-block;
padding: 1em;
width: auto;
}
.main-logo a.logo {
display: block;
width: 150px;
height: 40px;
font-size: 30px;
background-color: #fff;
-webkit-transition: background-color 250ms ease-out;
transition: background-color 250ms ease-out;
}
.main-logo a.logo:hover, .main-logo a.logo:focus {
background-color: #ecf0f1;
}
.menu-search {
float: right;
width: calc(100% - 200px);
}
/*
* Search Input
*/
.catalog-search {
position: relative;
margin: 0 20px;
max-width: 275px;
width: calc(100% - 2em);
vertical-align: top;
overflow: hidden;
float: right;
}
.input_field {
position: relative;
display: block;
float: right;
margin-top: 10px;
padding: 14px 7px 0;
width: 100%;
border: none;
border-radius: 0;
color: #313131;
font-weight: normal;
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
background: none;
box-shadow: none;
-webkit-appearance: none;
/* for box shadows to show on iOS */
}
.input_field:focus {
outline: none;
border: none;
background: none;
box-shadow: none;
-webkit-appearance: none;
}
.input_field:focus .input_label-content {
bottom: 20px;
}
.input_label {
position: absolute;
display: inline-block;
bottom: 0;
left: 0;
padding: 0 0.25em;
width: 100%;
height: calc(100% - 1em);
color: #d2d6d5;
font-weight: light;
font-size: 15px;
text-align: left;
pointer-events: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.input_label:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: calc(100% - 10px);
border-bottom: 1px solid rgba(49, 49, 49, 0.45);
}
.input_label:after {
content: '';
position: absolute;
top: 0;
left: 0;
margin-top: 2px;
width: 100%;
height: calc(100% - 10px);
border-bottom: 3px solid #219e9a;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
-webkit-transition: -webkit-transform 0.3s;
transition: -webkit-transform 0.3s;
transition: transform 0.3s;
transition: transform 0.3s, -webkit-transform 0.3s;
}
.input_label-content {
position: absolute;
width: 100%;
bottom: 14px;
}
.input_label-search {
position: relative;
display: block;
color: rgba(49, 49, 49, 0.45);
}
.input_label-search:after {
content: '\f002';
position: absolute;
top: 7px;
right: 5px;
font-family: 'fontawesome';
}
.input_field:focus + .input_label::after,
.input--filled .input_label::after {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.input_field:focus + .input_label .input_label-content,
.input--filled .input_label-content {
-webkit-animation: anim-1 0.3s forwards;
animation: anim-1 0.3s forwards;
}
@-webkit-keyframes anim-1 {
50% {
opacity: 0;
-webkit-transform: translate3d(1em, 0, 0);
transform: translate3d(1em, 0, 0);
}
51% {
opacity: 0;
-webkit-transform: translate3d(-1em, -40%, 0);
transform: translate3d(-1em, -40%, 0);
}
100% {
opacity: 1;
-webkit-transform: translate3d(0, -40%, 0);
transform: translate3d(0, -40%, 0);
}
}
@keyframes anim-1 {
50% {
opacity: 0;
bottom: 24px;
-webkit-transform: translate3d(5em, 0, 0);
transform: translate3d(5em, 0, 0);
}
51% {
opacity: 0;
bottom: 24px;
-webkit-transform: translate3d(-5em, -40%, 0);
transform: translate3d(-5em, -40%, 0);
}
100% {
opacity: 1;
bottom: 24px;
-webkit-transform: translate3d(0, -40%, 0);
transform: translate3d(0, -40%, 0);
}
}
/*
* Menu
*/
.main-navigation {
position: relative;
float: right;
margin: 16px 0;
padding: 0 20px;
height: 40px;
border-left: 1px solid #d2d6d5;
}
.main-navigation a {
display: inline-block;
line-height: 40px;
vertical-align: middle;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
color: #313131;
}
.main-navigation a:before {
content: '\f0c9';
position: relative;
display: inline-block;
padding-right: 10px;
font-family: "fontawesome";
font-size: 18px;
font-weight: 400;
color: rgba(49, 49, 49, 0.45);
vertical-align: middle;
}
/*
* Off Canvas Menu
*/
.main-container {
position: relative;
overflow-x: hidden;
}
.main-container.prevent-scroll, .main-container.nav-menu-open {
overflow: hidden;
}
.nav-menu {
position: absolute;
top: 0;
right: 0;
z-index: 100;
visibility: visible;
width: 300px;
height: 100%;
background: #219e9a;
-webkit-transition: all 0.5s;
transition: all 0.5s;
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.nav-menu:after {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.2);
content: '';
opacity: 1;
-webkit-transition: opacity 0.5s;
transition: opacity 0.5s;
display: none;
}
.nav-menu h2 {
margin: 0;
padding: 1em;
color: rgba(0, 0, 0, 0.4);
text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
font-weight: 300;
font-size: 2em;
}
.nav-menu ul {
margin: 0;
padding: 0;
list-style-type: none;
}
.nav-menu li a {
display: block;
padding: 1em 1em 1em 1.2em;
outline: none;
box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2);
color: #f3efe0;
text-transform: uppercase;
text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
letter-spacing: 1px;
font-weight: 400;
-webkit-transition: background 0.3s, box-shadow 0.3s;
transition: background 0.3s, box-shadow 0.3s;
}
.nav-menu li:first-child a {
box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2), inset 0 1px rgba(0, 0, 0, 0.2);
}
.nav-menu li:hover {
background: rgba(0, 0, 0, 0.2);
box-shadow: inset 0 -1px rgba(0, 0, 0, 0);
color: #fff;
}
.nav-menu-open .nav-menu {
visibility: visible;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.nav-menu-open .nav-menu:after {
width: 0;
height: 0;
opacity: 0;
-webkit-transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
}
/*
* book List
*/
.toolbar {
margin-bottom: 30px;
border-bottom: 1px solid #d2d6d5;
}
.toolbar select {
margin-bottom: 7px;
color: #313131;
font-size: 14px;
border: none;
background-color: transparent;
}
.toolbar .filter-options {
line-height: 40px;
}
.toolbar a.filter-item {
margin-right: 16px;
padding-bottom: 18px;
font-size: 14px;
color: #313131;
border-bottom: 0px solid transparent;
-webkit-transition: all 250ms ease-out;
transition: all 250ms ease-out;
}
.toolbar a.filter-item:last-child {
margin-right: 0;
}
.toolbar a.filter-item.active {
padding-bottom: 15px;
color: #219e9a;
font-weight: bold;
border-bottom: 3px solid #219e9a;
}
#grid {
margin-bottom: 60px;
}
.book-item {
margin: 15px 0;
padding: 15px;
list-style-type: none;
}
.book-item:after {
content: '';
position: absolute;
top: 0;
right: 15px;
width: calc(100% - 105px);
height: 100%;
border-radius: 3px;
box-shadow: 0 0 0 0 transparent;
background-color: rgba(255, 255, 255, 0);
z-index: -1;
-webkit-transition: all 250ms ease-out;
transition: all 250ms ease-out;
}
.book-item:hover:after {
box-shadow: 0px 1px 1px 1px rgba(210, 214, 213, 0.5);
background-color: #fff;
}
.book-item:hover .item-img img {
box-shadow: 0px 0px 10px 0px rgba(49, 49, 49, 0.25);
}
.book-item:hover a.button {
background-color: #219e9a;
}
.book-item:hover .bk-bookdefault {
-webkit-transform: rotate3d(0, 1, 0, 25deg);
transform: rotate3d(0, 1, 0, 25deg);
}
.book-item:hover .bk-back {
opacity: 1;
}
.book-item .item-img {
display: inline-block;
float: left;
padding-right: 30px;
}
.book-item .item-img img {
box-shadow: 0 0 0 0 transparent;
-webkit-transition: all 250ms ease-out;
transition: all 250ms ease-out;
}
.book-item .item-details {
padding-right: 30px;
}
.book-item h3 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.book-item p:not(.author) {
display: block;
display: -webkit-box;
height: 63px;
/* Fallback for non-webkit */
font-size: 15px;
line-height: 1.4;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
/*
* Book Rotate
*/
.bk-img {
position: relative;
display: inline-block;
float: left;
padding-right: 30px;
list-style: none;
/* Individual style & artwork */
}
.bk-img .bk-wrapper {
position: relative;
width: 150px;
height: 215px;
float: left;
z-index: 1;
-webkit-perspective: 1400px;
perspective: 1400px;
}
.bk-img .bk-wrapper:last-child {
margin-right: 0;
}
.bk-img .bk-book {
position: absolute;
width: 100%;
height: 215px;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-transition: -webkit-transform .5s;
transition: -webkit-transform .5s;
transition: transform .5s;
transition: transform .5s, -webkit-transform .5s;
}
.bk-img .bk-book > div,
.bk-img .bk-front > div {
display: block;
position: absolute;
}
.bk-img .bk-front {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-transform-origin: 0% 50%;
transform-origin: 0% 50%;
-webkit-transition: -webkit-transform .5s;
transition: -webkit-transform .5s;
transition: transform .5s;
transition: transform .5s, -w.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0