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
mainui.css (part of editor.css)
8
=================================
9
 
10
This file styles the basic structure of the CKEditor user interface - the box
11
that holds everything.
12
 
13
CKEditor offers two main editing modes. The main UI blocks that compose these
14
modes are:
15
 
16
    For "Theme UI" mode, the one most generally used:
17
 
18
    +-- .cke_chrome ----------------------+
19
    |+-- .cke_inner ---------------------+|
20
    || +-- .cke_top -------------------+ ||
21
    || |                               | ||
22
    || +-------------------------------+ ||
23
    || +-- .cke_contents --------------+ ||
24
    || |                               | ||
25
    || +-------------------------------+ ||
26
    || +-- .cke_bottom ----------------+ ||
27
    || |                               | ||
28
    || +-------------------------------+ ||
29
    |+-----------------------------------+|
30
    +-------------------------------------+
31
 
32
    For "Inline Editing" mode:
33
 
34
    +-- .cke_chrome .cke_float------------+
35
    |+-- .cke_inner ---------------------+|
36
    || +-- .cke_top -------------------+ ||
37
    || |                               | ||
38
    || +-------------------------------+ ||
39
    |+-----------------------------------+|
40
    +-------------------------------------+
41
 
42
Special outer level classes used in this file:
43
 
44
    .cke_hc: Available when the editor is rendered on "High Contrast".
45
 
46
*/
47
 
48
/* The outer boundary of the interface. */
49
.cke_chrome {
50
    /* This is <span>, so transform it into a block.*/
51
    display: block;
52
    border: 1px solid $hr-border;
53
    border-radius: $border-radius;
54
    padding: 0 3px;
55
    background: $gray-lighter;
56
}
57
 
58
/* The inner boundary of the interface. */
59
.cke_inner {
60
    /* This is <span>, so transform it into a block.*/
61
    display: block;
62
 
63
    -webkit-touch-callout: none;
64
 
65
    background: transparent;
66
    padding: 0;
67
}
68
 
69
/* Added to the outer boundary of the UI when in inline editing,
70
   when the UI is floating. */
71
.cke_float {
72
    /* Make white the space between the outer and the inner borders. */
73
    border: none;
74
 
75
    .cke_inner {
76
        /* As we don't have blocks following top (toolbar) we suppress the padding
77
           as the toolbar defines its own margin. */
78
        padding-bottom: 0;
79
    }
80
 
81
    .cke_top {
82
        border: 1px solid $hr-border;
83
    }
84
}
85
 
86
/* Make the main spaces enlarge to hold potentially floated content. */
87
.cke_top, .cke_contents, .cke_bottom {
88
    /* These are <span>s, so transform them into blocks.*/
89
    display: block;
90
 
91
    /* Ideally this should be "auto", but it shows scrollbars in IE7. */
92
    overflow: hidden;
93
}
94
 
95
.cke_top, .cke_bottom {
96
    padding: 3px 0 0;
97
    background: $gray-lighter;
98
}
99
 
100
.cke_top {
101
    /* Allow breaking toolbars when in a narrow editor. (#9947) */
102
    white-space: normal;
103
}
104
 
105
.cke_contents {
106
    background-color: #fff;
107
    border: 1px solid $hr-border;
108
    border-radius: $border-radius;
109
}
110
 
111
.cke_bottom {
112
    position: relative;
113
}
114
 
115
/* On iOS we need to manually enable scrolling in the contents block. (#9945) */
116
.cke_browser_ios .cke_contents {
117
    overflow-y: auto;
118
    -webkit-overflow-scrolling: touch;
119
}
120
 
121
/* The resizer is the small UI element that is rendered at the bottom right
122
   part of the editor. It makes is possible to resize the editor UI. */
123
.cke_resizer {
124
    /* To avoid using images for the resizer, we create a small triangle,
125
       using some CSS magic. */
126
    width: 0;
127
    height: 0;
128
    overflow: hidden;
129
    width: 0;
130
    height: 0;
131
    overflow: hidden;
132
    border-width: 10px 10px 0 0;
133
    border-color: transparent $gray-dark transparent transparent;
134
    border-style: dashed solid dashed dashed;
135
 
136
    font-size: 0;
137
    vertical-align: bottom;
138
 
139
    margin-top: 6px;
140
 
141
    /*  A margin in case of no other element in the same container
142
        to keep a distance to the bottom edge. */
143
    margin-bottom: 2px;
144
}
145
 
146
.cke_hc .cke_resizer {
147
    font-size: 15px;
148
    width: auto;
149
    height: auto;
150
    border-width: 0;
151
}
152
 
153
.cke_resizer_ltr {
154
    cursor: se-resize;
155
 
156
    float: right;
157
    margin-right: -4px;
158
}
159
 
160
/* This class is added in RTL mode. This is a special case for the resizer
161
   (usually the .cke_rtl class is used), because it may not necessarily be in
162
   RTL mode if the main UI is RTL. It depends instead on the context where the
163
   editor is inserted on. */
164
.cke_resizer_rtl {
165
    border-width: 10px 0 0 10px;
166
    border-color: transparent transparent transparent $gray;
167
    border-style: dashed dashed dashed solid;
168
 
169
    cursor: sw-resize;
170
 
171
    float: left;
172
    margin-left: -4px;
173
    right: auto;
174
}
175
 
176
/* The editing area (where users type) can be rendered as an editable <div>
177
   element (e.g. divarea plugin). In that case, this is the class applied to
178
   that element. */
179
.cke_wysiwyg_div {
180
    display: block;
181
    height: 100%;
182
    overflow: auto;
183
    padding: 0 8px;
184
    outline-style: none;
185
 
186
    -moz-box-sizing: border-box;
187
    -webkit-box-sizing: border-box;
188
    box-sizing: border-box;
189
}