BigW Consortium Gitlab

members.scss 4.2 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
.users-project-form {
  .btn-create {
    margin-right: 10px;
  }
}

Phil Hughes committed
12
.member {
13
  .list-item-name {
Phil Hughes committed
14
    @media (min-width: $screen-sm-min) {
15 16 17
      float: left;
      width: 50%;
    }
18 19

    strong {
20
      font-weight: $gl-font-weight-bold;
21
    }
22 23
  }

Phil Hughes committed
24
  .controls {
Phil Hughes committed
25
    @media (min-width: $screen-sm-min) {
Phil Hughes committed
26
      display: -webkit-flex;
Phil Hughes committed
27 28
      display: flex;
    }
29 30 31 32

    .dropdown-menu.dropdown-menu-align-right {
      margin-top: -2px;
    }
Phil Hughes committed
33 34 35
  }

  .form-horizontal {
36
    margin-top: 20px;
Phil Hughes committed
37 38

    @media (min-width: $screen-sm-min) {
Phil Hughes committed
39
      display: -webkit-flex;
Phil Hughes committed
40 41 42 43 44 45 46 47 48 49 50 51
      display: flex;
      margin-top: 3px;
    }
  }

  .btn-remove {
    width: 100%;

    @media (min-width: $screen-sm-min) {
      width: auto;
    }
  }
52 53 54 55 56 57

  &.existing-title {
    @media (min-width: $screen-sm-min) {
      float: left;
    }
  }
Phil Hughes committed
58 59 60
}

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

Phil Hughes committed
63
  @media (max-width: $screen-xs-max) {
64
    padding-bottom: 5px;
Phil Hughes committed
65 66
    margin-left: 0;
    margin-right: 0;
Phil Hughes committed
67 68
  }
}
Phil Hughes committed
69 70 71 72 73

.member-access-text {
  margin-left: auto;
  line-height: 43px;
}
74 75

.member-search-form {
76 77
  @include new-style-dropdown;

78 79 80 81 82 83
  position: relative;

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

84 85 86 87 88
  .dropdown {
    width: 100%;
    margin-top: 5px;

    .dropdown-menu-toggle {
Nur Rony committed
89
      vertical-align: middle;
90 91 92 93
      width: 100%;
    }

    @media (min-width: $screen-sm-min) {
Nur Rony committed
94
      margin-top: 0;
95 96 97 98
      width: 155px;
    }
  }

99 100 101 102 103
  .form-control {
    width: 100%;
    padding-right: 35px;

    @media (min-width: $screen-sm-min) {
104 105 106
      width: 250px;
    }

107 108 109 110 111 112 113 114 115 116
    &.input-short {
      @media (min-width: $screen-md-min) {
        width: 170px;
      }

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

119 120 121 122 123 124 125 126 127 128 129
.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;
130

131 132
  @media (min-width: $screen-sm-min) {
    right: 160px;
133 134
  }
}
Jose Ivan Vargas committed
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 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185

.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;
      }
    }
  }
186
}
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202

.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 {
203
    font-weight: $gl-font-weight-bold;
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 279 280 281 282 283 284 285
    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;
    }
  }
}