Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// The dropdown wrapper (`<div>`)
2
.dropup,
3
.dropright,
4
.dropdown,
5
.dropleft {
6
  position: relative;
7
}
8
 
9
.dropdown-toggle {
10
  white-space: nowrap;
11
 
12
  // Generate the caret automatically
13
  @include caret();
14
}
15
 
16
.tertiary-navigation .tertiary-navigation-selector .dropdown-toggle::after {
17
  margin-left: 2px;
18
  border-top: 5px solid;
19
  border-right: 5px solid transparent;
20
  border-left: 5px solid transparent;
21
}
22
 
23
// The dropdown menu
24
.dropdown-menu {
25
  position: absolute;
26
  top: 100%;
27
  left: 0;
28
  right: auto;
29
  max-width: 280px;
30
  z-index: $zindex-fixed + 200;
31
  display: none; // none by default, but block on "open" of the menu
32
  float: left;
33
  min-width: $dropdown-min-width;
34
  padding: $dropdown-padding-y $dropdown-padding-x;
35
  margin: $dropdown-spacer 0 0; // override default ul
36
  @include font-size($dropdown-font-size);
37
  color: $dropdown-color;
38
  text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
39
  list-style: none;
40
  background-color: $dropdown-bg;
41
  background-clip: padding-box;
42
  @include border-radius($dropdown-border-radius);
43
  box-shadow: 0 1px 1px rgba(0,0,0,0.11), 0 2px 2px rgba(0,0,0,0.11), 0 4px 4px rgba(0,0,0,0.11), 0 8px 8px rgba(0,0,0,0.11), 0 16px 16px rgba(0,0,0,0.11), 0 32px 32px rgba(0,0,0,0.11);
44
 
45
  .rui-course-card & {
46
    max-width: 195px;
47
  }
48
 
49
  .border-top, .border-bottom {
50
    border-color: $dropdown-border-color!important;
51
  }
52
 
53
  .block-controls & {
54
    padding: 5px;
55
    margin: 2px;
56
  }
57
 
58
  .theme-dark & {
59
    color: $dm-dropdown-color;
60
    background-color: $dm-dropdown-bg;
61
    border: 1px solid $dm-border-color;
62
  }
63
 
64
  li {
65
    margin-bottom: .35rem;
66
 
67
    &:last-of-type {
68
      margin-bottom: 0;
69
    }
70
  }
71
}
72
 
73
@each $breakpoint in map-keys($grid-breakpoints) {
74
  @include media-breakpoint-up($breakpoint) {
75
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
76
 
77
    .dropdown-menu#{$infix}-left {
78
      right: auto;
79
      left: 0;
80
    }
81
 
82
    .dropdown-menu#{$infix}-right {
83
      right: 0;
84
      left: auto;
85
    }
86
  }
87
}
88
 
89
// Allow for dropdowns to go bottom up (aka, dropup-menu)
90
// Just add .dropup after the standard .dropdown class and you're set.
91
.dropup {
92
  .dropdown-menu {
93
    top: auto;
94
    bottom: 100%;
95
    margin-top: 0;
96
    margin-bottom: $dropdown-spacer;
97
  }
98
 
99
  .dropdown-toggle {
100
    @include caret(up);
101
  }
102
}
103
 
104
.dropright {
105
  .dropdown-menu {
106
    top: 0;
107
    right: auto;
108
    left: 100%;
109
    margin-top: 0;
110
    margin-left: $dropdown-spacer;
111
  }
112
 
113
  .dropdown-toggle {
114
    @include caret(right);
115
 
116
    &::after {
117
      vertical-align: 0;
118
    }
119
  }
120
}
121
 
122
.dropleft {
123
  .dropdown-menu {
124
    top: 0;
125
    right: 100%;
126
    left: auto;
127
    margin-top: 0;
128
    margin-right: $dropdown-spacer;
129
  }
130
 
131
  .dropdown-toggle {
132
    @include caret(left);
133
 
134
    &::before {
135
      vertical-align: 0;
136
    }
137
  }
138
}
139
 
140
// When enabled Popper.js, reset basic dropdown position
141
// stylelint-disable-next-line no-duplicate-selectors
142
.dropdown-menu {
143
  &[x-placement^="top"],
144
  &[x-placement^="right"],
145
  &[x-placement^="bottom"],
146
  &[x-placement^="left"] {
147
    right: auto;
148
    bottom: auto;
149
  }
150
}
151
 
