/*! UIkit 2.27.4 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/* ========================================================================
   Component: HTML editor
 ========================================================================== */
/* Sub-object `cw-htmleditor-navbar`
 ========================================================================== */
.cw-htmleditor-navbar {
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
/*
 * Micro clearfix
 */
.cw-htmleditor-navbar:before,
.cw-htmleditor-navbar:after {
  content: "";
  display: table;
}
.cw-htmleditor-navbar:after {
  clear: both;
}
/* Sub-object `cw-htmleditor-navbar-nav`
 ========================================================================== */
.cw-htmleditor-navbar-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  float: left;
}
.cw-htmleditor-navbar-nav > li {
  float: left;
}
/*
 * 1. Dimensions
 * 2. Style
 */
.cw-htmleditor-navbar-nav > li > a {
  display: block;
  box-sizing: border-box;
  text-decoration: none;
  /* 1 */
  height: 41px;
  padding: 0 15px;
  line-height: 40px;
  /* 2 */
  color: #444;
  font-size: 11px;
  cursor: pointer;
  margin-top: -1px;
  margin-left: -1px;
  border: 1px solid transparent;
  border-bottom-width: 0;
  text-shadow: 0 1px 0 #fff;
}
/*
 * Hover
 * 1. Apply hover style also to focus state
 * 2. Remove default focus style
 */
.cw-htmleditor-navbar-nav > li:hover > a,
.cw-htmleditor-navbar-nav > li > a:focus {
  background-color: #fafafa;
  color: #444;
  outline: none;
  /* 2 */
  position: relative;
  z-index: 1;
  border-left-color: rgba(0, 0, 0, 0.1);
  border-right-color: rgba(0, 0, 0, 0.1);
  border-top-color: rgba(0, 0, 0, 0.1);
}
/* OnClick */
.cw-htmleditor-navbar-nav > li > a:active {
  background-color: #eee;
  color: #444;
  border-left-color: rgba(0, 0, 0, 0.1);
  border-right-color: rgba(0, 0, 0, 0.1);
  border-top-color: rgba(0, 0, 0, 0.2);
}
/* Active */
.cw-htmleditor-navbar-nav > li.cw-active > a {
  background-color: #fafafa;
  color: #444;
  border-left-color: rgba(0, 0, 0, 0.1);
  border-right-color: rgba(0, 0, 0, 0.1);
  border-top-color: rgba(0, 0, 0, 0.1);
}
/* Sub-object: `cw-htmleditor-navbar-flip`
 ========================================================================== */
.cw-htmleditor-navbar-flip {
  float: right;
}
/* Sub-object for special buttons
 ========================================================================== */
[data-mode='split'] .cw-htmleditor-button-code,
[data-mode='split'] .cw-htmleditor-button-preview {
  display: none;
}
/* Sub-object `cw-htmleditor-content`
 ========================================================================== */
.cw-htmleditor-content {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background: #fff;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
/*
 * Micro clearfix
 */
.cw-htmleditor-content:before,
.cw-htmleditor-content:after {
  content: "";
  display: table;
}
.cw-htmleditor-content:after {
  clear: both;
}
/* Modifier `cw-htmleditor-fullscreen`
 ========================================================================== */
.cw-htmleditor-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 990;
}
.cw-htmleditor-fullscreen .cw-htmleditor-content {
  position: absolute;
  top: 41px;
  left: 0;
  right: 0;
  bottom: 0;
}
.cw-htmleditor-fullscreen .cw-icon-expand:before {
  content: "\f066";
}
/* Sub-objects `cw-htmleditor-code` and `cw-htmleditor-preview`
 ========================================================================== */
.cw-htmleditor-code,
.cw-htmleditor-preview {
  box-sizing: border-box;
}
.cw-htmleditor-preview {
  padding: 20px;
  overflow-y: scroll;
  position: relative;
}
/*
 * Tab view
 */
[data-mode='tab'][data-active-tab='code'] .cw-htmleditor-preview,
[data-mode='tab'][data-active-tab='preview'] .cw-htmleditor-code {
  display: none;
}
/*
 * Split view
 */
[data-mode='split'] .cw-htmleditor-code,
[data-mode='split'] .cw-htmleditor-preview {
  float: left;
  width: 50%;
}
[data-mode='split'] .cw-htmleditor-code {
  border-right: 1px solid #eee;
}
/* Sub-object `cw-htmleditor-iframe`
 ========================================================================== */
.cw-htmleditor-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* CodeMirror modifications
 ========================================================================== */
.cw-htmleditor .CodeMirror {
  padding: 10px;
  box-sizing: border-box;
}
/*
     * Apply same `border-radius` as `cw-htmleditor-navbar`
     */
.cw-htmleditor-navbar-nav:first-child > li:first-child > a {
  border-top-left-radius: 4px;
}
/*
     * Sub-modifier `cw-htmleditor-navbar-flip`
     */
/* Collapse border */
.cw-htmleditor-navbar-flip .cw-htmleditor-navbar-nav > li > a {
  margin-left: 0;
  margin-right: -1px;
}
/* Apply same `border-radius` as `cw-htmleditor-navbar` */
.cw-htmleditor-navbar-flip .cw-htmleditor-navbar-nav:first-child > li:first-child > a {
  border-top-left-radius: 0;
}
.cw-htmleditor-navbar-flip .cw-htmleditor-navbar-nav:last-child > li:last-child > a {
  border-top-right-radius: 4px;
}
/*
     * Sub-modifier `cw-htmleditor-fullscreen`
     */
.cw-htmleditor-fullscreen .cw-htmleditor-navbar {
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
}
.cw-htmleditor-fullscreen .cw-htmleditor-content {
  border: none;
  border-radius: 0;
}
.cw-htmleditor-fullscreen .cw-htmleditor-navbar-nav > li > a {
  border-radius: 0 !important;
}
