_users.scss 4.45 KB
Newer Older
1 2 3
// studio - views - course users
// ====================

4
.view-team {
5

6
  // LAYOUT: page
7 8 9 10 11
  .content-primary, .content-supplementary {
    @include box-sizing(border-box);
  }

  .content-primary {
12
    @extend .ui-col-wide;
13 14 15
  }

  .content-supplementary {
16
    @extend .ui-col-narrow;
17 18
  }

19
  // ELEM: content
20 21 22
  .content {

    .introduction {
23
      @extend %t-copy-sub1;
24 25 26 27
      margin: 0 0 ($baseline*2) 0;
    }
  }

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
  // ELEM: no users notice
  .content .notice-create {
    width: flexgrid(9, 9);
    margin-top: $baseline;

    // CASE: notice has actions {
    &.has-actions {

      .msg, .list-actions {
        display: inline-block;
        vertical-align: middle;
      }

      .msg {
        width: flex-grid(6, 9);
        margin-right: flex-gutter();
      }

      .list-actions {
        width: flex-grid(3, 9);
        text-align: right;
        margin-top: 0;

        .action-item {

        }
54 55

        .action-primary {
56
          @extend %btn-primary-green;
57 58
          padding: ($baseline/2) $baseline;
        }
59 60 61 62
      }
    }
  }

63

64 65
  // ELEM: new user form
  .wrapper-create-user {
66 67

    &.is-shown {
68
      height: ($baseline*15);
69 70 71
    }
  }

72
  // ELEM: listing of users
73 74 75 76
  .user-list, .user-item, .item-metadata, .item-actions {
    @include box-sizing(border-box);
  }

77 78
  .user-list {

79
    .user-item {
80
      @extend %ui-window;
81
      @include clearfix();
82
      position: relative;
83 84
      width: flex-grid(9, 9);
      margin: 0 0 ($baseline/2) 0;
85
      padding: ($baseline*1.25) ($baseline*1.5) $baseline ($baseline*1.5);
86 87

      &:last-child {
88
        margin-bottom: 0;
89 90
      }

91
      .item-metadata, .item-actions {
92
        display: inline-block;
93
        vertical-align: middle;
94 95
      }

96
      // ELEM: item - flag
97
      .flag-role {
98
        @extend %ui-badge;
99 100 101
        color: $white;

        .msg-you {
102
          @extend %t-strong;
103 104
          margin-left: ($baseline/5);
          text-transform: none;
105
          color: $pink-l3;
106 107 108
        }

        &:after {
109
          border-bottom-color: $pink-d4;
110 111 112
        }

        &.flag-role-staff {
113
          background: $pink-u3;
114 115
        }

116 117
        &.flag-role-admin,
        &.flag-role-instructor {
118
          background: $pink;
119
        }
120

121 122
        &.flag-role-user,
        &.flag-role-library_user {
123 124 125
          background: $yellow-d1;
          .msg-you { color: $yellow-l1; }
        }
126 127
      }

128
      // ELEM: item - metadata
129
      .item-metadata {
130
        width: flex-grid(4, 9);
131
        @include margin-right(flex-gutter());
132 133 134 135 136 137 138 139

        .user-username, .user-email {
          display: inline-block;
          vertical-align: middle;
        }

        .user-username {
          @include transition(color $tmg-f2 ease-in-out 0s);
140 141
          @extend %t-title4;
          @extend %t-strong;
142
          @include margin(0, ($baseline/2), ($baseline/10), 0);
143 144 145 146
          color: $gray-d4;
        }

        .user-email {
147
          @extend %t-title6;
148
        }
149 150
      }

151
      // ELEM: item - actions
152
      .item-actions {
153
        width: flex-grid(5, 9);
154 155 156 157 158 159 160 161 162
        position: static; // nasty reset needed due to base.scss
        text-align: right;

        .action {
          display: inline-block;
          vertical-align: middle;
        }

        .action-role {
163
          width: flex-grid(7, 8);
164
          margin-right: flex-gutter();
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

          .add-admin-role {
            @include blue-button;
            @include transition(all .15s);
            @extend %t-action2;
            @extend %t-strong;
            display: inline-block;
            padding: ($baseline/5) $baseline;
          }

          .remove-admin-role {
            @include grey-button;
            @include transition(all .15s);
            @extend %t-action2;
            @extend %t-strong;
            display: inline-block;
            padding: ($baseline/5) $baseline;
          }
          .notoggleforyou {
            @extend %t-copy-sub1;
            color: $gray-l2;
          }
187 188 189
        }

        .action-delete {
190
          width: flex-grid(1, 8);
191

192 193 194 195 196 197
          // STATE: disabled
          &.is-disabled {
            opacity: 0.0;
            visibility: hidden;
            pointer-events: none;
          }
198 199 200
        }

        .delete {
201
          @extend %ui-btn-non;
202 203
        }

204
        // HACK: nasty reset needed due to base.scss
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
        .delete-button {
          margin-right: 0;
          float: none;
          color: inherit;
        }
      }

      // STATE: hover
      &:hover {

        .user-username {
        }

        .user-email {

        }

        .item-actions {

        }
225 226 227
      }
    }
  }
228
}