Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Base class
2
//
3
// Kickstart any navigation component with a set of style resets. Works with
4
// `<nav>`s, `<ul>`s or `<ol>`s.
5
 
6
.nav {
7
  display: flex;
8
  flex-wrap: wrap;
9
  padding-left: 0;
10
  margin-bottom: 0;
11
  list-style: none;
12
}
13
 
14
.nav-link {
15
  text-decoration: if($link-decoration==none, null, none);
16
 
17
  @include hover-focus() {
18
    text-decoration: none;
19
  }
20
 
21
  // Disabled state lightens text
22
  &.disabled {
23
    color: $nav-link-disabled-color;
24
    pointer-events: none;
25
    cursor: default;
26
 
27
    .theme-dark & {
28
      color: $dm-nav-link-disabled-color;
29
    }
30
  }
31
}
32
 
33
.nav-tabs {
34
  padding: 10px 0;
35
  margin: 0;
36
 
37
  font-size: $font-size-sm;
38
  font-weight: $font-weight-medium;
39
 
40
  &.root {
41
    max-width: 100%;
42
    width: max-content;
1441 ariadna 43
    padding: 0;
1 efrain 44
  }
45
 
46
  +.nav-tabs {
47
    margin-top: .25rem;
48
  }
49
 
50
  .nav-item {
51
    display: block;
52
 
53
    &:focus {
54
      outline: none;
55
      box-shadow: none;
56
    }
57
  }
58
 
59
  .nav-item {
60
    &:last-child {
61
      margin-right: 0;
62
    }
63
  }
64
 
65
  .nav-link {
66
    padding: 0;
67
    margin-right: 16px;
68
 
69
    display: inline-flex;
70
    position: relative;
71
 
72
    border-radius: $btn-border-radius;
73
 
74
    font-weight: $font-weight-medium;
75
    color: $gray-900;
76
 
77
    transition: $transition-base;
78
 
79
    .theme-dark & {
80
      color: $dm-gray-900;
81
    }
82
 
83
    &:hover {
84
      color: $nav-tabs-link-hover-color;
85
      text-decoration: none;
86
 
87
      .theme-dark & {
88
        color: var(--primary-color-100);
89
      }
90
 
91
      &:before {
92
        opacity: 1;
93
      }
94
    }
95
 
96
    &.active {
97
      &::before {
98
        opacity: 0;
99
      }
100
    }
101
 
102
    &.disabled {
103
      color: $nav-link-disabled-color;
104
      opacity: 0.4;
105
 
106
      .theme-dark & {
107
        color: $dm-nav-link-disabled-color;
108
      }
109
 
110
    }
111
  }
112
 
113
  .nav-link.active,
114
  .nav-item.show .nav-link {
1441 ariadna 115
    background-color: $nav-tabs-link-active-bg;
1 efrain 116
    color: $nav-tabs-link-active-color;
117
 
118
    &:hover {
1441 ariadna 119
      background-color: $nav-tabs-link-hover-bg;
1 efrain 120
      color: $nav-tabs-link-hover-color;
1441 ariadna 121
 
122
      .theme-dark & {
123
        background-color: transparent;
124
      }
1 efrain 125
    }
126
 
127
    .theme-dark & {
1441 ariadna 128
      background-color: transparent;
1 efrain 129
      color: $dm-gray-600;
130
    }
131
  }
132
 
133
  // .dropdown-menu {
134
  //   // Make dropdown border overlap tab border
135
  //   margin-top: -$nav-tabs-border-width;
136
  //   // Remove the top rounded corners here since there is a hard edge above the menu
137
  //   //@include border-top-radius(0);
138
  // }
139
}
140
 
141
.dropdown .nav-item {
142
  margin-right: 0 !important;
143
  width: 100%;
144
}
145
 
146
//
147
// Pills
148
//
149
 
