BesService/styles.css
Simon Rozman 9c7c967039 Rotate panel names
The new name reflects the purpose of the panel better:

- panelParent → correctionPanel: This is our (0, 0) positioned <div>
  inside which most of the magic happens. We do need it to be able to
  position it's child properly.

- correctionPanel → scrollPanel: This is a <div> which size and
  placement should exactly match the hostElement. We need it to provide
  a scrollable (hence the name) viewport for our canvas.
2025-02-28 11:02:04 +01:00

59 lines
981 B
CSS

/* TODO: Dark mode theme */
/* Mistake types styles */
.bes-spelling-mistake {
border-bottom: 2px solid #ff7300;
position: absolute;
z-index: 3;
cursor: text;
}
.bes-highlight-rect {
position: absolute;
opacity: 0.3;
cursor: text;
}
.bes-highlight-spelling-rect {
background: rgb(0, 123, 255);
}
.bes-highlight-grammar-rect {
background: rgb(255, 115, 0);
}
/* Styles required to ensure full functionality and optimal user experience. */
.bes-correction-panel {
position: relative;
overflow: visible;
float: left;
display: inline;
width: 0px;
height: 0px;
border: none;
z-index: 1;
}
.bes-scroll-panel {
position: relative;
overflow: hidden;
border-color: transparent;
color: transparent;
pointer-events: none;
}
.bes-canvas {
position: relative;
z-index: 3;
cursor: text;
}
.bes-text-panel {
position: absolute;
overflow: hidden;
margin: 0px;
color: transparent;
border-color: transparent;
background: none;
}