152
// Dividers (basically an `<hr>`) within the dropdown
153
.dropdown-divider {
154
  @include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y, true);
155
 
156
  .theme-dark & {
157
    @include nav-divider($dm-dropdown-divider-bg, $dropdown-divider-margin-y, true);
158
  }
159
 
160
  &+.dropdown-divider {
161
    display: none;
162
  }
163
}
164
 
165
// Links, buttons, and more within the dropdown menu
166
//
167
// `<button>`-specific styles are denoted with `// For <button>s`
168
input.dropdown-item {
169
  background-color: transparent;
170
}
171
 
172
.dropdown-menu a,
173
.dropdown-menu .dropdown-item {
174
  display: flex;
175
  align-items: center;
176
  width: 100%;
177
  max-width: 290px;
178
 
179
  padding: $dropdown-item-padding-y $dropdown-item-padding-x;
180
  margin-bottom: 2px;
181
  clear: both;
182
 
183
  font-size: $font-size-xs;
184
  font-weight: $font-weight-medium;
185
  color: $dropdown-color;
186
 
187
  text-align: inherit; // For `<button>`s
188
  text-decoration: none!important;
189
  /*word-break: normal;
190
  white-space: break-spaces;*/
191
 
192
  white-space: normal;
193
 
194
  border: 0; // For `<button>`s
195
  border-radius: $dropdown-border-radius - 2px;
196
 
197
  background-color: transparent;
198
  background-blend-mode:hard-light;
199
 
200
  // Edwiser Report Plugin
201
  input[type="text"] {
202
    color: $dropdown-color;
203
 
204
    .theme-dark & {
205
      color: $dm-dropdown-color;
206
    }
207
  }
208
 
209
  &:after {
210
    display: none;
211
  }
212
 
213
  &:last-child {
214
    margin-bottom: 0;
215
  }
216
 
217
  &[disabled=disabled] {
218
    opacity: .5;
219
    background-color: $dropdown-link-hover-bg;
220
  }
221
 
222
  .rui-course-card & {
223
    min-width: 180px;
224
  }
225
 
226
  .theme-dark & {
227
    color: $dm-dropdown-color;
228
  }
229
 
230
  &.ml-4 {
231
    width: calc(100% - 1.875rem);
232
  }
233
 
234
  &:not(.hidden) {
235
    display: flex;
236
  }
237
 
238
  .icon {
239
    margin-right: 7px;
240
    width: 16px;
241
    height: 16px;
242
    line-height: 1.3;
243
    color: inherit;
244
    opacity: .6;
245
  }
246
 
247
  img.icon {
248
    filter: invert(1);
249
  }
250
 
251
  .rui-icon {
252
    line-height: 1;
253
  }
254
 
255
  // Prevent dropdown overflow if there's no padding
256
  // See https://github.com/twbs/bootstrap/pull/27703
257
  @if $dropdown-padding-y==0 {
258
    &:first-child {
259
      @include border-top-radius($dropdown-inner-border-radius);
260
    }
261
 
262
    &:last-child {
263
      @include border-bottom-radius($dropdown-inner-border-radius);
264
    }
265
  }
266
 
267
  &.hidden {
268
    display: none;
269
  }
270
 
271
  &.active,
272
  &:hover {
273
    color: $dropdown-link-hover-color;
274
    text-decoration: none;
275
    background-color: $dropdown-link-hover-bg;
276
 
277
    .theme-dark & {
278
      color: $dm-dropdown-link-hover-color;
279
      background-color: $dm-dropdown-link-hover-bg;
280
    }
281
 
282
  }
283
 
284
  &.active,
285
  &:active {
286
    a {
287
      color: $dropdown-link-active-color;
288
      text-decoration: none;
289
      @include gradient-bg($dropdown-link-active-bg);
290
    }
291
 
292
    .icon {
293
      filter: invert(1);
294
    }
295
  }
296
 
297
  &:after {
298
    display: none;
299
  }
300
 
301
  &[aria-current="true"] {
302
    position: relative;
303
    display: flex;
304
    align-items: center;
305
 
306
    color: $dropdown-link-active-color;
307
    text-decoration: none;
308
    @include gradient-bg($dropdown-link-active-bg);
309
 
310
    margin-bottom: .15rem;
311
 
312
    .theme-dark & {
313
      color: $dm-dropdown-link-active-color;
314
      @include gradient-bg($dm-dropdown-link-active-bg);
315
    }
316
  }
317
 
318
  &.disabled,
319
  &:disabled {
320
    a {
321
      opacity: .5;
322
      color: $dropdown-link-disabled-color;
323
      pointer-events: none;
324
      background-color: transparent;
325
 
326
      // Remove CSS gradients if they're enabled
327
      @if $enable-gradients {
328
        background-image: none;
329
      }
330
 
331
      .theme-dark & {
332
        color: $dm-dropdown-link-disabled-color;
333
      }
334
    }
335
  }
336
 
337
}
338
 
