/*
* Adapted from: https://github.com/chanzuckerberg/czi-prosemirror/blob/master/src/ui/czi-editor-frameset.css
*
* MIT License
*
* Copyright (c) 2019 Chan Zuckerberg Initiative
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

.text-editor-frameset {
	position: relative;
}

.text-editor-frame-main {
	position: relative;
	z-index: 0;
}

.text-editor-frame-body {
	background-color: #e6e6e6;
}

.text-editor-frameset.embedded .text-editor-frame-body {
	background-color: unset;
}

.text-editor-frame-body-scroll {
	box-sizing: border-box;
	padding-top: 20px;
}

.text-editor-frameset.embedded .text-editor-frame-body-scroll {
	padding-top: unset;
}

.text-editor-frameset.with-fixed-layout .text-editor-frame-main {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.text-editor-frame-head {
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.21);
	position: relative;
	z-index: 2;
}

.text-editor-frameset.with-fixed-layout .text-editor-frame-body {
	flex: 1;
	position: relative;
	z-index: 1;
}

.text-editor-frameset.with-fixed-layout .text-editor-frame-body-scroll {
	bottom: 0;
	left: 0;
	overflow: auto;
	position: absolute;
	right: 0;
	top: 0;
}

.text-editor-frame-footer {
	display: flex;
}
