addons/isl/src/stackEdit/ui/TextEditable.cssblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318.text-editable-group {
b69ab319 position: relative;
b69ab3110}
b69ab3111
b69ab3112.text-editable-overlay {
b69ab3113 position: absolute;
b69ab3114 pointer-events: none;
b69ab3115}
b69ab3116
b69ab3117.text-editable-hidden-textarea {
b69ab3118 overflow: hidden;
b69ab3119 white-space: pre;
b69ab3120 padding: 0;
b69ab3121 margin: 0;
b69ab3122 /* Comment out the following to make textarea visible to debug */
b69ab3123 position: absolute;
b69ab3124 height: 0px;
b69ab3125 width: 0px;
b69ab3126 opacity: 0;
b69ab3127}
b69ab3128
b69ab3129.text-editable-hidden-textarea:active,
b69ab3130.text-editable-hidden-textarea:focus {
b69ab3131 outline: none;
b69ab3132}
b69ab3133
b69ab3134.text-editable-container *::selection {
b69ab3135 background: none;
b69ab3136}
b69ab3137
b69ab3138@keyframes blink {
b69ab3139 0%,
b69ab3140 49% {
b69ab3141 opacity: 1;
b69ab3142 }
b69ab3143
b69ab3144 50%,
b69ab3145 100% {
b69ab3146 opacity: 0;
b69ab3147 }
b69ab3148}
b69ab3149
b69ab3150.text-editable-caret {
b69ab3151 position: absolute;
b69ab3152 width: 1px;
b69ab3153 height: 0px;
b69ab3154 background: var(--foreground);
b69ab3155 transition: transform 0.06s ease-out;
b69ab3156 animation: blink 1.2s steps(1) infinite;
b69ab3157}
b69ab3158
b69ab3159.text-editable-selection-highlight {
b69ab3160 position: absolute;
b69ab3161 opacity: 0.9;
b69ab3162 mix-blend-mode: var(--selection-mix-mode);
b69ab3163}
b69ab3164
b69ab3165.text-editable-selection-highlight-line {
b69ab3166 position: absolute;
b69ab3167 background: var(--editor-selectionBackground);
b69ab3168 transition:
b69ab3169 left 0.06s ease-out,
b69ab3170 width 0.06s ease-out;
b69ab3171}