c-page.vue 2.1 KB
Newer Older
fukai committed
1
<template>
jianglong committed
2
<div class="c-page-container">
潘际乾 committed
3
    <!-- <div class="title" v-if="showTitle">
4
      <i class="el-icon-location" style="color: #409eff;"></i>
潘际乾 committed
5
      <span>{{ title }}</span>
6
    </div> -->
jianglong committed
7 8
    <div class="c-page-container-div">
        <slot></slot>
潘际乾 committed
9
    </div>
jianglong committed
10
</div>
fukai committed
11 12 13 14
</template>

<script>
export default {
jianglong committed
15 16 17 18 19 20
    props: ["title"],
    computed: {
        // showTitle() {
        //   return this.$route.path.startsWith('/review');
        // }
    }
潘际乾 committed
21
};
fukai committed
22
</script>
jianglong committed
23

fukai committed
24
<style scoped>
潘际乾 committed
25
.title {
jianglong committed
26 27 28 29 30 31
    margin: 0;
    padding: 8px;
    padding-left: 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--darkbgcolor);
    background-color: var(--darkbgcolor);
潘际乾 committed
32
}
jianglong committed
33

潘际乾 committed
34
.c-page-container {
jianglong committed
35 36 37 38 39
    height: 100%;
    display: flex;
    flex-direction: column;
    /* overflow-x: hidden; */
    overflow: inherit;
jianglong committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
}

.fast-button {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: center;
    margin-right: 10px;
    position: absolute;
    top: -35px;
    right: 0px;
}

jianglong committed
55 56 57 58
.fast-button .el-button {
    border: none;
    border-radius: 0px;
    margin-left: 0px !important;
jianglong committed
59 60 61 62
    background-color: #1561e0;
    color: white;
    border-right: solid 1px;
    position: relative;
jianglong committed
63
    height: 25px;
jianglong committed
64 65
}

jianglong committed
66 67
.fast-button .el-button:focus,
.fast-button .el-button:hover {
jianglong committed
68 69 70
    background: white;
    border-color: white;
    color: #1561e0;
潘际乾 committed
71
}
jianglong committed
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86

.c-page-container-div {

    flex: 1;
    padding: 0px 15px 5px;
    position: relative
}

@media screen and (min-width: 2561px) {
    .c-page-container-div {
        padding: 0px 20px 5px;
    }
   
}

jianglong committed
87
@media screen and (min-width: 1921px) and (max-width: 2560px) {
jianglong committed
88
    .c-page-container-div {
jianglong committed
89
        padding: 0px 20px 5px;
jianglong committed
90 91 92 93 94 95
    }
    
}

@media screen and (min-width: 1441px) and (max-width: 1920px) {
    .c-page-container-div {
jianglong committed
96
        padding: 0px 20px 5px;
jianglong committed
97 98 99 100 101 102
    }
   
}

@media screen and (min-width: 1200px) and (max-width: 1440px) {
    .c-page-container-div {
jianglong committed
103
        padding: 0px 15px 5px;
jianglong committed
104 105 106 107 108 109
    }
   
}

@media screen and (max-width: 1199px) {
    .c-page-container-div {
jianglong committed
110
        padding: 0px 10px 5px;
jianglong committed
111 112 113 114 115 116 117
    }
   
}



</style>