BigW Consortium Gitlab

members.scss 4.65 KB
Newer Older
Phil Hughes committed
1 2 3 4 5
.project-members-title {
  padding-bottom: 10px;
  border-bottom: 1px solid $border-color;
}

6 7 8 9 10 11 12 13 14 15
.project-member-tabs {
  background: $gray-light;
  border: 1px solid $border-color;

  li {
    width: 50%;

    &.active {
      background: $white-light;
    }
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
    &:first-child {
      border-right: 1px solid $border-color;
    }

    a {
      width: 100%;
      text-align: center;
    }
  }
}

.users-project-form {
  .btn-create {
    margin-right: 10px;
  }
}

.project-member-tab-content {
  padding: $gl-padding;
  border: 1px solid $border-color;
  border-top: 0;
  margin-bottom: $gl-padding;
}

Phil Hughes committed
41
.member {
42
  .list-item-name {
Phil Hughes committed
43
    @media (min-width: $screen-sm-min) {
44 45 46
      float: left;
      width: 50%;
    }
47 48

    strong {
49
      font-weight: $gl-font-weight-bold;
50
    }
51 52
  }

Phil Hughes committed
53
  .controls {
Phil Hughes committed
54
    @media (min-width: $screen-sm-min) {
Phil Hughes committed
55
      display: -webkit-flex;
Phil Hughes committed
56 57
      display: flex;
    }
58 59 60 61

    .dropdown-menu.dropdown-menu-align-right {
      margin-top: -2px;
    }
Phil Hughes committed
62 63 64
  }

  .form-horizontal {
65
    margin-top: 20px;
Phil Hughes committed
66 67

    @media (min-width: $screen-sm-min) {
Phil Hughes committed
68
      display: -webkit-flex;
Phil Hughes committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
      display: flex;
      margin-top: 3px;
    }
  }

  .btn-remove {
    width: 100%;

    @media (min-width: $screen-sm-min) {
      width: auto;
    }
  }
}

.member-form-control {
  @media (max-width: $screen-xs-max) {
85
    padding-bottom: 5px;
Phil Hughes committed
86 87
    margin-left: 0;
    margin-right: 0;
Phil Hughes committed
88 89
  }
}
Phil Hughes committed
90 91 92 93 94

.member-access-text {
  margin-left: auto;
  line-height: 43px;
}
95 96 97 98 99 100 101 102

.member.existing-title {
  @media (min-width: $screen-sm-min) {
    float: left;
  }
}

.member-search-form {
103 104
  @include new-style-dropdown;

105 106 107 108 109 110
  position: relative;

  @media (min-width: $screen-sm-min) {
    float: right;
  }

111 112 113 114 115
  .dropdown {
    width: 100%;
    margin-top: 5px;

    .dropdown-menu-toggle {
Nur Rony committed
116
      vertical-align: middle;
117 118 119 120
      width: 100%;
    }

    @media (min-width: $screen-sm-min) {
Nur Rony committed
121
      margin-top: 0;
122 123 124 125
      width: 155px;
    }
  }

126 127 128 129 130
  .form-control {
    width: 100%;
    padding-right: 35px;

    @media (min-width: $screen-sm-min) {
131 132 133
      width: 250px;
    }

134 135 136 137 138 139 140 141 142 143
    &.input-short {
      @media (min-width: $screen-md-min) {
        width: 170px;
      }

      @media (min-width: $screen-lg-min) {
        width: 210px;
      }
    }
  }
144
}
145

146 147 148 149 150 151 152 153 154 155 156
.member-search-btn {
  position: absolute;
  right: 4px;
  top: 0;
  height: 35px;
  padding-left: 10px;
  padding-right: 10px;
  color: $gray-darkest;
  background: transparent;
  border: 0;
  outline: 0;
157

158 159
  @media (min-width: $screen-sm-min) {
    right: 160px;
160 161
  }
}
Jose Ivan Vargas committed
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 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

.flex-project-members-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

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

    .flex-project-title {
      vertical-align: top;
      display: inline-block;
      max-width: 90%;
    }
  }

  .flex-project-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .badge {
    height: 17px;
    line-height: 16px;
    margin-right: 5px;
    padding-top: 1px;
    padding-bottom: 1px;
  }

  .flex-project-members-form {
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
  }
}

.panel {
  .panel-heading {
    .badge {
      margin-top: 0;
    }

    @media (max-width: $screen-sm-min) {
      .badge {
        margin-right: 0;
        margin-left: 0;
      }
    }
  }
213
}
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229

.content-list.members-list li {
  display: flex;
  justify-content: space-between;

  .list-item-name {
    float: none;
    display: flex;
    flex: 1;
  }

  .user-info {
    padding-right: 10px;
  }

  .member {
230
    font-weight: $gl-font-weight-bold;
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 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
    overflow-wrap: break-word;
    word-break: break-all;
  }

  .member-group-link {
    display: inline-block;
  }

  .form-control {
    width: inherit;
  }

  .btn {
    align-self: flex-start;
  }

  .form-horizontal ~ .btn {
    margin-right: 0;
  }

  @media (max-width: $screen-xs-max) {
    display: block;

    .controls > .btn {
      margin-left: 0;
      margin-right: 0;
      display: block;
    }

    .form-control {
      width: 100%;
    }

    .member-access-text {
      line-height: 0;
      margin-left: 50px;
    }

    .member-controls {
      margin-top: 5px;
    }

    .form-horizontal {
      margin-top: 10px;
    }
  }
}

.panel-mobile {
  .content-list.members-list li {
    display: block;

    .member-controls {
      float: none;
      display: block;
    }

    .dropdown-menu-toggle,
    .dropdown-menu,
    .form-control,
    .list-item-name {
      width: 100%;
    }

    .dropdown-menu {
      margin-top: 0;
    }

    .form-horizontal {
      display: block;
    }

    .member-form-control {
      margin: 5px 0;
    }

    .btn {
      width: 100%;
      margin-left: 0;
    }
  }
}
313 314 315 316

.member-form-control {
  @include new-style-dropdown;
}