Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Base class
2
//
3
// Requires one of the contextual, color modifier classes for `color` and
4
// `background-color`.
5
 
6
.badge {
7
  display: inline-flex;
8
  align-items: center;
9
  align-self: center;
10
  flex-wrap: wrap;
11
  justify-content: center;
12
 
13
  padding: $badge-padding-y $badge-padding-x;
14
  @include font-size($badge-font-size);
15
  font-weight: $badge-font-weight;
16
  vertical-align: baseline;
17
  @include border-radius($badge-border-radius);
18
  @include transition($badge-transition);
19
 
20
  strong, span {
21
    margin-left: 2px;
22
    margin-right: 2px;
23
  }
24
 
25
  @include media-breakpoint-up(md) {
26
    @include font-size($badge-font-size);
27
  }
28
 
29
  @include media-breakpoint-between(xs, sm) {
30
    font-size: 11px;
31
  }
32
 
33
  .dir-rtl & {
34
    border: none !important;
35
  }
36
 
37
  @at-root a#{&} {
38
    @include hover-focus() {
39
      text-decoration: none;
40
    }
41
  }
42
 
43
  a {
44
    color: inherit;
45
  }
46
 
47
  +.badge {
48
    margin-left: .35rem;
49
  }
50
 
51
  // Empty badges collapse automatically
52
  &:empty,
53
  &:after {
54
    display: none;
55
  }
56
 
57
  .bage--remove-icon {
58
    font-size: 0.6875rem; //11px
59
  }
60
 
61
  img {
62
    width: 14px;
63
    height: 14px;
64
 
65
    .theme-dark & {
66
      filter: invert(1);
67
    }
68
  }
69
 
70
  .icon {
71
    width: 14px;
72
    height: 14px;
73
    font-size: $badge-font-size;
74
  }
75
}
76
 
77
.badge-sq {
78
  display: inline-flex;
79
  align-items: center;
80
  align-self: center;
81
  padding: $badge-padding-y $badge-padding-x;
82
  @include font-size($badge-font-size);
83
  font-weight: $badge-font-weight;
84
  vertical-align: baseline;
85
  border-radius: $btn-border-radius;
86
 
87
  a {
88
    font-weight: $font-weight-bold;
89
    color: inherit;
90
    opacity: .7;
91
    margin-left: .35rem;
92
  }
93
}
94
 
95
.badge-sm {
96
  display: inline-flex;
97
  align-items: center;
98
  align-self: center;
99
  flex-wrap: wrap;
100
 
101
  padding: .3rem .85rem;
102
  @include font-size($badge-font-size);
103
  font-weight: $badge-font-weight;
104
  vertical-align: baseline;
105
  @include border-radius($badge-border-radius);
106
  @include transition($badge-transition);
107
 
108
  @at-root a#{&} {
109
    @include hover-focus() {
110
      text-decoration: none;
111
    }
112
  }
113
 
114
  a {
115
    color: inherit;
116
  }
117
 
118
  // Empty badges collapse automatically
119
  &:empty {
120
    display: none;
121
  }
122
 
123
  .bage--remove-icon {
124
    font-size: 0.6875rem; //11px
125
  }
126
 
127
  .icon {
128
    width: auto;
129
    height: auto;
130
    font-size: $badge-font-size;
131
  }
132
}
133
 
134
.badge-xs {
135
  padding: 3px 6px;
136
  border-radius: $btn-border-radius;
137
  font-size: 11px;
138
  font-weight: $badge-font-weight;
139
}
140
 
141
// Quick fix for badges in buttons
142
.btn .badge {
143
  position: relative;
144
  top: -1px;
145
}
146
 
147
// Pill badges
148
//
149
// Make them extra rounded with a modifier to replace v3's badges.
150
 
151
.badge-pill {
152
  padding-right: $badge-pill-padding-x;
153
  padding-left: $badge-pill-padding-x;
154
  @include border-radius($badge-pill-border-radius);
155
}
156
 
157
// Colors
158
//
159
// Contextual variations (linked badges get darker on :hover).
160
 
161
.badge-primary {
162
  background-color: var(--primary-color-100);
163
  color: var(--primary-color-700);
164
 
165
  .theme-dark & {
166
    background-color: var(--main-theme-color);
167
    color: var(--primary-color-100);
168
  }
169
}
170
 
