taiga-front/app/styles/modules/admin/admin-membership-table.scss

145 lines
3.3 KiB
SCSS

.admin-membership-table {
.title {
@extend %bold;
}
.avatar {
@include table-flex(stretch, center, flex, row, wrap, flex-start);
figcaption {
margin-left: 1rem;
}
img {
@include table-flex-child(1, 35px, 0);
max-width: 35px;
}
.name,
.email {
display: block;
width: 100%;
}
.name {
@extend %bold;
}
.email {
color: $gray-light;
}
}
.active,
.pending {
padding: 8px;
width: 115px;
.icon {
@extend %large;
}
}
.active {
background-color: $whitish;
}
.pending {
background-color: $red-light;
color: $white;
.icon {
float: right;
}
&:hover {
@include transition (background-color .3s linear);
background-color: $red;
color: $white;
}
}
.header-role,
.header-status {
padding-left: .5rem;
}
.row-role {
padding-right: 1rem;
}
.row-status {
@include table-flex();
.delete {
@extend %large;
@include table-flex(stretch, center, flex, row, wrap, flex-start);
color: $gray-light;
margin-left: 15px;
padding: 0 15px;
&:hover {
color: $red;
}
}
}
.row-admin {
input {
vertical-align: middle;
}
label {
@extend %small;
}
}
.row-member,
.row-role,
.header-member,
.header-role {
@include table-flex-child(3, 35px, 0);
}
.row-status,
.row-admin,
.header-admin,
.header-status {
@include table-flex-child(1, 50px, 0);
}
.check {
background-color: darken($whitish, 10%);
border-radius: 2px;
cursor: pointer;
height: 1.5rem;
overflow: hidden;
position: relative;
width: 65px;
input[type=checkbox] {
cursor: pointer;
height: 500px;
left: -10px;
opacity: 0;
position: absolute;
top: -10px;
width: 500px;
z-index: 999;
+ div {
@include transition (all .2s linear);
background-color: $button-gray;
height: 25px;
width: 50%;
}
~ .check-text {
//@include transition(opacity .3s linear);
@extend %small;
color: $white;
position: absolute;
top: .1rem;
}
~ .check-yes {
opacity: 0;
right: .5rem;
}
~ .check-no {
left: .5rem;
opacity: .6;
}
}
input[type=checkbox]:checked {
+ div {
@include transition (all .2s linear);
background-color: #74a218;
margin-left: 50%;
}
~ .check-yes {
opacity: .6;
right: .4rem;
}
~ .check-no {
left: .4rem;
opacity: 0;
}
}
}
}