Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/**
2
 Blocks
3
 */
4
 
5
.blockmovetarget .accesshide {
6
    position: relative;
7
    left: initial;
8
}
9
 
10
.block:target {
11
    padding-top: 0 !important; /* stylelint-disable declaration-no-important */
12
    margin-top: 0 !important;
13
}
14
 
15
.block_search_forums .searchform {
16
    /* Override plugin's default. */
17
    text-align: left;
18
}
19
 
20
.block.block_navigation .block_tree ul,
21
.block_settings .block_tree ul {
22
    margin-left: 0;
23
}
24
 
25
.block .block-controls {
26
    .dropdown-toggle {
27
        /* So that the caret takes the colour of the icon. */
28
        color: $body-color;
29
    }
30
}
31
 
32
$blocks-column-width: 360px !default;
33
 
34
[data-region="blocks-column"] {
35
    width: $blocks-column-width;
36
    float: right;
37
}
38
 
39
$blocks-plus-gutter: $blocks-column-width + ( $grid-gutter-width * 0.5 );
40
 
41
/* We put an absolutely positioned div in a relatively positioned div so it takes up no space */
42
@include media-breakpoint-up(sm) {
43
    #region-main-settings-menu {
44
        position: relative;
45
        float: left;
46
        width: 100%;
47
    }
48
 
49
    #region-main-settings-menu > div {
50
        position: absolute;
51
        right: 0;
52
        z-index: 100;
53
        margin: 1rem;
54
    }
55
 
56
    .region_main_settings_menu_proxy {
57
        width: 4rem;
58
        height: 2rem;
59
        background-color: $body-bg;
60
        margin-left: $card-spacer-x * 0.5;
61
        margin-bottom: $card-spacer-x * 0.5;
62
        border-bottom-left-radius: 0.5rem;
63
        float: right;
64
    }
65
}
66
 
67
@include media-breakpoint-down(sm) {
68
    #region-main-settings-menu .menubar {
69
        justify-content: flex-end;
70
    }
71
}
72
 
73
// Required for IE11 to prevent blocks being pushed under the content.
74
#region-main.has-blocks {
75
    display: inline-block;
76
    width: calc(100% - #{$blocks-plus-gutter});
77
    @include media-breakpoint-down(lg) {
78
        width: 100%;
79
        /* MDL-63102 - Remove extra space at bottom.
80
        If modifying make sure block-region is horizontally stacked when in full screen */
81
        display: block;
82
    }
83
}
84
 
85
.header-action {
86
    #region-main-settings-menu {
87
        position: unset;
88
        float: none;
89
        width: auto;
90
 
91
        & > div {
92
            position: unset;
93
            right: auto;
94
            margin: 0;
95
        }
96
    }
97
}
98
 
99
[data-region="blocks-column"] {
100
    @include media-breakpoint-down(lg) {
101
        width: 100%;
102
    }
103
}
104
 
105
.block .empty-placeholder-image-lg {
106
    height: 5rem;
107
}
108
 
109
.block {
110
    .searchbar {
111
        .icon {
112
            margin-right: 0;
113
        }
114
    }
115
}
116
 
117
//
118
// Cards.
119
//
120
 
121
.block .block-cards {
122
    .course-info-container {
123
        padding: 0.8rem;
124
    }
125
    .progress {
126
        height: 0.5rem;
127
    }
128
    .course-summaryitem {
129
        border: $border-width solid $border-color;
130
        background-color: $body-bg;
131
    }
132
    .icon {
133
        margin-right: 0;
134
    }
135
    .card .coursemenubtn {
136
        margin-top: -0.5rem;
137
    }
138
    span.categoryname,
139
    .btn-link {
140
        color: $gray-900;
141
    }
142
    .progress-text {
143
        color: $gray-600;
144
    }
145
    .multiline {
146
        white-space: normal;
147
    }
148
    .btn.btn-link.btn-icon {
149
        height: 36px;
150
        width: 36px;
151
        padding: 0;
152
        border-radius: 50%;
153
    }
154
}
155
.card-grid {
156
    display: flex;
157
    .card {
158
        flex: 1;
159
    }
160
    .drawercontent & .col,
161
    .blockcolumn & .col {
162
        flex: 0 0 auto;
163
        max-width: 100%;
164
    }
165
}
166
.card-carousel {
167
    display: flex;
168
    .card {
169
        flex: 1;
170
        @include media-breakpoint-up(sm) {
171
            flex: 0 1 auto;
172
            width: 240px;
173
            max-width: 100%;
174
        }
175
    }
176
}
177
.course-card,
178
.theme-card {
179
    .card-img-top {
180
        height: 7rem;
181
        background-position: center;
182
        background-size: cover;
183
    }
184
}
185
 
186
//
187
// Block block_recentlyaccessedcourses
188
//
189
 
190
.block_recentlyaccessedcourses {
191
    .paging-bar-container {
192
        margin-top: -2.4rem;
193
        padding-right: 0.5rem;
194
        justify-content: flex-end;
195
    }
196
    @include media-breakpoint-down(xs) {
197
        .paging-bar-container {
198
            margin-top: 0;
199
        }
200
    }
201
}
202
#block-region-side-pre {
203
    .block_recentlyaccessedcourses {
204
        .paging-bar-container {
205
            margin-top: 0;
206
        }
207
    }
