@font-face {
  font-family: 'Lato';
  src: url('./fonts/Lato-Regular.ttf') format('truetype');
}

[contenteditable]:focus {
  outline: 0px solid transparent;
}

[contentEditable]:empty:not(:focus):before {
  content: attr(data-text);
  color: #b2bdd5;
}

a {
  cursor: pointer;
}

body {
  margin: 0 auto;
  font-family: 'Lato';
  font-size: 13px !important;
}

.toolbar {
  width: 100%;
  position: relative;
  border-bottom: 1px solid #e1ebed;
  background: #ffffff;
}

.toolbar a,
.fore-wrapper,
.format-wrapper,
.table-wrapper {
  color: black;
  padding: 8px;
  width: 2em;
  height: 2em;
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  margin: -1px;
}

.toolbar a:hover,
.fore-wrapper:hover,
.format-wrapper:hover,
.table-wrapper:hover {
  background: #d0d0d0;
  border-color: #8c8c8c;
}

#editor {
  overflow: auto;
  padding: 1em;
  resize: vertical;
  height: 200px;
  padding-top: 20px;
}

/* Color palette */
.fore-palette {
  display: none;
}

.fore-wrapper {
  display: inline-block;
  cursor: pointer;
}

.fore-wrapper:hover .fore-palette {
  display: block;
  float: left;
  position: absolute;
  padding: 3px;
  width: 120px;
  background: #ffffff;
  border: 1px solid #dddddd;
  box-shadow: 0 0 5px #cccccc;
  height: 55px;
}

.fore-palette a {
  background: #ffffff;
  margin-bottom: 2px;
}

a.fore-palette-item {
  width: 0.25em;
  height: 0.25em;
  margin: 2px;
  border: 1px solid #CCC;
  border-radius: 3px;
}

a.fore-palette-item:hover {
  border: 1px solid #CCC;
  box-shadow: 0 0 1px #333;
}

/* Color palette */
/* Format palette */
.format-palette {
  display: none;
}

.format-wrapper {
  display: inline-block;
  cursor: pointer;
}

.format-wrapper:hover .format-palette {
  display: block;
  position: absolute;
  padding: 3px;
  width: 180px;
  background: #ffffff;
  border: 1px solid #dddddd;
  box-shadow: 0 0 5px #cccccc;
  height: 140px;
}

.format-palette a {
  background: #ffffff;
  margin: 2px;
}

a.format-palette-item {
  width: 5em;
  margin: 2px;
  float: left;
  text-align: left;
  padding: 0px;
}

a.format-h1 {
  height: 1.2em;
  font-size: 2em;
  font-weight: bold;
}

a.format-h2 {
  height: 1.1em;
  font-size: 1.5em;
  font-weight: bold;
}

/* Format palette */
/* Table */
.table-palette {
  float: left;
  position: absolute;
  background: #ffffff;
  border: 1px solid #dddddd;
  box-shadow: 0 0 5px #cccccc;
  width: 218px;
  height: 217px;
  margin-top: -3px;
  top:27px;
}

.table-palette a {
  background: #ffffff;
}

a.table-palette-item {
  height: 0.2em;
  width: 0.2em;
  border: 1px solid #CCC;
  box-shadow: 0px 0px 0px;
  margin: -5px 0px -2px -4px;
}

/* Table */
