mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
refs https://github.com/TryGhost/Ghost/issues/9311 Koenig is being fully rebooted, first port of call is to focus on getting the rich-text only aspect of mobiledoc-kit working with our popup toolbar. - renames old koenig implementation (used for reference, will eventually be deleted) - new `{{koenig-editor}}` mobiledoc-kit component implementation based on ember-mobiledoc-editor - markdown text expansions - new `{{gh-koenig-edtor}}` that wraps our title+editor and handles keyboard navigation between the two - clicks below content will focus the editor - new `{{koenig-toolbar}}` component for the popup formatting toolbar with improved behaviour and simplified code
58 lines
1 KiB
CSS
58 lines
1 KiB
CSS
.koenig-menu {
|
|
border:1px solid var(--darkgrey);
|
|
position:absolute;
|
|
background-color: #fff;
|
|
background-clip: padding-box;
|
|
padding:10px;
|
|
box-shadow: rbga(0,0,0,0.10) 0 2px 6px;
|
|
min-width:300px;
|
|
border-radius: 4px;
|
|
display: none;
|
|
}
|
|
.koenig-menu.is-visible {
|
|
animation: koenig-menu-fadein 111ms;
|
|
}
|
|
.koenig-menu ul {
|
|
margin:0;
|
|
padding:0;
|
|
list-style: none;
|
|
}
|
|
.koenig-menu ul li button {
|
|
padding:5px;
|
|
width:100%;
|
|
text-align: left;
|
|
font-size:1.3rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.koenig-menu ul li button img {
|
|
width:14px;
|
|
}
|
|
|
|
.koenig-menu ul li button:hover, .koenig-menu ul li button.selected {
|
|
background-color: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
|
#koenig-menu-button {
|
|
position: absolute;
|
|
display:none;
|
|
width:100px;
|
|
height: 100px;
|
|
background-color: deeppink;
|
|
}
|
|
|
|
@keyframes koenig-menu-fadein {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.7);
|
|
transform-origin:top;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
transform-origin:top;
|
|
}
|
|
}
|