Proyectos de Subversion Moodle

Rev

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