Difference between revisions of "Template:Tongji Software/css/MenuStyle css"

 
(73 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
<html>
 
<html>
        <head>
 
            <title>Tongji Software | Pathlab</title>
 
            <link href="https://2019.igem.org/Template:Tongji_Software/css/ClearDefaultCss_css?action=raw&ctype=text/css" rel="stylesheet">
 
            <script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
 
  
            <script src="https://2019.igem.org/Template:Tongji_Software/js/modernizer_js?action=raw&ctype=text/javascript"></script> <!-- Modernizr -->
+
<head>
 +
    <title>Tongji Software | Pathlab</title>
 +
    <style>
 +
        *::-webkit-scrollbar {
 +
            display: none;
 +
        }
 +
       
 +
        #sideMenu, #top_title {
 +
            display: none;
 +
        }
 +
       
 +
        #content {
 +
            padding: 0px;
 +
            width: 90vw;
 +
            margin-top: -13px;
 +
            margin-left: 10px;
 +
        }
 +
       
  
            <link href="https://2019.igem.org/Template:Tongji_Software/dist/demo5_css?action=raw&ctype=text/css" rel="stylesheet">
+
        #bodyContent a[href ^="https://"] {
 
+
            padding: .4em 1em;
        <style type="text/css">
+
        }
                #sideMenu, #top_title {display:none;}       
+
         /*content style*/
                #content { padding:0px; width:120vw;  margin-top:-13px; margin-left:-0.4vw;}
+
                <!--主体背景-->
+
         </style>
+
 
          
 
          
         <style>
+
         html,
             /* --------------------------------
+
        body,
 +
        div,
 +
        span,
 +
        applet,
 +
        object,
 +
        iframe,
 +
        h1,
 +
        h2,
 +
        h3,
 +
        h4,
 +
        h5,
 +
        h6,
 +
        p,
 +
        blockquote,
 +
        pre,
 +
        a,
 +
        abbr,
 +
        acronym,
 +
        address,
 +
        big,
 +
        cite,
 +
        code,
 +
        del,
 +
        dfn,
 +
        em,
 +
        img,
 +
        ins,
 +
        kbd,
 +
        q,
 +
        s,
 +
        samp,
 +
        small,
 +
        strike,
 +
        strong,
 +
        sub,
 +
        sup,
 +
        tt,
 +
        var,
 +
        b,
 +
        u,
 +
        i,
 +
        center,
 +
        dl,
 +
        dt,
 +
        dd,
 +
        ol,
 +
        ul,
 +
        li,
 +
        fieldset,
 +
        form,
 +
        label,
 +
        legend,
 +
        table,
 +
        caption,
 +
        tbody,
 +
        tfoot,
 +
        thead,
 +
        tr,
 +
        th,
 +
        td,
 +
        article,
 +
        aside,
 +
        canvas,
 +
        details,
 +
        embed,
 +
        figure,
 +
        figcaption,
 +
        footer,
 +
        header,
 +
        hgroup,
 +
        menu,
 +
        nav,
 +
        output,
 +
        ruby,
 +
        section,
 +
        summary,
 +
        time,
 +
        mark,
 +
        audio,
 +
        video {
 +
            margin: 0;
 +
            padding: 0;
 +
            border: 0;
 +
            font-size: 100%;
 +
             /* font: inherit;*/
 +
            vertical-align: baseline;
 +
        }
 +
        /* HTML5 display-role reset for older browsers */
 
          
 
          
         Primary style
+
         article,
 +
        aside,
 +
        details,
 +
        figcaption,
 +
        figure,
 +
        footer,
 +
        header,
 +
        hgroup,
 +
        menu,
 +
        nav,
 +
        section,
 +
        main {
 +
            display: block;
 +
        }
 
          
 
          
         -------------------------------- */
+
         body {
             *, *:after, *:before {
+
             line-height: 1;
                -webkit-box-sizing: border-box;
+
        }
                -moz-box-sizing: border-box;
+
                box-sizing: border-box;
+
            }
+
 
          
 
          
            body {
+
        ol,
                font-size: 100%;
+
        ul {
                font-family: "Source Sans Pro", sans-serif;
+
             list-style: none;
                color: rgba(2, 23, 37, 0.7);
+
        }
                overflow: hidden;
+
                /*background: url("../img/cover.jpg") center no-repeat;*/
+
                -webkit-background-size: cover;
+
                background-size: cover;
+
                background-color:gray;
+
                padding:0;
+
             }
+
            body.overflow-hidden {
+
                /* when primary navigation is visible, the content in the background won't scroll */
+
                overflow: hidden;  
+
            }
+
 
          
 
          
            a {
+
        blockquote,
                color: white;
+
        q {
                text-decoration: none;
+
             quotes: none;
            }
+
        }
            a:hover, a:focus {
+
                transform: translateY(0);
+
             }
+
            a:visited {
+
                color:white;
+
            }
+
       
+
           
+
 
+
            /* --------------------------------
+
 
          
 
          
             Modules - reusable parts of our design
+
        blockquote:before,blockquote:after,q:before,q:after {
 +
             content: '';
 +
            content: none;
 +
        }
 
          
 
          
             -------------------------------- */
