css实现自适应表格卡片筛选效果代码

代码语言:html

所属分类:表格

代码描述:css实现自适应表格卡片筛选效果代码

代码标签: css 自适应 表格 卡片 筛选

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i" rel="stylesheet">



    <style>
        .modules__container {
          position: relative;
          margin: 0 auto;
          max-width: 1080px;
        }
        
        .info__header {
          font-weight: normal;
          position: absolute;
          overflow: hidden;
          clip: rect(0 0 0 0);
          height: 1px;
          width: 1px;
          margin: -1px;
          padding: 0;
          border: 0;
        }
        
        .modules__info {
          width: 100%;
        }
        
        .info__module {
          display: flex;
          flex-direction: column;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
          margin: 1em;
          max-height: 500px;
          transition-property: opacity, transform;
          transition-duration: 0.225s;
          transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
        }
        
        .info__module--hide {
          transform: scale(0);
          margin: 0 1em !important;
          max-height: 0;
          opacity: 0;
        }
        
        .modules__nav {
          margin: 0 1em;
          display: flex;
          flex-wrap: wrap;
          justify-content: center;
          align-items: center;
          align-content: space-around;
        }
        
        .nav__button {
          color: white;
          border: 0;
          height: 3em;
          font-size: 1em;
          text-align: center;
          transition: all 0.225s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .nav__button:focus {
          outline: 0;
          background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
        }
        
        .nav__button--selected {
          transform: scale(1.2);
          margin: 0.5em;
          transition-duration: 0.195s;
        }
        
        .nav__button--plain {
          background: #555;
        }
        
        /* START of td styling */
        .module__color {
          margin-bottom: 0.5em;
          width: 100%;
          height: 0.5em;
        }
        
        .color__shape {
          height: 100%;
        }
        
        .module__code {
          font-size: 1.5em;
        }
        
        .module__title {
          font-style: italic;
        }
        
        .module__code,
        .module__credit,
        .module__title,
        .module__exam {
          padding: 0 1rem;
        }
        
        .module__credit,
        .module__action {
          margin-top: 0.5em;
        }
        
        .module__credit::after {
          font-size: 1em;
          content: " credits";
        }
        
        .module__exam::before {
          font-size: 1em;
          content: "Exam on: ";
        }
        
        .module__exam {
          border-bottom: 1px solid #ddd;
        }
        
        .module__action {
          display: flex;
          margin: 0;
          height: 3em;
        }
        
        .action__button {
          backgr.........完整代码请登录后点击上方下载按钮下载查看

网友评论0