Project

General

Profile

1
/*! UIkit 2.27.5 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2
/* ========================================================================
3
   Component: HTML editor
4
 ========================================================================== */
5
/* Sub-object `uk-htmleditor-navbar`
6
 ========================================================================== */
7
.uk-htmleditor-navbar {
8
  background: #f7f7f7;
9
  border: 1px solid rgba(0, 0, 0, 0.1);
10
  border-bottom-color: rgba(0, 0, 0, 0.2);
11
  border-top-left-radius: 4px;
12
  border-top-right-radius: 4px;
13
  background-origin: border-box;
14
  background-image: -webkit-linear-gradient(top, #fff, #eee);
15
  background-image: linear-gradient(to bottom, #fff, #eee);
16
}
17
/*
18
 * Micro clearfix
19
 */
20
.uk-htmleditor-navbar:before,
21
.uk-htmleditor-navbar:after {
22
  content: "";
23
  display: table;
24
}
25
.uk-htmleditor-navbar:after {
26
  clear: both;
27
}
28
/* Sub-object `uk-htmleditor-navbar-nav`
29
 ========================================================================== */
30
.uk-htmleditor-navbar-nav {
31
  margin: 0;
32
  padding: 0;
33
  list-style: none;
34
  float: left;
35
}
36
.uk-htmleditor-navbar-nav > li {
37
  float: left;
38
}
39
/*
40
 * 1. Dimensions
41
 * 2. Style
42
 */
43
.uk-htmleditor-navbar-nav > li > a {
44
  display: block;
45
  box-sizing: border-box;
46
  text-decoration: none;
47
  /* 1 */
48
  height: 41px;
49
  padding: 0 15px;
50
  line-height: 40px;
51
  /* 2 */
52
  color: #444;
53
  font-size: 11px;
54
  cursor: pointer;
55
  margin-top: -1px;
56
  margin-left: -1px;
57
  border: 1px solid transparent;
58
  border-bottom-width: 0;
59
  text-shadow: 0 1px 0 #fff;
60
}
61
/*
62
 * Hover
63
 * 1. Apply hover style also to focus state
64
 * 2. Remove default focus style
65
 */
66
.uk-htmleditor-navbar-nav > li:hover > a,
67
.uk-htmleditor-navbar-nav > li > a:focus {
68
  background-color: transparent;
69
  color: #444;
70
  outline: none;
71
  /* 2 */
72
  position: relative;
73
  z-index: 1;
74
  border-left-color: rgba(0, 0, 0, 0.1);
75
  border-right-color: rgba(0, 0, 0, 0.1);
76
  border-top-color: rgba(0, 0, 0, 0.1);
77
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
78
}
79
/* OnClick */
80
.uk-htmleditor-navbar-nav > li > a:active {
81
  background-color: #f5f5f5;
82
  color: #444;
83
  border-left-color: rgba(0, 0, 0, 0.1);
84
  border-right-color: rgba(0, 0, 0, 0.1);
85
  border-top-color: rgba(0, 0, 0, 0.2);
86
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
87
}
88
/* Active */
89
.uk-htmleditor-navbar-nav > li.uk-active > a {
90
  background-color: #fafafa;
91
  color: #444;
92
  border-left-color: rgba(0, 0, 0, 0.1);
93
  border-right-color: rgba(0, 0, 0, 0.1);
94
  border-top-color: rgba(0, 0, 0, 0.2);
95
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
96
}
97
/* Sub-object: `uk-htmleditor-navbar-flip`
98
 ========================================================================== */
99
.uk-htmleditor-navbar-flip {
100
  float: right;
101
}
102
/* Sub-object for special buttons
103
 ========================================================================== */
104
[data-mode='split'] .uk-htmleditor-button-code,
105
[data-mode='split'] .uk-htmleditor-button-preview {
106
  display: none;
107
}
108
/* Sub-object `uk-htmleditor-content`
109
 ========================================================================== */
110
.uk-htmleditor-content {
111
  border-left: 1px solid #ddd;
112
  border-right: 1px solid #ddd;
113
  border-bottom: 1px solid #ddd;
114
  background: #fff;
115
  border-bottom-left-radius: 4px;
116
  border-bottom-right-radius: 4px;
117
}
118
/*
119
 * Micro clearfix
120
 */
121
.uk-htmleditor-content:before,
122
.uk-htmleditor-content:after {
123
  content: "";
124
  display: table;
125
}
126
.uk-htmleditor-content:after {
127
  clear: both;
128
}
129
/* Modifier `uk-htmleditor-fullscreen`
130
 ========================================================================== */
131
.uk-htmleditor-fullscreen {
132
  position: fixed;
133
  top: 0;
134
  left: 0;
135
  right: 0;
136
  bottom: 0;
137
  z-index: 990;
138
}
139
.uk-htmleditor-fullscreen .uk-htmleditor-content {
140
  position: absolute;
141
  top: 41px;
142
  left: 0;
143
  right: 0;
144
  bottom: 0;
145
}
146
.uk-htmleditor-fullscreen .uk-icon-expand:before {
147
  content: "\f066";
148
}
149
/* Sub-objects `uk-htmleditor-code` and `uk-htmleditor-preview`
150
 ========================================================================== */
151
.uk-htmleditor-code,
152
.uk-htmleditor-preview {
153
  box-sizing: border-box;
154
}
155
.uk-htmleditor-preview {
156
  padding: 20px;
157
  overflow-y: scroll;
158
  position: relative;
159
}
160
/*
161
 * Tab view
162
 */
163
[data-mode='tab'][data-active-tab='code'] .uk-htmleditor-preview,
164
[data-mode='tab'][data-active-tab='preview'] .uk-htmleditor-code {
165
  display: none;
166
}
167
/*
168
 * Split view
169
 */
170
[data-mode='split'] .uk-htmleditor-code,
171
[data-mode='split'] .uk-htmleditor-preview {
172
  float: left;
173
  width: 50%;
174
}
175
[data-mode='split'] .uk-htmleditor-code {
176
  border-right: 1px solid #eee;
177
}
178
/* Sub-object `uk-htmleditor-iframe`
179
 ========================================================================== */
180
.uk-htmleditor-iframe {
181
  position: absolute;
182
  top: 0;
183
  left: 0;
184
  width: 100%;
185
  height: 100%;
186
}
187
/* CodeMirror modifications
188
 ========================================================================== */
189
.uk-htmleditor .CodeMirror {
190
  padding: 10px;
191
  box-sizing: border-box;
192
}
193
/*
194
     * Apply same `border-radius` as `uk-htmleditor-navbar`
195
     */
196
.uk-htmleditor-navbar-nav:first-child > li:first-child > a {
197
  border-top-left-radius: 4px;
198
}
199
/*
200
     * Sub-modifier `uk-htmleditor-navbar-flip`
201
     */
202
/* Collapse border */
203
.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav > li > a {
204
  margin-left: 0;
205
  margin-right: -1px;
206
}
207
/* Apply same `border-radius` as `uk-htmleditor-navbar` */
208
.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:first-child > li:first-child > a {
209
  border-top-left-radius: 0;
210
}
211
.uk-htmleditor-navbar-flip .uk-htmleditor-navbar-nav:last-child > li:last-child > a {
212
  border-top-right-radius: 4px;
213
}
214
/*
215
     * Sub-modifier `uk-htmleditor-fullscreen`
216
     */
217
.uk-htmleditor-fullscreen .uk-htmleditor-navbar {
218
  border-top: none;
219
  border-left: none;
220
  border-right: none;
221
  border-radius: 0;
222
}
223
.uk-htmleditor-fullscreen .uk-htmleditor-content {
224
  border: none;
225
  border-radius: 0;
226
}
227
.uk-htmleditor-fullscreen .uk-htmleditor-navbar-nav > li > a {
228
  border-radius: 0 !important;
229
}
(52-52/126)