Skip to content

Commit

Permalink
feat(style): enhance theme
Browse files Browse the repository at this point in the history
  • Loading branch information
rodleviton committed May 3, 2017
1 parent 3f8ed6d commit 4372ea9
Show file tree
Hide file tree
Showing 9 changed files with 927 additions and 558 deletions.
1 change: 1 addition & 0 deletions css/base/variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// Base Units
////////////////////////////////////////
$base-font-size = 1.4rem
$border-radius = 3px

////////////////////////////////////////
// Colour Palette
Expand Down
3 changes: 2 additions & 1 deletion css/components/code.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@

.code-wrapper
clear: both
border: 1px solid $border-colour;
border-radius: $border-radius;

pre
position relative
margin-top: 0
margin-bottom 4rem
word-wrap: normal
padding: 20px
overflow: auto
Expand Down
37 changes: 37 additions & 0 deletions css/components/editor.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
:global {
.CodeMirror {
color: #666;
line-height: 1.45;
background-color: $alabaster;
font-family: 'Fira Mono', monospace;
overflow: hidden;
border: 1px solid $border-colour;
border-radius: $border-radius;
margin-bottom: 4rem;
}

.CodeMirror-gutters {
background: darken($alabaster, 2%);
border: none;
}

.CodeMirror-guttermarker, .CodeMirror-guttermarker-subtle, .CodeMirror-linenumber {
color: #999;
}

.CodeMirror-cursor {
border-left: 1px solid #000;
}

.CodeMirror pre {
padding: 0 12px;
}

.CodeMirror-sizer {
padding: 10px 0px 0px;
}

.cm-s-swanky .cm-string { color: $bittersweet; }
.cm-s-swanky .cm-attribute { color: $scooter; }
.cm-s-swanky .cm-tag { color: $scooter; }
}
5 changes: 4 additions & 1 deletion css/components/swanky-light.styl
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ $white = #fff
color: $scooter;
}

.hljs-name {
color: $scooter;
}

.hljs-section,
.hljs-name,
.hljs-tag,
.hljs-selector-tag,
.hljs-deletion,
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if (__DEV__) {
module.hot.accept();
}

// Nav
import './js/nav';
import gumshoe from './js/libs/gumshoe';
Expand Down
18 changes: 9 additions & 9 deletions js/libs/accordion.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
define([], factory(root));
} else if ( typeof exports === 'object' ) {
module.exports = factory(root);
} else {
root.accordion = factory(root);
}
if ( typeof define === 'function' && define.amd ) {
define([], factory(root));
} else if ( typeof exports === 'object' ) {
module.exports = factory(root);
} else {
root.accordion = factory(root);
}
})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) {

'use strict';
'use strict';

var accordion = {}; // Object for public APIs
var accordion = {}; // Object for public APIs

accordion.init = () => {

Expand Down
Loading

0 comments on commit 4372ea9

Please sign in to comment.