+
        table {
            .cd-container {
+
             border-collapse: collapse;
                /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
+
            border-spacing: 0;
                width: 90%;
+
        }
                max-width: 768px;
+
        /* -------------------------------- Primary style -------------------------------- */
                margin: 0 auto;
+
            }
+
            .cd-container:after {
+
                content: "";
+
                display: table;
+
                clear: both;
+
            }
+
 
          
 
          
             /* --------------------------------
+
        *,*:after,*:before {
 +
             -webkit-box-sizing: border-box;
 +
            -moz-box-sizing: border-box;
 +
            box-sizing: border-box;
 +
        }
 
          
 
          
             Main components
+
        body {
 +
             font-size: 100%;
 +
            font-family: "Source Sans Pro", sans-serif;
 +
            --color-bg: #1f174e;
 +
            --color-bg-2: #151436;
 +
            --color-bg-3: #060029;
 +
            background: linear-gradient(90deg, var(--color-bg-3), var(--color-bg-2), var(--color-bg), var(--color-bg-2), var(--color-bg-3));
 +
         
 +
            /*overflow: hidden;*/
 +
            /* 溢出隐藏 */
 +
            /*background: url("../img/cover.jpg") center no-repeat;*/
 +
            -webkit-background-size: cover;
 +
            background-size: cover;
 +
        }
 
          
 
          
             -------------------------------- */
