packages/ketcher-react/src/script/ui/component/cliparea/cliparea.module.less (18 lines of code) (raw):

/**************************************************************************** * Copyright 2021 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ***************************************************************************/ .cliparea { // Copied from http://bit.ly/12nphsK // Search for less verbose way to make FF happy position: absolute; bottom: 0; left: 0; width: 0 !important; height: 0 !important; display: block; font-size: 1px; z-index: -1; color: transparent !important; background: transparent !important; overflow: hidden; border: none !important; padding: 0 !important; resize: none; outline: none; user-select: text; // Because for user-select:none, // Safari won't allow input }