Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
.atto-fullscreen .editor_atto_wrap {
2
    z-index: $zindex-fixed; // mod for full screen plugin to Atto Editor
3
}
4
 
5
.editor_atto_content {
6
    padding: 1rem;
7
    resize: vertical;
8
    overflow: auto;
9
    border: 0;
10
 
11
    .wrapper-md,
12
    .wrapper-lg,
13
    .wrapper-fw,
14
    .wrapper-xl {
15
        max-width: 100%;
16
    }
17
}
18
 
19
.editor_atto_content_wrap,
20
.editor_atto+textarea {
21
    width: 100%;
22
    padding: 0;
23
 
24
    .swiper,
25
    .swiper-wrapper {
26
        #page-admin-setting-themesettingspace & {
27
            max-width: 900px;
28
            overflow-x: auto;
29
        }
30
    }
31
}
32
 
33
.editor_atto+textarea {
34
    border-radius: 0;
35
    resize: vertical;
36
    margin-top: -1px;
37
}
38
 
39
div.editor_atto_toolbar {
40
    display: block;
41
    background: $container-bg;
42
    min-height: 35px;
43
    border: 1px solid $input-border-color;
44
    width: 100%;
45
    padding: 0 0 7px 0;
46
    border-radius: $btn-border-radius $btn-border-radius 0 0;
47
 
48
    .theme-dark & {
49
        background: $dm-container-bg;
50
    }
51
}
52
 
53
div.editor_atto_toolbar .menuplaceholder {
54
    display: inline-block;
55
}
56
 
57
div.editor_atto_toolbar button {
58
    padding: 6px;
59
    margin: 1px;
60
    background: none;
61
    border: 0;
62
    margin: 0;
63
    border-radius: $btn-border-radius;
64
    line-height: 1;
65
    cursor: pointer;
66
 
67
    &:hover {
68
        outline: 2px solid rgba($blue-700, .7);
69
    }
70
}
71
 
72
div.editor_atto_toolbar button+button {
73
    border-left: 0;
74
}
75
 
76
div.editor_atto_toolbar button[disabled] {
77
    opacity: .45;
78
    background: none;
79
    cursor: default;
80
}
81
 
82
.editor_atto_toolbar button:hover {
83
    background-image: none;
84
    background-color: $gray-100;
85
 
86
    .theme-dark & {
87
        background-color: $dm-gray-100;
88
    }
89
}
90
 
91
.editor_atto_toolbar button:active,
92
.editor_atto_toolbar button.highlight {
93
    background-color: var(--primary-color-100);
94
    background-image: none;
95
 
96
    .theme-dark & {
97
        background-color: $primary-color-500;
98
    }
99
 
100
    .icon {
101
        color: $primary-color-600;
102
    }
103
}
104
 
105
.editor_atto_toolbar button.highlight {
106
    &::before {
107
        display: none;
108
    }
109
}
110
 
111
/* Make firefox button sizes match other browsers */
112
div.editor_atto_toolbar button::-moz-focus-inner {
113
    border: 0;
114
    padding: 0;
115
}
116
 
117
div.editor_atto_toolbar button .icon {
118
    padding: 0;
119
    margin: 2px 0;
120
 
121
    .theme-dark & {
122
        filter: invert(1);
123
    }
124
}
125
 
126
div.editor_atto_toolbar div.atto_group {
127
    display: inline-flex;
128
    border: 1px solid $border-color;
129
    border-radius: $btn-border-radius;
130
    padding: 4px;
131
    margin: 7px 0 0 7px;
132
 
133
    background: transparent;
134
 
135
    .theme-dark & {
136
        border-color: $dm-border-color;
137
    }
138
}
139
 
140
.editor_atto_content_wrap {
141
    background-color: $container-bg;
142
    color: $body-color;
143
 
144
    .theme-dark & {
145
        background-color: $dm-container-bg;
146
        color: $dm-body-color;
147
    }
148
 
149
    .form-control {
150
        box-shadow: none;
151
    }
152
}
153
 
154
.editor_atto_content img {
155
    resize: both;
156
    overflow: auto;
157
}
158
 
159
.atto_hasmenu {
160
    /* IE8 places the images on top of each other if that is not set. */
161
    white-space: nowrap;
162
}
163
 
164
.atto_menuentry .icon {
165
    width: 16px;
166
    height: 16px;
167
}
168
 
169
.atto_menuentry {
170
    clear: left;
171
}
172
 
173
.atto_menuentry h1,
174
.atto_menuentry h2,
175
.atto_menuentry p {
176
    margin: 4px;
177
}
178
 
179
/*.atto_form label.sameline {
180
    display: inline-block;
181
    min-width: 10em;
182
}*/
183
 
184
.atto_form textarea.fullwidth,
185
.atto_form input.fullwidth {
186
    width: 100%;
187
}
188
 
189
.atto_form {
190
    padding: 0;
191
 
192
    .form-check {
193
        display: inline-flex;
194
        align-items: center;
195
 
196
        input {
197
            position: relative;
198
            margin: 10px;
199
        }
200
    }
201
}
202
 
203
/*.atto_form label {
204
    display: block;
205
    margin: 0 0 5px 0;
206
}*/
207
 
208
.atto_control {
209
    position: absolute;
210
    right: -6px;
211
    bottom: -6px;
212
    display: none;
213
    cursor: pointer;
214
}
215
 
216
.atto_control .icon {
217
    background-color: $white;
218
}
219
 
