BigW Consortium Gitlab

tree.scss 4.18 KB
Newer Older
1
.tree-holder {
2
  @include new-style-dropdown;
3

4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
  .nav-block {
    margin: 10px 0;

    @media (min-width: $screen-sm-min) {
      display: flex;

      .tree-ref-container {
        flex: 1;
      }

      .tree-controls {
        text-align: right;

        .btn-group {
          margin-left: 10px;
        }
20 21 22 23 24

        .control {
          float: left;
          margin-left: 10px;
        }
25 26 27 28 29 30 31
      }

      .tree-ref-holder {
        float: left;
        margin-right: 15px;
      }

32 33 34 35
      .tree-ref-target-holder {
        display: inline-block;
      }

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 71 72 73 74 75 76 77 78 79 80
      .repo-breadcrumb {
        li:last-of-type {
          position: relative;
        }
      }

      .add-to-tree-dropdown {
        position: absolute;
        left: 18px;
      }
    }
  }

  @media (max-width: $screen-xs-max) {
    .repo-breadcrumb {
      margin-top: 10px;
      position: relative;

      .dropdown-menu {
        min-width: 100%;
        width: 100%;
        left: inherit;
        right: 0;
      }
    }

    .add-to-tree-dropdown {
      position: absolute;
      left: 0;
      right: 0;
    }

    .tree-controls {
      margin-bottom: 10px;

      .btn,
      .dropdown,
      .btn-group {
        width: 100%;
      }

      .btn {
        margin: 10px 0 0;
      }
    }
81
  }
82

83
  .file-finder {
84 85
    max-width: 500px;
    width: 100%;
86

87 88 89 90 91 92
    .file-finder-input {
      width: 95%;
      display: inline-block;
    }
  }

93
  .add-to-tree {
94
    vertical-align: middle;
95
    padding: 6px 10px;
96 97
  }

98
  .tree-table {
99
    margin-bottom: 0;
100

101
    tr {
102 103
      border-bottom: 1px solid $white-normal;
      border-top: 1px solid $white-normal;
104

105 106
      td,
      th {
107
        line-height: 21px;
108 109
      }

110
      .last-commit {
111
        @include str-truncated(506px);
112

113 114 115 116
        .fa-angle-right {
          margin-left: 5px;
        }

117
        @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
118 119
          @include str-truncated(450px);
        }
120

121 122 123 124
      }

      .commit-history-link-spacer {
        margin: 0 10px;
125
        color: $white-normal;
126 127
      }

randx committed
128 129
      &:hover {
        td {
130 131 132
          background-color: $row-hover;
          border-top: 1px solid $row-hover-border;
          border-bottom: 1px solid $row-hover-border;
133
          cursor: pointer;
randx committed
134
        }
Dmitriy Zaporozhets committed
135
      }
136

137 138
      &.selected {
        td {
139
          background: $white-normal;
140 141
          border-top: 1px solid $border-gray-dark;
          border-bottom: 1px solid $border-gray-dark;
142 143
        }
      }
144
    }
Dmitriy Zaporozhets committed
145
  }
Dmitriy Zaporozhets committed
146

randx committed
147
  .tree-item {
148 149 150 151 152 153 154 155 156
    .link-container {
      padding: 0;

      a {
        padding: 10px $gl-padding;
        display: block;
      }
    }

randx committed
157
    .tree-item-file-name {
158
      max-width: 320px;
159
      vertical-align: middle;
160

161 162
      i,
      a {
163
        color: $gl-text-color;
164 165
      }

randx committed
166
      img {
167
        position: relative;
168
        top: -1px;
169
      }
Dmitriy Zaporozhets committed
170
    }
171

172
    .tree-item-file-external-link {
173 174
      margin-right: 4px;

175 176 177 178 179
      span {
        text-decoration: inherit;
      }
    }

180 181
    .tree_commit {
      max-width: 320px;
182 183 184 185

      .str-truncated {
        max-width: 100%;
      }
186 187
    }

188 189 190
    .tree_time_ago {
      min-width: 135px;
    }
191
  }
192

193
  .tree_author {
194 195 196
    padding-right: 8px;

    .commit-author-name {
197
      color: $gl-text-color;
198
    }
199
  }
200

201 202
  .tree-time-ago {
    min-width: 135px;
203
    color: $gl-text-color-secondary;
204 205 206 207
  }

  .tree-commit {
    max-width: 320px;
208
    color: $gl-text-color-secondary;
209 210

    .tree-commit-link {
211
      color: $gl-text-color-secondary;
212

213 214 215
      &:hover {
        text-decoration: underline;
      }
216 217
    }
  }
Dmitriy Zaporozhets committed
218
}
219

220 221 222
.blob-commit-info {
  list-style: none;
  margin: 0;
223 224 225 226 227
  padding: 0;
}

.blob-content-holder {
  margin-top: $gl-padding;
228
}
229

230
.blob-upload-dropzone-previews {
231 232 233
  display: flex;
  justify-content: center;
  align-items: center;
234 235 236
  text-align: center;
  border: 2px;
  border-style: dashed;
237
  border-color: $border-color;
238 239 240 241
  min-height: 200px;
}

.upload-link {
242
  font-weight: $gl-font-weight-normal;
243
  color: $md-link-color;
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
.repo-charts {
  .sub-header {
    margin: 20px 0;
  }

  .sub-header-block.border-top {
    margin-top: 20px;
    padding: 0;
    border-top: 1px solid $white-dark;
    border-bottom: none;
  }

  .commit-stats li {
    font-size: 16px;
  }

  .tree-ref-header {
    margin-bottom: 20px;

    h4 {
      margin: 0;
      line-height: 36px;
    }
  }
}