Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Experimental *zen* editor theme #1274

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@
"mini-css-extract-plugin": "~0.4.1",
"mocha": "~5.2.0",
"mock-require": "~3.0.3",
"node-sass": "^4.12.0",
"nyc": "~14.0.0",
"optimize-css-assets-webpack-plugin": "~5.0.0",
"power-assert": "~1.6.1",
"sass-loader": "^8.0.0",
"script-loader": "~0.7.2",
"sequelize-cli": "~5.4.0",
"sinon": "~7.3.2",
Expand Down
116 changes: 116 additions & 0 deletions public/css/zen.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
$whiteColor: #FBFBFB;
$darkColor: #333;

.ui-edit-area.zen {
background-color: $whiteColor;

.toolbar {
display: none;
// TODO

// background: white;
// color: black;
// border-bottom: 1px solid #d2d2d2;
// a {
// color: black !important;
// }
// a.active, a:hover {
// background: #eee;
// }
}

.CodeMirror {
max-width: 625px;
margin: 0 auto;
}

.CodeMirror,
.CodeMirror-scroll {
background-color: $whiteColor !important;
color: $darkColor;
}
.CodeMirror-gutters {
background-color: $whiteColor !important;
}
.CodeMirror-overlayscroll-horizontal div,
.CodeMirror-overlayscroll-vertical div {
background: rgba(0, 0, 0, 0.5);
border: 1px solid $whiteColor;
}

.CodeMirror-sizer {
padding-top: .5em;
}

.CodeMirror {
font-size: 16px;

.cm-m-markdown {
// TODO: make font family selectable
font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

letter-spacing: 0.04em;
filter: saturate(1.5) contrast(90%);
line-height: 1.67;
color: rgba(0, 0, 0, 0.8);

&.cm-header-1 {
font-size: 1.33em;
}

&.cm-header {
line-height: 1.27;
}
&.cm-header-2 {
font-size: 1.15em;
}
&.cm-quote {
color: rgba(0, 0, 0, 0.48);
}
&.cm-builtin {
color: rgba(0, 0, 0, 0.32);
}
&.cm-url {
color: rgba(0, 0, 0, 0.32);
}
&.cm-link {
color: #337ab7;
}
}
.cm-m-xml {
color: $darkColor;
}
.cm-comment {
background-color: rgba(0,0,0,.05);
border-radius: 3px;
padding: .15em 0;
}
}

.status-bar {
background: $whiteColor;
color: $darkColor;
border-top: 1px solid #d2d2d2;
.status-info {
color: $darkColor;
}
.status-length {
color: $darkColor !important;
}
.status-indicators {
background: $whiteColor;
color: $darkColor;
> div {
border-left: 1px solid #d2d2d2;
}
}

.dropdown-menu {
background-color: $whiteColor;
}

.dropdown-menu > li > a {
color: $darkColor;
}
}
}
1 change: 1 addition & 0 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import appState from './lib/appState'
require('../vendor/showup/showup')

require('../css/index.css')
require('../css/zen.scss')
require('../css/extra.css')
require('../css/slide-preview.css')
require('../css/site.css')
Expand Down