+
        body.overflow-hidden {
             html, body {
+
             /* when primary navigation is visible, the content in the background won't scroll */
                height: 100%;
+
            overflow: hidden;
                 overflow-y : visible;
+
        }
 +
       
 +
        a {
 +
            color: white;
 +
            text-decoration: none;
 +
        }
 +
       
 +
        a:hover, a:visited {
 +
            color: white;
 +
            text-decoration: none;
 +
        }
 +
        /* -------------------------------- Modules - reusable parts of our design -------------------------------- */
 +
       
 +
        .cd-container {
 +
             /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
 +
            width: 90%;
 +
            max-width: 768px;
 +
            margin: 0 auto;
 +
        }
 +
       
 +
        .cd-container:after {
 +
            content: "";
 +
            display: table;
 +
            clear: both;
 +
        }
 +
        /* -------------------------------- Main components -------------------------------- */
 +
       
 +
        html,body {
 +
            height: 100%;
 +
        }
 +
       
 +
        .cd-header {
 +
            position: absolute;
 +
            top: 0;
 +
            left: 0;
 +
            /*响应式后最上条横杠的颜色*/
 +
            background: rgba(2, 23, 37, 0);
 +
            height: 50px;
 +
            width: 100%;
 +
            z-index: 3;
 +
            /*最上条横杠阴影*/
 +
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0);
 +
            -webkit-font-smoothing: antialiased;
 +
            -moz-osx-font-smoothing: grayscale;
 +
        }
 +
       
 +
        @media only screen and (min-width: 768px) {
 +
            .cd-header {
 +
                 height: 80px;
 +
                background: transparent;
 +
                box-shadow: none;
 
             }
 
             }
 +
        }
 
          
 
          
 +
        @media only screen and (min-width: 1170px) {
 
             .cd-header {
 
             .cd-header {
                 position:fixed;
+
                 -webkit-transition: background-color 0.3s;
                 top: 0;
+
                 -moz-transition: background-color 0.3s;
                 left: 0;
+
                 transition: background-color 0.3s;
                 /*响应式后最上条横杠的颜色*/
+
                  
                 background: rgba(2, 23, 37, 0);
+
                -webkit-transform: translate3d(0, 0, 0);
                 height: 50px;
+
                -moz-transform: translate3d(0, 0, 0);
                 width: 100%;
+
                -ms-transform: translate3d(0, 0, 0);
                 z-index: 3;
+
                -o-transform: translate3d(0, 0, 0);
                 /*最上条横杠阴影*/
+
                transform: translate3d(0, 0, 0);
                 box-shadow: 0 1px 2px rgba(0, 0, 0, 0);
+
                -webkit-backface-visibility: hidden;
                 -webkit-font-smoothing: antialiased;
+
                backface-visibility: hidden;
                 -moz-osx-font-smoothing: grayscale;
+
            }
 +
 
 +
            /*.cd-header .is-fixed {
 +
                /* when the user scrolls down, we hide the header right above the viewport */
 +
                position: fixed;
 +
                top: -80px;
 +
                 background-color: rgba(2, 23, 37, 0.96);
 +
                 -webkit-transition: -webkit-transform 0.3s;
 +
                 -moz-transition: -moz-transform 0.3s;
 +
                 transition: transform 0.3s;
 +
            } */
 +
            .cd-header .is-visible {
 +
                 /* if the user changes the scrolling direction, we show the header */
 +
                 -webkit-transform: translate3d(0, 100%, 0);
 +
                -moz-transform: translate3d(0, 100%, 0);
 +
                 -ms-transform: translate3d(0, 100%, 0);
 +
                 -o-transform: translate3d(0, 100%, 0);
 +
                transform: translate3d(0, 100%, 0);
 
             }
 
             }
            @media only screen and (min-width: 768px) {
+
          .cd-header .is-visible ul{
                .cd-header {
+
                  margin-left: 0vw;
                    height: 80px;
+
                    background: transparent;
+
                    box-shadow: none;
+
                }
+
 
             }
 
             }
             @media only screen and (min-width: 1170px) {
+
 
                .cd-header {
+
             .cd-header .menu-is-open {
                    -webkit-transition: background-color 0.3s;
+
                /* add a background color to the header when the navigation is open */
                    -moz-transition: background-color 0.3s;
+
                /*菜单打开后最上边那条横杠的颜色*/
                    transition: background-color 0.3s;
+
                background-color: rgba(2, 23, 37, 0);
                    /* Force Hardware Acceleration in WebKit */
+
                    -webkit-transform: translate3d(0, 0, 0);
+
                    -moz-transform: translate3d(0, 0, 0);
+
                    -ms-transform: translate3d(0, 0, 0);
+
                    -o-transform: translate3d(0, 0, 0);
+
                    transform: translate3d(0, 0, 0);
+
                    -webkit-backface-visibility: hidden;
+
                    backface-visibility: hidden;
+
                }
+
              /* .cd-header.is-fixed {
+
                    /* when the user scrolls down, we hide the header right above the viewport */
+
                    position: fixed;
+
                    /* top: -80px; */
+
                    background-color: rgba(2, 23, 37, 0.96);
+
                    -webkit-transition: -webkit-transform 0.3s;
+
                    -moz-transition: -moz-transform 0.3s;
+
                    transition: transform 0.3s;
+
                }*/
+
                .cd-header.is-visible {
+
                    /* if the user changes the scrolling direction, we show the header */
+
                    -webkit-transform: translate3d(0, 100%, 0);
+
                    -moz-transform: translate3d(0, 100%, 0);
+
                    -ms-transform: translate3d(0, 100%, 0);
+
                    -o-transform: translate3d(0, 100%, 0);
+
                    transform: translate3d(0, 100%, 0);
+
                }
+
                .cd-header.menu-is-open {
+
                    /* add a background color to the header when the navigation is open */
+
                    /*菜单打开后最上边那条横杠的颜色*/
+
                    background-color: rgba(2, 23, 37, 0);
+
                }
+
 
             }
 
             }
 +
        }
 
          
 
          
 +
        .cd-logo {
 +
            display: block;
 +
            position: absolute;
 +
            top: 50%;
 +
            bottom: auto;
 +
            -webkit-transform: translateY(-50%);
 +
            -moz-transform: translateY(-50%);
 +
            -ms-transform: translateY(-50%);
 +
            -o-transform: translateY(-50%);
 +
            transform: translateY(-50%);
 +
            left: .875em;
 +
        }
 +
       
 +
        .cd-logo img {
 +
            display: block;
 +
        }
 +
       
 +
        @media only screen and (min-width: 768px) {
 
             .cd-logo {
 
             .cd-logo {
                display: block;
+
                 left: 2.6em;
                position: absolute;
+
                top: 50%;
+
                bottom: auto;
+
                /*-webkit-transform: translateY(-50%);
+
                -moz-transform: translateY(-50%);
+
                -ms-transform: translateY(-50%);
+
                -o-transform: translateY(-50%);
+
                transform: translateY(-50%);*/
+
                 left: .875em;
+
 
             }
 
             }
             .cd-logo img {
+
        }
 +
       
 +
        .cd-secondary-nav {
 +
             position: absolute;
 +
            top: 50%;
 +
            bottom: auto;
 +
            -webkit-transform: translateY(-50%);
 +
            -moz-transform: translateY(-50%);
 +
            -ms-transform: translateY(-50%);
 +
            -o-transform: translateY(-50%);
 +
            transform: translateY(-50%);
 +
            right: 10em;
 +
            /* hidden on small devices */
 +
            display: none;
 +
        }
 +
       
 +
        .cd-secondary-nav li {
 +
            display: inline-block;
 +
            margin-left: 2.2em;
 +
        }
 +
       
 +
        .cd-secondary-nav a {
 +
            display: inline-block;
 +
            color: white;
 +
            text-transform: uppercase;
 +
            font-weight: 700;
 +
        }
 +
       
 +
        @media only screen and (min-width: 768px) {
 +
            .cd-secondary-nav {
 
                 display: block;
 
                 display: block;
 
             }
 
             }
            @media only screen and (min-width: 768px) {
+
        }
                .cd-logo {
+
                    left: 2.6em;
+
                }
+
            }