208
}
209
 
210
//
211
// Block block_recentlyaccesseditems
212
//
213
 
214
.block_recentlyaccesseditems {
215
    .activityiconcontainer {
216
        width: 40px;
217
        height: 40px;
218
    }
219
    aside[id^="block-region-side-"] & .card:nth-of-type(n+4) {
220
        display: none;
221
    }
222
    #block-region-content & [data-region="more-items-button-container"] {
223
        display: none;
224
    }
225
    a.card {
226
        &:hover,
227
        &:focus {
228
            text-decoration: none;
229
            h6 {
230
                text-decoration: underline;
231
            }
232
        }
233
        small {
234
            color: $body-color;
235
        }
236
    }
237
}
238
 
239
//
240
// Block block_myoverview
241
//
242
 
243
.block_myoverview {
244
    .content {
245
        min-height: 19.35rem;
246
    }
247
    .paged-content-page-container {
248
        min-height: 13rem;
249
    }
250
    .summary-image {
251
        height: 5rem;
252
        width: 5rem;
253
        background-position: center;
254
        background-size: cover;
255
    }
256
    .list-image {
257
        height: 5rem;
258
        width: 20rem;
259
        background-position: center;
260
        background-size: cover;
261
        @include media-breakpoint-down(lg) {
262
            width: 100%;
263
        }
264
    }
265
}
266
 
267
//
268
// Block block_timeline
269
//
270
 
271
.block_timeline {
272
    .paged-content-page-container {
273
        background-color: $list-group-bg;
274
    }
275
}
276
.block_timeline {
277
    .event-action {
278
        padding-left: 5.55em;
279
    }
280
}
281
 
282
//
283
// Blocks block_settings and block_navigation
284
//
285
 
286
// Show expand collapse with font-awesome.
287
.block_settings .block_tree [aria-expanded="true"],
288
.block_settings .block_tree [aria-expanded="true"].emptybranch,
289
.block_settings .block_tree [aria-expanded="false"],
290
.block_navigation .block_tree [aria-expanded="true"],
291
.block_navigation .block_tree [aria-expanded="true"].emptybranch,
292
.block_navigation .block_tree [aria-expanded="false"] {
293
    background-image: none;
294
}
295
.block_settings .block_tree [aria-expanded="true"] > p:before,
296
.block_navigation .block_tree [aria-expanded="true"] > p:before {
297
    @extend .fa-solid;
298
    content: fa-content($fa-var-angle-down);
299
    margin-right: 0;
300
    font-size: 16px;
301
    width: 16px;
302
}
303
 
304
.block_settings .block_tree [aria-expanded="false"] > p:before,
305
.block_navigation .block_tree [aria-expanded="false"] > p:before {
306
    @extend .fa-solid;
307
    content: fa-content($fa-var-angle-right);
308
    margin-right: 0;
309
    font-size: 16px;
310
    width: 16px;
311
}
312
.dir-rtl {
313
    .block_settings .block_tree [aria-expanded="false"] > p:before,
314
    .block_navigation .block_tree [aria-expanded="false"] > p:before {
315
        @extend .fa-solid;
316
        content: fa-content($fa-var-angle-left);
317
    }
318
}
319
 
320
.block_navigation .block_tree p.hasicon,
321
.block_settings .block_tree p.hasicon {
322
    text-indent: -3px;
323
 
324
    .icon {
325
        margin-right: 2px;
326
    }
327
}
328
 
329
.block.invisibleblock .card-title {
330
    color: $text-muted;
331
}
332
 
333
.block_social_activities li a.movehere,
334
.block_site_main_menu li a.movehere {
335
    display: block;
336
    width: 100%;
337
    height: 2rem;
338
    border: 2px dashed $gray-800;
339
    margin: 4px 0;
340
}
341
 
342
//
343
// Fake blocks
344
//
345
 
346
.pagelayout-embedded {
347
    .has-fake-blocks {
348
        padding: 1rem;
349
        display: flex;
350
    }
351
 
352
    .has-fake-blocks .embedded-main {
353
        order: 0;
354
        width: calc(100% - #{$blocks-column-width});
355
        margin-right: 1rem;
356
    }
357
 
358
    .embedded-blocks {
359
        order: 1;
360
        width: $blocks-column-width;
361
    }
362
 
363
    @media (max-width: 767.98px) {
364
        .has-fake-blocks {
365
            display: block;
366
        }
367
        .has-fake-blocks .embedded-main {
368
            width: 100%;
369
        }
370
        .embedded-blocks {
371
            width: 100%;
372
        }
373
    }
374
}
375
 
376
//
377
// Block add button
378
//
379
.block-add {
380
    @include alert-variant($primary-light-background, $primary-light-border, $primary);
381
    @include border-radius();
382
    width: 100%;
383
    border-width: $border-width;
384
    .pluscontainer {
385
        border: $border-width solid $primary-light-border;
386
        border-radius: 50%;
387
        width: map-get($iconsizes, 5);
388
        height: map-get($iconsizes, 5);
389
    }
390
    &:hover {
391
        cursor: pointer;
392
        background-color: $primary-light-background;
393
        .activity-add-text {
394
            text-decoration: underline;
395
        }
396
    }
397
}