@import 'medium-editor/medium-editor'; @import 'medium-editor/themes/bootstrap'; .cb-snippet { position: fixed; z-index: 400; bottom: 54px; left: 0; right: 0; width: 100%; height: 100px; padding: 10px 0; background: #f8f8f8; border-top: solid 1px rgba(0,0,0,.1); overflow-y: scroll; } .cb-snippet__btn { box-sizing: border-box; float: left; width: 25%; padding: 10px; text-align: center; text-decoration: none; transition: box-shadow .1s ease; &:hover { text-decoration: none; box-shadow: 0 0 0 2px rgba(0,0,0,.1); } } .cb-snippet__caption { display: none; padding: 5px; color: rgba(0,0,0,.6); font-size: 10px; } .cb-snippet__image { width: 100%; } .cb-controls { position: fixed; z-index: 400; bottom: 0; right: 0; width: 100%; padding: 10px; background: #f8f8f8; border-top: solid 1px rgba(0,0,0,.1); border-left: solid 1px rgba(0,0,0,.1); .btn-block { margin-top: 0; width: auto !important; } .btn-right { float: right; } .btn-left { float: left; } } .cb-tools { margin-bottom: 10px; border-radius: .4rem; background: darken(#fff, 7%); overflow: hidden; text-align: right; } .cb-tools--center { position: absolute; z-index: 300; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); } .cb-tools--disabled { z-index: 100; } .cb-tools__btn { display: inline-block; font-size: 12px; text-align: center; text-transform: uppercase; padding: 10px; &:hover, &:focus { background: rgba(0,0,0,.05); text-decoration: none; } } .cb-tools__btn--delete { float: left; } .cb-tools__btn--small { font-size: 9px; padding: 8px; } .cb-tools__input { } .cb-tools__input--upload { display: none !important; } .cb-container { box-sizing: border-box; padding: 0 0 300px 0; } .cb-content { position: relative; max-width: 100%; height: auto !important; &:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } } .cb-text { line-height: 1.6; color: rgba(0,0,0,.7); font-family: sans-serif; font-size: 16px; margin-bottom: 30px; p { margin: 0 0 20px; &:last-of-type { margin: 0; } } } .cb-figure { position: relative; margin: 0 0 20px; img { width: 100%; } } .cb-figure--center { margin: 0 0 20px; } .cb-figure__clip { position: relative; } .cb-figcaption { margin: 6px 0 0; color: rgba(0,0,0,.6); font-size: 14px; line-height: 1.4; padding: 8px 14px; background: rgba(0,0,0,.05); p { margin: 0; } } .cb-video { position: relative; height: 0; overflow: hidden; padding-bottom: 56.25%; background: image_url('cb-video-default.jpg') no-repeat center #e4e4e4; iframe { position: absolute; width: 100%; height: 100%; vertical-align: middle; } } .cb-video--center { margin-bottom: 30px; } .cb-blockquote { position: relative; margin: 0 0 20px; padding: 25px 0 0 25px; border: 0; } .cb-blockquote__text { margin: 0 0 8px; line-height: 1.4; color: rgba(0,0,0,.6); font-family: sans-serif; font-size: 18px; &:before { content: "\“"; position: absolute; top: -8px; left: 0; display: block; line-height: 1; color: rgba(0,0,0,.2); font-size: 70px; } } .cb-blockquote__footer { position: relative; margin: 0; padding-left: 24px; color: rgba(0,0,0,.6); font-family: sans-serif; font-size: 14px; &:before { content: "\2014 \00A0"; position: absolute; top: 0; left: 0; display: block; } } .cb-relational { margin: 0 0 20px; padding-top: 5px; } .cb-relational__title { margin: 0 0 15px; padding-top: 8px; border-top: solid 4px rgba(0,0,0,.1); color: rgba(0,0,0,.6) !important; font-size: 16px; font-weight: 700; text-transform: uppercase; } .cb-relational__list { margin: 0 0 0 40px; padding: 0; list-style: none; } .cb-relational__item { position: relative; padding: 20px 0; border-bottom: solid 1px rgba(0,0,0,.1); } .cb-relational__caption { margin: 0; display: block; font-size: 16px; font-weight: 600; } .cb-relational__btn { position: absolute; top: 14px; right: 0; display: block; width: 30px; height: 30px; line-height: 30px; color: rgba(0,0,0,.8); text-align: center; } .cb-search { margin-bottom: 15px; width: 100%; padding: 8px; border-radius: 4px; border: solid 1px #ccc; outline: none; &:focus { border-color: #999; } } .cb-loading { position: absolute; z-index: 200; top: 0; left: 0; width: 100%; height: 100%; background: image_url('cb-loading.svg') no-repeat center rgba(#fff, .95); } [contenteditable="true"] { outline: none; &:hover, &:focus { box-shadow: 0 0 0 1px rgba(0,0,0,.2); } } .ui-sortable-placeholder { margin: 20px 0; height: 80px; background: rgba(0,0,0,.05); border: dashed 2px rgba(0,0,0,.05); } @media screen and (min-width: 460px) { .cb-snippet__caption { display: block; } } @media screen and (min-width: 768px) { .cb-snippet { top: 50px; right: 0; bottom: 112px; left: auto; width: 150px; height: auto; padding: 20px; border: 0; border-left: solid 1px rgba(0,0,0,.1); -webkit-transform: translateX(0%); -moz-transform: translateX(0%); transform: translateX(0%); } .cb-snippet__btn { margin-bottom: 20px; display: block; width: 100%; padding: 0; } .cb-controls { position: fixed; z-index: 100; bottom: 0; right: 0; width: 150px; padding: 20px; background: #f8f8f8; border-top: solid 1px rgba(0,0,0,.1); border-left: solid 1px rgba(0,0,0,.1); .btn-block { width: 100% !important; } .btn-block + .btn-block { margin-top: 5px; } .btn-left, .btn-right { float: none; } } .cb-container { box-sizing: border-box; padding: 30px 160px 100px 40px; width: 80%; margin: 0 auto; } .cb-tools { position: absolute; z-index: 300; top: 0; left: -40px; } .cb-tools__btn { display: block; } .cb-tools--center { position: absolute; z-index: 300; top: 50%; left: 50%; .cb-tools__btn { display: inline-block; } } .cb-figure--left { float: left; width: 50%; margin: 0 30px 20px 0; } .cb-figure--right { float: right; width: 50%; margin: 0 0 20px 30px; } .cb-blockquote--left { float: left; width: 50%; margin: 0 30px 20px 0; } .cb-blockquote--right { float: right; width: 50%; margin: 0 0 20px 30px; } .cb-relational--left { float: left; margin: 0 30px 25px 0; width: 50%; } .cb-relational--right { float: right; margin: 0 0 25px 30px; width: 50%; } }