WebApp【公共组件库】@前端(For Git Submodule)
‘chensiAb’
6 days ago fbb96ab8a5a00015227612d9706f0ca1a7f85461
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/**
 * CHomeNav
 * @author Tevin
 */
 
@import "../../common/sassMixin";
 
.c-home-nav {
    width: 100%;
    margin-bottom: 20px;
    .c-home-nav-title {
        width: 100%;
        color: #666;
        text-align: center;
        background-color: #fff;
        border-top: #e2e2e2 1PX solid;
    }
    .c-home-nav-content {
        width: 100%;
    }
    &.col-two {
        .c-home-nav-content {
            @include clearfix;
        }
        .c-home-item {
            float: left;
            width: 50%;
            height: 200px;
            @include flexbox(flex, space-between center);
            background-color: #fff;
            box-sizing: border-box;
            border-bottom: #e2e2e2 1PX solid;
            &:nth-child(1) {
                border-top: #e2e2e2 1PX solid;
            }
            &:nth-child(2) {
                border-top: #e2e2e2 1PX solid;
            }
            &:nth-child(2n+1) {
                border-right: #e2e2e2 1PX solid;
            }
            &:active {
                background-color: #f2f2f2;
            }
        }
        .c-home-item-icon {
            width: 110px;
            height: 110px;
            margin: 0 20px 0 40px;
        }
        .c-home-item-label {
            max-width: calc(100% - 170px - 40px);
            padding-right: 40px;
            line-height: 46px;
            vertical-align: middle;
            white-space: pre-wrap;
        }
        @at-root .super & {
            .c-home-item-label {
                max-width: calc(100% - 170px - 20px);
                padding-right: 20px;
            }
        }
    }
    &.col-three {
        .c-home-nav-content {
            @include flexbox(flex, flex-start center, n wrap);
        }
        .c-home-item {
            width: 33.3%;
            height: 246px;
            padding: 36px 0 0;
            text-align: center;
            box-sizing: border-box;
            border-right: 1PX solid #e2e2e2;
            border-bottom: 1PX solid #e2e2e2;
            box-sizing: border-box;
            background-color: #fff;
            &:active {
                background-color: #f2f2f2;
            }
            &:nth-child(1) {
                border-top: #e2e2e2 1PX solid;
            }
            &:nth-child(2) {
                border-top: #e2e2e2 1PX solid;
            }
            &:nth-child(3) {
                border-top: #e2e2e2 1PX solid;
            }
            &:nth-child(3n+3) {
                border-right: none;
            }
        }
        .c-home-item-icon {
            display: block;
            width: 110px;
            height: 110px;
            margin: 0 auto 8px;
        }
    }
}