This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/master by this push:
new cf8a07a higlight ,remove Dracula theme and add our own theme to get
more legible code AS3 & MXML
cf8a07a is described below
commit cf8a07ad4a67328c3a011c7dc262e91b9db6b261
Author: Carlos Rovira <[email protected]>
AuthorDate: Tue May 28 18:21:30 2019 +0200
higlight ,remove Dracula theme and add our own theme to get more legible
code AS3 & MXML
---
_sass/dracula.sass | 171 -------------------------------------------------
_sass/highlight.sass | 168 +++++++++++++++++++++++++++++++++++++++++++++---
assets/css/styles.sass | 1 -
3 files changed, 160 insertions(+), 180 deletions(-)
diff --git a/_sass/dracula.sass b/_sass/dracula.sass
deleted file mode 100644
index e74f11e..0000000
--- a/_sass/dracula.sass
+++ /dev/null
@@ -1,171 +0,0 @@
-//
-// Dracula Theme v1.2.5
-//
-// https://github.com/zenorocha/dracula-theme
-//
-// Copyright 2016, All rights reserved
-//
-// Code licensed under the MIT license
-// http://zenorocha.mit-license.org
-//
-// @author Rob G <[email protected]>
-// @author Chris Bracco <[email protected]>
-// @author Zeno Rocha <[email protected]>
-// @author Piruin Panichphol <[email protected]>
-//
-
-//
-// Variables
-//
-
-// Background
-$dt-gray-dark: #282a36
-// Current Line & Selection
-$dt-gray: #44475a
-// Foreground
-$dt-gray-light: #f8f8f2
-// Comment
-$dt-blue: #6272a4
-
-$dt-cyan: #8be9fd
-$dt-green: #50fa7b
-$dt-orange: #ffb86c
-$dt-pink: #ff79c6
-$dt-purple: #bd93f9
-$dt-red: #ff5555
-$dt-yellow: #f1fa8c
-
-//
-// Styles
-//
-
-.highlight
- background: $dt-gray-dark
- color: $dt-gray-light
-
- .hll,
- .s,
- .sa,
- .sb,
- .sc,
- .dl,
- .sd,
- .s2,
- .se,
- .sh,
- .si,
- .sx,
- .sr,
- .s1,
- .ss
- color: $dt-yellow
-
-
- .go
- color: $dt-gray
-
-
- .err,
- .g,
- .l,
- .n,
- .x,
- .p,
- .ge,
- .gr,
- .gh,
- .gi,
- .gp,
- .gs,
- .gu,
- .gt,
- .ld,
- .no,
- .nd,
- .ni,
- .ne,
- .nn,
- .nx,
- .py,
- .w,
- .bp
- color: $dt-gray-light
-
-
- .gh,
- .gi,
- .gu
- font-weight: bold
-
-
- .ge
- text-decoration: underline
-
-
- .bp
- font-style: italic
-
-
- .c,
- .ch,
- .cm,
- .cpf,
- .c1,
- .cs
- color: $dt-blue
-
-
- .kd,
- .kt,
- .nb,
- .nl,
- .nv,
- .vc,
- .vg,
- .vi,
- .vm
- color: $dt-cyan
-
-
- .kd,
- .nb,
- .nl,
- .nv,
- .vc,
- .vg,
- .vi,
- .vm
- font-style: italic
-
-
- .na,
- .nc,
- .nf,
- .fm
- color: $dt-green
-
-
- .k,
- .o,
- .cp,
- .kc,
- .kn,
- .kp,
- .kr,
- .nt,
- .ow
- color: $dt-pink
-
-
- .m,
- .mb,
- .mf,
- .mh,
- .mi,
- .mo,
- .il
- color: $dt-purple
-
-
- .gd
- color: $dt-red
\ No newline at end of file
diff --git a/_sass/highlight.sass b/_sass/highlight.sass
index babc57f..88c3b17 100644
--- a/_sass/highlight.sass
+++ b/_sass/highlight.sass
@@ -11,13 +11,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
-.highlight
- border-radius: 10px
- font-size: 14px
- padding: 10px 30px 10px 30px
- margin-left: -30px
- margin-right: -30px
+
+// Variables
+
+// Background
+$bg-color: rgb(40,44,52)
+$text-color: white
+
+// Styles
.highlighter-rouge
background-color: rgba(27,31,35,.05)
@@ -30,4 +31,155 @@
border-bottom-right-radius: 3px
border-bottom-left-radius: 3px
color: rgb(16, 16, 16)
- box-shadow: rgb(230, 230, 230) 0px 0px 0px 1px inset
\ No newline at end of file
+ box-shadow: rgb(230, 230, 230) 0px 0px 0px 1px inset
+
+.highlight
+ border-radius: 10px
+ font-size: 14px
+ padding: 10px 30px 10px 30px
+ margin-left: -30px
+ margin-right: -30px
+
+ background: $bg-color
+ color: $text-color
+
+ .o
+ color: #abb2bf // symbols
+
+ .k
+ color: #ff79c6 // pink // for, this, new, if, else
+
+ .kr
+ color: #c678dd // AS3, i.e: private, public, class, trace
+
+ .cp
+ color: #7f9f7f // MXML i.e: ?xml, CDATA
+
+ .nt
+ color: #fc929e // MXML i.e: j:Group, fx:Script, html:H3
+
+ .s
+ color: #efef8f //MXML attibute value, i.e: "true",
"http://ns.apache.org/r/j", "600"
+
+ .p
+ color: #cde7e4 // function parenthesis { }
+
+ .nx
+ color: #61aeee // function params
+ .c1
+ color: #ededed // comments
+ .kd
+ color: #ffffff // function, var, true
+ // font-style: italic
+ .nb
+ color: #8be9fd //cyan // void
+ .na
+ color: #e3ceab // MXML attributes i.e: width, text, xmlns:fx
+ .s2
+ color: #f1fa8c //yellow
+ .mi
+ color: #bd93f9 //purple
+
+
+// $gray: #44475a
+// $gray-light: #f8f8f2
+// $blue: #6272a4
+// $green: #50fa7b
+// $red: #ff5555
+// .gh,
+// .gi,
+// .gu
+// font-weight: bold
+
+// .ge
+// text-decoration: underline
+
+// .bp,
+// .nb,
+// .nl,
+// .nv,
+// .vc,
+// .vg,
+// .vi,
+// .vm
+// font-style: italic
+
+// .hll,
+// .sa,
+// .sb,
+// .sc,
+// .dl,
+// .sd,
+// .se,
+// .sh,
+// .si,
+// .sx,
+// .sr,
+// .s1,
+// .ss
+// color: $yellow
+
+// .go
+// color: $gray
+
+// .err,
+// .g,
+// .l,
+// .n,
+// .x,
+// .ge,
+// .gr,
+// .gh,
+// .gi,
+// .gp,
+// .gs,
+// .gu,
+// .gt,
+// .ld,
+// .no,
+// .nd,
+// .ni,
+// .ne,
+// .nn,
+// .py,
+// .w,
+// .bp
+// color: $gray-light
+
+// .c,
+// .ch,
+// .cm,
+// .cpf,
+// .cs
+// color: $blue
+
+// .kt,
+// .nl,
+// .nv,
+// .vc,
+// .vg,
+// .vi,
+// .vm
+// color: $cyan
+
+// .nc,
+// .nf,
+// .fm
+// color: $green
+
+// .kc,
+// .kn,
+// .kp,
+// .ow
+// color: $pink
+
+// .m,
+// .mb,
+// .mf,
+// .mh,
+// .mo,
+// .il
+// color: $purple
+
+// .gd
+// color: $red
\ No newline at end of file
diff --git a/assets/css/styles.sass b/assets/css/styles.sass
index 40cc90b..0618e32 100644
--- a/assets/css/styles.sass
+++ b/assets/css/styles.sass
@@ -20,7 +20,6 @@
@import "fonts"
@import "html"
@import "markdown"
-@import "dracula"
@import "highlight"
@import "royale-theme"