+
 
          
 
          
             .cd-secondary-nav {
+
        .cd-primary-nav-trigger {
                position: absolute;
+
             position: fixed;
                 top: 50%;
+
            right: 0;
 +
            top: 5vh;
 +
            height: 100%;
 +
            width: 50px;
 +
            /*响应缩进后三条杠的颜色*/
 +
            background-color: rgba(2, 23, 37, 0);
 +
        }
 +
       
 +
        #cd-primary-naver a:hover {
 +
            background-color: white;
 +
            color: black;
 +
            text-decoration: none;
 +
        }
 +
        #cd-primary-naver ul{
 +
                margin-left:7vw;
 +
        }
 +
        #cd-primary-naver .is-visible{
 +
              margin-left:-5vw;
 +
        }
 +
       
 +
        .cd-primary-nav-trigger .cd-menu-icon {
 +
            /* this span is the central line of the menu icon */
 +
            display: inline-block;
 +
            position: fixed;
 +
         
 +
            bottom: auto;
 +
            right: auto;
 +
            -webkit-transform: translateX(-50%) translateY(-50%);
 +
            -moz-transform: translateX(-50%) translateY(-50%);
 +
            -ms-transform: translateX(-50%) translateY(-50%);
 +
            -o-transform: translateX(-50%) translateY(-50%);
 +
            transform: translateX(-50%) translateY(-50%);
 +
            width: 28px;
 +
            height: 2px;
 +
            background-color: white;
 +
            -webkit-transition: background-color 0.3s;
 +
            -moz-transition: background-color 0.3s;
 +
            transition: background-color 0.3s;
 +
            /* these are the upper and lower lines in the menu icon */
 +
        }
 +
       
 +
        .cd-primary-nav-trigger .cd-menu-icon::before,
 +
        .cd-primary-nav-trigger .cd-menu-icon:after {
 +
            content: '';
 +
            width: 100%;
 +
            height: 100%;
 +
            position: absolute;
 +
            background-color: white;
 +
            right: 0;
 +
            -webkit-transition: -webkit-transform .3s, top .3s, background-color 0s;
 +
            -moz-transition: -moz-transform .3s, top .3s, background-color 0s;
 +
            transition: transform .3s, top .3s, background-color 0s;
 +
        }
 +
       
 +
        .cd-primary-nav-trigger .cd-menu-icon::before {
 +
            top: -5px;
 +
        }
 +
       
 +
        .cd-primary-nav-trigger .cd-menu-icon::after {
 +
            top: 5px;
 +
        }
 +
       
 +
        .cd-primary-nav-trigger .cd-menu-icon.is-clicked {
 +
            background-color: rgba(255, 255, 255, 0);
 +
        }
 +
       
 +
        .cd-primary-nav-trigger .cd-menu-icon.is-clicked::before,
 +
        .cd-primary-nav-trigger .cd-menu-icon.is-clicked::after {
 +
            background-color: white;
 +
        }
 +
       
 +
        .cd-primary-nav-trigger .cd-menu-icon.is-clicked::before {
 +
            top: 0;
 +
            -webkit-transform: rotate(135deg);
 +
            -moz-transform: rotate(135deg);
 +
            -ms-transform: rotate(135deg);
 +
            -o-transform: rotate(135deg);
 +
            transform: rotate(135deg);
 +
        }
 +
       
 +
        .cd-primary-nav-trigger .cd-menu-icon.is-clicked::after {
 +
            top: 0;
 +
            -webkit-transform: rotate(225deg);
 +
            -moz-transform: rotate(225deg);
 +
            -ms-transform: rotate(225deg);
 +
            -o-transform: rotate(225deg);
 +
            transform: rotate(225deg);
 +
        }
 +
       
 +
        @media only screen and (min-width: 768px) {
 +
            .cd-primary-nav-trigger {
 +
                width: 100px;
 +
                padding-left: 1em;
 +
                background-color: transparent;
 +
                height: 30px;
 +
                line-height: 30px;
 +
                /*菜单栏整体位置*/
 +
                left: -1.5vw;
 +
                 top: 11vh;
 
                 bottom: auto;
 
                 bottom: auto;
                 /*-webkit-transform: translateY(-50%);
+
                 -webkit-transform: translateY(-50%);
 
                 -moz-transform: translateY(-50%);
 
                 -moz-transform: translateY(-50%);
 
                 -ms-transform: translateY(-50%);
 
                 -ms-transform: translateY(-50%);
 
                 -o-transform: translateY(-50%);
 
                 -o-transform: translateY(-50%);
                 transform: translateY(-50%);*/
+
                 transform: translateY(-50%);
                right: 10em;
+
                /* hidden on small devices */
+
                display: none;
+
            }
+
            .cd-secondary-nav li {
+
                display: inline-block;
+
                margin-left: 2.2em;
+
            }
+
            .cd-secondary-nav a {
+
                display: inline-block;
+
                color: white;
+
                text-transform: uppercase;
+
                font-weight: 700;
+
            }
+
            @media only screen and (min-width: 768px) {
+
                .cd-secondary-nav {
+
                    display: block;
+
                }
+
            }
+
       
+
            .cd-primary-nav-trigger {
+
                position: absolute;
+
                right: 0;
+
                top: 0;
+
                height: 100%;
+
                width: 50px;
+
                /*响应缩进后三条杠的颜色*/
+
                background-color: rgba(2, 23, 37, 0);
+
 
             }
 
             }
            .cd-primary-nav-trigger:hover{
 
                position: fixed;
 
                transform: translateY(0);
 
            }
 
           
 
 
             .cd-primary-nav-trigger .cd-menu-icon {
 
             .cd-primary-nav-trigger .cd-menu-icon {
                /* this span is the central line of the menu icon */
+
                 left: auto;
                display: inline-block;
+
                 right: 1em;
                position: absolute;
+
                 -webkit-transform: translateX(0) translateY(-50%);
                 left: 50%;
+
                 -moz-transform: translateX(0) translateY(-50%);
                top: 50%;
+
                 -ms-transform: translateX(0) translateY(-50%);
                bottom: auto;
+
                 -o-transform: translateX(0) translateY(-50%);
                 right: auto;
+
                 transform: translateX(0) translateY(-50%);
                 /*-webkit-transform: translateX(-50%) translateY(-50%);
+
                 -moz-transform: translateX(-50%) translateY(-50%);
+
                 -ms-transform: translateX(-50%) translateY(-50%);
+
                 -o-transform: translateX(-50%) translateY(-50%);
+
                transform: translateX(-50%) translateY(-50%); */
+
                width: 28px;
+
                height: 2px;
+
                background-color: white;
+
                -webkit-transition: background-color 0.3s;
+
                -moz-transition: background-color 0.3s;
+
                transition: background-color 0.3s;
+
                /* these are the upper and lower lines in the menu icon */
+
            }
+
            .cd-primary-nav-trigger .cd-menu-icon::before, .cd-primary-nav-trigger .cd-menu-icon:after {
+
                content: '';
+
                width: 100%;
+
                height: 100%;
+
                position: absolute;
+
                background-color: white;
+
                right: 0;
+
                -webkit-transition: -webkit-transform .3s, top .3s, background-color 0s;
+
                -moz-transition: -moz-transform .3s, top .3s, background-color 0s;
+
                transition: transform .3s, top .3s, background-color 0s;
+
            }
+
            .cd-primary-nav-trigger .cd-menu-icon::before {
+
                top: -5px;
+
            }
+
            .cd-primary-nav-trigger .cd-menu-icon::after {
+
                top: 5px;
+
            }
+
            .cd-primary-nav-trigger .cd-menu-icon.is-clicked {
+
                background-color: rgba(255, 255, 255, 0);
+
            }
+
            .cd-primary-nav-trigger .cd-menu-icon.is-clicked::before, .cd-primary-nav-trigger .cd-menu-icon.is-clicked::after {
+
                background-color: white;
+
            }
+
            .cd-primary-nav-trigger .cd-menu-icon.is-clicked::before {
+
                top: 0;
+
                -webkit-transform: rotate(135deg);
+
                -moz-transform: rotate(135deg);
+
                -ms-transform: rotate(135deg);
+
                -o-transform: rotate(135deg);
+
                transform: rotate(135deg);
+
            }
+
            .cd-primary-nav-trigger .cd-menu-icon.is-clicked::after {
+
                top: 0;
+
                -webkit-transform: rotate(225deg);
+
                -moz-transform: rotate(225deg);
+
                -ms-transform: rotate(225deg);
+
                -o-transform: rotate(225deg);
+
                transform: rotate(225deg);
+
            }
+
            @media only screen and (min-width: 768px) {
+
                .cd-primary-nav-trigger {
+
                    width: 100px;
+
                    padding-left: 0em;
+
                    background-color: transparent;
+
                    height: 30px;
+
                    line-height: 30px;
+
                    /*菜单栏整体位置*/
+
                    left: 0vw;
+
                    top: 10vh;
+
                    bottom: auto;
+
                    /*-webkit-transform: translateY(-50%);
+
                    -moz-transform: translateY(-50%);
+
                    -ms-transform: translateY(-50%);
+
                    -o-transform: translateY(-50%);
+
                    transform: translateY(-50%); */
+
                 }
+
                .cd-primary-nav-trigger .cd-menu-icon {
+
                    left: auto;
+
                    right: 1em;
+
                    /*-webkit-transform: translateX(0) translateY(-50%);
+
                    -moz-transform: translateX(0) translateY(-50%);
+
                    -ms-transform: translateX(0) translateY(-50%);
+
                    -o-transform: translateX(0) translateY(-50%);
+
                    transform: translateX(0) translateY(-50%);*/
+
                }
+
 
             }
 
             }
 +
        }
 
          
 
          
 +
        .cd-primary-nav {
 +
            /* by default it's hidden - on top of the viewport */
 +
            position: fixed;
 +
            height: 100%;
 +
            width: 75%;
 +
            margin: 10vh 0vw 0vh 0vw;
 +
            font-family: "Cambria";
 +
            /*菜单下来后的背景色*/
 +
            /*background: rgba(2, 23, 37, 0.8);*/
 +
        --color-bg: #1f174e;
 +
        --color-bg-2: #151436;
 +
        --color-bg-3: #060029;
 +
        background: linear-gradient(90deg, var(--color-bg-3), var(--color-bg-2), var(--color-bg), var(--color-bg-2), var(--color-bg-3));
 +
            box-shadow:10px 0px 15px rgba(0,0,0,0.5);
 +
            z-index: 2;
 +
            text-align: center;
 +
            /*padding: 10vh 0 0 0;*/
 +
            -webkit-backface-visibility: hidden;
 +
            backface-visibility: hidden;
 +
            overflow: auto;
 +
            /* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */
 +
            -webkit-overflow-scrolling: touch;
 +
            -webkit-transform: translateX(-92%);
 +
            -moz-transform: translateX(-100%);
 +
            -ms-transform: translateX(-100%);
 +
            -o-transform: translateX(-100%);
 +
            transform: translateX(-100%);
 +
            -webkit-transition-property: -webkit-transform;
 +
            -moz-transition-property: -moz-transform;
 +
            transition-property: transform;
 +
            -webkit-transition-duration: 0.4s;
 +
            -moz-transition-duration: 0.4s;
 +
            transition-duration: 0.4s;
 +
        }
 +
       
 +
        .cd-primary-nav li {
 +
            font-size: 22px;
 +
            font-size: 1.375rem;
 +
            font-weight: 300;
 +
            -webkit-font-smoothing: antialiased;
 +
            -moz-osx-font-smoothing: grayscale;
 +
            margin: .2em 0;
 +
            text-transform: capitalize;
 +
            /*text-transform: uppercase;*/
 +
        }
 +
       
 +
        .cd-primary-nav a {
 +
            display: inline-block;
 +
            padding: .4em 1em;
 +
            border-radius: 0.25em;
 +
            -webkit-transition: background 0.2s;
 +
            -moz-transition: background 0.2s;
 +
            transition: background 0.2s, color 0.2s;
 +
        }
 +
       
 +
        .no-touch .cd-primary-nav a:hover {
 +
            background-color: white;
 +
            color: black;
 +
        }
 +
       
 +
        .cd-primary-nav .cd-label {
 +
            color: rgba(200, 40, 255, 1);
 +
            /*color: rgba(142,255,255,1);*/
 +
            text-transform: uppercase;
 +
            font-weight: 700;
 +
            font-size: 14px;
 +
            font-size: 0.875rem;
 +
            margin: 2.4em 0 .8em;
 +
        }
 +
       
 +
        .cd-primary-nav .cd-social {
 +
            display: inline-block;
 +
            margin: 0 .4em;
 +
        }
 +
       
 +
        .cd-primary-nav .cd-social a {
 +
            width: 44px;
 +
            height: 44px;
 +
            padding: 0;
 +
            background-image: url("https://static.igem.org/mediawiki/2019/9/93/T--Tongji_Software--menu_cd-socials.svg");
 +
            background-repeat: no-repeat;
 +
            /* image replacement */
 +
            overflow: hidden;
 +
            text-indent: 100%;
 +
            white-space: nowrap;
 +
        }
 +
       
 +
        .cd-primary-nav .cd-facebook a {
 +
            background-position: 0 0;
 +
        }
 +
       
 +
        .cd-primary-nav .cd-instagram a {
 +
            background-position: -44px 0;
 +
        }
 +
       
 +
        .cd-primary-nav .cd-dribbble a {
 +
            background-position: -88px 0;
 +
        }
 +
       
 +
        .cd-primary-nav .cd-twitter a {
 +
            background-position: -132px 0;
 +
        }
 +
      .cd-primary-nav.is-visible {
 +
            -webkit-transform: translateY(0);
 +
            -moz-transform: translateY(0);
 +
            -ms-transform: translateY(0);
 +
            -o-transform: translateY(0);
 +
            transform: translateY(0);
 +
        }
 +
       
 +
       
 +
        @media only screen and (min-width: 768px) {
 
             .cd-primary-nav {
 
             .cd-primary-nav {
                /* by default it's hidden - on top of the viewport */
+
                 padding: 80px 0;
              color:white;
+
                position: fixed;
+
                margin:0vh 0vw 0vh 0vw;
+
                height: 100%;
+
                width: 100%;
+
                font-family: "Cambria";
+
                /*菜单下来后的背景色*/
+
                /*background: rgba(2, 23, 37, 0.8);*/
+
                background: rgba(0, 0, 0, 0.7);
+
                z-index: 2;
+
                text-align: center;
+
                 padding: 50px 0;
+
                -webkit-backface-visibility: hidden;
+
                backface-visibility: hidden;
+
                overflow: auto;
+
                /* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */
+
                -webkit-overflow-scrolling: touch;
+
                -webkit-transform: translateY(-100%);
+
                -moz-transform: translateY(-100%);
+
                -ms-transform: translateY(-100%);
+
                -o-transform: translateY(-100%);
+
                transform: translateY(-100%);
+
                -webkit-transition-property: -webkit-transform;
+
                -moz-transition-property: -moz-transform;
+
                transition-property: transform;
+
                -webkit-transition-duration: 0.4s;
+
                -moz-transition-duration: 0.4s;
+
                transition-duration: 0.4s;
+
 
             }
 
             }
 +
        }
 +
       
 +
        @media only screen and (min-width: 1170px) {
 
             .cd-primary-nav li {
 
             .cd-primary-nav li {
                 font-size: 22px;
+
                 font-size: 30px;
                 font-size: 1.375rem;
+
                 font-size: 1.875rem;
                font-weight: 300;
+
                -webkit-font-smoothing: antialiased;
+
                -moz-osx-font-smoothing: grayscale;
+
                margin: .2em 0;
+
                text-transform: capitalize;
+
                /*text-transform: uppercase;*/
+
            }
+
            .cd-primary-nav a {
+
                display: inline-block;
+
                padding: .4em 1em;
+
                border-radius: 0.25em;
+
                -webkit-transition: background 0.2s;
+
                -moz-transition: background 0.2s;
+
                transition: background 0.2s,color 0.2s;
+
            }
+
            .no-touch .cd-primary-nav a:hover {
+
                background-color: white;
+
                color: black;
+
            }
+
          #cd-primary-naver a:hover{
+
                background-color: white;
+
                color: black;
+
 
             }
 
             }
 
             .cd-primary-nav .cd-label {
 
             .cd-primary-nav .cd-label {
                color: rgba(200,40,255,1);
+
                 font-size: 16px;
                /*color: rgba(142,255,255,1);*/
+
                 font-size: 1rem;
                text-transform: uppercase;
+
                font-weight: 700;
+
                 font-size: 14px;
+
                 font-size: 0.875rem;
+
                margin: 2.4em 0 .8em;
+
            }
+
            .cd-primary-nav .cd-social {
+
                display: inline-block;
+
                margin: 0 .4em;
+
            }
+
            .cd-primary-nav .cd-social a {
+
                width: 44px;
+
                height: 44px;
+
                padding: 0;
+
                background-image: url("../img/cd-socials.svg");
+
                background-repeat: no-repeat;
+
                /* image replacement */
+
                overflow: hidden;
+
                text-indent: 100%;
+
                white-space: nowrap;
+
            }
+
            .cd-primary-nav .cd-facebook a {
+
                background-position: 0 0;
+
            }
+
            .cd-primary-nav .cd-instagram a {
+
                background-position: -44px 0;
+
            }
+
            .cd-primary-nav .cd-dribbble a {
+
                background-position: -88px 0;
+
            }
+
            .cd-primary-nav .cd-twitter a {
+
                background-position: -132px 0;
+
            }
+
            .cd-primary-nav.is-visible {
+
                -webkit-transform: translateY(0);
+
                -moz-transform: translateY(0);
+
                -ms-transform: translateY(0);
+
                -o-transform: translateY(0);
+
                transform: translateY(0);
+
            }
+
            @media only screen and (min-width: 768px) {
+
                .cd-primary-nav {
+
                    padding: 80px 0;
+
                }
+
            }
+
            @media only screen and (min-width: 1170px) {
+
                .cd-primary-nav li {
+
                    font-size: 30px;
+
                    font-size: 1.875rem;
+
                }
+
                .cd-primary-nav .cd-label {
+
                    font-size: 16px;
+
                    font-size: 1rem;
+
                }
+
 
             }
 
             }
 +
        }
 
          
 
          
             @media only screen and (min-width: 768px) {
+
        .cd-intro {
                .cd-intro h1 {
+
             position: relative;
                    font-size: 30px;
+
            height: 100%;
                    font-size: 1.875rem;
+
            background: url("../img/cd-background-img.jpg") no-repeat center center;
                }
+
            background-size: cover;
             }
+
            z-index: 1;
            @media only screen and (min-width: 1170px) {
+
            -webkit-font-smoothing: antialiased;
                .cd-intro {
+
            -moz-osx-font-smoothing: grayscale;
                    height: 700px;
+
        }
                 }
+
       
 +
        .cd-intro h1 {
 +
            position: absolute;
 +
            width: 90%;
 +
            max-width: 1170px;
 +
            left: 50%;
 +
            top: 50%;
 +
            bottom: auto;
 +
            right: auto;
 +
            -webkit-transform: translateX(-50%) translateY(-50%);
 +
            -moz-transform: translateX(-50%) translateY(-50%);
 +
            -ms-transform: translateX(-50%) translateY(-50%);
 +
            -o-transform: translateX(-50%) translateY(-50%);
 +
            transform: translateX(-50%) translateY(-50%);
 +
            color: white;
 +
            font-size: 20px;
 +
            font-size: 1.25rem;
 +
            font-weight: 300;
 +
             text-align: center;
 +
        }
 +
       
 +
        @media only screen and (min-width: 768px) {
 +
            .cd-intro h1 {
 +
                font-size: 30px;
 +
                 font-size: 1.875rem;
 
             }
 
             }
 +
        }
 
          
 
          
            .cd-main-content {
+
        @media only screen and (min-width: 1170px) {
                position: relative;
+
            .cd-intro {
                z-index: 1;
+
                height: 700px;
                margin-top: 4vw;
+
            }
+
            .cd-main-content p {
+
                line-height: 1.6;
+
                margin: 2em 0;
+
            }
+
            @media only screen and (min-width: 1170px) {
+
                .cd-main-content p {
+
                    font-size: 20px;
+
                    font-size: 1.25rem;
+
                }
+
 
             }
 
             }
 +
        }
 
          
 
          
         </style>
