Newer
Older
// Font Awesome
$fa-font-path: './font-awesome/fonts';
@import './font-awesome/scss/font-awesome';
@import '../../../node_modules/substance/substance.css';
@import './elements/elements';
@import './panes/panes';
$border: #ccc;
$dark-gray: #999;
$light-gray: #ddd;
$primary: #eee;
$ultra-light-gray: #fafafa;
$toolbar-active-bg: rgba(204, 204, 204, .75);
$transparent-black: rgba(0, 0, 0, .75);
$white: #fff;
.editor-wrapper {
height: 90vh;
position: relative;
.view-mode {
height: 44px;
position: fixed;
z-index: 9999;
span {
font-size: 14px;
position: relative;
top: 10px;
}
}
}
.sc-prose-editor {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
background-color: $primary;
border: 1px solid $border;
border-right: 0;
padding-left: 0;
button {
color: $transparent-black;
}
.sm-target-text {
border-right: 1px solid $border;
padding: 0;
}
.sm-target-document {
border-right: 1px solid $border;
padding-right: 9px;
}
.sm-target-annotations {
border-right: 1px solid $border;
padding: 0 9px;
}
chris
committed
.sm-target-insert {
border-right: 1px solid $border;
}
.sm-target-track-change-enable {
border-right: 1px solid $border;
&:before {
bottom: 14px;
content: 'Track Changes';
font-size: 11px;
left: 24%;
position: relative;
}
button {
cursor: pointer;
position: relative;
top: 10px;
right: 50%;
}
button::after {
content: 'Record';
}
.track-changes-active {
background-color: blue !important;
color: #fff !important;
&:after {
content: 'Recording';
}
}
chris
committed
}
.sm-target-track-change-toggle-view {
cursor: pointer;
button::after {
content: 'View is Off';
}
.track-changes-view-active::after {
chris
committed
content: 'View is On';
}
}
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
.sc-tool-group {
.sc-button {
background: transparent;
border: 0;
border-radius: 0;
font-size: 14px;
outline: none;
padding: 0 12px;
&:hover {
background: $toolbar-active-bg;
&:disabled {
background: transparent;
}
}
}
.sm-active {
background: $toolbar-active-bg;
color: $black;
margin: 0;
outline: none;
padding: 0;
&:after {
bottom: 17px;
color: $black;
content: 'x';
font-size: 8px;
left: 21px;
position: absolute;
}
}
}
.se-toggle {
background: transparent;
border: 0;
font-family: 'Fira Sans';
font-size: 14px;
outline: none;
}
.se-options {
top: 36px;
}
.se-option {
background-color: $white;
border: 0;
font-family: 'Fira Sans';
}
}
.se-scrollable {
background-color: $primary;
border-right: 1px solid $light-gray;
margin-top: 1px;
}
.se-content {
chris
committed
line-height: 38px;
::selection {
background: $light-gray;
}
::-moz-selection {
background: $light-gray;
}
.se-selection-fragment {
background: none;
}
&:first-child {
background-color: $white;
box-shadow: 0 0 8px $dark-gray;
min-height: 100vh;
padding: 3% 4% 1%;
transition: .3s;
}
.sc-split-pane {
position: relative;
}
.sc-surface {
outline: none;
}
.sc-prose-editor-overlay-tools {
.se-active-tools {
background: transparent;
border: 0;
padding: 0;
}
}
.sc-prose-editor-overlay-tools::before {
border-style: none;
border-width: 0;
}
}
.sc-has-comments {
.se-content {
&:first-child {
transition: .3s;
}
}
}
.se-context-section {
background-color: $ultra-light-gray;
border-left: 1px solid $light-gray;
box-shadow: inset 0 0 10px $shadow;