150
.nav-pills {
151
  .nav-link {
152
    @include border-radius($nav-pills-border-radius);
153
    color: $nav-pills-link-active-color;
154
    font-weight: $font-weight-medium;
155
 
156
    .theme-dark & {
157
      color: $dm-nav-pills-link-active-color;
158
    }
159
  }
160
 
161
  .nav-link.active,
162
  .show>.nav-link {
163
    color: $body-color;
164
    background-color: $nav-pills-link-active-bg;
165
 
166
    .theme-dark & {
167
      color: $dm-body-color;
168
      background-color: $dm-nav-pills-link-active-bg;
169
    }
170
  }
171
}
172
 
173
 
174
//
175
// Justified variants
176
//
177
 
178
.nav-fill {
179
 
180
  >.nav-link,
181
  .nav-item {
182
    flex: 1 1 auto;
183
    text-align: center;
184
  }
185
}
186
 
187
.nav-justified {
188
 
189
  >.nav-link,
190
  .nav-item {
191
    flex-basis: 0;
192
    flex-grow: 1;
193
    text-align: center;
194
  }
195
}
196
 
197
 
198
// Tabbable tabs
199
//
200
// Hide tabbable panes to start, show them when `.active`
201
 
202
.tab-content {
203
  >.tab-pane {
204
    display: none;
205
 
206
    .list-unstyled {
207
      line-height: 2;
208
    }
209
  }
210
 
211
  >.active {
212
    display: block;
213
  }
214
}
215
 
216
 
217
/* universe THEME */
218
.rui-courseheadermenu-container {
219
  margin-top: 20px;
220
  font-weight: $font-weight-medium;
221
  font-size: $font-size-md;
222
 
223
  +.page-content {
224
    margin-top: $page-padding-global;
225
  }
226
 
227
  &.rui-topbar--custom-menu {
228
    @include media-breakpoint-down(sm) {
229
      position: relative;
230
      top: 0;
231
    }
232
  }
233
 
234
  @include media-breakpoint-down(md) {
235
    overflow-x: auto;
236
 
237
    .header-links {
238
      width: max-content;
239
    }
240
  }
241
 
242
  .header-link-item {
243
    display: inline-flex;
244
    align-items: center;
245
    position: relative;
246
 
247
    margin: 5px 16px 5px 0;
248
    color: $body-color;
249
 
250
    &:last-of-type {
251
      margin-right: 0;
252
    }
253
 
254
    .theme-dark & {
255
      color: $dm-body-color;
256
    }
257
 
258
    .header-link-item-icon {
259
      opacity: .7;
260
      margin-right: .35rem;
261
    }
262
 
263
    &:after {
264
      content: '';
265
      background-color: var(--primary-color-500);
266
      width: 0%;
267
      height: 1px;
268
 
269
      position: absolute;
270
      left: 1px;
271
      bottom: -6px;
272
 
273
      opacity: 0;
274
 
275
      transition: all 350ms ease;
276
 
277
      .theme-dark & {
278
        background-color: var(--primary-color-300);
279
      }
280
    }
281
 
282
    &:hover {
283
      color: var(--main-theme-color);
284
      text-decoration: none;
285
 
286
      .theme-dark & {
287
        color: var(--primary-color-400);
288
      }
289
 
290
      &:after {
291
        width: 100%;
292
        opacity: 1;
293
      }
294
    }
295
 
296
    &.active {
297
      color: var(--primary-color-400);
298
 
299
      &:after {
300
        color: var(--primary-color-400);
301
        background-color: var(--primary-color-400);
302
        width: 100%;
303
        opacity: 1;
304
      }
305
    }
306
 
307
  }
308
}
309
 
310
@include media-breakpoint-down(md) {
311
  .main-nav-container-overflow {
312
    overflow-x: auto;
313
    overflow-y: hidden;
314
  }
315
}
316
 
317
 
318
.main-nav-container {
319
  .header-link-item {
320
    padding: .65rem 0;
321
    margin-right: 1rem;
322
  }
323
}
324
 
325
 
326
 
