Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
/*
2
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3
For licensing, see LICENSE.md or http://ckeditor.com/license
4
*/
5
 
6
/*
7
dialog.css
8
============
9
 
10
This file styles dialogs and all widgets available inside of it (tabs, buttons,
11
fields, etc.).
12
 
13
Dialogs are a complex system because they're very flexible. The CKEditor API
14
makes it easy to create and customize dialogs by code, by making use of several
15
different widgets inside its contents.
16
 
17
All dialogs share a main dialog strucuture, which can be visually represented
18
as follows:
19
 
20
+-- .cke_dialog -------------------------------------------------+
21
| +-- .cke_dialog_body ----------------------------------------+ |
22
| | +-- .cke_dialog_title --+ +-- .cke_dialog_close_button --+ | |
23
| | |                       | |                              | | |
24
| | +-----------------------+ +------------------------------+ | |
25
| | +-- .cke_dialog_tabs ------------------------------------+ | |
26
| | |                                                        | | |
27
| | +--------------------------------------------------------+ | |
28
| | +-- .cke_dialog_contents --------------------------------+ | |
29
| | | +-- .cke_dialog_contents_body -----------------------+ | | |
30
| | | |                                                    | | | |
31
| | | +----------------------------------------------------+ | | |
32
| | | +-- .cke_dialog_footer ------------------------------+ | | |
33
| | | |                                                    | | | |
34
| | | +----------------------------------------------------+ | | |
35
| | +--------------------------------------------------------+ | |
36
| +------------------------------------------------------------+ |
37
+----------------------------------------------------------------+
38
 
39
/* Config files, where variables are defined */
40
@import "../config/config";
41
 
42
/* Comments in this file will give more details about each of the above blocks.
43
*/
44
 
45
/* The outer container of the dialog. */
46
.cke_dialog {
47
    /* Mandatory: Because the dialog.css file is loaded on demand, we avoid
48
        showing an unstyled dialog by hidding it. Here, we restore its visibility. */
49
    visibility: visible;
50
}
51
 
52
/* The inner boundary container. */
53
.cke_dialog_body {
54
    z-index: 1;
55
    background: $gray-lighter;
56
    border: 1px solid $hr-border;
57
 
58
    border-radius: $border-radius;
59
}
60
 
61
/* This one is required by Firefox 3.6. Without it,
62
   dialog tabs and resizer float outside of the dialog.
63
   Although this rule doesn't seem to break anything on other
64
   browsers, it doesn't work with broken jQueryUI - #9851. */
65
.cke_browser_gecko19 .cke_dialog_body {
66
    position: relative;
67
}
68
 
69
/* Due to our reset we have to recover the styles of some elements. */
70
.cke_dialog strong {
71
    font-weight: bold;
72
}
73
 
74
/* The dialog title. */
75
.cke_dialog_title {
76
    font-weight: bold;
77
    font-size: 13px;
78
    cursor: move;
79
    position: relative;
80
    color: $text-color;
81
    border-bottom: 1px solid $hr-border;
82
    padding: 10px 12px;
83
    background: $gray-lighter;
84
}
85
 
86
/* The outer part of the dialog contants, which contains the contents body
87
   and the footer. */
88
.cke_dialog_contents {
89
    background-color: #fff;
90
    overflow: auto;
91
    padding: 15px 10px 5px 10px;
92
    margin-top: 35px;
93
    border-top: 1px solid $hr-border;
94
    border-radius: 0 0 $border-radius $border-radius;
95
}
96
 
97
/* The contents body part, which will hold all elements available in the dialog. */
98
.cke_dialog_contents_body {
99
    overflow: auto;
100
    padding: 17px 10px 5px 10px;
101
    margin-top: 22px;
102
}
103
 
104
/* The dialog footer, which usually contains the "Ok" and "Cancel" buttons as
105
   well as a resize handler. */
106
.cke_dialog_footer {
107
    text-align: right;
108
    position: relative;
109
    border-radius: 0 0 $border-radius $border-radius;
110
    border-top: 1px solid $hr-border;
111
    background: $gray-lighter;
112
}
113
 