+
         .cd-main-content {
      </head>
+
            position: relative;
 +
            z-index: 1;
 +
        }
 
          
 
          
         <body>
+
         .cd-main-content p {
         <div id="indexMenu" style="width=100vw">
+
            line-height: 1.6;
              <header class="cd-header">
+
            margin: 2em 0;
                    <div id="menuButtom">
+
        }
                        <a class="cd-primary-nav-trigger" href="#0">
+
          
                            <span class="cd-menu-icon"></span>
+
        @media only screen and (min-width: 1170px) {
                        </a>
+
            .cd-main-content p {
                    </div><!-- cd-primary-nav-trigger -->
+
                font-size: 20px;
            </header>
+
                font-size: 1.25rem;
 +
            }
 +
        }
 +
    </style>
 +
</head>
  
            <nav id="cd-primary-naver">
+
<body>
                  <ul class="cd-primary-nav">
+
    <div id="coverText">
                      <li><br><br></li>
+
    </div>
                      <li><a href="https://2019.igem.org/Team:Tongji_Software">HOME</a></li>
+
    <div id="indexMenu" style="position:fixed; z-index:10">
                  <li class="cd-label">About Us</li>
+
        <header class="cd-header">
 +
            <div id="menuButtom">
 +
                <a class="cd-primary-nav-trigger" href="#0">
 +
                    </span><span class="cd-menu-icon"></span>
 +
                </a>
 +
            </div>
 +
            <!-- cd-primary-nav-trigger -->
 +
        </header>
  
            <li><a href="#0">Team Information</a></li>