339
//Atto Editor mod
340
.dropdown-menu .atto_menuentry {
341
  a {
342
    display: block;
343
    width: 100%; // For `<button>`s
344
 
345
    margin-bottom: 0.25rem;
346
    padding: $dropdown-item-padding-y $dropdown-item-padding-x;
347
    clear: both;
348
 
349
    font-size: $font-size-md;
350
    font-weight: $font-weight-medium;
351
    color: $dropdown-color;
352
 
353
    text-align: inherit; // For `<button>`s
354
    text-decoration: if($link-decoration==none, null, none);
355
    white-space: nowrap; // prevent links from randomly breaking onto new lines
356
 
357
    border: 0; // For `<button>`s
358
    border-radius: $btn-border-radius;
359
 
360
    .theme-dark & {
361
      color: $dm-dropdown-color;
362
    }
363
 
364
    &:hover {
365
      color: $dropdown-link-hover-color;
366
      text-decoration: none;
367
      background-color: $dropdown-link-hover-bg;
368
 
369
      .theme-dark & {
370
        color: $dm-dropdown-link-hover-color;
371
        background-color: $dm-dropdown-link-hover-bg;
372
      }
373
    }
374
  }
375
 
376
}
377
 
378
.dropdown-menu.show {
379
  display: block;
380
  min-height: max-content;
381
  width: max-content;
382
  max-width: 300px;
383
}
384
 
385
.dir-rtl .usermenu {
386
  .dropdown-menu.show {
387
    display: block;
388
    left: 30px!important;
389
  }
390
}
391
 
392
// Dropdown section headers
393
.dropdown-header {
394
  display: block;
395
  padding: .35rem 1rem;
396
  margin: 0 -5px 5px; // for use with heading elements
397
  @include font-size($font-size-xs);
398
  font-weight: $font-weight-medium;
399
  color: $dropdown-header-color;
400
  white-space: nowrap; // as with > li > a
401
 
402
  border-bottom: 1px solid $dropdown-border-color;
403
 
404
  .theme-dark & {
405
    color: $dm-dropdown-header-color;
406
    border-bottom: 1px solid $dm-dropdown-border-color;
407
  }
408
}
409
 
410
// Dropdown text
411
.dropdown {
412
  .dropdown-item-text {
413
    max-width: calc(100% - 30px);
414
    @extend .text-truncate;
415
  }
416
 
417
}
418
 
419
 
420
 
421
// Action menu trigger - settings button
422
.dropdown-btn {
423
 
424
  @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
425
  font-weight: $font-weight-medium;
426
  color: $body-color;
427
 
428
  @include transition($btn-transition);
429
 
430
  .action-menu-trigger &,
431
  #category-listing & {
432
    padding: 5px;
433
 
434
    &:after {
435
      display: none;
436
    }
437
  }
438
 
439
  .theme-dark & {
440
    color: $dm-gray-900;
441
  }
442
 
443
  .main-nav-container & {
444
    background-color: transparent;
445
    color: $body-color-secondary;
446
 
447
    .theme-dark & {
448
      background-color: transparent;
449
      color: $dm-body-color-secondary;
450
    }
451
  }
452
 
453
  &:hover {
454
    background-color: $gray-100;
455
    color: $body-color;
456
    text-decoration: none;
457
 
458
    .theme-dark & {
459
      background-color: $dm-gray-300;
460
      color: $dm-body-color;
461
    }
462
  }
463
 
464
  .icon {
465
    margin: 0;
466
    width: 24px;
467
    height: 24px;
468
    line-height: 24px;
469
 
470
    #course-category-listings & {
471
      display: inline-flex;
472
      align-items: center;
473
 
474
      width: 16px;
475
      height: 16px;
476
    }
477
  }
478
}
479
 
