aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/permissionsViewer/styles.css
blob: 6d6c1379cf7d8971b7b029097ca58cbd78af27a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* User Permissions Component */

.vc-permviewer-userperms-title-container {
    display: flex;
    justify-content: space-between;
}

.vc-permviewer-userperms-title {
    margin-top: 10px;
    margin-bottom: 6px;
}

.vc-permviewer-userperms-permdetails-btn {
    all: unset;
    cursor: pointer;
}

.vc-permviewer-userperms-toggleperms-btn {
    all: unset;
    cursor: pointer;
}

/*  RolesAndUsersPermissions Component */

.vc-permviewer-perms-title {
    flex-grow: 1;
}

.vc-permviewer-perms-no-perms {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vc-permviewer-perms-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas: "list permissions";
    padding: 16px 0;
}

.vc-permviewer-perms-list {
    grid-area: list;
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--background-modifier-active);
}

.vc-permviewer-perms-list-item-btn {
    all: unset;
    cursor: pointer;
}

.vc-permviewer-perms-list-item {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    cursor: pointer;
    width: 165px;
}

.vc-permviewer-perms-list-item > div {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.vc-permviewer-perms-list-item-active {
    background-color: var(--background-modifier-selected);
    border-radius: 5px;
}

.vc-permviewer-perms-role-circle {
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin-left: 3px;
    margin-right: 11px;
    flex-shrink: 0;
}

.vc-permviewer-perms-user-img {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.vc-permviewer-perms-perms {
    grid-area: permissions;
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.vc-permviewer-perms-perms-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 2px solid var(--background-modifier-active);
}

.vc-permviewer-perms-perms-item:last-child {
    border: 0;
}

.vc-permviewer-perms-perms-item-icon {
    border: 1px solid var(--background-modifier-selected);
    width: 25px;
    height: 25px;
    margin-right: 5px;
}

.vc-permviewer-perms-perms-item .vc-info-icon {
    color: var(--interactive-muted);
    cursor: pointer;
    position: absolute;
    right: 0;
    scale: 0.9;
}

.vc-permviewer-perms-perms-item .vc-info-icon:hover {
    color: var(--interactive-active);
}