repo.scss 4.4 KB
Newer Older
J
Jacob Schatz 已提交
1 2 3 4
[v-cloak] {
  display: none;
}

J
Jacob Schatz 已提交
5 6 7
.fade-enter-active, .fade-leave-active {
  transition: opacity .5s
}
8

J
Jacob Schatz 已提交
9 10 11 12
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
  opacity: 0
}

13 14 15 16
.commit-message {
  @include truncate(250px);
}

J
Jacob Schatz 已提交
17 18 19 20 21 22 23
.tree-content-holder {
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
  color: $almost-black;

header {
  background: $gray-light;
24 25 26
  padding: 10px 15px;
}

J
Jacob Schatz 已提交
27
.panel-right{
28 29
  display: inline-block;
  width: 85%;
J
Jacob Schatz 已提交
30 31 32 33 34 35
  #tabs {
    height: 41px;
    border-bottom: 1px solid #f0f0f0;
    padding-left: 0;
    margin-bottom: 0;
    background: $gray-light;
36 37 38
    display: inline-block;
    white-space: nowrap;
    width: 100%;
39 40
    overflow-y: none;
    overflow-x: scroll;
J
Jacob Schatz 已提交
41 42

    li {
J
Jacob Schatz 已提交
43
      -webkit-animation: fadein 0.5s;
J
Jacob Schatz 已提交
44 45 46 47 48
      list-style-type: none;
      background: $gray-normal;
      display: inline-block;
      padding: 10px 18px;
      border-right: 1px solid $border-color;
49
      white-space: nowrap;
J
Jacob Schatz 已提交
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

      &.active {
        background: $white-light;
      }

      a {
        color: black;
      }

      i.fa.fa-times {
        float: right;
        margin-top: 3px;
        margin-left: 15px;
      }
    }
  }
  #ide {
    height: 70vh;
J
Jacob Schatz 已提交
68
    margin-top: -5px;
J
Jacob Schatz 已提交
69
  }  
70 71 72 73 74 75 76

  #binary-viewer {
    height: 70vh;
    overflow: auto;
    margin-top: -5px;
    margin-left: 10px;
  }
J
Jacob Schatz 已提交
77 78
}

J
Jacob Schatz 已提交
79 80 81 82 83 84 85 86 87
#view-toggler {
  height: 41px;
  position: relative;
  display: block;
  border-bottom: 1px solid $white-normal;
  background: white;
  margin-top: -5px;
}

88 89 90 91 92
#binary-viewer {
  img {
    max-width: 100%;
  }
}
J
Jacob Schatz 已提交
93

J
Jacob Schatz 已提交
94
#sidebar {
J
Jacob Schatz 已提交
95

96 97 98 99 100
  &.sidebar-mini {
    display: inline-block;
    vertical-align: top;
    width: 15%;
    border-right: 1px solid $white-normal;
J
Jacob Schatz 已提交
101 102 103 104
    height: 75vh;
    overflow: auto;
  }

J
Jacob Schatz 已提交
105 106
  tr {
    -webkit-animation: fadein 0.5s;
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
    &.repo-file-options td {
      padding: 0;
      border-top: none;
      background: $gray-light;
      width: 190px;
      display: inline-block;
      border-top: none;

      &:hover {
        .title {
          width: 105px;
        }

        ul {
          display: inline-block;  
        }
        
      }

      .title {
        display: inline-block;
        font-size: 10px;
        text-transform: uppercase;
        font-weight: bold;
        color: $gray-darkest;
        width: 185px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
        padding: 2px 16px;
      }
      ul {
        display: none;
        float: right;
        margin: 0 10px 0 0;
        padding: 1px 0;

        li {
          display: inline-block;
          padding: 0px 2px;
          border-bottom: none;
        }
      }
    }
    .fa {
      margin-right: 5px;
    }
J
Jacob Schatz 已提交
155 156
  }

J
Jacob Schatz 已提交
157 158
  a {
    color: $almost-black;
159 160
    display: inline-block;
    vertical-align: middle;
161 162
  }

J
Jacob Schatz 已提交
163 164 165
  ul {
    list-style-type: none;
    padding: 0;
166

J
Jacob Schatz 已提交
167 168 169
    li {
      border-bottom: 1px solid $border-gray-normal;
      padding: 10px 20px;
J
Jacob Schatz 已提交
170 171 172 173 174 175 176 177

      a {
        color: $almost-black;
      }
      .fa {
        font-size: $code_font_size;
        margin-right: 5px;
      }
J
Jacob Schatz 已提交
178 179
    }
  }
J
Jacob Schatz 已提交
180 181
}
  
J
Jacob Schatz 已提交
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
}

.animation-container {
  background: #f6f7f9;
  height: 40px;
  overflow: hidden;
  position: relative;

  &.animation-container-small {
    height: 12px;
  }
  
  &::before {
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: blockTextShine;
    -webkit-animation-timing-function: linear;
    background-image: linear-gradient(to right, #f6f7f9 0%, #e9ebee 20%, #f6f7f9 40%, #f6f7f9 100%);
    background-repeat: no-repeat;
    background-size: 800px 45px;
    content: ' ';
    display: block;
    height: 100%;
    position: relative;
  }
  
  div {
    background: #fff;
    height: 6px;
    left: 0;
    position: absolute;
    right: 0
  }
  
  .line-of-code-1 {
    left: 0;
    top: 8px;
  }
  
  .line-of-code-2 {
    left: 150px;
    top: 0px;
    height: 10px;
  }
  
  .line-of-code-3 {
    left: 0;
    top: 23px;
  }
  
  .line-of-code-4 {
    left: 0;
    top: 38px;
  }
  
  .line-of-code-5 {
    left: 200px;
    top: 28px;
    height: 10px;
  }
  
  .line-of-code-6 {
    top: 14px;
    left: 230px;
    height: 10px;
  }
}

@-webkit-keyframes blockTextShine {
    0% {
        transform: translateX(-468px)
    }
    100% {
        transform: translateX(468px)
    }
}

@-webkit-keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
J
Jacob Schatz 已提交
263
}