Ghost/ghost/admin/app/styles/addons/gh-koenig/gh-koenig.css

235 lines
4.6 KiB
CSS
Raw Normal View History

@import "koenig-toolbar.css";
@import "koenig-menu.css";
2017-03-02 13:16:30 +03:00
@import "../ghost-editor/cardmenu.css";
.editor-holder {
height: 100%;
}
2017-03-01 21:50:08 +03:00
.gh-koenig {
height: 100%;
-webkit-overflow-scrolling: touch;
}
.__mobiledoc-editor {
width: 100%;
height: 100%;
min-height: 300px;
padding-bottom: 10vw;
outline: none;
font-family: var(--font-family);
font-size: 1.7rem;
resize: none;
font-weight: 200;
letter-spacing: 0.1px;
}
.kg-card {
2017-03-16 17:39:57 +03:00
position: relative;
display: block;
padding: 10px;
outline:none;
2017-03-16 17:39:57 +03:00
}
.kg-card:hover, .kg-card.selected {
2017-03-16 17:39:57 +03:00
box-shadow: var(--blue) 0 0 0 1px;
border-radius:10px;
2017-03-16 17:39:57 +03:00
}
.kg-card.selected-hard {
box-shadow: var(--blue) 0 0 0 3px;
}
.kg-card .kg-card-toolbar {
position: absolute;
left: 0px;
2017-03-02 11:49:10 +03:00
top: 0px;
margin-top: -56px;
height: 46px;
width:100%;
2017-03-02 11:49:10 +03:00
display: none;
}
.button-group {
color: color(var(--lightgrey) l(-10%));
background: linear-gradient(
color(var(--darkgrey) l(-3%)),
color(var(--darkgrey) l(-8%))
);
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-radius:5px;
height:46px;
display:flex;
box-shadow: 0 0 0 1px color(var(--darkgrey) l(-10%)), 0 8px 16px rgba(26,39,49,0.16), rgba(255,255,255,0.09) 0 1px 0 0 inset;
}
/* keeps the hover when the cursor is moving from the card to the toolbar */
.button-group:before {
2017-03-02 11:49:10 +03:00
display: block;
content: "";
position: absolute;
bottom:-9px;
width: 100%;
height: 8px;
background-color:pink;
}
.button-group:after {
display: block;
content: "";
position: absolute;
bottom:-9px;
left: 50%;
margin-left: -10px;
width: 0;
height: 0;
border-left: transparent 10px solid;
border-right: transparent 10px solid;
border-top: color(var(--darkgrey) l(-10%)) 8px solid;
}
2017-04-06 07:41:11 +03:00
.kg-card.selected .kg-card-toolbar {
display: flex;
align-items: stretch;
justify-content: space-around;
flex-flow: row wrap;
}
.kg-card .kg-card-toolbar label {
flex-grow: 1;
font-size: 1.3rem;
line-height: 46px;
text-align:center;
vertical-align: middle;
font-weight: bold;
padding:0 18px;
}
.kg-card .kg-card-toolbar button {
display: flex;
justify-content: center;
align-items: center;
height: 46px;
min-width: 32px;
font-size: 1.6rem;
line-height: 30px;
padding:0 5px 0 5px;
transition: text-shadow 0.3s ease;
}
.kg-card .kg-card-toolbar button.kg-card-button-text {
font-size: 1.3rem;
line-height: 46px;
width:70px;
text-align:center;
vertical-align: middle;
padding:0;
}
.kg-card .kg-card-toolbar button.kg-card-button-save {
font-size: 1.3rem;
line-height: 30px;
height:30px;
width:60px;
text-align:center;
vertical-align: middle;
margin:8px;
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
fill: #fff;
background: linear-gradient( rgb(61, 161, 214), rgb(34, 136, 191) );
box-shadow: 0 1px 0 rgba(0,0,0,0.12);
border-radius:5px;
}
.kg-card .kg-card-toolbar button.kg-card-delete {
text-transform: none !important;
font-family: "ghosticons" !important;
font-size: 1rem;
line-height: 1;
font-weight: normal !important;
font-style: normal !important;
font-variant: normal !important;
}
.kg-card textarea {
2017-03-02 11:49:10 +03:00
min-height: 333px;
max-width: 900px;
outline: none;
border: none;
resize: none;
}
.kg-card-toolbar button:hover {
background-color: #718087;
color: #fff;
}
textarea.ed_code {
2017-03-02 11:49:10 +03:00
width: 100%;
height: 100%;
border: none;
}
2017-04-05 14:12:55 +03:00
.dragOver {
background-color: pink;
border:100px solid red;
}
/**
* Tooltip
*/
@keyframes tooltip-fadein {
0% { opacity: 0; }
100% { opacity: 1; }
}
.__mobiledoc-tooltip {
white-space: nowrap;
position: absolute;
background-color: #5ba4e5;
border-radius: 3px;
2017-03-02 11:49:10 +03:00
padding: 5px 10px 5px 10px;
color: #FFF;
-webkit-animation: tooltip-fadein 0.333s;
animation: tooltip-fadein 0.333s;
}
.__mobiledoc-tooltip a {
color: #FFF;
}
.__mobiledoc-tooltip:before {
content: '';
position: absolute;
left: 50%;
top: -9px;
margin-left: -10px;
border-bottom: 10px solid #5ba4e5;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
2017-03-16 17:39:57 +03:00
.kg-card .gh-image-uploader .upload-form {
2017-03-16 17:39:57 +03:00
width: 100%;
height: 350px;
background: color(var(--lightgrey) l(+4%));
box-shadow: var(--lightgrey) 0 0 0 1px inset, #fff 0 0 0 15px inset;
border-radius: 3px;
}
2017-03-22 19:03:31 +03:00
/**
* HTML Card
*/
.kg-card-html {
2017-03-22 19:03:31 +03:00
border: #ddd 1px solid;
}