327
.nav-column {
328
  margin: 0;
329
  padding: 0 20px 0 0;
330
 
331
  border-right: 1px solid $border-color;
332
 
333
  .theme-dark & {
334
    border-right: 1px solid $dm-border-color;
335
  }
336
 
337
  @include media-breakpoint-between(xs, sm) {
338
    padding: 0;
339
    border-right: none;
340
  }
341
 
342
  li {
343
    a {
344
      padding: 16px 0;
345
 
346
      display: block;
347
      border-bottom: 1px solid $border-color;
348
 
349
      color: $body-color;
350
      font-weight: $font-weight-medium;
351
 
352
      position: relative;
353
 
354
      .theme-dark & {
355
        border-bottom: 1px solid $dm-border-color;
356
        color: $dm-body-color;
357
      }
358
 
359
      @include media-breakpoint-between(xs, sm) {
360
        padding: 16px;
361
      }
362
 
363
      &.active,
364
      &:hover {
365
        color: $link-color;
366
        border-color: $link-color;
367
 
368
        .theme-dark & {
369
          color: $dm-link-color;
370
          border-color: $dm-link-color;
371
        }
372
 
373
        &:before {
374
          content: '';
375
          background-color: rgba($link-color, .05);
376
 
377
          position: absolute;
378
          z-index: -1;
379
          width: calc(100% + 12px);
380
          top: 4px;
381
          bottom: 4px;
382
          left: -6px;
383
          border-radius: $btn-border-radius;
384
 
385
          .theme-dark & {
386
            background-color: rgba($link-color, .3);
387
          }
388
        }
389
      }
390
 
391
    }
392
  }
393
}
394
 
395
// CSS like moremenu but with less classes
396
.rui-tabs {
397
  .nav-item a {
398
    display: flex;
399
    align-items: center;
400
 
401
    &.focus,
402
    &:focus {
403
      position: relative;
404
    }
405
 
406
    display: inline-flex;
407
    flex-direction: column;
408
    align-items: center;
409
    justify-content: center;
410
    border-radius: $btn-border-radius-lg;
411
  }
412
 
413
  .nav-tabs {
1441 ariadna 414
    padding: 4px;
1 efrain 415
    background-color: $gray-100;
416
    border-radius: $btn-border-radius-lg;
417
 
418
    @include media-breakpoint-up(lg) {
419
      margin-left: 0;
420
    }
421
 
422
    @include media-breakpoint-between(xs, md) {
423
      margin: 0 auto;
424
    }
425
 
426
    @include media-breakpoint-up(md) {
427
      width: max-content;
428
      max-width: 100%;
429
    }
430
 
431
    @include media-breakpoint-between(xs, sm) {
432
      width: 100%;
433
    }
434
 
435
    .theme-dark & {
436
      background-color: #06090c;
437
    }
438
 
439
    a {
440
      padding: 7px 16px;
441
 
442
      display: block;
443
      position: relative;
444
 
445
      border-radius: $btn-border-radius-lg;
446
 
447
      font-weight: $font-weight-medium;
448
      color: $gray-900;
449
 
450
      transition: $transition-base;
451
 
452
      .theme-dark & {
453
        color: $dm-gray-900;
454
      }
455
 
456
      &:hover {
457
        background-color: $nav-tabs-link-hover-bg;
458
        color: $nav-tabs-link-hover-color;
459
        text-decoration: none;
460
 
461
        .theme-dark & {
462
          color: var(--primary-color-400);
463
        }
464
 
465
        &:before {
466
          opacity: 1;
467
        }
468
      }
469
 
470
      &.active {
471
        &::before {
472
          opacity: 0;
473
        }
474
      }
475
 
476
      &.disabled {
477
        color: $nav-link-disabled-color;
478
        opacity: 0.4;
479
 
480
        .theme-dark & {
481
          color: $dm-nav-link-disabled-color;
482
        }
483
 
484
      }
485
    }
486
 
487
  }
488
}