Skip to content

Instantly share code, notes, and snippets.

@brossi
Created November 2, 2015 18:47
Show Gist options
  • Save brossi/b9d09c34a76bba988fe3 to your computer and use it in GitHub Desktop.
Save brossi/b9d09c34a76bba988fe3 to your computer and use it in GitHub Desktop.
SimpleMDE Styles (Stylus version)
// current as of build b59279a3d8d186016398f81cc1d8d5645a44d128 (Nov. 2, 2015)
// https://github.com/NextStepWebs/simplemde-markdown-editor/commit/b59279a3d8d186016398f81cc1d8d5645a44d128
.CodeMirror
height auto
min-height 300px
border 1px solid #ddd
border-bottom-left-radius 4px
border-bottom-right-radius 4px
padding 10px
font inherit
z-index 1
.CodeMirror-selected
background #d9d9d9
.CodeMirror-code
.cm-header-1
font-size 200%
line-height 200%
.cm-header-2
font-size 160%
line-height 160%
.cm-header-3
font-size 125%
line-height 125%
.cm-header-4
font-size 110%
line-height 110%
.cm-comment
background rgba(0, 0, 0, .05)
border-radius 2px
.cm-link
color #7f8c8d
.cm-url
color #aab2b3
.cm-strikethrough
text-decoration line-through
.CodeMirror-scroll
min-height 300px
.CodeMirror-fullscreen
background #fff
position fixed !important
top 50px
left 0
right 0
bottom 0
height auto
z-index 9
.CodeMirror-sided
width 50% !important
.editor-toolbar
position relative
opacity .6
-webkit-user-select none
-moz-user-select none
-ms-user-select none
-o-user-select none
user-select none
padding 0 10px
border-top 1px solid #bbb
border-left 1px solid #bbb
border-right 1px solid #bbb
border-top-left-radius 4px
border-top-right-radius 4px
&:before
margin-bottom 8px
&:after
margin-top 8px
&.fullscreen
width 100%
height 50px
overflow-x auto
overflow-y hidden
white-space nowrap
padding-top 10px
padding-bottom 10px
box-sizing border-box
background #fff
border 0
position fixed
top 0
left 0
opacity 1
z-index 9
&::before
width 20px
height 50px
background -moz-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(125, 185, 232, 0.01) 100%)
background -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(125, 185, 232, 0.01)))
background -webkit-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(125, 185, 232, 0.01) 100%)
background -o-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(125, 185, 232, 0.01) 100%)
background -ms-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(125, 185, 232, 0.01) 100%)
background linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(125, 185, 232, 0.01) 100%)
filter "progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#037db9e8', GradientType=1)"
position fixed
top 0
left 0
margin 0
padding 0
&::after
width 20px
height 50px
background -moz-linear-gradient(left, rgba(125, 185, 232, 0.01) 0%, rgba(254, 254, 255, 1) 99%, rgba(255, 255, 255, 1) 100%)
background -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(125, 185, 232, 0.01)), color-stop(99%, rgba(254, 254, 255, 1)), color-stop(100%, rgba(255, 255, 255, 1)))
background -webkit-linear-gradient(left, rgba(125, 185, 232, 0.01) 0%, rgba(254, 254, 255, 1) 99%, rgba(255, 255, 255, 1) 100%)
background -o-linear-gradient(left, rgba(125, 185, 232, 0.01) 0%, rgba(254, 254, 255, 1) 99%, rgba(255, 255, 255, 1) 100%)
background -ms-linear-gradient(left, rgba(125, 185, 232, 0.01) 0%, rgba(254, 254, 255, 1) 99%, rgba(255, 255, 255, 1) 100%)
background linear-gradient(to right, rgba(125, 185, 232, 0.01) 0%, rgba(254, 254, 255, 1) 99%, rgba(255, 255, 255, 1) 100%)
filter "progid:DXImageTransform.Microsoft.gradient( startColorstr='#037db9e8', endColorstr='#ffffff', GradientType=1)"
position fixed
top 0
right 0
margin 0
padding 0
a
display inline-block
text-align center
text-decoration none!important
color #2c3e50!important
width 30px
height 30px
margin 0
border 1px solid transparent
border-radius 3px
cursor pointer
&:before
line-height 30px
&.fa-header-x
&:after
font-family Arial, "Helvetica Neue", Helvetica, sans-serif
font-size 65%
vertical-align text-bottom
position relative
top 2px
&.fa-header-1
&:after
content "1"
&.fa-header-2
&:after
content "2"
&.fa-header-3
&:after
content "3"
&.fa-header-bigger
&:after
content "▲"
&.fa-header-smaller
&:after
content "▼"
i
&.separator
display inline-block
width 0
border-left 1px solid #d9d9d9
border-right 1px solid #fff
color transparent
text-indent -10px
margin 0 6px
&.disabled-for-preview
a
&:not(.no-disable)
pointer-events none
background #fff
border-color transparent
text-shadow inherit
.editor-toolbar:after,
.editor-toolbar:before
display block
content ' '
height 1px
.editor-toolbar:hover,
.editor-wrapper input.title:focus,
.editor-wrapper input.title:hover
opacity .8
.editor-toolbar a.active,
.editor-toolbar a:hover
background #fcfcfc
border-color #95a5a6
@media
only
screen
and
(max-width
&:
700px)
.editor-toolbar a.no-mobile {
display none
}
.editor-statusbar
padding 8px 10px
font-size 12px
color #959694
text-align right
.editor-statusbar
span
display inline-block
min-width 4em
margin-left 1em
.lines
&:before
content 'lines: '
.words
&:before
content 'words: '
.editor-preview
padding 10px
position absolute
width 100%
height 100%
top 0
left 0
background #fafafa
z-index 2
overflow auto
display none
box-sizing border-box
.editor-preview-side
padding 10px
position fixed
bottom 0
width 50%
top 50px
right 0
background #fafafa
z-index 9999
overflow auto
display none
box-sizing border-box
border 1px solid #ddd
.editor-preview-active-side
display block
.editor-preview-active
display block
.editor-preview>p,
.editor-preview-side>p
margin-top 0
.editor-preview pre,
.editor-preview-side pre
background #eee
margin-bottom 10px
.editor-preview table td,
.editor-preview table th,
.editor-preview-side table td,
.editor-preview-side table th
border 1px solid #ddd
padding 5px
@brossi
Copy link
Author

brossi commented Nov 2, 2015

For SASS versions (.sass and .scss) of the same file, see: https://gist.github.com/brossi/a7444bb4528a934478c9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment