Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/*
2
    TODO: Improve UI:
3
    - RWD
4
    - Table
5
*/
6
.content-bank-container {
7
    .cb-content-wrapper {
8
        padding: 0.5rem;
9
        min-height: 140px;
10
        max-height: 500px;
11
        overflow-x: auto;
12
        flex-wrap: wrap;
13
    }
14
    .cb-thumbnail {
15
        width: 24px;
16
        height: 24px;
17
        background-repeat: no-repeat;
18
        background-position: center;
19
        background-size: cover;
20
    }
21
    &.view-grid {
22
        .cb-listitem {
23
            margin-bottom: 0.5rem;
24
        }
25
 
26
        .cb-listitem.cb-unlisted {
27
            position: relative;
28
        }
29
 
30
        @include media-breakpoint-between(xs,sm) {
31
            .cb-listitem {
32
                flex-basis: 50%;
33
            }
34
        }
35
 
36
        @include media-breakpoint-up(sm) {
37
            .cb-listitem {
38
                max-width: 120px;
39
                min-width: 120px;
40
            }
41
        }
42
 
43
        .cb-name {
44
            text-align: center;
45
        }
46
        .cb-file {
47
            padding: 0.5rem;
48
        }
49
        .cb-thumbnail {
50
            width: 64px;
51
            height: 64px;
52
            margin-left: auto;
53
            margin-right: auto;
54
            margin-bottom: 0.5rem;
55
        }
56
 
57
        .cb-unlisted .cb-thumbnail {
58
            opacity: .15;
59
        }
60
 
61
        /* Display a centered eye slash on top of unlisted content icons. */
62
        .cb-unlisted::after {
63
            position: absolute;
64
            top: 20px;
65
            left: 0;
66
            width: 100%;
67
 
68
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='#{url-friendly-colour($body-color)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M18.6247 10C19.0646 10.8986 19.25 11.6745 19.25 12C19.25 13 17.5 18.25 12 18.25C11.2686 18.25 10.6035 18.1572 10 17.9938M7 16.2686C5.36209 14.6693 4.75 12.5914 4.75 12C4.75 11 6.5 5.75 12 5.75C13.7947 5.75 15.1901 6.30902 16.2558 7.09698'%3E%3C/path%3E%3Cpath stroke='#{url-friendly-colour($body-color)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19.25 4.75L4.75 19.25'%3E%3C/path%3E%3Cpath stroke='#{url-friendly-colour($body-color)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M10.409 13.591C9.53033 12.7123 9.53033 11.2877 10.409 10.409C11.2877 9.5303 12.7123 9.5303 13.591 10.409'%3E%3C/path%3E%3C/svg%3E%0A");
69
            background-repeat: no-repeat;
70
            background-size: 24px;
71
 
72
            .theme-dark & {
73
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='#{url-friendly-colour($dm-body-color)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M18.6247 10C19.0646 10.8986 19.25 11.6745 19.25 12C19.25 13 17.5 18.25 12 18.25C11.2686 18.25 10.6035 18.1572 10 17.9938M7 16.2686C5.36209 14.6693 4.75 12.5914 4.75 12C4.75 11 6.5 5.75 12 5.75C13.7947 5.75 15.1901 6.30902 16.2558 7.09698'%3E%3C/path%3E%3Cpath stroke='#{url-friendly-colour($dm-body-color)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19.25 4.75L4.75 19.25'%3E%3C/path%3E%3Cpath stroke='#{url-friendly-colour($dm-body-color)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M10.409 13.591C9.53033 12.7123 9.53033 11.2877 10.409 10.409C11.2877 9.5303 12.7123 9.5303 13.591 10.409'%3E%3C/path%3E%3C/svg%3E%0A");
74
            }
75
        }
76
 
77
        .cb-heading,
78
        .cb-uses,
79
        .cb-date,
80
        .cb-size,
81
        .cb-type,
82
        .cb-author {
83
            display: none;
84
        }
85
    }
86
 
87
    &.view-list {
88
        .cb-content-wrapper {
89
            padding: 0 0.5rem;
90
            flex-direction: column;
91
            flex-wrap: nowrap;
92
        }
93
 
94
        .cb-thumbnail {
95
            margin-right: 0.5rem;
96
        }
97
 
98
        .cb-listitem,
99
        .cb-heading {
100
            display: flex;
101
            flex-wrap: wrap;
102
            width: 100%;
103
            border-bottom: $border-width solid $border-color;
104
 
105
            .theme-dark & {border-color: $dm-border-color;}
106
        }
107
 
108
        .cb-column {
109
            display: flex;
110
            align-items: center;
111
            padding: 0.25rem;
112
            border-right: $border-width solid $border-color;
113
 
114
            .theme-dark & {border-color: $dm-border-color;}
115
 
116
            .title {
117
                font-size: 12px;
118
                font-weight: $font-weight-medium;
119
                color: $body-color-light;
120
            }
121
        }
122
 
123
        .cb-listitem.cb-unlisted .cb-thumbnail {
124
            opacity: .3;
125
        }
126
 
127
        .cb-listitem.cb-unlisted .cb-column,
128
        .cb-listitem.cb-unlisted .cb-column a {
129
            color: $text-muted;
130
 
131
            .theme-dark & {color: $dm-text-muted;}
132
        }
133
 
134
        @include media-breakpoint-between(xs,sm) {
135
            .cb-column {
136
                flex: 0 0 50%;
137
                max-width: 50%;
138
            }
139
        }
140
 
141
        @include media-breakpoint-up(sm) {
142
            .cb-heading {
143
                position: sticky;
144
                top: 0;
145
                z-index: 1;
146
            }
147
 
148
            .cb-file {
149
                flex: 0 0 40%;
150
                max-width: 40%;
151
            }
152
            .cb-uses,
153
            .cb-date,
154
            .cb-size,
155
            .cb-type,
156
            .cb-author {
157
                flex: 0 0 12%;
158
                max-width: 12%;
159
            }
160
            .cb-column.last {
161
                border-right: 0;
162
            }
163
        }
164
 
165
        .cb-btnsort {
166
            span {
167
                display: none;
168
            }
169
            .title {
170
                display: inline;
171
            }
172
            &.dir-none .default,
173
            &.dir-asc .asc,
174
            &.dir-desc .desc {
175
                display: inline;
176
            }
177
 
178
            .icon {
179
                width: 14px;
180
                height: 14px;
181
            }
182
        }
183
    }
184
}
185
 
186
.cb-toolbar-container .dropdown-scrollable {
187
    @include thin-scrolls($dm-drawer-scroll-bg-track);
188
 
189
    max-height: 390px;
190
    overflow-y: auto;
191
    overflow-x: hidden;
192
 
193
    .icon-size-4 .icon {
194
        width: 24px!important;
195
        height: 24px!important;
196
    }
197
 
198
    .icon {
199
        filter: invert(0)!important;
200
        background: $white;
201
        opacity: 1;
202
        border-radius: $btn-border-radius-lg;
203
    }
204
}