stylesheet.scss 2.0 KB
Newer Older
J
Jason Park 已提交
1 2 3 4 5 6 7
@import "~/common/stylesheet/index";

.header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 16px;
J
Jason Park 已提交
8
  min-width: 0;
J
Jason Park 已提交
9 10 11 12 13

  .title_bar {
    font-size: $font-size-large;
    font-weight: bold;
    min-width: 0;
J
Jason Park 已提交
14
    overflow-x: hidden;
J
Jason Park 已提交
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

    .nav_arrow {
      margin: 0 4px;
    }

    .nav_caret {
      margin-left: 4px;
    }
  }

  .top_menu_buttons {
    display: flex;
    align-items: stretch;

    .interval {
      display: flex;
      align-items: center;
      padding: 0 12px;
      white-space: nowrap;

      &:hover {
        background: $color-shadow;
      }

      .range {
        position: relative;
        height: 16px;
        width: 60px;
        margin-left: 8px;

        .range_label_container {
          display: none;
        }

        .range_track {
          top: 50%;
          height: 6px;
          margin-top: -3px;
          background-color: $theme-light;
          cursor: pointer;
          display: block;
          position: relative;
        }

        .range_slider {
          top: 0;
          width: 6px;
          height: 12px;
          margin-left: -3px;
          margin-top: -3px;
          appearance: none;
          background: $color-font;
          cursor: pointer;
          display: block;
          outline: none;
          position: absolute;
J
Jason Park 已提交
71 72 73 74
        }
      }
    }

J
Jason Park 已提交
75
    .btn_dropdown {
J
Jason Park 已提交
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 103 104 105 106 107
      font-weight: bold;

      &:active {
        box-shadow: none;
      }

      .dropdown {
        z-index: 98;
        position: fixed;
        top: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin: 0 -12px;
        box-shadow: 0 0 8px $color-shadow;

        .fake {
          height: $line-height;
          visibility: hidden;
        }

        .list {
          display: flex;
          flex-direction: column;
          align-items: stretch;
          background-color: $theme-light;
        }
      }

      &:hover {
        .dropdown {
          display: flex;
J
Jason Park 已提交
108 109 110 111 112
        }
      }
    }
  }
}