/*
Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

/*
panel.css (part of editor.css)
================================

Panels are floating elements that can hold different types of contents.
The following are common uses of it:

	- The element that toolbar combos display when opening them.
	- The context menu.
	- The list of items displayed by "menu buttons" (e.g. scayt).
	- The panel shown when opening "panel buttons" (e.g. color buttons).

Panel contents are wrapped into an iframe, so it is possible to have additional
CSS loaded inside them (e.g. to have more accurate preview on the styles combo).

The following is a visual representation of the outer elements of a panel:

+-- .cke_panel(*) ---------------------+
| +-- IFRAME.cke_panel_frame --------+ |
| | +-- HTML.cke_panel_container --+ | |
| | | +-- .cke_panel_block ------+ | | |
| | | |                          | | | |
| | | |     (contents here)      | | | |
| | | |                          | | | |
| | | +--------------------------+ | | |
| | +------------------------------+ | |
| +----------------------------------+ |
+--------------------------------------+

(*) All kinds of panel share the above structure. Menu panels adds the
    .cke_menu_panel class to the outer element, while toolbar combos add the
	.cke_combopanel class.

This file also defines styles for panel lists (used by combos). For menu-like
panel contents and color panels check menu.css and colorpanel.css.
*/


/* The box that holds an IFRAME. It's inserted into a host document and positioned
   absolutely by the application. It floats above the host document/editor. */
.cke_panel
{
	/* Restore the loading hide */
	visibility: visible;
    width: 120px;
   	height: 100px;
   	overflow: hidden;

	background-color: #fff;
    border: 1px solid #d1d1d1;
}

/* This class represents panels which are used as context menus. */
.cke_menu_panel
{
	padding: 0;
	margin: 0;
}

/* This class represents panels which are used by rich combos. */
.cke_combopanel
{
    width: 150px;
    height: 170px;
}

/* The IFRAME the panel is wrapped into. */
.cke_panel_frame
{
	width: 100%;
	height: 100%;
	font-size: 12px;

	overflow: auto;
	overflow-x: hidden;
}

/* The HTML document which is a direct descendant of the IFRAME */
.cke_panel_container
{
	overflow-y: auto;
	overflow-x: hidden;
}

/* Remove focus outline. The .cke_panel_block gets focused after combo without any active item is selected. */
.cke_panel_block:focus
{
	outline: none;
}

/*
Here we start the definition of panel lists (e.g. combo panels). The following
is its visual representation:

+-- .cke_panel_block -----------------+
| +-- .cke_panel_grouptitle --------+ |
| |                                 | |
| +---------------------------------+ |
| +-- .cke_panel_list --------------+ |
| | +-- .cke_panel_listItem ------+ | |
| | | +-- a --------------------+ | | |
| | | | +-- span -------------+ | | | |
| | | | |                     | | | | |
| | | | +---------------------+ | | | |
| | | +-------------------------+ | | |
| | +-----------------------------+ | |
| | +-- .cke_panel_listItem ------+ | |
| | | +-- a --------------------+ | | |
| | | | +-- span -------------+ | | | |
| | | | |                     | | | | |
| | | | +---------------------+ | | | |
| | | +-------------------------+ | | |
| | +-----------------------------+ | |
| | ...                             | |
| +---------------------------------+ |
+-------------------------------------+
*/


/* The list of panel items. */
.cke_panel_list
{
	margin: 0;
	padding: 0;
	list-style-type: none;
	white-space: nowrap;
}

/* The item of .cke_panel_list */
.cke_panel_listItem
{
	margin: 0;
	padding: 0;
}

/* The child of .cke_panel_listItem. These elements contain spans which are
   to display a real name of the property which is visible for an end-user. */
.cke_panel_listItem a
{
	padding: 6px 7px;
	display: block;
	color: inherit !important;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cke_hc .cke_panel_listItem a
{
	border-style: none;
}

.cke_panel_listItem.cke_selected a,
.cke_panel_listItem a:hover,
.cke_panel_listItem a:focus,
.cke_panel_listItem a:active
{
	background-color: #e9e9e9;
}

/* Redefine focus outline so it is the same for all browsers. */
.cke_panel_listItem a:focus
{
	outline: 1px dotted #000;
}

.cke_hc .cke_panel_listItem a:hover,
.cke_hc .cke_panel_listItem a:focus,
.cke_hc .cke_panel_listItem a:active
{
	border: 2px solid;
	padding: 4px 5px;
}

/* The following styles set defaults of the elements used by the Paragraph
   Format panel. */
.cke_panel_listItem p,
.cke_panel_listItem h1,
.cke_panel_listItem h2,
.cke_panel_listItem h3,
.cke_panel_listItem h4,
.cke_panel_listItem h5,
.cke_panel_listItem h6,
.cke_panel_listItem pre
{
	margin-top: 0px;
	margin-bottom: 0px;
}

/* The title of the entire panel which is visible on top of the list. */
.cke_panel_grouptitle
{
	cursor: default;
	font-size: 11px;
	font-weight: bold;
	white-space: nowrap;
	margin: 0;
	padding: 6px 6px 7px 6px;

	color: #484848;
	border-bottom: 1px solid #d1d1d1;
	background: #f8f8f8;
}
