mirror of
https://github.com/codex-team/editor.js
synced 2024-05-23 00:32:28 +02:00
100 lines
2 KiB
CSS
100 lines
2 KiB
CSS
/**
|
|
* Image plugin for codex-editor
|
|
* @author CodeX Team <team@ifmo.su>
|
|
*
|
|
* @version 0.0.1
|
|
*/
|
|
.ce-plugin-image__holder{
|
|
position: relative;
|
|
background: #FEFEFE;
|
|
border: 2px dashed #E8EBF5;
|
|
border-radius: 55px;
|
|
margin: 30px 0;
|
|
padding: 30px 110px 30px 40px;
|
|
}
|
|
.ce-plugin-image__holder input{
|
|
border: 0;
|
|
background: transparent;
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
font-size: 1.2em;
|
|
color: #A5ABBC;
|
|
}
|
|
/* Placeholder color for Chrome */
|
|
.ce-plugin-image__holder input::-webkit-input-placeholder {
|
|
color: #A5ABBC;
|
|
}
|
|
/* Placeholder color for IE 10+ */
|
|
.ce-plugin-image__holder input:-ms-input-placeholder {
|
|
color: #A5ABBC;
|
|
}
|
|
/* Placeholder color for Firefox 19+ */
|
|
.ce-plugin-image__holder input::-moz-placeholder {
|
|
color: #A5ABBC;
|
|
opacity: 1;
|
|
}
|
|
.ce-plugin-image__button{
|
|
position: absolute;
|
|
z-index: 2;
|
|
right: 40px;
|
|
cursor: pointer;
|
|
font-family: "codex_editor";
|
|
font-size: 1.5em;
|
|
color: #8990AA;
|
|
}
|
|
.ce-plugin-image__button:hover{
|
|
color: #393F52;
|
|
}
|
|
|
|
.ce-plugin-image__wrapper {
|
|
margin : 3em 0;
|
|
}
|
|
.ce-plugin-image__uploaded--centered {
|
|
max-width: 700px;
|
|
display:block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.ce-plugin-image__uploaded--stretched {
|
|
/*width: 939px;*/
|
|
}
|
|
.ce-plugin-image--stretch {
|
|
margin: 0 !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.ce-plugin-image__caption {
|
|
margin-top: 1em;
|
|
text-align: center;
|
|
color: #898a8c;
|
|
}
|
|
|
|
.ce-plugin-image--caption:empty::before {
|
|
content : 'Подпись';
|
|
font-weight: normal;
|
|
color: #a1a5b3;;
|
|
opacity: 1;
|
|
transition: opacity 200ms ease;
|
|
}
|
|
|
|
.ce-plugin-image--caption:focus::before {
|
|
opacity: .1;
|
|
}
|
|
|
|
/** Settings */
|
|
.ce_plugin_image--settings{
|
|
white-space: nowrap;
|
|
/*padding-right: 10px; */
|
|
}
|
|
.ce_plugin_image--select_button{
|
|
display: inline-block;
|
|
margin-left: 40px;
|
|
border-bottom: 1px solid #475588;
|
|
color: #6881e6;
|
|
cursor: pointer;
|
|
}
|
|
.ce_plugin_image--select_button:hover{
|
|
border-bottom-color: #687da5;
|
|
color: #8da8dc;
|
|
}
|