发表于: 2020-01-07 23:28:34

1 1409


今天完成的事情:今天开始重构任务任务八九,已完成一部分
明天计划的事情:继续重构任务
遇到的问题:细节修改较多,花费较长时间
收获:重构了大部分的代码,先上效果图

字体均有修改。代码部分

body {
    margin : 0;
    padding0;
}

.header {
    span {
        font-size9px;
    }

    .topright {
        displayflex;
    }

    display        : flex;
    justify-contentspace-between;
    padding        : 0 16.6vw 0 19.6vw;
    height         : 20px;
    align-items    : center;
}

.x1 {
    displaynone;
}

.box2 {
    background#29b078;
}

.hideright {
    position   : absolute;
    left       : 0px;
    top        : 45px;
    margin-left19.6vw;
}

#menu {
    displaynone;
}

#menu1 {
    displaynone;
    margin : 0;
}

.Navigation {
    .Navigationtext1:hover .surplus1 {
        visibilityvisible;
    }

    .Navigationtext2:hover .surplus2 {
        visibilityvisible;
    }

    .Navigationtext3:hover .surplus3 {
        visibilityvisible;
    }

    .Navigationtext4:hover .surplus4 {
        visibilityvisible;
    }
    height100px;

    a {

        text-decorationnone;
        color          : #fff;
        font-size      : 12px;

        .surplus1 {
            height          : 2px;
            width100%;
            position        : absolute;
            background-colorwhite;
            bottom          : 0;
            visibility      : hidden;
        }

        .surplus2 {
            height          : 2px;
            width100%;
            position        : absolute;
            background-colorwhite;
            bottom          : 0;
            visibility      : hidden;
        }

        .surplus3 {
            height          : 2px;
            width100%;
            position        : absolute;
            background-colorwhite;
            bottom          : 0;
            visibility      : hidden;
        }

        .surplus4 {
            height          : 2px;
            width100%;
            position        : absolute;
            background-colorwhite;
            bottom          : 0;
            visibility      : hidden;
        }

        display    : inline-block;
        line-height100px;
        width      : 50px;
        text-align : center;
        position   : relative;
    }

    padding         : 0 15.6vw;
    background-color#29b078;
    display         : flex;
    flex-direction  : row-reverse;
}




.carouselpart {
    .n3 {
        font-size     : 2vw;
        font-weight   : 900;
        letter-spacing2px;
    }

    .n2 {
        font-size  : 3.6vw;
        font-family"SimSun";
    }

    .n1 {
        font-size    : 1.6vw;
        font-family  : "SimSun";
        margin-bottom0;
    }

    display        : flex;
    justify-content:center;
    align-items    : center;
    flex-direction : column;
}

.item img {
    width100%;
}


后续部分

也是一样改了字体和一部分布局

.Learningform {
    .Learningformpart2 {
        span {
            display     : inline-block;
            width       : 120px;
            font-size   : 12px;
            padding-left8px;
        }

        .Learningformpart1 {
            height       : 36px;
            width        : 36px;
            border-radius50%;
            border       : solid 1px #dedede;
            border-top   : rgba(2222222220.3solid 1px;
            border-left  : rgba(2222222220.5solid 1px;
            border-right : rgba(2222222220.5solid 1px;
            text-align   : center;
            line-height  : 36px;
            color        : #29b078;
            display      : inline-block;

        }

        display        : flex;
        align-items    : center;
        padding-right  : 0;
        padding-left   : 0;
        height         : 60px;
        justify-contentcenter;
    }

    align-itemscenter;
}

.Outstandingstudent {

    text-align : center;
    line-height100px;
}



.Exhibition {
    .Exhibitionpart1 {
        &:hover {
            box-shadow0 0 9px 3px #999;
        }

        margin-bottom30px;

        display       : flex;
        flex-directioncolumn;
        justify-items : center;
        align-items   : center;
        padding       : 10px 1.5vw 50px;
        border        : solid 1px #dedede;

        border-radius3px;
        border-top   : rgba(2222222220.3solid 1px;
    }

    padding30px 0;
}


后续部分的区别不大

改了下尺寸让图不抖动

.Picturecontainerpart {
    .Picturecontainerpart-queue{
        &:hover{
            box-shadow0 0 9px 3px #999;
        }
        displayflex;
        justify-contentcenter;
        align-itemscenter;
        width20%;
        height180px;
    }
    displayflex;

    flex-wrapwrap;
}



@media screen and (max-width:1200px) {
    .Picturecontainerpart .Picturecontainerpart-queue {
        width50%;
        flex-wrapwrap;
    }
    .d62 {
        ul{
            text-aligncenter;
        }
        border-leftnone;
    }
}
@media screen and (max-width:500px) {
    body .container-fluid{
        padding0 5vw;
    }
    body .population{
        margin-left5vw;
    }
    .Linkcharacter {
        width         : 100%;
        flex-directioncolumn;
        display       : inline-block;
        text-align    : center;
    }
    body .Projecttitle{
        margin-left5vw;
    }
}

.friendship {
    height     : 100px;
    line-height100px;
    text-align : center;
}

.Linkcharacterfather{
    displayflex;
    flex-directioncolumn;
}
.Linkcharacter {
    li {
        a {
            &:hover{
                border-bottom0.5px solid green;
            }
            colorblack;
            displayblock;
            height22px;
            text-decoration:none;
            width48px;
        }

        width         : 40px;
        font-size     : 12px;
        cursor        : pointer;
        margin-bottom : 7px;
        padding-bottom0px;

    }

    display        : flex;
    justify-contentspace-between;
    padding-left   : 12px;
    margin         : 0;
}


明天继续重构任务


返回列表 返回列表
评论

    分享到