+
        <nav id="cd-primary-naver">
            <li><a href="#0">Our Projects</a></li>
+
            <ul class="cd-primary-nav">
 +
                <li style="height:8vh"></li>
 +
                <li><a href="https://2019.igem.org/Team:Tongji_Software">HOME</a></li>
 +
                <li class="cd-label">About Us</li>
  
            <li class="cd-label">Other</li>
+
                <li><a href="https://2019.igem.org/Team:Tongji_Software/Project">Our Project</a></li>
            <li><a href="#0">Safety</a></li>
+
                <li><a href="https://2019.igem.org/Team:Tongji_Software/Attributions">Team Information</a></li>
            <li><a href="#0">Human Practices</a></li>
+
            <li><a href="https://2019.igem.org/Team:Tongji_Software/Public_Engagement">Education & Engagement</a></li>
+
            <li><a href="#0">Model</a></li>
+
            <li><a href="#0">Medal</a></li>
+
            <li><a href="#0">Judging Form</a></li>
+
  
            <li class="cd-label">Follow us</li>
+
                <li class="cd-label">Other</li>
 +
                <li><a href="https://2019.igem.org/Team:Tongji_Software/Safety">Safety</a></li>
 +
                <li><a href="https://2019.igem.org/Team:Tongji_Software/Human_Practices">Human Practices</a></li>
 +
                <li><a href="https://2019.igem.org/Team:Tongji_Software/Public_Engagement">Education & Engagement</a></li>
 +
                <li><a href="https://2019.igem.org/Team:Tongji_Software/Model">Model</a></li>
 +
                <li><a href="https://2019.igem.org/Team:Tongji_Software/Medal">Medal</a></li>
 +
                <li><a href="https://igem.org/2019_Judging_Form?id=3094">Judging Form</a></li>
  
            <li class="cd-social cd-facebook"><a href="#0">Facebook</a></li>