114
.cke_rtl .cke_dialog_footer {
115
    text-align: left;
116
}
117
 
118
.cke_hc .cke_dialog_footer {
119
    outline: none;
120
    border-top: 1px solid #fff;
121
}
122
 
123
.cke_dialog .cke_resizer {
124
    margin-top: 28px;
125
}
126
 
127
.cke_dialog .cke_resizer_rtl {
128
    margin-left: 5px;
129
}
130
 
131
.cke_dialog .cke_resizer_ltr {
132
    margin-right: 5px;
133
}
134
 
135
/*
136
Dialog tabs
137
-------------
138
 
139
Tabs are presented on some of the dialogs to make it possible to have its
140
contents split on different groups, visible one after the other.
141
 
142
The main element that holds the tabs can be made hidden, in case of no tabs
143
available.
144
 
145
The following is the visual representation of the tabs block:
146
 
147
+-- .cke_dialog_tabs ------------------------------------+
148
|  +-- .cke_dialog_tab --+ +-- .cke_dialog_tab --+ ...   |
149
|  |                     | |                     |       |
150
|  +---------------------+ +---------------------+       |
151
+--------------------------------------------------------+
152
 
153
The .cke_dialog_tab_selected class is appended to the active tab.
154
*/
155
 
156
/* The main tabs container. */
157
.cke_dialog_tabs {
158
    height: 24px;
159
    display: inline-block;
160
    margin: 10px 0 0;
161
    position: absolute;
162
    z-index: 2;
163
    left: 10px;
164
}
165
 
166
.cke_rtl .cke_dialog_tabs {
167
    right: 10px;
168
}
169
 
170
/* A single tab (an <a> element). */
171
a.cke_dialog_tab {
172
    height: 16px;
173
    padding: 4px 8px;
174
    margin-right: 3px;
175
    display: inline-block;
176
    cursor: pointer;
177
    line-height: 16px;
178
    outline: none;
179
    color: $gray-dark;
180
    border: 1px solid $hr-border;
181
 
182
    border-radius: 3px 3px 0 0;
183
    background: lighten($gray-lighter, 2%);
184
}
185
 
186
.cke_rtl a.cke_dialog_tab {
187
    margin-right: 0;
188
    margin-left: 3px;
189
}
190
 
191
/* A hover state of a regular inactive tab. */
192
a.cke_dialog_tab:hover {
193
    background: $gray-light;
194
    text-decoration: none;
195
}
196
 
197
a.cke_dialog_tab_selected
198
{
199
    background: #fff;
200
    color: $text-color;
201
    border-bottom-color: #fff;
202
    cursor: default;
203
    filter: none;
204
}
205
 
206
/* A hover state for selected tab. */
207
a.cke_dialog_tab_selected:hover {
208
    background: #fff;
209
}
210
 
211
.cke_hc a.cke_dialog_tab:hover,
212
.cke_hc a.cke_dialog_tab_selected
213
{
214
    border: 3px solid;
215
    padding: 2px 6px;
216
}
217
 
218
a.cke_dialog_tab_disabled
219
{
220
    color: #bababa;
221
    cursor: default;
222
}
223
 
224
/* selectbox inside tabs container */
225
.cke_dialog_tabs {
226
    .cke_dialog_ui_input_select {
227
        top: -7px !important;
228
    }
229
}
230
 
231
/* The .cke_single_page class is appended to the dialog outer element in case
232
   of dialogs that has no tabs. */
233
.cke_single_page .cke_dialog_tabs
234
{
235
    display: none;
236
}
237
 
238
.cke_single_page .cke_dialog_contents
239
{
240
    padding-top: 5px;
241
    margin-top: 0;
242
    border-top: none;
243
}
244
 
245
/* The close button at the top of the dialog. */
246
 
247
.cke_dialog_close_button {
248
    background-image: url(images/close.png);
249
    background-repeat: no-repeat;
250
    background-position: 0 0;
251
    position: absolute;
252
    cursor: pointer;
253
    text-align: center;
254
    height: 20px;
255
    width: 20px;
256
    top: 9px;
257
    z-index: 5;
258
}
259
 
