substance
Version:
Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing systems.
930 lines (917 loc) • 23.2 kB
CSS
/*
Provides all component styles. Does not provide any page styles,
such as fonts and colors for links etc.
*/
/* Global variables
-------------------------------------------------- */
:root {
/* Layout */
/* Normalized heights (used by buttons and inputs) */
/* Colors */
/* Used by Button component */ /* #f8f8f8; */
/* Depending on a base-color */
/* We disable this for now, as accessibility needs more discussion */ /* #1795CD;/* #5BE3FF;
/* Font colors */
/* Default padding */
/* Prose font sizes */
/* Title font sizes */
/* Heading font sizes */
/* code-font */
/* RGB #A3CDFD = HSB 209,29,80 */
/* Collaborator colors */
}
.sc-text-block.sm-align-center {
text-align: center;
}
.sc-text-block.sm-align-right {
text-align: right;
}
.sc-tool-dropdown {
position: relative;
}
.sc-tool-dropdown > .se-choices {
position: absolute;
top: 30px;
left: -3px;
}
/* Position tooltip */
.sc-tool-dropdown > .sc-tooltip {
display: none;
position: absolute;
top: 35px;
left: 50%;
transform: translate(-50%);
}
.sc-tool-dropdown:hover > .sc-tooltip {
display: block;
}
.sc-toggle-tool {
position: relative;
}
/* Position tooltip */
.sc-toggle-tool > .sc-tooltip {
display: none;
position: absolute;
top: 35px;
left: 50%;
transform: translate(-50%);
}
.sc-toggle-tool:hover > .sc-tooltip {
display: block;
}
.sc-tool-group {
/* Styled by embedding context: See: _overlay.css, _toolbar.css */
}
.sc-menu {
background: #2E2E2E;
padding: 3px;
border-radius: 3px;
}
.sc-menu-item {
display: flex;
flex-wrap: nowrap;
white-space: nowrap;
background: none;
border: none;
color: #fff;
text-align: left;
line-height: 24px;
font-size: 11px;
font-weight: 600;
width: 100%;
border: 1px solid transparent;
border-radius: 3px;
padding: 0px 5px;
}
.sc-menu-item.sm-active {
background: white;
color: inherit;
}
.sc-menu-item.sm-active .se-keyboard-shortcut {
color: rgba(0,0,0,0.4);
}
.sc-menu-item .se-icon {
flex: 0 0 0;
padding-right: 7px;
}
.sc-menu-item .se-label {
flex: 0 0 0;
}
.sc-menu-item .se-keyboard-shortcut {
flex: 100 0 0;
font-weight: normal;
font-size: 10px;
padding-left: 20px;
color: rgba(255,255,255,0.4);
text-align: right;
}
.sc-tooltip {
background: #fff;
padding: 2px 7px;
border-radius: 3px;
font-size: 12px;
font-size: 12px;
white-space: nowrap;
box-shadow: 0 1px 2px rgba(0,0,0,0.5)
}
.sc-toolbar > .se-active-tools {
display: flex;
/*flex-wrap: nowrap;*/
padding: 2px;
}
.sc-toolbar > .se-active-tools .sc-tool-group {
flex: 0 0 0;
display: flex;
}
.sc-toolbar > .se-active-tools .sc-tool-group .sc-button {
flex: 0 0 0;
margin: 2px;
}
.sc-toolbar > .se-active-tools .sc-tool-dropdown .sc-button {
margin: 2px;
}
.sc-toolbar .sc-tool-group {
display: inline-block;
}
.sc-toolbar .sc-tool-group .sc-button {
margin: 0px 1px;
}
/* blockquote */
.sc-blockquote {
border-left: 2px solid #E0E4E4;
padding-left: 30px;
}
.sc-switch-text-type .se-option.sm-blockquote {
border-left: 2px solid #E0E4E4;
}
/* button */
/*
Dark Theme - when used on dark background
=============================================================
*/
.sc-button.sm-theme-dark {
position: relative;
height: 24px;
min-width: 24px;
line-height: 24px;
text-align: center;
color: #fff;
font-size: 12px;
font-weight: 600;
border-radius: 3px;
padding-left: 7px;
padding-right: 7px;
}
.sc-button.sm-theme-dark > .se-dropdown {
padding-left: 5px;
}
.sc-button.sm-theme-dark[disabled=true] {
opacity: 0.4;
cursor: default;
}
.sc-button.sm-theme-dark.sm-active,
.sc-button.sm-theme-dark:focus {
background: #e4e4e4;
color: inherit;
}
/*
Light Theme - when used on white background
=============================================================
*/
.sc-button.sm-theme-light {
position: relative;
height: 24px;
min-width: 24px;
line-height: 24px;
text-align: center;
font-size: 12px;
font-weight: 600;
border-radius: 3px;
padding-left: 7px;
padding-right: 7px;
}
.sc-button.sm-theme-light > .se-dropdown {
padding-left: 5px;
}
.sc-button.sm-theme-light[disabled=true] {
opacity: 0.4;
cursor: default;
}
.sc-button.sm-theme-light.sm-active {
background: #2E2E2E;
color: white;
}
.sc-button.sm-theme-light:hover:not(.sm-active):not([disabled]),
.sc-button.sm-theme-light:focus {
background: #e4e4e4;
}
/* code */
.sc-code {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 14px;
background: rgba(0,0,0,0.05);
padding: 2px 0px;
}
/* codeblock */
.sc-codeblock {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 15px;
}
// Toolbar styles
.sc-switch-text-type .se-option.sm-codeblock {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 15px;
}
/* context-menu */
.sc-context-menu {
position: absolute;
background: #2E2E2C;
border-radius: 5px;
font-size: 13px;
z-index: 1000;
}
.sc-context-menu.sm-hidden {
/* we don't use display none because we want to determine the content's width */
visibility: hidden;
left: 0px;
top: 0px;
}
.sc-context-menu > .sc-tool-group {
min-width: 120px;
padding: 5px 0;
}
.sc-context-menu > .sc-tool-group:not(:last-child) {
border-bottom: 1px solid #111;
}
/* dropzones */
.sc-dropzones {
}
.sc-dropzones .se-dropzone {
position: absolute;
}
.sc-dropzones .se-dropzone .se-drop-teaser {
position: absolute;
left: 0px;
right: 0px;
z-index: 100;
transition: background-color 0.5s ease;
height: 3px;
}
.sc-dropzones .se-dropzone.sm-over .se-drop-teaser {
background: #2A8CFF;
}
.sc-dropzones .se-dropzone .se-drop-shield {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index:101;
}
.sc-dropzones.sm-hidden {
visibility: hidden;
left: 0px;
top: 0px;
}
/* Custom Dropzone styles */
.sc-dropzones .se-custom-dropzone {
z-index: 102;
}
.sc-dropzones .se-custom-dropzone .se-drop-shield {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index:103;
}
.sc-dropzones .se-custom-dropzone.sm-over {
background: rgba(0,0,0,0.7);
color: #fff
}
.sc-dropzones .se-custom-dropzone .se-message {
text-align: center;
font-size: 15px;
font-weight: 600;
padding: 20px 0;
display: none;
}
.sc-dropzones .se-custom-dropzone.sm-over .se-message {
display: block;
}
/* emphasis */
.sc-emphasis {
font-style: italic;
}
/* find-and-replace */
.sc-find-and-replace-tool {
background: #fafafa;
border-top: 1px solid #E0E4E4;
padding: 5px;
}
.sc-find-and-replace-tool .se-section {
display: flex;
flex-wrap: nowrap;
}
.sc-find-and-replace-tool .se-section-item {
flex: 0 0 100px;
padding: 5px;
}
.sc-find-and-replace-tool .se-section-item input {
width: 100%;
height: 25px;
border: 1px solid #cbcbcb;
border-radius: 3px;
font-size: 13px;
padding: 5px;
}
.sc-find-and-replace-tool .se-section-item input:focus,
.sc-find-and-replace-tool .se-section-item button:focus {
border: 1px solid #50a1ff;
}
.sc-find-and-replace-tool .se-find-input {
position: relative;
}
.sc-find-and-replace-tool .se-find-input input {
padding: 5px 30px 5px 5px;
-webkit-transition: border .3s ease;
transition: border .3s ease;
}
.sc-find-and-replace-tool .se-find-input .se-status-counter {
cursor: default;
position: absolute;
font-size: 12px;
line-height: 26px;
text-align: center;
padding: 6px 12px;
top: 0;
right: 0;
margin: 0;
height: 100%;
opacity: .5;
-webkit-transition: opacity .3s ease;
transition: opacity .3s ease;
}
.sc-find-and-replace-tool .se-section-item input:focus + .se-status-counter {
color: #50a1ff;
opacity: 1;
}
.sc-find-and-replace-tool button {
border-radius: 3px;
border: 1px solid #cbcbcb;
background: white;
height: 25px;
font-size: 13px;
text-align: center;
}
.sc-find-and-replace-tool .se-section-item button {
width: 100%;
border: 1px solid #cbcbcb;
background: white;
height: 25px;
}
.sc-find-and-replace-tool .se-section-item.sm-flex {
flex: 100 0 100px;
}
.sc-find-and-replace-tool .se-status {
display: flex;
flex-wrap: wrap;
line-height: 25px;
}
.sc-find-and-replace-tool .se-status-title {
white-space: nowrap;
padding: 5px;
}
.sc-find-and-replace-tool .se-status-description {
color: #939393;
font-weight: 300;
white-space: nowrap;
padding: 5px;
margin-left: 50px;
}
.sc-find-and-replace-tool .se-status-options-description {
flex: 0 0 200px;
white-space: nowrap;
padding: 5px;
}
.sc-find-and-replace-tool .se-status-options {
flex: 0 0 0px;
white-space: nowrap;
padding: 5px;
}
.sc-find-and-replace-tool .se-status-options button {
margin-left: 3px;
}
.sc-selected-match {
background: rgba(42, 140, 255, 0.5);
outline: 1px solid #2A8CFF;
}
.sc-match {
background: rgba(42, 140, 255, 0.3)
}
/* grid */
/* See: http://www.sitepoint.com/understanding-css-grid-systems */
.sc-grid {}
/* Make sure we use the border box model */
.sc-grid > .se-row,
.sc-grid > .se-cell { box-sizing: border-box; }
.sc-grid > .se-row:before,
.sc-grid > .se-row:after { content: " "; display: table; }
.sc-grid > .se-row:after { clear: both; }
/* Row styles */
.sc-grid > .se-row { /* overflow: hidden; clear floats */ }
.sc-grid > .se-row > .se-cell { position: relative; position: relative; }
/*
scw = single column width
m = margin (1.6%)
mc = maximum columns (12)
cw = column width for a particular column (1-12)
scw = (100 – (m * (mc – 1))) / mc
cw = (scw * cs) + (m * (cs – 1))
*/
.sc-grid > .se-row > .se-cell.sm-column-1 { float:left; width: 6.86666666667%; }
.sc-grid > .se-row > .se-cell.sm-column-2 { float:left; width: 15.3333333333%; }
.sc-grid > .se-row > .se-cell.sm-column-3 { float:left; width: 23.8%; }
.sc-grid > .se-row > .se-cell.sm-column-4 { float:left; width: 32.2666666667%; }
.sc-grid > .se-row > .se-cell.sm-column-5 { float:left; width: 40.7333333333%; }
.sc-grid > .se-row > .se-cell.sm-column-6 { float:left; width: 49.2%; }
.sc-grid > .se-row > .se-cell.sm-column-7 { float:left; width: 57.6666666667%; }
.sc-grid > .se-row > .se-cell.sm-column-8 { float:left; width: 66.1333333333%; }
.sc-grid > .se-row > .se-cell.sm-column-9 { float:left; width: 74.6%; }
.sc-grid > .se-row > .se-cell.sm-column-10 { float:left; width: 83.0666666667%; }
.sc-grid > .se-row > .se-cell.sm-column-11 { float:left; width: 91.5333333333%; }
.sc-grid > .se-row > .se-cell.sm-column-12 { width:100%; display:block; }
.sc-grid > .se-row > .se-cell + .se-cell { margin-left: 1.6%; }
/* Override for mobile */
.sc-grid.sm-mobile {}
.sc-grid.sm-mobile > .se-row {}
.sc-grid.sm-mobile > .se-row > .se-cell + .se-cell { margin-left: 0; }
.sc-grid.sm-mobile > .se-row > .se-cell { float: none; width: auto; }
/* gutter */
.sc-gutter { z-index: 200; position: absolute; }
.sc-gutter.sm-hidden { visibility: hidden; position: fixed; }
.sc-gutter.sm-theme-dark::before {
content: '';
display: block;
margin: 0 auto;
width: 0;
height: 0;
border-style: solid;
border-width: 0 4px 8px 4px;
border-color: transparent transparent #2E2E2C transparent;
}
.sc-gutter.sm-theme-dark > .se-active-tools {
background: #2E2E2C;
padding: 5px;
}
/* heading */
.sc-heading {
font-weight: 600;
letter-spacing: -0.5px;
}
.sc-heading.sm-level-1 {
font-size: 26px;
}
.sc-heading.sm-level-2 {
font-size: 22px;
}
.sc-heading.sm-level-3 {
font-size: 18px;
}
.sc-heading.sm-level-4 {
font-size: 16px;
}
/* Overrides for SwitchTextType tool */
.sc-switch-text-type .se-option.sm-heading1 {
font-size: 26px;
font-weight: 600;
}
.sc-switch-text-type .se-option.sm-heading2 {
font-size: 22px;
font-weight: 600;
}
.sc-switch-text-type .se-option.sm-heading3 {
font-size: 18px;
font-weight: 600;
}
.sc-switch-text-type .se-option.sm-heading4 {
font-size: 16px;
font-weight: 600;
}
/* image */
.sc-image {
position: relative;
max-width: 100%;
display: block;
margin: 0px auto;
}
.sc-image img {
display: block;
max-width: 100%;
margin: 0px auto;
}
.sc-insert-image-tool > input {
display: none;
}
/* inline-node */
.sc-inline-node {
cursor: default;
/* webkit disables selection for draggable elements */
-webkit-user-select: text;
position: relative;
}
/* inline-wrapper */
.sc-inline-wrapper { display: block; margin-top: 10px; }
.sc-inline-wrapper > .se-container { display: block; }
.sc-inline-wrapper.sm-default-style.sm-selected > .se-container {
background: rgba(163,205,253, 0.6);
outline: 2px solid;
outline-color: #2A8CFF;
}
.sc-inline-wrapper.sm-default-style.sm-co-selected > .se-container {
background: rgba(163,205,253, 0.6);
outline: 2px solid;
outline-color: #2A8CFF;
}
.sc-inline-wrapper.sm-default-style.sm-focused > .se-container {
outline: 2px solid;
outline-color: #2A8CFF;
}
.sc-inline-wrapper.sm-default-style.sm-co-focused > .se-container {
outline: 2px solid;
outline-color: #2A8CFF;
}
/* isolated-node */
.sc-isolated-node {
position: relative;
}
.sc-isolated-node.sm-default-style.sm-selected {/*background: rgba(163,205,253, 0.6);*/
outline: 2px solid;
outline-color: #2A8CFF;
}
.sc-isolated-node.sm-default-style.sm-co-selected {/*background: rgba(163,205,253, 0.6);*/
outline: 2px solid;
outline-color: #2A8CFF;
}
.sc-isolated-node.sm-default-style.sm-focused {
outline: 2px solid;
outline-color: #2A8CFF;
}
.sc-isolated-node.sm-default-style.sm-co-focused {
outline: 2px solid;
outline-color: #2A8CFF;
}
/* Hide selection fragments when in selected-state */
.sc-isolated-node.sm-selected ::selection {
background: transparent;
}
.sc-isolated-node.sm-selected {
outline: 2px solid;
outline-color: #2A8CFF;
}
.sc-isolated-node-blocker {
position: absolute;
top: 0px; bottom: 0px; left: 0px; right: 0px;
cursor: default;
}
.sc-isolated-node.sm-no-blocker .sc-isolated-node-blocker {
display: none;
}
.sc-isolated-node > .se-bracket {
height: 1px;
width: 1px;
opacity: 0;
}
.sc-isolated-node.sm-no-blocker > .se-bracket {
visibility: hidden;
}
.sc-isolated-node.sm-no-blocker.sm-selected > .se-bracket,
.sc-isolated-node.sm-no-blocker.sm-co-selected > .se-bracket {
/*
ATTENTION: we must not have brackets hidden
when rendering a node selection, otherwise Chrome's DOM selection
'leaks' into the previous/next line
*/
visibility: visible;
}
/* layout */
.sc-layout {
width: 100%; /* by default takes the full width */
padding: 40px;
}
.sc-layout.sm-no-padding { padding: 0; }
.sc-layout.sm-text-align-center { text-align: center; }
.sc-layout.sm-text-align-right { text-align: right;}
.sc-layout.sm-width-small { max-width: 300px; margin: 0px auto; }
.sc-layout.sm-width-medium { max-width: 620px; margin: 0px auto; }
.sc-layout.sm-width-large { max-width: 960px; margin: 0px auto; }
/*
When used inside layouts paragraphs and headings get some
padding by default.
TODO: maybe this should be activated explicitly through a
Prose component that turns on the text paddings.
*/
.sc-layout > p { margin-bottom: 20px; }
.sc-layout > h1 {
margin-bottom: 20px;
}
.sc-layout > h2 {
margin-bottom: 20px;
}
.sc-layout > h3 {
margin-bottom: 20px;
}
.sc-layout > h4 {
margin-bottom: 20px;
}
/* link */
.sc-link {
color: #2079DC;
}
.sc-edit-link-tool {
display: flex;
}
.sc-edit-link-tool > * {
flex: 0 0 0;
}
.sc-edit-link-tool .sc-input {
height: 24px;
font-size: 11px;
color: white;
min-width: 200px;
font-family: Monaco, 'Courier New';
padding: 5px;
background: transparent;
border: none;
margin: 2px;
}
/* modal */
.sc-modal {
z-index: 500000;
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background: rgba(0,0,0,0.7);
}
.sc-modal .se-body {
position: absolute;
margin-left: auto;
margin-right: auto;
left: 30px;
right: 30px;
top: 30px;
background: white;
box-shadow: 0 0 25px 0 rgba(0,0,0,0.8);
}
.sc-modal.sm-width-small .se-body { max-width: 300px; }
.sc-modal.sm-width-medium .se-body { max-width: 620px; }
.sc-modal.sm-width-large .se-body { max-width: 960px; }
/* multi select */
.sc-multi-select .se-select-option {
cursor: pointer;
}
.sc-multi-select .se-option-icon {
width: 20px;
}
.sc-multi-select .se-multi-collapse-label {
color: #2079DC;
cursor: pointer;
}
/* overlay */
.sc-overlay { z-index: 200; position: absolute; }
.sc-overlay .sc-tool-group { display: inline-block; }
.sc-overlay .sc-tool-group .sc-button { margin: 0px 1px; }
.sc-overlay.sm-hidden { visibility: hidden; left: 0px; top: 0px; }
.sc-overlay.sm-theme-dark {}
.sc-overlay.sm-theme-dark::before {
content: '';
display: block;
margin: 0 auto;
width: 0;
height: 0;
border-style: solid;
border-width: 0 4px 8px 4px;
border-color: transparent transparent #2E2E2E transparent;
}
.sc-overlay.sm-theme-dark > .se-active-tools {
border-radius: 3px;
background: #2E2E2E;
display: flex;
flex-wrap: nowrap;
padding: 2px;
}
.sc-overlay > .se-active-tools .sc-tool-group {
flex: 0 0 0;
display: flex;
}
.sc-overlay > .se-active-tools .sc-tool-group .sc-button {
flex: 0 0 0;
margin: 2px;
}
.sc-overlay > .se-active-tools .sc-tool-dropdown .sc-button {
margin: 2px;
}
/* paragraph */
.sc-paragraph {}
/* prose-editor */
.sc-prose-editor {}
.sc-prose-editor .sc-container-editor {
padding: 20px;
margin: 0 auto;
max-width: 800px;
}
/* Add padding to each child except last one */
.sc-prose-editor .sc-container-editor > * {
margin: 10px 0;
}
.sc-prose-editor .se-toolbar-wrapper {
border-bottom: 1px solid #E0E4E4;
background: #fafbfc;
z-index: 200;
}
.sc-prose-editor .se-toolbar-wrapper .sc-toolbar {
max-width: 800px;
margin: 0 auto;
}
/* scroll-pane */
/* ScrollPane
-----------------------------------------------------*/
.sc-scroll-pane.sm-default-style {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
}
/* Substance scrollbar active */
/* Make space for Substance Scrollbar on the left side */
.sc-scroll-pane.sm-default-style.sm-substance-scrollbar.sm-scrollbar-position-left .se-scrollable {
left: 20px;
}
/* Patches the scrollbar to stick on the right side */
.sc-scroll-pane.sm-default-style.sm-substance-scrollbar.sm-scrollbar-position-right .sc-scrollbar {
right: 0px; left: auto;
}
.sc-scroll-pane.sm-default-style.sm-substance-scrollbar.sm-scrollbar-position-right .se-scrollable {
right: 20px;
}
/* Hide native scroll bar in content panel */
.sc-scroll-pane.sm-default-style.sm-substance-scrollbar .se-scrollable::-webkit-scrollbar {
width: 0px; height: 0px;
}
.sc-scroll-pane.sm-default-style.sm-substance-scrollbar .se-scrollable::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0);
}
/* Hide native scrollbar in Internet Explorer/Edge */
.sc-scroll-pane.sm-default-style.sm-substance-scrollbar .se-scrollable {
-ms-overflow-style: none;
}
/* Firefox-specific hack for hiding the scrollbar */
.sc-scroll-pane.sm-default-style.sm-substance-scrollbar.sm-firefox .se-scrollable {
margin-right: -15px;
overflow-y: scroll;
overflow-x: hidden;
}
/* Patches the scrollbar to stick on the right side */
.sc-scroll-pane.sm-default-style > .se-scrollable {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
overflow: auto;
}
.sc-scroll-pane.sm-default-style > .se-scrollable > .se-content { position: relative; }
/* For debugging purposes
.sc-scroll-pane .se-scanline {
position: absolute;
display: none;
top: 50px;
left: 40px;
width: 10px;
height: 2px;
background: #ccc;
} */
/* scrollbar */
.sc-scrollbar {
position: absolute;
left: 0px;
width: 20px;
top: 0px;
bottom: 0px;
background: #FAFAFA;
box-shadow: inset -4px 0 4px 0 rgba(25,25,25,0.04);
}
.sc-scrollbar .se-thumb {
position: absolute;
top: 40px;
left: 0px;
right: 0px;
height: 0px;
background-color: rgba(0,0,0, 0.2);
}
.sc-scrollbar.sm-hide-thumb .se-thumb {
visibility: hidden;
}
.sc-scrollbar .se-highlight {
position: absolute;
width: 100%;
background-color: #A5AFBD;
}
/* spell-check */
.sc-spell-error {
border-bottom: 2px dotted #FB4437;
}
/* split-pane */
.sc-split-pane {
display: flex;
flex-flow: row nowrap;
/* Serves as anchor for absolute positioning for child components */
position: absolute;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
}
.sc-split-pane.sm-horizontal { flex-flow: column nowrap; }
.sc-split-pane > .se-pane { position: relative; }
/* This should be fixed according to the configured size (set directly
on the element). Size can either be a percentage or px value.
Don't grow, don't shrink, use width or height for size determination */
.sc-split-pane > .se-pane.sm-sized { flex: 0 0 auto; }
/* Just grow and take up the rest of the available space */
.sc-split-pane > .se-pane.sm-auto-fill { flex-grow: 1; }
/* strong */
.sc-strong {
font-weight: bold;
}
/* subscript */
.sc-subscript {
vertical-align: sub;
font-size: smaller;
}
/* superscript */
.sc-superscript {
vertical-align: super;
font-size: smaller;
}
/* surface */
/* Surface
----------------------------------------------------*/
.sc-surface {}
/* Non-Editables should have a regular cursor */
.sc-surface *[contenteditable="false"] { cursor: default; }
.sc-surface *[contenteditable="true"] { cursor: text; }
// We want Firefox to have a transparent native selection
::-moz-selection { background: rgba(77, 149, 233, 0.46); }
.sm-selected-node { outline: 2px solid; outline-color: #2A8CFF; }
.sm-selected-node.sm-collaborator-1 { outline-color: #A4E57A; }
.sm-selected-node.sm-collaborator-2 { outline-color: #BC90FF; }
.sm-selected-node.sm-collaborator-3 { outline-color: #D6BB4C; }
.sm-selected-node.sm-collaborator-4 { outline-color: #BAA6A0; }
.sm-selected-node.sm-collaborator-5 { outline-color: #7BB5B3; }
/* tabbed-pane */
.sc-tabbed-pane { position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; }
.sc-tabbed-pane .se-tabs { height: 40px; border-bottom: 1px solid #ddd; }
.sc-tabbed-pane .se-tabs .se-tab {
font-family: 'Avenir Next', Helvetica;
display: block;
float: left;
height: 40px;
line-height: 40px;
padding: 0px 20px;
color: rgba(0, 0, 0, 0.75);
font-size: 12px;
font-weight: 600;
}
.sc-tabbed-pane .se-tabs .se-tab:hover .label { border-bottom: 1px solid rgba(0, 0, 0, 0.75); }
.sc-tabbed-pane .se-tabs .se-tab.sm-active .label { border-bottom: 1px solid rgba(0, 0, 0, 0.75); }
.sc-tabbed-pane .se-tab-content { position: absolute; top: 40px; left: 0px; right: 0px; bottom: 0px; }
/* table */
.sc-table {
display: table;
width: 100%;
}
.sc-table .sc-table-cell {
border: 1px solid #ddd;
padding: 5px;
}
/* text-property */
.sc-text-property { white-space: pre-wrap; }
.sc-text-property .se-cursor { position: relative; }
.sc-text-property .se-cursor .se-cursor-inner {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
width: 1px;
background: #999;
}
.sc-text-property.sm-empty .se-placeholder {
color: #aaa;
white-space: nowrap;
}
/* text-align */
.sc-text-align-tool > .sc-button {
display: inline-block;
}
.sc-text-align-tool {
border-left: 1px solid rgba(0,0,0,0.3);
}
/*# sourceMappingURL=substance.css.map */