#ditty-editor {
position: relative;
display: flex;
flex-direction: row;
align-items: stretch;
justify-content: flex-start;
box-sizing: border-box;
}
#ditty-editor__initialize {
order: 0;
flex: 1;
width: 100%;
background: #FFF;
box-sizing: border-box;
}
#ditty-editor__preview {
order: 0;
flex: 1;
width: calc( 100% - 350px );
background: #FFF;
box-sizing: border-box;
}
#ditty-editor__settings {
position: relative;
order: 1;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
width: 350px;
background: #EBEBEB;
}
#ditty-editor__settings .ditty-field {
padding: 15px;
border-color: rgba(0, 0, 0, 0.05);
}
#ditty-editor__settings .ditty-field__label {
font-weight: 600;
}
#ditty-editor__settings .ditty-field-type--group {
padding: 0;
border-color: rgba(0, 0, 0, 0.05);
}
#ditty-editor__settings .ditty-input--group__container > .ditty-field {
width: 100%;
}
#ditty-editor__settings .ditty-field-type--layout_element {
padding: 0;
border-color: rgba(0, 0, 0, 0.05);
}
#ditty-editor__settings .ditty-input--layout_element__container > .ditty-field {
width: 100%;
}
#ditty-editor__settings .ditty-field-type--checkboxes .ditty-field {
padding: 0 10px 0 0;
border: none;
}
#ditty-editor .ditty-editor__panels {
background: #F7F7F7;
}
#ditty-editor .ditty-editor__contents {
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
height: 100%;
}
#ditty-editor .ditty-editor__header {
flex: 0 0 auto;
display: flex;
flex-direction: row;
align-items: stretch;
justify-content: flex-end;
padding: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
#ditty-editor .ditty-editor__header .ditty-editor__title {
flex: 1;
width: 100%;
min-height: 0;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 3px;
padding: 5px 10px;
margin: 0;
}
#ditty-editor .ditty-editor__header .ditty-editor__update {
flex: 0 0 auto;
margin: 0 0 0 5px;
}
#ditty-editor .ditty-editor__header .ditty-editor__update__count {
font-size: 10px;
line-height: 14px;
font-weight: bold;
background: rgba(255, 255, 255, 0.9);
color: #32373C;
padding: 3px 7px;
margin-right: 5px;
border-radius: 15px;
}
#ditty-editor .ditty-editor__header .ditty-editor__update__count:empty {
display: none;
}
#ditty-editor .ditty-editor__tabs {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
background: #32373C;
}
#ditty-editor .ditty-editor__tab {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
font-weight: 400;
color: #FFF;
padding: 10px;
text-align: center;
text-decoration: none;
background-color: transparent;
border-radius: 0;
transition: color 0.25s ease, background-color 0.25s ease;
}
#ditty-editor .ditty-editor__tab span {
display: block;
padding-left: 20px;
}
#ditty-editor .ditty-editor__tab i {
position: absolute;
top: 13px;
display: block;
font-size: 13px;
}
#ditty-editor .ditty-editor__tab:focus {
color: #FFF;
outline: none;
box-shadow: none;
}
#ditty-editor .ditty-editor__tab:hover {
color: #FFF;
background-color: rgba(255, 255, 255, 0.2);
}
#ditty-editor .ditty-editor__tab.active {
color: #FFF;
background-color: #19BF7C;
}
#ditty-editor .ditty-editor__tab.active:after {
border: 6px solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-bottom-color: #F7F7F7;
left: 50%;
bottom: 0;
margin-left: -5px;
}
#ditty-editor .ditty-editor__import-export textarea {
width: 100%;
}
#ditty-editor .ditty-editor__spacer {
width: 100%;
}
#ditty-editor .ditty-editor__oauth-warning {
display: inline-block;
font-weight: bold;
color: #FFF;
padding: 5px 8px;
border-radius: 3px;
background: #E1362E;
vertical-align: middle;
}
#ditty-editor .ditty-editor__oauth-warning i {
display: inline;
color: rgba(255, 255, 255, 0.8);
}
.ditty-editor--updates-exist .ditty-editor__header .ditty-editor__update {
background-color: orange;
}
.ditty-editor-options__header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
padding: 10px 15px;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.ditty-editor-options__buttons {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.ditty-editor-options__buttons .ditty-button {
margin: 0;
}
.ditty-editor-options__buttons a:not(.ditty-button),
.ditty-editor-options__buttons button:not(.ditty-button) {
display: block;
width: 30px;
height: 30px;
text-align: center;
line-height: 30px;
color: #FFF;
background: #32373C;
border: none;
border-radius: 3px;
transition: background-color 0.25s ease, color 0.25s ease;
margin: 0;
padding: 0;
}
.ditty-editor-options__buttons a:not(.ditty-button):hover,
.ditty-editor-options__buttons button:not(.ditty-button):hover {
color: #FFF;
background-color: #19BF7C;
}
.ditty-editor-options__buttons a:not(.ditty-button).ditty-editor-options__preview.ditty-has-updates,
.ditty-editor-options__buttons button:not(.ditty-button).ditty-editor-options__preview.ditty-has-updates {
cursor: pointer;
background-color: orange;
opacity: 1;
}
.ditty-editor-options__buttons a:not(.ditty-button).ditty-editor-options__preview.ditty-has-updates:hover,
.ditty-editor-options__buttons button:not(.ditty-button).ditty-editor-options__preview.ditty-has-updates:hover {
background-color: #19BF7C;
}
.ditty-editor-options__buttons a:not(.ditty-button).ditty-editor-options__preview:not(.ditty-has-updates),
.ditty-editor-options__buttons button:not(.ditty-button).ditty-editor-options__preview:not(.ditty-has-updates) {
cursor: default;
opacity: 0.2;
}
.ditty-editor-options__buttons a:not(.ditty-button).ditty-editor-options__preview:not(.ditty-has-updates):hover,
.ditty-editor-options__buttons button:not(.ditty-button).ditty-editor-options__preview:not(.ditty-has-updates):hover {
background: #32373C;
}
.ditty-editor-options__buttons a:not(.ditty-button).ditty-editor-options__preview:not(.ditty-has-updates):focus,
.ditty-editor-options__buttons button:not(.ditty-button).ditty-editor-options__preview:not(.ditty-has-updates):focus {
border: none;
outline: none;
box-shadow: none;
}
.ditty-editor-options__buttons--start a:not(.ditty-button),
.ditty-editor-options__buttons--start button:not(.ditty-button) {
margin-right: 5px;
}
.ditty-editor-options__buttons--end {
margin-left: auto;
}
.ditty-editor-options__buttons--end a:not(.ditty-button),
.ditty-editor-options__buttons--end button:not(.ditty-button) {
margin-left: 5px;
}
.ditty-editor-options__save {
margin-left: auto;
cursor: pointer;
}
.ditty-editor-options__save.unsaved-updates i {
animation-name: ditty-unsaved-changes;
animation-timing-function: ease;
animation-duration: 0.75s;
animation-iteration-count: infinite;
}
.ditty-editor-options__title, .ditty-editor-options__title[type=text] {
flex: 1;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
font-size: 14px;
line-height: 18px;
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-radius: 3px !important;
}
.ditty-editor-options__title[type=text] {
background: transparent;
}
.ditty-editor-options__body {
position: relative;
max-height: calc(100vh - 470px);
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
.ditty-editor-options__body__error {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
text-align: center;
background: rgba(170, 0, 0, 0.5);
padding: 20px;
cursor: pointer;
}
.ditty-editor-options__body__error span {
display: block;
line-height: 1.5em;
color: #FFF;
text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.ditty-editor-options__code {
width: 100%;
}
.ditty-editor-options__footer {
padding: 10px;
border-top: 1px solid #ddd;
background: #f5f5f5;
box-sizing: border-box;
}
.ditty-editor-options__footer .button {
margin-left: 5px;
}
.ditty-editor-options__tags h3 {
font-size: 14px;
line-height: 14px;
margin: 0 0 10px;
}
.ditty-editor-options__tags__list {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
margin: -2px;
}
.ditty-editor-options__tag {
font-size: 12px;
line-height: 12px;
background: rgba(0, 0, 0, 0.05);
border-radius: 2px;
padding: 3px 5px;
margin: 2px;
cursor: pointer;
transition: background-color 0.25s ease;
}
.ditty-editor-options__tag:hover {
background: rgba(0, 0, 0, 0.15);
}
.ditty-editor-options.ditty-editor-has-errors .ditty-editor-options__save {
cursor: default;
color: red;
opacity: 0.3;
}
.ditty-editor-options .ditty-data-list__items {
background: #F7F7F7;
padding: 15px;
}
.ditty-editor-item--error {
background-color: #fbeaea;
}
.ditty-editor-item--error .ditty-data-list__item__icon,
.ditty-editor-item--error .ditty-data-list__item__label {
color: #E1362E !important;
}
.ditty-editor-item--error:hover {
background-color: #fbeaea;
border-color: #E1362E;
}
.ditty-editor__panel--item_editor .ditty-editor-options__body {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
flex-wrap: wrap;
}
.ditty-editor__panel--item_editor .ditty-editor-options__body > .ditty-field {
width: 100%;
}
@keyframes ditty-unsaved-changes {
0% {
color: #FFF;
}
50% {
color: #FF3B77;
}
100% {
color: #FFF;
}
}
@media (max-width: 800px) {
#ditty-editor {
flex-direction: column;
}
#ditty-editor__preview, #ditty-editor__settings {
width: 100%;
}
}
.ditty-editor__panel--items .ditty-data-list {
max-height: calc(100vh - 470px);
min-height: 300px;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
.ditty-editor__panel--items .ditty-data-list__item.ditty-editor-item--disabled {
cursor: default;
background: #F8EDED;
border: 1px solid red;
box-shadow: 0 0 1px red;
}
.ditty-editor__panel--items .ditty-data-list__item a.ditty-data-list__item__icon {
display: block;
border-right: 1px solid rgba(0, 0, 0, 0.05);
margin-right: 10px;
}
.ditty-editor-display {
cursor: pointer;
}
.ditty-editor-display:not(.active):hover .ditty-data-list__item__edit {
display: none;
}
.ditty-editor-display--default .ditty-data-list__item__delete {
display: none !important;
}
.ditty-editor-display.active .ditty-data-list__item__delete {
display: none;
}
.ditty-editor-display.active:hover .ditty-data-list__item__delete {
display: none;
}
.ditty-editor-display--default {
background-color: #CCC;
}
.ditty-editor-display .ditty-data-list {
max-height: calc(100vh - 470px);
min-height: 300px;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
.ditty-display-type-options--ticker .ditty-input--group__container > .ditty-field.ditty-field--minHeight, .ditty-display-type-options--ticker .ditty-input--group__container > .ditty-field.ditty-field--titleFontSize {
width: 50% !important;
padding-right: 7.5px !important;
}
.ditty-display-type-options--ticker .ditty-input--group__container > .ditty-field.ditty-field--maxHeight, .ditty-display-type-options--ticker .ditty-input--group__container > .ditty-field.ditty-field--titleLineHeight {
width: 50% !important;
padding-left: 7.5px !important;
}
.ditty-editor-layout {
cursor: pointer;
}
.ditty-editor-layout:not(.active):hover .ditty-data-list__item__edit_html,
.ditty-editor-layout:not(.active):hover .ditty-data-list__item__edit_css,
.ditty-editor-layout:not(.active):hover .ditty-data-list__item__save {
display: none;
}
.ditty-editor-layout.active .ditty-data-list__item__delete {
display: none;
}
.ditty-editor-layout.active:hover .ditty-data-list__item__delete {
display: none;
}
.ditty-layout-variation {
padding: 5px 8px 0 10px;
}
.ditty-layout-variation__icon i {
width: 40px;
height: 40px;
font-size: 20px;
line-height: 40px;
}
.ditty-layout-variation__content {
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
padding: 5px 0 5px;
}
.ditty-layout-variation__label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
.ditty-layout-variation__template {
display: block;
margin-bottom: 5px;
}
.ditty-layout-variation__buttons {
flex: 0 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.ditty-layout-variation__buttons a {
display: block;
}
.ditty-layout-variation a.ditty-layout-variation__change {
flex: 0 0 auto;
display: block;
}
.ditty-layout-variation a.ditty-layout-variation__change i {
width: 30px;
height: 30px;
font-size: 20px;
line-height: 30px;
color: #444;
}
.ditty-editor__panel--item_types .ditty-data-list__items {
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
}
.ditty-editor__panel--item_types .ditty-data-list__item {
cursor: pointer;
order: 1;
}
.ditty-editor__panel--item_types .ditty-data-list__item.active {
order: 0;
}