260
.cke_hidpi .cke_dialog_close_button {
261
    background-image: url(images/hidpi/close.png);
262
    background-size: 16px;
263
}
264
 
265
.cke_dialog_close_button span {
266
    display: none;
267
}
268
 
269
.cke_hc .cke_dialog_close_button span {
270
    display: inline;
271
    cursor: pointer;
272
    font-weight: bold;
273
    position: relative;
274
    top: 3px;
275
}
276
 
277
.cke_ltr .cke_dialog_close_button {
278
    right: 5px;
279
}
280
 
281
.cke_rtl .cke_dialog_close_button {
282
    left: 6px;
283
}
284
 
285
 
286
/*
287
Dialog UI Elements
288
--------------------
289
 
290
The remaining styles define the UI elements that can be used inside dialog
291
contents.
292
 
293
Most of the UI elements on dialogs contain a textual label. All of them share
294
the same labelling structure, having the label text inside an element with
295
.cke_dialog_ui_labeled_label and the element specific part inside the
296
.cke_dialog_ui_labeled_content class.
297
*/
298
 
299
/* If an element is supposed to be disabled, the .cke_disabled class is
300
   appended to it. */
301
div.cke_disabled .cke_dialog_ui_labeled_content div * {
302
    background-color: #ddd;
303
    cursor: default;
304
}
305
 
306
/*
307
Horizontal-Box and Vertical-Box
308
---------------------------------
309
 
310
There are basic layou element used by the editor to properly align elements in
311
the dialog. They're basically tables that have each cell filled by UI elements.
312
 
313
The following is the visual representation of a H-Box:
314
 
315
+-- .cke_dialog_ui_hbox --------------------------------------------------------------------------------+
316
|  +-- .cke_dialog_ui_hbox_first --+ +-- .cke_dialog_ui_hbox_child --+ +-- .cke_dialog_ui_hbox_last --+ |
317
|  +                               + +                               + +                              + |
318
|  +-------------------------------+ +-------------------------------+ +------------------------------+ |
319
+-------------------------------------------------------------------------------------------------------+
320
 
321
It is possible to have nested V/H-Boxes.
322
*/
323
 
324
.cke_dialog_ui_vbox, .cke_dialog_ui_hbox {
325
    table {
326
        margin: auto;
327
    }
328
}
329
.cke_dialog_ui_vbox {
330
    margin-top: 5px;
331
}
332
.cke_dialog_ui_vbox_child {
333
    padding: 5px 0px;
334
}
335
 
336
.cke_dialog_ui_hbox {
337
    width: 100%;
338
}
339
 
340
.cke_dialog_ui_hbox_first,
341
.cke_dialog_ui_hbox_child,
342
.cke_dialog_ui_hbox_last {
343
    vertical-align: top;
344
}
345
 
346
/* To center a horizontal label-input (selection field dialog / find and replace) */
347
.cke_dialog_ui_hbox_first,
348
.cke_dialog_ui_hbox_last {
349
    > .cke_dialog_ui_labeled_label, > .cke_dialog_ui_html {
350
        line-height: 30px;
351
    }
352
}
353
 
354
.cke_ltr .cke_dialog_ui_hbox_first,
355
.cke_ltr .cke_dialog_ui_hbox_child {
356
    padding-right: 10px;
357
}
358
 
359
.cke_rtl .cke_dialog_ui_hbox_first,
360
.cke_rtl .cke_dialog_ui_hbox_child {
361
    padding-left: 10px;
362
}
363
 
364
.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first,
365
.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child {
366
    padding-right: 5px;
367
}
368
 
369
.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first,
370
.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child {
371
    padding-left: 5px;
372
    padding-right: 0;
373
}
374
 
375
/* Applies to all labeled dialog fields */
376
.cke_hc div {
377
    &.cke_dialog_ui_input_text,
378
    &.cke_dialog_ui_input_password,
379
    &.cke_dialog_ui_input_textarea,
380
    &.cke_dialog_ui_input_select,
381
    &.cke_dialog_ui_input_file {
382
        border: 1px solid;
383
    }
384
}
385
 
