mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
73ac3e3f5f
Save 2.19.2 changes
209 lines
3.7 KiB
CSS
209 lines
3.7 KiB
CSS
/**
|
|
* Styles for the example page
|
|
*/
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.5em;
|
|
margin: 0;
|
|
}
|
|
|
|
.ce-example {
|
|
font-size: 16.2px;
|
|
}
|
|
|
|
.ce-example__header {
|
|
border-bottom: 1px solid #E8E8EB;
|
|
height: 50px;
|
|
line-height: 50px;
|
|
display: flex;
|
|
padding: 0 30px;
|
|
margin-bottom: 30px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ce-example__header a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.ce-example__header-logo {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ce-example__header-menu {
|
|
margin-left: auto;
|
|
}
|
|
|
|
@media all and (max-width: 730px){
|
|
.ce-example__header-menu {
|
|
margin-left: 0;
|
|
margin-top: 10px;
|
|
flex-basis: 100%;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
.ce-example__header-menu a {
|
|
margin-left: 20px;
|
|
}
|
|
|
|
@media all and (max-width: 730px){
|
|
.ce-example__header-menu a {
|
|
margin-left: 0;
|
|
margin-right: 15px;
|
|
}
|
|
}
|
|
|
|
.ce-example__content {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.ce-example__content--small {
|
|
max-width: 500px;
|
|
border-left: 1px solid #eee;
|
|
border-right: 1px solid #eee;
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.ce-example__content--with-bg {
|
|
background: #f4f4f4;
|
|
max-width: none;
|
|
margin-top: -30px;
|
|
}
|
|
|
|
.ce-example__output {
|
|
background: #1B202B;
|
|
overflow-x: auto;
|
|
padding: 0 30px;
|
|
}
|
|
|
|
.ce-example__output-content {
|
|
max-width: 650px;
|
|
margin: 30px auto;
|
|
color: #ABADC3;
|
|
font-family: 'PT Mono', Menlo, Monaco, Consolas, Courier New, monospace;
|
|
font-size: 13.3px;
|
|
}
|
|
|
|
.ce-example__output-content:empty {
|
|
display: none;
|
|
}
|
|
|
|
.ce-example__button {
|
|
display: block;
|
|
margin: 50px auto;
|
|
max-width: 180px;
|
|
background: #4A9DF8;
|
|
padding: 17px 30px;
|
|
box-shadow: 0 22px 18px -4px rgba(137, 207, 255, 0.77);
|
|
transition: all 150ms ease;
|
|
cursor: pointer;
|
|
border-radius: 31px;
|
|
color: #fff;
|
|
font-family: 'PT Mono', Menlo, Monaco, Consolas, Courier New, monospace;
|
|
text-align: center;
|
|
}
|
|
|
|
.ce-example__button:hover {
|
|
background: #3D8DE5;
|
|
transform: translateY(2px);
|
|
box-shadow: 0 20px 15px -4px rgba(137, 207, 255, 0.77);
|
|
}
|
|
|
|
.ce-example__output-footer {
|
|
padding: 30px 0;
|
|
font-size: 14.2px;
|
|
letter-spacing: 0.3px;
|
|
text-align: center;
|
|
}
|
|
|
|
.ce-example__output-footer a {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.ce-example__statusbar {
|
|
position: fixed;
|
|
bottom: 10px;
|
|
right: 10px;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
|
|
font-size: 12px;
|
|
padding: 8px 15px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.ce-example__statusbar-button {
|
|
display: inline-flex;
|
|
margin-left: 10px;
|
|
background: #4A9DF8;
|
|
padding: 6px 12px;
|
|
box-shadow: 0 7px 8px -4px rgba(137, 207, 255, 0.77);
|
|
transition: all 150ms ease;
|
|
cursor: pointer;
|
|
border-radius: 31px;
|
|
color: #fff;
|
|
font-family: 'PT Mono', Menlo, Monaco, Consolas, Courier New, monospace;
|
|
text-align: center;
|
|
}
|
|
|
|
@media all and (max-width: 730px){
|
|
.ce-example__header,
|
|
.ce-example__content{
|
|
padding: 0 20px;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* JSON highlighter
|
|
*/
|
|
.sc_attr {
|
|
color: rgb(148, 162, 192);
|
|
}
|
|
.sc_key {
|
|
color: rgb(190, 213, 255);
|
|
}
|
|
.sc_toolname {
|
|
color: rgb(15, 205, 251);
|
|
}
|
|
.sc_tag {
|
|
color: rgb(4, 131, 216);
|
|
}
|
|
.sc_bool {
|
|
color: rgb(247, 60, 173);
|
|
}
|
|
|
|
.ce-example .ce-block:first-of-type h2.ce-header{
|
|
font-size: 50px;
|
|
}
|
|
|
|
.ce-example h2.ce-header{
|
|
font-size: 30px;
|
|
}
|
|
|
|
.ce-example h3.ce-header {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.ce-example h4.ce-header {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.ce-example-multiple {
|
|
display: grid;
|
|
grid-template-columns: calc(50% - 15px) calc(50% - 15px);
|
|
gap: 30px;
|
|
padding: 30px;
|
|
}
|
|
|
|
.ce-example-multiple > div {
|
|
background: #fff;
|
|
border-radius: 7px;
|
|
padding: 30px;
|
|
}
|