Implement assetpack for Sinatra

This commit is contained in:
Gregory Eremin
2013-07-12 17:40:26 +07:00
parent 9b1df758cf
commit ce91297ee0
17 changed files with 73 additions and 433 deletions
+73
View File
@@ -0,0 +1,73 @@
.wrapper-dropdown
position relative
&:after
content ""
width 0
height 0
position absolute
right 16px
top 50%
margin-top -6px
border-width 6px 0 6px 6px
border-style solid
border-color transparent #888
.dropdown
position absolute
bottom 2em
left 0
right 0
background #fafafa
list-style none
font-weight normal
border #ddd 1px solid
border-radius 5px
opacity 0
pointer-events none
height 20em
overflow-x ellipsis
overflow-y auto
padding 0
li
display block
text-decoration none
color #9e9e9e
padding 10px 20px
white-space nowrap
overflow hidden
text-overflow ellipsis
&:hover
background #ccc
color #fff
text-shadow none
cursor pointer
&.selected
background #eee
color #666
&.active
background #fafafa
.dropdown
opacity 1
pointer-events auto
&:after
border-color #aaa transparent
border-width 0 6px 6px 6px
margin-top -3px
/* No CSS3 support */
.no-opacity, .no-pointerevents
.wrapper-dropdown .dropdown
display none
opacity 1
pointer-events auto
.wrapper-dropdown.active .dropdown
display block
+93
View File
@@ -0,0 +1,93 @@
*
-moz-box-sizing border-box
-webkit-box-sizing border-box
box-sizing border-box
body, input, select
font-family Helvetica, Arial, sans-serif
font-size 1em
textarea, pre
font-family Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif
font-size 1em
html, body, form
height 100%
body
background-color #fcfcfc
padding 3em
h1
position absolute
top 1em
left 3em
font-weight 200
font-size 1em
line-height 1em
padding 0
margin 0
text-transform uppercase
color #ccc
.linenos
padding-right .5em
color #ccc
border-right #eee 1px solid
.code
padding-left .5em
.container
width 100%
height 100%
textarea, input
outline none
.btn
background-color #fefefe
background-image -webkit-linear-gradient(top, #fff, #eaeaea)
background-image linear-gradient(to bottom, #fff, #eaeaea)
color #666
text-shadow 0 1px 1px #fff
border #ddd 1px solid
border-radius 4px
font-size 1em
padding .5em .8em
text-decoration none
outline none
cursor default
&:active
box-shadow 0 .1em .2em .1em #eee inset
border-bottom-width 1px
&.disabled
background #f0f0f0
cursor not-allowed
textarea
background-color #fff
width 100%
height 100%
line-height 120%
resize none
border #ddd 1px solid
border-radius 5px
padding .5em
#syntax-selector
float right
width 13em
margin 0.4em
form input[type="submit"], form a[role="submit"]
float right
width 5em
font-weight 600
text-align center
margin .4em 0
form a[role="submit"]
display none
@@ -0,0 +1,69 @@
/* .highlight { background-color: #ffffcc } */
.highlight .c { color: #586E75 } /* Comment */
.highlight .err { color: #538181 } /* Error */
.highlight .g { color: #538181 } /* Generic */
.highlight .k { color: #859900 } /* Keyword */
.highlight .l { color: #538181 } /* Literal */
.highlight .n { color: #538181 } /* Name */
.highlight .o { color: #859900 } /* Operator */
.highlight .x { color: #CB4B16 } /* Other */
.highlight .p { color: #538181 } /* Punctuation */
.highlight .cm { color: #586E75 } /* Comment.Multiline */
.highlight .cp { color: #859900 } /* Comment.Preproc */
.highlight .c1 { color: #586E75 } /* Comment.Single */
.highlight .cs { color: #859900 } /* Comment.Special */
.highlight .gd { color: #2AA198 } /* Generic.Deleted */
.highlight .ge { color: #538181; font-style: italic } /* Generic.Emph */
.highlight .gr { color: #DC322F } /* Generic.Error */
.highlight .gh { color: #CB4B16 } /* Generic.Heading */
.highlight .gi { color: #859900 } /* Generic.Inserted */
.highlight .go { color: #538181 } /* Generic.Output */
.highlight .gp { color: #538181 } /* Generic.Prompt */
.highlight .gs { color: #538181; font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #CB4B16 } /* Generic.Subheading */
.highlight .gt { color: #538181 } /* Generic.Traceback */
.highlight .kc { color: #CB4B16 } /* Keyword.Constant */
.highlight .kd { color: #268BD2 } /* Keyword.Declaration */
.highlight .kn { color: #859900 } /* Keyword.Namespace */
.highlight .kp { color: #859900 } /* Keyword.Pseudo */
.highlight .kr { color: #268BD2 } /* Keyword.Reserved */
.highlight .kt { color: #DC322F } /* Keyword.Type */
.highlight .ld { color: #538181 } /* Literal.Date */
.highlight .m { color: #2AA198 } /* Literal.Number */
.highlight .s { color: #2AA198 } /* Literal.String */
.highlight .na { color: #538181 } /* Name.Attribute */
.highlight .nb { color: #B58900 } /* Name.Builtin */
.highlight .nc { color: #268BD2 } /* Name.Class */
.highlight .no { color: #CB4B16 } /* Name.Constant */
.highlight .nd { color: #268BD2 } /* Name.Decorator */
.highlight .ni { color: #CB4B16 } /* Name.Entity */
.highlight .ne { color: #CB4B16 } /* Name.Exception */
.highlight .nf { color: #268BD2 } /* Name.Function */
.highlight .nl { color: #538181 } /* Name.Label */
.highlight .nn { color: #538181 } /* Name.Namespace */
.highlight .nx { color: #538181 } /* Name.Other */
.highlight .py { color: #538181 } /* Name.Property */
.highlight .nt { color: #268BD2 } /* Name.Tag */
.highlight .nv { color: #268BD2 } /* Name.Variable */
.highlight .ow { color: #859900 } /* Operator.Word */
.highlight .w { color: #538181 } /* Text.Whitespace */
.highlight .mf { color: #2AA198 } /* Literal.Number.Float */
.highlight .mh { color: #2AA198 } /* Literal.Number.Hex */
.highlight .mi { color: #2AA198 } /* Literal.Number.Integer */
.highlight .mo { color: #2AA198 } /* Literal.Number.Oct */
.highlight .sb { color: #586E75 } /* Literal.String.Backtick */
.highlight .sc { color: #2AA198 } /* Literal.String.Char */
.highlight .sd { color: #538181 } /* Literal.String.Doc */
.highlight .s2 { color: #2AA198 } /* Literal.String.Double */
.highlight .se { color: #CB4B16 } /* Literal.String.Escape */
.highlight .sh { color: #538181 } /* Literal.String.Heredoc */
.highlight .si { color: #2AA198 } /* Literal.String.Interpol */
.highlight .sx { color: #2AA198 } /* Literal.String.Other */
.highlight .sr { color: #DC322F } /* Literal.String.Regex */
.highlight .s1 { color: #2AA198 } /* Literal.String.Single */
.highlight .ss { color: #2AA198 } /* Literal.String.Symbol */
.highlight .bp { color: #268BD2 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #268BD2 } /* Name.Variable.Class */
.highlight .vg { color: #268BD2 } /* Name.Variable.Global */
.highlight .vi { color: #268BD2 } /* Name.Variable.Instance */
.highlight .il { color: #2AA198 } /* Literal.Number.Integer.Long */