386
/*
387
Text Input
388
------------
389
 
390
The basic text field to input text.
391
 
392
+-- .cke_dialog_ui_text --------------------------+
393
|  +-- .cke_dialog_ui_labeled_label ------------+ |
394
|  |                                            | |
395
|  +--------------------------------------------+ |
396
|  +-- .cke_dialog_ui_labeled_content ----------+ |
397
|  | +-- div.cke_dialog_ui_input_text --------+ | |
398
|  | | +-- input.cke_dialog_ui_input_text --+ | | |
399
|  | | |                                    | | | |
400
|  | | +------------------------------------+ | | |
401
|  | +----------------------------------------+ | |
402
|  +--------------------------------------------+ |
403
+-------------------------------------------------+
404
*/
405
 
406
.cke_dialog_ui_text {
407
    margin-bottom: 7px;
408
}
409
.cke_dialog_ui_select {
410
    height: auto !important;
411
    margin-bottom: 7px;
412
}
413
 
414
/*
415
Textarea
416
----------
417
 
418
The textarea field to input larger text.
419
 
420
+-- .cke_dialog_ui_textarea --------------------------+
421
|  +-- .cke_dialog_ui_labeled_label ----------------+ |
422
|  |                                                | |
423
|  +------------------------------------------------+ |
424
|  +-- .cke_dialog_ui_labeled_content --------------+ |
425
|  | +-- div.cke_dialog_ui_input_textarea --------+ | |
426
|  | | +-- input.cke_dialog_ui_input_textarea --+ | | |
427
|  | | |                                        | | | |
428
|  | | +----------------------------------------+ | | |
429
|  | +--------------------------------------------+ | |
430
|  +------------------------------------------------+ |
431
+-----------------------------------------------------+
432
*/
433
 
434
textarea.cke_dialog_ui_input_textarea {
435
    overflow: auto;
436
    resize: none;
437
}
438
 
439
input.cke_dialog_ui_input_text,
440
input.cke_dialog_ui_input_password,
441
textarea.cke_dialog_ui_input_textarea {
442
    @extend %input-style;
443
}
444
 
445
 
446
/*
447
Button
448
--------
449
 
450
The buttons used in the dialog footer or inside the contents.
451
 
452
+-- a.cke_dialog_ui_button -----------+
453
|  +-- span.cke_dialog_ui_button --+  |
454
|  |                               |  |
455
|  +-------------------------------+  |
456
+-------------------------------------+
457
*/
458
 
459
/* The outer part of the button. */
460
a.cke_dialog_ui_button {
461
    display: inline-block;
462
    *display: inline;
463
    *zoom: 1;
464
 
465
    padding: 3px 0;
466
    margin: 0;
467
 
468
    text-align: center;
469
    color: $text-color;
470
    vertical-align: middle;
471
    cursor: pointer;
472
 
473
    border: 1px solid $hr-border;
474
    border-radius: $border-radius;
475
    background: #fff;
476
 
477
    &:hover, &:focus, &:active {
478
        border-color: $gray;
479
        background-color: $gray-lighter;
480
        text-decoration: none;
481
    }
482
}
483
 
484
/* Buttons inside the content */
485
.cke_dialog_page_contents {
486
    a.cke_dialog_ui_button {
487
        height: 22px;
488
        line-height: 22px;
489
        background-color: #f4f4f4;
490
        &:hover, &:focus, &:active {
491
            background-color: $gray-lighter;
492
        }
493
    }
494
}
495
 
496
span.cke_dialog_ui_button {
497
    padding: 0 12px;
498
}
499
 
500
.cke_hc a.cke_dialog_ui_button {
501
    &:hover, &:focus, &:active {
502
        border: 3px solid;
503
        padding-top: 1px;
504
        padding-bottom: 1px;
505
 
506
        span {
507
            padding-left: 10px;
508
            padding-right: 10px;
509
        }
510
    }
511
}
512
 