171
.badge-secondary {
172
  background-color: var(--primary-color-100);
173
  color: var(--main-theme-color);
174
 
175
  .theme-dark & {
176
    background-color: $dm-gray-100;
177
    color: $dm-gray-800;
178
  }
179
}
180
 
181
.badge-success {
182
  background-color: $green-100;
183
  color: $green-600;
184
 
185
  .theme-dark & {
186
    background-color: #0a6457;
187
    color: $green-100;
188
  }
189
}
190
 
191
.badge-danger {
192
  background-color: $red-100;
193
  color: $red-700;
194
 
195
  .theme-dark & {
196
    background-color: #B13A3A;
197
    color: $red-100;
198
  }
199
}
200
 
201
.badge-warning {
202
  background-color: $yellow-200;
203
  color: $body-color;
204
 
205
  .theme-dark & {
206
    background-color: #7E6E4E;
207
    color: $yellow-100;
208
  }
209
}
210
 
211
.badge-info {
212
  background-color: $blue-100;
213
  color: $blue-600;
214
 
215
  .theme-dark & {
216
    background-color: #525ea9;
217
    color: $blue-100;
218
  }
219
}
220
 
221
.badge-light {
222
  background-color: $gray-100;
223
  color: $gray-800;
224
 
225
  .theme-dark & {
226
    background-color: $dm-gray-300;
227
    color: $dm-gray-800;
228
  }
229
}
230
 
231
.badge-dark {
232
  background-color: $black;
233
  color: $white;
234
 
235
  .theme-dark & {
236
    background-color: $black;
237
    color: $white;
238
  }
239
}
240
 
241
.badge-link {
242
  cursor: pointer;
243
  transition: $transition-base;
244
 
245
  &:hover {
246
    text-decoration: none;
247
  }
248
 
249
  &:before {
250
    display: none;
251
  }
252
 
253
  a {
254
    &:hover {
255
      text-decoration: none;
256
      opacity: 0.8;
257
    }
258
  }
259
}
260
 
261
 
262
// Mod Quiz
263
.badge {
264
  h5 {
265
    color: inherit;
266
  }
267
}
268
 
269
// ---- URL:  /report/outline/index.php?id=10
270
.loginfo {
271
  margin-top: 1rem;
272
 
273
  display: inline-flex;
274
  align-items: center;
275
  flex-wrap: wrap;
276
 
277
  padding: $badge-padding-y 1.25rem;
278
  @include font-size($badge-font-size);
279
  font-weight: $badge-font-weight;
280
  vertical-align: baseline;
281
  @include border-radius($badge-border-radius);
282
 
283
  @extend .badge-info;
284
}
285
 
286
 
287
#page-badges-mybadges {
288
  #fgroup_id_searchgroup {
289
    .col-md-3 {
290
      display: none;
291
    }
292
  }
293
}
294
 
295
.rui-badge-box {
296
  padding: 20px;
297
  margin-bottom: 30px;
298
  border-radius: $btn-border-radius;
299
  border: 1px solid $border-color;
300
 
301
  position: relative;
302
 
303
  .theme-dark & {
304
    border: 1px solid $dm-border-color;
305
  }
306
 
307
  &:last-child,
308
  &:only-child {
309
    margin-bottom: 0;
310
  }
311
}
312
 
313
.rui-badge-not-available {
314
  border: 1px solid $red-300;
315
}
316
 
317
@include media-breakpoint-up(md) {
318
  .rui-badge-overview {
319
    width: calc(100% - 220px);
320
  }
321
}
322
 
323
.rui-badge-overview-actions {
324
  margin: 0 -20px 20px;
325
  padding: 0 20px 20px;
326
  border-bottom: 1px solid $border-color;
327
 
328
  .theme-dark & {
329
    border-bottom: 1px solid $dm-border-color;
330
  }
331
}
332
 
333
.badge-icon+.badge-name {
334
  margin-left: .5rem;
335
}
336
 
337
a.badge {
338
  transition: $transition-base;
339
 
340
  &:hover {
341
    opacity: .6;
342
  }
343
}
344
 
345
.badge--label {
346
  width: calc(100% - 24px);
347
}