220
div.editor_atto_content:focus .atto_control,
221
div.editor_atto_content:hover .atto_control {
222
    display: block;
223
}
224
 
225
.editor_atto_menu.yui3-menu-hidden {
226
    display: none;
227
}
228
 
229
/* Get broken images back in firefox */
230
.editor_atto_content img:-moz-broken {
231
    -moz-force-broken-image-icon: 1;
232
    min-width: 24px;
233
    min-height: 24px;
234
}
235
 
236
/* Atto menu styling */
237
.moodle-dialogue-base .editor_atto_menu .moodle-dialogue-content .moodle-dialogue-bd {
238
    padding: 3px 0 0 !important;
239
    z-index: 1000;
240
}
241
 
242
// Full width button on all Atto modals.
243
.atto_form {
244
    .mdl-align .btn {
245
        width: 100%;
246
    }
247
}
248
 
249
.editor_atto_menu .dropdown-menu>li>a {
250
    margin: 3px 0;
251
}
252
 
253
.editor_atto_menu .open ul.dropdown-menu {
254
    padding-top: 5px;
255
    padding-bottom: 5px;
256
}
257
 
258
.editor_atto_wrap {
259
    position: relative;
260
    width: 100%;
261
}
262
 
263
/*rtl:ignore*/
264
.editor_atto_wrap textarea {
265
    direction: ltr;
266
}
267
 
268
.editor_atto_notification .atto_info,
269
.editor_atto_notification .atto_warning {
270
    margin-top: 0.25rem;
271
    display: inline-flex;
272
    align-items: center;
273
 
274
    background-color: $gray-100;
275
    padding: 0.5rem;
276
 
277
    font-size: $font-size-xs;
278
 
279
    border-radius: $btn-border-radius;
280
 
281
    .theme-dark & {
282
        background-color: $dm-gray-100;
283
    }
284
 
285
    img {
286
        margin-right: 0.25rem;
287
 
288
        .theme-dark & {
289
            filter: invert(1);
290
        }
291
    }
292
}
293
 
294
.editor_atto_notification .atto_info {
295
    background-color: $gray-100;
296
 
297
    .theme-dark & {
298
        background-color: $dm-gray-100;
299
    }
300
}
301
 
302
.editor_atto_notification .atto_warning {
303
    background-color: $yellow-200;
304
}
305
 
306
.editor_atto_toolbar,
307
.editor_atto_content_wrap,
308
.editor_atto+textarea {
309
    border-radius: 0 0 $border-radius $border-radius;
310
    box-sizing: border-box;
311
    border: 1px solid $border-color;
312
 
313
    .theme-dark & {
314
        border: 1px solid $dm-border-color;
315
    }
316
}
317
 
318
.editor_atto_content.form-control {
319
    width: 100%;
320
    min-height: 200px !important;
321
    border-top: 0;
322
}
323
 
324
/** Atto fields do not have form-control because that would break the layout of the editor.
325
    So they need these extra styles to highlight the editor when there is a validation error. */
326
.has-danger .editor_atto_content.form-control,
327
.has-danger .editor_atto_content.form-control-danger {
328
    @include form-validation-state('invalid', $form-feedback-invalid-color, $form-feedback-icon-invalid);
329
}
330
 
331
.open.atto_menu>.dropdown-menu {
332
    display: block;
333
}
334
 
335
/* modal windos - elements */
336
.atto_equation_library button {
337
    margin: 3px;
338
 
339
    min-width: 40px;
340
    width: auto;
341
    height: 40px;
342
}
343
 
344
.atto_image_preview {
345
    width: auto !important;
346
    max-height: 200px;
347
}
348
 
349
.atto_h5p_urlentrysubmit {
350
    width: 100%;
351
}
352
 
353
// Atto editor modal window
354
.ftoggler {
355
 
356
    .yui3-widget-modal &,
357
    .modal & {
358
        h3 {
359
            font-size: $font-size-sm;
360
        }
361
    }
362
}
363
 
364
.atto_form.atto_media>.tab-content {
365
    padding: 10px;
366
}
367
 
368
.atto_image_button_text-top.img-fluid,
369
.atto_image_button_middle.img-fluid,
370
.atto_image_button_text-bottom.img-fluid {
371
    max-width: 100%;
372
    margin: 0;
373
}
374
 
375
.atto_toolbar_row {
376
    display: inline;
377
}
378
 
379
.atto_form {
380
    fieldset.collapsible legend a.fheader {
381
        width: 30px;
382
        padding: 10px !important;
383
        background-position: center;
384
        margin: 0 10px 0 0 !important;
385
    }
386
 
387
    fieldset {
388
        margin: 5px 0;
389
    }
390
}
391
 
392
 
393
.modal .nav-tabs {
394
    width: max-content;
395
    max-width: 100%;
396
    margin-bottom: 10px !important;
397
    background-color: $gray-100;
398
    border-radius: $btn-border-radius;
399
 
400
    .theme-dark & {
401
        background-color: $dm-gray-100;
402
    }
403
}
404
 
405
.modal .nav-tabs .nav-link {
406
    padding: 7px 14px;
407
 
408
    font-size: $font-size-xs;
409
}
410
 
411
.tiny_media_source {
412
    margin: 10px 0;
413
}
414
 
415
.card-text {
416
    p img.img-fluid {
417
        border-radius: $btn-border-radius;
418
    }
419
}
420
 
421
.tox-sidebar-wrap {
422
    min-height: 180px!important;
423
}
424
 
425
.editor_atto_content_wrap {
426
    word-break: break-word;
427
}