513
/*
514
a.cke_dialog_ui_button[style*="width"]
515
{
516
    display: block !important;
517
    width: auto !important;
518
}
519
*/
520
/* The inner part of the button (both in dialog tabs and dialog footer). */
521
.cke_dialog_footer_buttons a.cke_dialog_ui_button span {
522
    color: inherit;
523
    font-size: 12px;
524
    line-height: 20px;
525
}
526
 
527
/* Special class appended to the Ok button. */
528
a.cke_dialog_ui_button_ok {
529
    color: #fff;
530
    border-color: $success-border;
531
    background: $success;
532
    &:hover, &:focus, &:active {
533
        border-color: $success-border-hover;
534
        background: $success-hover;
535
    }
536
}
537
 
538
/* Special class appended to the Cancel button. */
539
a.cke_dialog_ui_button_cancel {
540
    background-color: #fff;
541
    &:focus {
542
        outline: none;
543
    }
544
}
545
 
546
span.cke_dialog_ui_button {
547
    cursor: pointer;
548
}
549
 
550
/* A special container that holds the footer buttons. */
551
.cke_dialog_footer_buttons {
552
    display: inline-table;
553
    margin: 10px;
554
    width: auto;
555
    position: relative;
556
    vertical-align: middle;
557
}
558
 
559
/*
560
Styles for other dialog element types.
561
*/
562
 
563
div.cke_dialog_ui_input_select {
564
    display: table;
565
}
566
 
567
select.cke_dialog_ui_input_select {
568
    height: 30px;
569
    line-height: 30px;
570
 
571
    background-color: #fff;
572
    padding: 4px 10px;
573
    border: 1px solid $hr-border;
574
 
575
    outline: none;
576
    border-radius: $border-radius;
577
 
578
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
579
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
580
}
581
 
582
.cke_dialog_ui_input_file {
583
    width: 100%;
584
    height: 30px;
585
}
586
 
587
.cke_hc .cke_dialog_ui_labeled_content {
588
    input, select, textarea {
589
        &:focus {
590
            outline: 1px dotted;
591
        }
592
    }
593
}
594
 
595
/*
596
 * Some utility CSS classes for dialog authors.
597
 */
598
.cke_dialog {
599
    .cke_dark_background {
600
        background-color: $gray-lighter;
601
    }
602
    .cke_light_background {
603
        background-color: $gray-lighter;
604
    }
605
    .cke_centered {
606
        text-align: center;
607
    }
608
 
609
    a.cke_btn_reset {
610
        float: right;
611
        background: url(images/refresh.png) top left no-repeat;
612
        width: 16px;
613
        height: 16px;
614
        border: 1px none;
615
        font-size: 1px;
616
    }
617
 
618
    a.cke_btn_locked, a.cke_btn_unlocked {
619
        float: left;
620
        width: 16px;
621
        height: 16px;
622
        background-repeat: no-repeat;
623
        border: none 1px;
624
        font-size: 1px;
625
    }
626
    a.cke_btn_locked {
627
        background-image: url(images/lock.png);
628
        .cke_icon {
629
            display: none;
630
        }
631
    }
632
    a.cke_btn_unlocked {
633
        background-image: url(images/lock-open.png);
634
    }
635
 
636
    .cke_btn_over {
637
        border: outset 1px;
638
        cursor: pointer;
639
    }
640
}
641
 
642
.cke_hidpi .cke_dialog {
643
    a.cke_btn_reset {
644
        background-size: 16px;
645
        background-image: url(images/hidpi/refresh.png);
646
    }
647
    a.cke_btn_unlocked, a.cke_btn_locked {
648
        background-size: 16px;
649
    }
650
    a.cke_btn_locked {
651
        background-image: url(images/hidpi/lock.png);
652
    }
653
    a.cke_btn_unlocked {
654
        background-image: url(images/hidpi/lock-open.png);
655
    }
656
}
657
 
658
.cke_rtl .cke_dialog {
659
    a.cke_btn_reset {
660
        float: left;
661
    }
662
    a.cke_btn_locked, a.cke_btn_unlocked {
663
        float: right;
664
    }
665
}
666
 
