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