Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
.editor_atto_content_wrap {
2
    background-color: $atto-content-wrap-bg;
3
    color: $atto-content-wrap-color;
4
}
5
 
6
.editor_atto_content {
7
    padding: 4px;
8
    resize: vertical;
9
    overflow: auto;
10
}
11
 
12
.editor_atto_content_wrap,
13
.editor_atto + textarea {
14
    width: 100%;
15
    padding: 0;
16
}
17
 
18
.editor_atto + textarea {
19
    border-radius: 0;
20
    resize: vertical;
21
    margin-top: -1px;
22
}
23
 
24
div.editor_atto_toolbar {
25
    display: block;
26
    background: $atto-toolbar-bg;
27
    min-height: 35px;
28
    border: 1px solid $input-border-color;
29
    width: 100%;
30
    padding: 0 0 9px 0;
31
    border-top-left-radius: $border-radius;
32
    border-top-right-radius: $border-radius;
33
}
34
 
35
div.editor_atto_toolbar button {
36
    padding: 4px 9px;
37
    background: none;
38
    border: 0;
39
    margin: 0;
40
    border-radius: 0;
41
    cursor: pointer;
42
}
43
 
44
div.editor_atto_toolbar .menuplaceholder {
45
    display: inline-block;
46
}
47
 
48
div.editor_atto_toolbar {
49
    button + button,
50
    .menuplaceholder + button {
51
        border-left: 1px solid $atto-toolbar-border-color;
52
    }
53
}
54
 
55
div.editor_atto_toolbar button[disabled] {
56
    opacity: .45;
57
    background: none;
58
    cursor: default;
59
}
60
 
61
.editor_atto_toolbar button:hover {
62
    background-image:
63
        radial-gradient(
64
            ellipse at center,
65
            $atto-toolbar-button-gradient-inner 60%,
66
            $atto-toolbar-button-gradient-outer 100%
67
        );
68
    background-color: $atto-toolbar-button-hover-bg;
69
}
70
 
71
.editor_atto_toolbar button:active,
72
.editor_atto_toolbar button.highlight {
73
    background-image:
74
        radial-gradient(
75
            ellipse at center,
76
            $atto-toolbar-button-gradient-inner 40%,
77
            $atto-toolbar-button-gradient-outer 100%
78
        );
79
    background-color: $atto-toolbar-button-active-bg;
80
}
81
 
82
/* Make firefox button sizes match other browsers */
83
div.editor_atto_toolbar button::-moz-focus-inner {
84
    border: 0;
85
    padding: 0;
86
}
87
 
88
div.editor_atto_toolbar button .icon {
89
    padding: 0;
90
    margin: 2px 0;
91
}
92
 
93
div.editor_atto_toolbar div.atto_group {
94
    display: inline-block;
95
    border: 1px solid $atto-toolbar-border-color;
96
    border-bottom: 1px solid $atto-toolbar-group-border-bottom-color;
97
    border-radius: 4px;
98
    margin: 9px 0 0 9px;
99
    background: $atto-toolbar-group-bg;
100
}
101
 
102
div.editor_atto_toolbar .atto_toolbar_row {
103
    margin: 6px 0 -3px 5px;
104
    display: table;
105
    div.atto_group {
106
        margin: 3px 5px 3px 4px;
107
    }
108
}
109
 
110
.editor_atto_content img {
111
    resize: both;
112
    overflow: auto;
113
}
114
 
115
.atto_hasmenu {
116
    /* IE8 places the images on top of each other if that is not set. */
117
    white-space: nowrap;
118
}
119
 
120
.atto_menuentry .icon {
121
    width: 16px;
122
    height: 16px;
123
}
124
 
125
.atto_menuentry {
126
    clear: left;
127
}
128
 
129
.atto_menuentry h1,
130
.atto_menuentry h2,
131
.atto_menuentry p {
132
    margin: 4px;
133
}
134
 
135
/*.atto_form label.sameline {
136
    display: inline-block;
137
    min-width: 10em;
138
}*/
139
 
140
.atto_form textarea.fullwidth,
141
.atto_form input.fullwidth {
142
    width: 100%;
143
}
144
 
145
.atto_form {
146
    padding: 0.5rem;
147
}
148
 
149
/*.atto_form label {
150
    display: block;
151
    margin: 0 0 5px 0;
152
}*/
153
 
154
.atto_control {
155
    position: absolute;
156
    right: -6px;
157
    bottom: -6px;
158
    display: none;
159
    cursor: pointer;
160
}
161
 
162
.atto_control .icon {
163
    background-color: $atto-control-icon-bg;
164
}
165
 
166
div.editor_atto_content:focus .atto_control,
167
div.editor_atto_content:hover .atto_control {
168
    display: block;
169
}
170
 
171
.editor_atto_menu.yui3-menu-hidden {
172
    display: none;
173
}
174
 
175
/* Get broken images back in firefox */
176
.editor_atto_content img:-moz-broken {
177
    -moz-force-broken-image-icon: 1;
178
    min-width: 24px;
179
    min-height: 24px;
180
}
181
 
182
/* Atto menu styling */
183
.moodle-dialogue-base .editor_atto_menu .moodle-dialogue-content .moodle-dialogue-bd {
184
    padding: 0;
185
    z-index: 1000;
186
}
187
 
188
.editor_atto_menu .dropdown-menu > li > a {
189
    margin: 3px 14px;
190
}
191
 
192
.editor_atto_menu .open ul.dropdown-menu {
193
    padding-top: 5px;
194
    padding-bottom: 5px;
195
}
196
 
197
.editor_atto_wrap {
198
    position: relative;
199
}
200
/*rtl:ignore*/
201
.editor_atto_wrap textarea {
202
    direction: ltr;
203
}
204
 
205
.editor_atto_notification {
206
    display: inline-block;
207
    padding: 0.5em;
208
    padding-left: 1em;
209
    padding-right: 1em;
210
    border-bottom-left-radius: 1em;
211
    border-bottom-right-radius: 1em;
212
 
213
    .atto_info {
214
        background-color: $atto-notif-info;
215
    }
216
 
217
    .atto_warning {
218
        background-color: $atto-notif-warning;
219
    }
220
}
221
 
222
.editor_atto_toolbar,
223
.editor_atto_content_wrap,
224
.editor_atto + textarea {
225
    box-sizing: border-box;
226
}
227
 
228
.editor_atto_content.form-control {
229
    width: 100%;
230
    border-top: 0;
231
    border-top-left-radius: 0;
232
    border-top-right-radius: 0;
233
}
234
 
235
/** Atto fields do not have form-control because that would break the layout of the editor.
236
    So they need these extra styles to highlight the editor when there is a validation error. */
237
.has-danger .editor_atto_content.form-control,
238
.has-danger .editor_atto_content.form-control-danger {
239
    @include form-validation-state('invalid', $form-feedback-invalid-color, $form-feedback-icon-invalid);
240
}
241
 
242
.open.atto_menu > .dropdown-menu {
243
    display: block;
244
}
245
div.editor_atto_toolbar button .icon {
246
    color: $atto-toolbar-button-color;
247
}