667
/*
668
The rest of the file contains style used on several common plugins. There is a
669
tendency that these will be moved to the plugins code in the future.
670
*/
671
 
672
.cke_dialog {
673
    .ImagePreviewBox, .FlashPreviewBox {
674
        border: 1px solid $gray;
675
        border-radius: $border-radius;
676
        padding: 6px 10px;
677
        margin-top: 5px;
678
        background-color: white;
679
    }
680
    .ImagePreviewBox {
681
        overflow: scroll;
682
        height: 205px;
683
        width: 300px;
684
        table td {
685
            white-space: normal;
686
        }
687
    }
688
    .FlashPreviewBox {
689
        white-space: normal;
690
        overflow: auto;
691
        height: 160px;
692
        width: 390px;
693
    }
694
    .ImagePreviewLoader {
695
        position: absolute;
696
        white-space: normal;
697
        overflow: hidden;
698
        height: 160px;
699
        width: 230px;
700
        margin: 2px;
701
        padding: 2px;
702
        opacity: 0.9;
703
        filter: alpha(opacity = 90);
704
 
705
        background-color: #e4e4e4;
706
    }
707
    .cke_pastetext {
708
        width: 346px;
709
        height: 170px;
710
        textarea {
711
            width: 340px;
712
            height: 170px;
713
            resize: none;
714
        }
715
    }
716
    iframe.cke_pasteframe {
717
        width: 346px;
718
        height: 130px;
719
        background-color: white;
720
        border: 1px solid #aeb3b9;
721
        border-radius: $border-radius;
722
    }
723
    .cke_hand {
724
        cursor: pointer;
725
    }
726
}
727
 
728
.cke_disabled {
729
    color: #a0a0a0;
730
}
731
 
732
.cke_dialog_body {
733
    .cke_label {
734
        display: none;
735
    }
736
    label {
737
        display: inline-block;
738
        margin-bottom: 3px;
739
        cursor: default;
740
        &.cke_required {
741
            font-weight: bold;
742
        }
743
    }
744
}
745
 
746
.cke_dialog_ui_html {
747
    line-height: 150%;
748
}
749
 
750
a.cke_smile {
751
    overflow: hidden;
752
    display: block;
753
    text-align: center;
754
    padding: 0.3em 0;
755
    img {
756
        vertical-align: middle;
757
    }
758
}
759
 
760
a.cke_specialchar {
761
    cursor: inherit;
762
    display: block;
763
    height: 1.25em;
764
    padding: 0.2em 0.3em;
765
    text-align: center;
766
}
767
 
768
a.cke_smile,
769
a.cke_specialchar {
770
    background-color: $gray-lighter;
771
    border: 1px solid transparent;
772
    vertical-align: top;
773
    &:hover, &:focus, &:active {
774
        background: #fff;
775
        outline: 0;
776
    }
777
    &:hover {
778
        border-color: $gray;
779
    }
780
    &:focus, &:active {
781
        border-color: $primary;
782
    }
783
}
784
 
785
/**
786
 * Styles specific to "cellProperties" dialog.
787
 */
788
 
789
.cke_dialog_contents a.colorChooser {
790
    display: block;
791
    margin-top: 6px;
792
    margin-left: 10px;
793
    width: 80px;
794
}
795
 
796
.cke_rtl .cke_dialog_contents a.colorChooser {
797
    margin-right: 10px;
798
}
799
 
800
 
801
.cke_dialog_ui_checkbox {
802
    display: inline-block;
803
    margin-bottom: 5px;
804
}
805
 
806
/* Compensate focus outline for some input elements. (#6200) */
807
.cke_dialog_ui_checkbox_input:focus,
808
.cke_dialog_ui_radio_input:focus,
809
.cke_btn_over {
810
    outline: 1px dotted #696969;
811
}
812
 
813
.cke_iframe_shim {
814
    display: block;
815
    position: absolute;
816
    top: 0;
817
    left: 0;
818
    z-index: -1;
819
    filter: alpha(opacity = 0);
820
    width: 100%;
821
    height: 100%;
822
}