repo.scss 4.6 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

  .monaco-editor.vs .cursor {
    background: rgba(255,255,255,0);
    border-color: rgba(255,255,255,0);
  }

J
Jacob Schatz 已提交
36 37
  #tabs {
    height: 41px;
J
Jacob Schatz 已提交
38
    border-bottom: 1px solid $white-normal;
J
Jacob Schatz 已提交
39 40
    padding-left: 0;
    margin-bottom: 0;
41 42 43
    display: inline-block;
    white-space: nowrap;
    width: 100%;
44 45
    overflow-y: none;
    overflow-x: scroll;
J
Jacob Schatz 已提交
46 47

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

      &.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 已提交
73 74 75 76 77
  }

  #repo-file-buttons {
    background: $gray-light;
    padding: 5px;
J
Jacob Schatz 已提交
78
    margin-top: -5px;
J
Jacob Schatz 已提交
79 80
    border-bottom: 1px solid $white-normal;
  }
81 82 83 84

  #binary-viewer {
    height: 70vh;
    overflow: auto;
J
Jacob Schatz 已提交
85
    margin-top: 5px;
86
    margin-left: 10px;
J
Jacob Schatz 已提交
87 88 89 90 91

    .blob-viewer {
      padding-top: 20px;
      padding-left: 20px;
    }
92
  }
J
Jacob Schatz 已提交
93 94
}

J
Jacob Schatz 已提交
95 96 97 98 99 100 101 102 103
#view-toggler {
  height: 41px;
  position: relative;
  display: block;
  border-bottom: 1px solid $white-normal;
  background: white;
  margin-top: -5px;
}

104 105 106 107 108
#binary-viewer {
  img {
    max-width: 100%;
  }
}
J
Jacob Schatz 已提交
109

J
Jacob Schatz 已提交
110
#sidebar {
J
Jacob Schatz 已提交
111

112 113 114 115 116
  &.sidebar-mini {
    display: inline-block;
    vertical-align: top;
    width: 15%;
    border-right: 1px solid $white-normal;
J
Jacob Schatz 已提交
117
    height: 80vh;
J
Jacob Schatz 已提交
118 119 120
    overflow: auto;
  }

J
Jacob Schatz 已提交
121 122
  tr {
    -webkit-animation: fadein 0.5s;
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 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
    &.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 已提交
171 172
  }

J
Jacob Schatz 已提交
173 174
  a {
    color: $almost-black;
175 176
    display: inline-block;
    vertical-align: middle;
177 178
  }

J
Jacob Schatz 已提交
179 180 181
  ul {
    list-style-type: none;
    padding: 0;
182

J
Jacob Schatz 已提交
183 184 185
    li {
      border-bottom: 1px solid $border-gray-normal;
      padding: 10px 20px;
J
Jacob Schatz 已提交
186 187 188 189 190 191 192 193

      a {
        color: $almost-black;
      }
      .fa {
        font-size: $code_font_size;
        margin-right: 5px;
      }
J
Jacob Schatz 已提交
194 195
    }
  }
J
Jacob Schatz 已提交
196 197
}
  
J
Jacob Schatz 已提交
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 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
}

.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 已提交
279
}