浏览代码

修复主tabs样式冲突内容tabs bug.

daxiong.yang 7 年之前
父节点
当前提交
8a9b0f9430
共有 2 个文件被更改,包括 23 次插入23 次删除
  1. 22 22
      src/assets/scss/_base.scss
  2. 1 1
      static/config/index.js

+ 22 - 22
src/assets/scss/_base.scss

@ -317,23 +317,8 @@ img {
317 317
  &--tabs {
318 318
    padding: 55px 0 0;
319 319
  }
320
  .site-tabs__tools {
321
    position: fixed;
322
    top: 50px;
323
    right: 0;
324
    z-index: 931;
325
    height: 40px;
326
    padding: 0 12px;
327
    font-size: 16px;
328
    line-height: 40px;
329
    background-color: $content--background-color;
330
    cursor: pointer;
331
    .el-icon--right {
332
      margin-left: 0;
333
    }
334
  }
335 320
  > .el-tabs {
336
    .el-tabs__header {
321
    > .el-tabs__header {
337 322
      position: fixed;
338 323
      top: 50px;
339 324
      left: 230px;
@ -342,15 +327,30 @@ img {
342 327
      padding: 0 55px 0 15px;
343 328
      box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .12), 0 0 6px 0 rgba(0, 0, 0, .04);
344 329
      background-color: #fff;
345
    }
346
    .el-tabs__nav-wrap {
347
      margin-bottom: 0;
348
      &:after {
349
        display: none;
330
      > .el-tabs__nav-wrap {
331
        margin-bottom: 0;
332
        &:after {
333
          display: none;
334
        }
350 335
      }
351 336
    }
352
    .el-tabs__content {
337
    > .el-tabs__content {
353 338
      padding: 0 15px 15px;
339
      > .site-tabs__tools {
340
        position: fixed;
341
        top: 50px;
342
        right: 0;
343
        z-index: 931;
344
        height: 40px;
345
        padding: 0 12px;
346
        font-size: 16px;
347
        line-height: 40px;
348
        background-color: $content--background-color;
349
        cursor: pointer;
350
        .el-icon--right {
351
          margin-left: 0;
352
        }
353
      }
354 354
    }
355 355
  }
356 356
}

+ 1 - 1
static/config/index.js

@ -4,7 +4,7 @@
4 4
;(function () {
5 5
  window.SITE_CONFIG = {}
6 6
  // api接口请求地址
7
  window.SITE_CONFIG.baseUrl = '//dev.demo.renren.io/renren-fast'
7
  window.SITE_CONFIG.baseUrl = '//demo.renren.io/renren-fast'
8 8
9 9
  // 嵌套iframe地址
10 10
  window.SITE_CONFIG.nestIframeUrl = '//demo.renren.io/renren-fast/'