+
                <li class="cd-label">Follow us</li>
            <li class="cd-social cd-instagram"><a href="#0">Instagram</a></li>
+
              <br>
            <li class="cd-social cd-dribbble"><a href="#0">Dribbble</a></li>
+
                <li class="cd-socia" style="color:white">Twitter@IGEMtongjisoft </li>
             <li class="cd-social cd-twitter"><a href="#0">Twitter</a></li>
+
             </ul>
         </ul>
+
         </nav>
    </nav>
+
  
 
+
        <main class="cd-main-content">
    <script src="https://2019.igem.org/Template:Tongji_Software/js/jquery_210_min_js?action=raw&ctype=text/javascript"></script>
+
            <div class="cd-container">
    <script src="https://2019.igem.org/Template:Tongji_Software/js/main_js?action=raw&ctype=text/javascript"></script> <!-- Resource jQuery -->
+
            </div>
   
+
        </main>
    <div id="foot"></div>
+
        <!-- <script src="js/jquery-2.1.0.min.js"></script>
 +
        <script src="js/main.js"></script> -->
 +
        <script src="https://2019.igem.org/Template:Tongji_Software/js/jquery_210_min_js?action=raw&ctype=text/javascript"></script>
 +
        <script src="https://2019.igem.org/Template:Tongji_Software/js/main_js?action=raw&ctype=text/javascript"></script>
 +
        <!-- Resource jQuery -->
 +
        <div id="foot"></div>
  
 
     </div>
 
     </div>
  <!-- <div style="position:absolute; margin-top:30vh; height:10vh; width:100vw; background-color:white"></div>-->
 
 
</body>
 
</body>
 +
 
</html>
 
</html>

Latest revision as of 02:31, 22 October 2019

Tongji Software | Pathlab