480
// The dropdown menu
481
.dropdown-user {
482
  width: 300px;
483
  max-width: 300px;
484
 
485
  margin: 0;
486
  display: flex;
487
  align-items: center;
488
  justify-content: center;
489
  flex-wrap: wrap;
490
 
491
  font-size: 1rem; //16px
492
  font-weight: $font-weight-medium;
493
  color: $dropdown-text;
494
 
495
  .theme-dark & {
496
    color: $dm-dropdown-text;
497
  }
498
 
499
  .meta.viewingas,
500
  .meta.role {
501
    position: relative;
502
    display: block;
503
    background-color: $green-200;
504
    padding: 9px 14px;
505
    margin: 5px 0 0;
506
 
507
    border-radius: $btn-border-radius;
508
 
509
    font-size: $font-size-xs;
510
    line-height: 1.3;
511
    color: $green-800;
512
    text-align: center;
513
  }
514
}
515
 
516
// .meta.loginfailures {
517
//   padding: 3px 8px;
518
//   background-color: $yellow-100;
519
//   border-radius: $btn-border-radius;
520
 
521
//   font-size: $font-size-xs;
522
//   white-space: normal;
523
//   line-height: 1.3;
524
//   color: $yellow-800;
525
// }
526
 
527
.dropdown-user-meta:not(:empty) {
528
  margin: 5px 0 0;
529
  white-space: normal;
530
 
531
  .badge-xs:empty {
532
    display: none;
533
  }
534
}
535
 
536
.dropdown-user-nick {
537
  margin: 15px 0 5px;
538
  white-space: normal;
539
  font-size: $font-size-xs;
540
  line-height: 1;
541
  color: rgba($dropdown-text, .8);
542
}
543
 
544
.dropdown-user-mail {
545
  display: block;
546
  width: 100%;
547
 
548
  font-size: 0.75rem;
549
  font-weight: $font-weight-normal;
550
  color: rgba($dropdown-text, .8);
551
 
552
  .theme-dark & {
553
    color: rgba($dm-dropdown-text, .8);
554
  }
555
}
556
 
557
.dropdown-user-wrapper {
558
  padding: 10px 12px;
559
  display: flex;
560
  flex-wrap: wrap;
561
}
562
 
563
.rui-fullname {
564
  width: 100%;
565
  font-size: $font-size-sm;
566
  white-space: normal;
567
  word-break: break-all;
568
}
569
 
570
.dropdown-item.aabtn.menu-action {
571
  .dropdown-item--text {
572
    display: none;
573
  }
574
}
575
 
576
.dropdown-item--text {
577
  max-width: 200px;
578
}
579
 
580
// Tool Lp Competencies
581
.dropdown {
582
  .tool-lp-menu-item {
583
    padding: 0;
584
 
585
    a {
586
      width: 100%;
587
      min-width: 200px;
588
      font-weight: $font-weight-medium;
589
      color: $dropdown-text;
590
 
591
      &:hover {
592
        text-decoration: none;
593
      }
594
 
595
      .icon {
596
        padding: 0;
597
      }
598
    }
599
  }
600
}
601
 
602
.dropdown-menu,
603
.collapsecolumndropdown {
604
  .text-muted {
605
    color: $dm-body-color-light;
606
  }
607
}
608
 
609
 
610
// Moodle 4.3
611
.choicelist {
612
  flex-wrap: wrap;
613
}
614
 
615
.option-selected-bg {
616
  background-color: $dropdown-link-active-bg;
617
 
618
  .theme-dark & {
619
    background-color: $dm-dropdown-link-active-bg;
620
  }
621
}
622
 
623
.option-description {
624
  color: rgba($dropdown-text, .8);
625
 
626
  .theme-dark & {
627
    color: rgba($dm-dropdown-text, .8);
628
  }
629
}
630
 
631
.dropdown-item.editing_delete {
632
  background-color: #4c2623;
633
 
634
  span {
635
    color: #ff887f!important;
636
  }
637
 
638
  &:hover {
639
    background-color: #5d2b28!important;
640
  }
641
 
642
  .icon {
643
    color: #ff887f;
644
    opacity: 1;
645
  }
646
 
647
  img {
648
    mix-blend-mode: plus-lighter;
649
  }
650
 
651
}
652
 
653
.groupmode-icon-info {
654
  font-size: $font-size-xs;
655
}
656
 
657
.gradesearchdropdown {
658
  .w-100.p-3 {
659
    padding: $dropdown-padding-x $dropdown-padding-y!important;
660
  }
661
}