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