megatron 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +43 -2
- data/app/assets/javascripts/megatron/form.js +36 -0
- data/app/assets/javascripts/megatron/index.js +93 -0
- data/app/assets/javascripts/megatron/link.js +58 -0
- data/app/assets/javascripts/megatron/utils/auto-navigate.js +24 -0
- data/app/assets/javascripts/megatron/utils/form-notify.js +39 -0
- data/app/assets/javascripts/megatron/utils/index.js +112 -0
- data/app/assets/javascripts/megatron/utils/messages.js +97 -0
- data/app/assets/javascripts/megatron/utils/time/date-to-html.js +59 -0
- data/app/assets/javascripts/megatron/utils/time/time-switch.js +87 -0
- data/app/assets/javascripts/megatron/utils/time/timeago.js +95 -0
- data/app/assets/javascripts/megatron/utils/toggler.js +163 -0
- data/app/assets/stylesheets/_example.scss +76 -0
- data/app/assets/stylesheets/_grid.scss +41 -0
- data/app/assets/stylesheets/_typography.scss +38 -0
- data/app/assets/stylesheets/application.scss +19 -0
- data/app/assets/stylesheets/megatron/error-pages.scss +164 -0
- data/app/assets/stylesheets/megatron/error-pages/_animations.scss +96 -0
- data/app/assets/stylesheets/megatron/error-pages/_csi.scss +41 -0
- data/app/assets/stylesheets/megatron/error-pages/_waves.scss +36 -0
- data/app/assets/stylesheets/megatron/megatron.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/_crop-height.scss +5 -0
- data/app/assets/stylesheets/megatron/modules/_index.scss +22 -0
- data/app/assets/stylesheets/megatron/modules/_logo.scss +67 -0
- data/app/assets/stylesheets/megatron/modules/_new-tag.scss +11 -0
- data/app/assets/stylesheets/megatron/modules/_progress.scss +80 -0
- data/app/assets/stylesheets/megatron/modules/app/_animation-classes.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/app/_animations.scss +62 -0
- data/app/assets/stylesheets/megatron/modules/app/_index.scss +5 -0
- data/app/assets/stylesheets/megatron/modules/app/_layout.scss +261 -0
- data/app/assets/stylesheets/megatron/modules/app/_sizes.scss +28 -0
- data/app/assets/stylesheets/megatron/modules/app/_typography.scss +111 -0
- data/app/assets/stylesheets/megatron/modules/box/_base.scss +94 -0
- data/app/assets/stylesheets/megatron/modules/box/_color-box.scss +33 -0
- data/app/assets/stylesheets/megatron/modules/box/_deployment_box.scss +37 -0
- data/app/assets/stylesheets/megatron/modules/box/_index.scss +4 -0
- data/app/assets/stylesheets/megatron/modules/box/_placeholder.scss +6 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_animations.scss +35 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_buttons.scss +266 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_index.scss +4 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_mixins.scss +108 -0
- data/app/assets/stylesheets/megatron/modules/buttons/_pills.scss +44 -0
- data/app/assets/stylesheets/megatron/modules/code/_codemirror.scss +98 -0
- data/app/assets/stylesheets/megatron/modules/code/_highlighted.scss +65 -0
- data/app/assets/stylesheets/megatron/modules/code/_index.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/code/_syntax.scss +18 -0
- data/app/assets/stylesheets/megatron/modules/core/_colored-items.scss +22 -0
- data/app/assets/stylesheets/megatron/modules/core/_colors.scss +163 -0
- data/app/assets/stylesheets/megatron/modules/core/_index.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/core/_mixins.scss +262 -0
- data/app/assets/stylesheets/megatron/modules/core/_vars.scss +30 -0
- data/app/assets/stylesheets/megatron/modules/core/_z-index.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/dialog/_animations.scss +48 -0
- data/app/assets/stylesheets/megatron/modules/dialog/_dialog.scss +81 -0
- data/app/assets/stylesheets/megatron/modules/dialog/_index.scss +2 -0
- data/app/assets/stylesheets/megatron/modules/forms/_base.scss +31 -0
- data/app/assets/stylesheets/megatron/modules/forms/_check-radio.scss +99 -0
- data/app/assets/stylesheets/megatron/modules/forms/_check-switch.scss +88 -0
- data/app/assets/stylesheets/megatron/modules/forms/_footer.scss +13 -0
- data/app/assets/stylesheets/megatron/modules/forms/_index.scss +10 -0
- data/app/assets/stylesheets/megatron/modules/forms/_login.scss +92 -0
- data/app/assets/stylesheets/megatron/modules/forms/_radio-nav.scss +62 -0
- data/app/assets/stylesheets/megatron/modules/forms/_select.scss +37 -0
- data/app/assets/stylesheets/megatron/modules/forms/_stacked-form.scss +29 -0
- data/app/assets/stylesheets/megatron/modules/forms/_table-form.scss +53 -0
- data/app/assets/stylesheets/megatron/modules/forms/_text-input.scss +118 -0
- data/app/assets/stylesheets/megatron/modules/grids/_alignment.scss +39 -0
- data/app/assets/stylesheets/megatron/modules/grids/_grid.scss +144 -0
- data/app/assets/stylesheets/megatron/modules/grids/_index.scss +2 -0
- data/app/assets/stylesheets/megatron/modules/headers/_actions.scss +10 -0
- data/app/assets/stylesheets/megatron/modules/headers/_base.scss +67 -0
- data/app/assets/stylesheets/megatron/modules/headers/_index.scss +4 -0
- data/app/assets/stylesheets/megatron/modules/headers/_meta.scss +10 -0
- data/app/assets/stylesheets/megatron/modules/headers/_site-header.scss +8 -0
- data/app/assets/stylesheets/megatron/modules/lib/_codemirror.scss +301 -0
- data/app/assets/stylesheets/megatron/modules/lists/_base.scss +13 -0
- data/app/assets/stylesheets/megatron/modules/lists/_box-list.scss +53 -0
- data/app/assets/stylesheets/megatron/modules/lists/_index.scss +2 -0
- data/app/assets/stylesheets/megatron/modules/messages/_index.scss +3 -0
- data/app/assets/stylesheets/megatron/modules/messages/_notice.scss +57 -0
- data/app/assets/stylesheets/megatron/modules/messages/_notifications.scss +126 -0
- data/app/assets/stylesheets/megatron/modules/messages/_pop-message.scss +157 -0
- data/app/assets/stylesheets/megatron/modules/nav/_auto-navigate.scss +7 -0
- data/app/assets/stylesheets/megatron/modules/nav/_breadcrumbs.scss +35 -0
- data/app/assets/stylesheets/megatron/modules/nav/_index.scss +8 -0
- data/app/assets/stylesheets/megatron/modules/nav/_main-sidebar.scss +21 -0
- data/app/assets/stylesheets/megatron/modules/nav/_mixins.scss +53 -0
- data/app/assets/stylesheets/megatron/modules/nav/_nav-toggle.scss +61 -0
- data/app/assets/stylesheets/megatron/modules/nav/_primary-nav.scss +120 -0
- data/app/assets/stylesheets/megatron/modules/nav/_secondary-nav.scss +105 -0
- data/app/assets/stylesheets/megatron/modules/nav/_tabs.scss +87 -0
- data/app/assets/stylesheets/megatron/modules/roboticons/_font.scss +62 -0
- data/app/assets/stylesheets/megatron/modules/roboticons/_icons.scss +219 -0
- data/app/assets/stylesheets/megatron/modules/roboticons/_index.scss +2 -0
- data/app/assets/stylesheets/megatron/modules/slider/_base.scss +49 -0
- data/app/assets/stylesheets/megatron/modules/slider/_index.scss +4 -0
- data/app/assets/stylesheets/megatron/modules/slider/_slider.scss +282 -0
- data/app/assets/stylesheets/megatron/modules/slider/_switch.scss +75 -0
- data/app/assets/stylesheets/megatron/modules/slider/_themes.scss +42 -0
- data/app/assets/stylesheets/megatron/modules/tables/_base.scss +170 -0
- data/app/assets/stylesheets/megatron/modules/tables/_border-table.scss +28 -0
- data/app/assets/stylesheets/megatron/modules/tables/_box-table.scss +36 -0
- data/app/assets/stylesheets/megatron/modules/tables/_columns.scss +8 -0
- data/app/assets/stylesheets/megatron/modules/tables/_doc-table.scss +22 -0
- data/app/assets/stylesheets/megatron/modules/tables/_icon-cell.scss +9 -0
- data/app/assets/stylesheets/megatron/modules/tables/_index.scss +7 -0
- data/app/assets/stylesheets/megatron/modules/tables/_link-cell.scss +8 -0
- data/app/assets/stylesheets/megatron/modules/tables/_responsive-table.scss +13 -0
- data/app/assets/stylesheets/megatron/modules/widgets/_index.scss +1 -0
- data/app/assets/stylesheets/megatron/modules/widgets/_time-switch.scss +24 -0
- data/lib/megatron.rb +1 -1
- data/lib/megatron/engine.rb +5 -0
- data/lib/megatron/version.rb +1 -1
- data/lib/tasks/megatron_tasks.rake +4 -4
- data/public/assets/megatron/megatron-0.0.4.css +3 -0
- data/public/assets/megatron/{megatron-0.0.3.css.map → megatron-0.0.4.css.map} +3 -3
- data/public/assets/megatron/{megatron-0.0.3.js → megatron-0.0.4.js} +1 -1
- data/public/assets/megatron/megatron-0.0.4.map.json +1 -0
- metadata +115 -6
- data/public/assets/megatron/megatron-0.0.3.css +0 -2
- data/public/assets/megatron/megatron-0.0.3.map.json +0 -1
@@ -0,0 +1,108 @@
|
|
1
|
+
@function auto-gradient($color, $difference: 5%) {
|
2
|
+
@return linear-gradient(scale-color($color, $lightness: $difference), scale-color($color, $lightness: -$difference))
|
3
|
+
}
|
4
|
+
|
5
|
+
@mixin light-button-gradient {
|
6
|
+
background-image: linear-gradient(
|
7
|
+
rgba(#fff, 1) 2%, rgba(#fff, .6) 40%, rgba(#fff, .4) 50%, rgba(#fff, .1) 80%, rgba(#fff, 0) 95%
|
8
|
+
);
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin dark-button-gradient {
|
12
|
+
background-image: linear-gradient(
|
13
|
+
rgba(#fff,.5), rgba(#fff, .2) 2%, rgba(#fff, .02) 50%, rgba(#fff, 0) 50%
|
14
|
+
);
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin dark-outline-button($color) {
|
18
|
+
@extend %btn-base;
|
19
|
+
@include border-button($color);
|
20
|
+
color: $color;
|
21
|
+
text-shadow: none;
|
22
|
+
|
23
|
+
&:hover {
|
24
|
+
@include dark-button(darken($color, 5));
|
25
|
+
}
|
26
|
+
|
27
|
+
&:hover, &:focus {
|
28
|
+
color: #fff;
|
29
|
+
}
|
30
|
+
|
31
|
+
&:focus {
|
32
|
+
@include dark-button($color);
|
33
|
+
box-shadow: rgba(#fff, .5) 0 0 0 2px inset;
|
34
|
+
}
|
35
|
+
|
36
|
+
&:active {
|
37
|
+
color: #fff;
|
38
|
+
background-color: darken($color, 8);
|
39
|
+
background-image: none;
|
40
|
+
@include dark-button-active-shadow;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin dark-text-shadow($color) {
|
45
|
+
text-shadow: scale-color($color, $lightness: -25%) 0 1px 1px;
|
46
|
+
}
|
47
|
+
|
48
|
+
@mixin light-text-shadow($color) {
|
49
|
+
text-shadow: scale-color($color, $lightness: 85%) 0 1px 1px;
|
50
|
+
}
|
51
|
+
|
52
|
+
@mixin light-button($color) {
|
53
|
+
@include light-text-shadow($color);
|
54
|
+
background-color: $color;
|
55
|
+
$border: scale-color($color, $lightness: -20%);
|
56
|
+
box-shadow: $border 0 0 0 1px inset;
|
57
|
+
}
|
58
|
+
|
59
|
+
@mixin border-button($color) {
|
60
|
+
@include light-text-shadow($color);
|
61
|
+
background-color: transparent;
|
62
|
+
box-shadow: $color 0 0 0 2px inset;
|
63
|
+
}
|
64
|
+
|
65
|
+
@mixin dark-button($color) {
|
66
|
+
@include dark-text-shadow($color);
|
67
|
+
background-color: $color;
|
68
|
+
box-shadow: $color 0 0 0 1px inset;
|
69
|
+
}
|
70
|
+
|
71
|
+
@mixin light-button-active-shadow {
|
72
|
+
box-shadow: rgba(#000, .2) 0 1px 7px inset;
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin dark-button-active-shadow {
|
76
|
+
box-shadow: rgba(#000, .3) 0 1px 10px inset;
|
77
|
+
}
|
78
|
+
|
79
|
+
@mixin not-disabled($sel: false) {
|
80
|
+
$not-attr: "&:not([disabled])";
|
81
|
+
$not-class: ":not(.disabled)";
|
82
|
+
@if ($sel) {
|
83
|
+
$not-attr: $not-attr + $sel;
|
84
|
+
$not-class: $not-class + $sel;
|
85
|
+
}
|
86
|
+
|
87
|
+
#{$not-attr + $not-class} { @content; }
|
88
|
+
}
|
89
|
+
|
90
|
+
@mixin input-active {
|
91
|
+
@include not-disabled('.active') { @content; }
|
92
|
+
@include not-disabled(':active') { @content; }
|
93
|
+
}
|
94
|
+
|
95
|
+
@mixin input-focus {
|
96
|
+
@include not-disabled(':focus') { @content; }
|
97
|
+
}
|
98
|
+
|
99
|
+
@mixin input-hover {
|
100
|
+
@include not-disabled(':hover') { @content; }
|
101
|
+
}
|
102
|
+
|
103
|
+
@mixin input-hover-focus {
|
104
|
+
@include not-disabled(':hover') { @content; }
|
105
|
+
@include not-disabled(':focus') { @content; }
|
106
|
+
}
|
107
|
+
|
108
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
@each $name, $color in $full-palette {
|
2
|
+
.#{"" + unquote($name)}-pill, .#{"" + unquote($name)}-outline-pill {
|
3
|
+
border-color: $color;
|
4
|
+
@extend %pill;
|
5
|
+
}
|
6
|
+
.#{"" + unquote($name)}-pill {
|
7
|
+
background-color: $color;
|
8
|
+
color: $white;
|
9
|
+
}
|
10
|
+
.#{"" + unquote($name)}-outline-pill {
|
11
|
+
color: $color;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
%pill {
|
16
|
+
display: inline-block;
|
17
|
+
border-radius: 1em;
|
18
|
+
font-size: 14px;
|
19
|
+
font-weight: normal;
|
20
|
+
position: relative;
|
21
|
+
line-height: 1.4em;
|
22
|
+
top: -.2em;
|
23
|
+
border-width: 2px;
|
24
|
+
border-style: solid;
|
25
|
+
|
26
|
+
&:before, &:after {
|
27
|
+
content: "\00a0";
|
28
|
+
letter-spacing: .5em;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.tag {
|
33
|
+
border-radius: 4px;
|
34
|
+
font-size: 11px;
|
35
|
+
line-height: 1.3em;
|
36
|
+
top: -.1em;
|
37
|
+
border-width: 1px;
|
38
|
+
border-style: solid;
|
39
|
+
|
40
|
+
&:before, &:after {
|
41
|
+
content: "\00a0";
|
42
|
+
letter-spacing: .2em;
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
$code-selected-bg: #BDE1FF;
|
2
|
+
|
3
|
+
.cm-s-default {
|
4
|
+
.cm-keyword {color: $code_blue;}
|
5
|
+
.cm-atom {color: $code_yellow;}
|
6
|
+
.cm-number {color: $code_cyan;}
|
7
|
+
.cm-def {color: $code_magenta; font-weight: bold;}
|
8
|
+
.cm-variable {color: $code_orange;}
|
9
|
+
.cm-variable-2 {color: $code_blue;}
|
10
|
+
.cm-variable-3 {color: $code_green;}
|
11
|
+
.cm-property {color: $code_base1;}
|
12
|
+
.cm-operator {color: $code_base1;}
|
13
|
+
.cm-comment {color: $code_base01;}
|
14
|
+
.cm-string {color: $code_cyan;}
|
15
|
+
.cm-string-2 {color: $code_green;}
|
16
|
+
.cm-meta {color: #555;}
|
17
|
+
.cm-error {color: $code_red;}
|
18
|
+
.cm-qualifier {color: #555;}
|
19
|
+
.cm-builtin {color: #30a;}
|
20
|
+
.cm-bracket {color: #997;}
|
21
|
+
.cm-tag {color: $code_blue; font-weight: bold;}
|
22
|
+
.cm-attribute {color: $code_base1;}
|
23
|
+
.cm-header {color: blue;}
|
24
|
+
.cm-quote {color: #090;}
|
25
|
+
.cm-hr {color: #999;}
|
26
|
+
.cm-link {color: $code_violet;}
|
27
|
+
.cm-qualifier.cm-attribute {color: $code_orange;}
|
28
|
+
.cm-error {color: #f00;}
|
29
|
+
}
|
30
|
+
|
31
|
+
.static-code {
|
32
|
+
.cm-variable {color: $code_base1;}
|
33
|
+
}
|
34
|
+
|
35
|
+
.cm-negative {color: #d44;}
|
36
|
+
.cm-positive {color: #292;}
|
37
|
+
.cm-header, .cm-strong {font-weight: bold;}
|
38
|
+
.cm-em {font-style: italic;}
|
39
|
+
.cm-link {text-decoration: underline;}
|
40
|
+
|
41
|
+
.cm-invalidchar {color: #f00;}
|
42
|
+
|
43
|
+
|
44
|
+
div.CodeMirror {
|
45
|
+
background: $softwhite;
|
46
|
+
border: 1px solid $page-border;
|
47
|
+
border-radius: 4px;
|
48
|
+
padding: 5px;
|
49
|
+
font-family: $mono-font;
|
50
|
+
|
51
|
+
pre {
|
52
|
+
color: $code_base0;
|
53
|
+
font-size: 14px;
|
54
|
+
cursor: text;
|
55
|
+
}
|
56
|
+
.CodeMirror-cursor {
|
57
|
+
border-left: 2px solid #43baff;
|
58
|
+
}
|
59
|
+
.CodeMirror-cursor {
|
60
|
+
border-left: 2px solid #43baff;
|
61
|
+
}
|
62
|
+
span.CodeMirror-matchingbracket {
|
63
|
+
color: $boyblue; font-weight: bold;
|
64
|
+
}
|
65
|
+
span.CodeMirror-nonmatchingbracket {
|
66
|
+
color: $code_red;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
.CodeMirror-scroll {
|
71
|
+
height: 100%;
|
72
|
+
overflow-y: hidden;
|
73
|
+
overflow-x: auto;
|
74
|
+
min-height: 250px;
|
75
|
+
padding-bottom: 0;
|
76
|
+
}
|
77
|
+
|
78
|
+
.code-editor, .code-editor-content {
|
79
|
+
height: 100%;
|
80
|
+
.CodeMirror {
|
81
|
+
height: 100%;
|
82
|
+
max-height: 100%;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
div.CodeMirror-focused {
|
87
|
+
border-color: hsl(203, 47%, 65%);
|
88
|
+
background-color: #fff;
|
89
|
+
box-shadow: 0 0 0 2px hsl(203, 47%, 65%) inset;
|
90
|
+
}
|
91
|
+
|
92
|
+
.document-view {
|
93
|
+
pre { cursor: default; }
|
94
|
+
.CodeMirror-cursor { display: none; }
|
95
|
+
}
|
96
|
+
|
97
|
+
div.CodeMirror-selected { background: desaturate($code-selected-bg, 100); }
|
98
|
+
.CodeMirror-focused div.CodeMirror-selected { background: $code-selected-bg; }
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/* Set up the basic look and feel */
|
2
|
+
|
3
|
+
code,
|
4
|
+
kbd,
|
5
|
+
samp {
|
6
|
+
color: inherit;
|
7
|
+
background-color: rgba(#fff, .3);//$code_base03;
|
8
|
+
border: 1px solid rgba(#000, .1);
|
9
|
+
font-family: Consolas, "Liberation Mono", Courier, monospace;
|
10
|
+
font-size: .95em;
|
11
|
+
border-radius: 3px;
|
12
|
+
&:before, &:after {
|
13
|
+
content: "\00a0";
|
14
|
+
letter-spacing: -0.2em;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
pre[class*=lang-]{
|
19
|
+
padding: 1em;
|
20
|
+
}
|
21
|
+
|
22
|
+
pre.box-content {
|
23
|
+
margin-top: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
.highlighted {
|
27
|
+
border: 1px solid #e5e5e5;
|
28
|
+
position: relative;
|
29
|
+
background-color: $code_base03;
|
30
|
+
color: $code_base0;
|
31
|
+
line-height: inherit;
|
32
|
+
overflow-y: scroll;
|
33
|
+
font-size: 14px;
|
34
|
+
max-width: 100%;
|
35
|
+
word-break: normal;
|
36
|
+
word-wrap: normal;
|
37
|
+
}
|
38
|
+
|
39
|
+
.highlighted-code {
|
40
|
+
font-family: $mono-font;
|
41
|
+
background: none;
|
42
|
+
direction: ltr;
|
43
|
+
display: block;
|
44
|
+
-webkit-hyphens: none;
|
45
|
+
-moz-hyphens: none;
|
46
|
+
-ms-hyphens: none;
|
47
|
+
hyphens: none;
|
48
|
+
tab-size: 2;
|
49
|
+
text-align: left;
|
50
|
+
word-spacing: normal;
|
51
|
+
line-height: inherit;
|
52
|
+
word-break: normal;
|
53
|
+
word-wrap: normal;
|
54
|
+
overflow-x: scroll;
|
55
|
+
|
56
|
+
display: block;
|
57
|
+
border: none;
|
58
|
+
font-size: inherit;
|
59
|
+
|
60
|
+
&:before, &:after {
|
61
|
+
content: none;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.bson-code {
|
2
|
+
font-size: 13px;
|
3
|
+
background-color: $code_base03;
|
4
|
+
color: $code_base0;
|
5
|
+
.key { color: $code_base2; }
|
6
|
+
.value { color: $code_blue; }
|
7
|
+
.string {
|
8
|
+
color: $code_cyan;
|
9
|
+
word-break: break-all;
|
10
|
+
}
|
11
|
+
.function { color: $code_yellow; }
|
12
|
+
.number { color: $code_orange; }
|
13
|
+
|
14
|
+
/*a { color: darken($code_blue, 4); }*/
|
15
|
+
|
16
|
+
|
17
|
+
/*pre { background: none; border: 0; padding: 0;}*/
|
18
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@each $name, $color in $full-palette {
|
2
|
+
// Assign a `.[color]-text` class with a color of [color]
|
3
|
+
.#{"" + unquote($name)}-text {
|
4
|
+
color: $color;
|
5
|
+
}
|
6
|
+
.#{"" + unquote($name)}-hover-text:hover {
|
7
|
+
color: $color !important;
|
8
|
+
}
|
9
|
+
.#{"" + unquote($name)}-bg {
|
10
|
+
background-color: $color !important;
|
11
|
+
}
|
12
|
+
.#{"" + unquote($name)}-hover-bg:hover {
|
13
|
+
background-color: $color !important;
|
14
|
+
}
|
15
|
+
.#{"" + unquote($name)}-border {
|
16
|
+
border-color: $color !important;
|
17
|
+
}
|
18
|
+
.#{"" + unquote($name)}-hover-border:hover {
|
19
|
+
border-color: $color !important;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
@@ -0,0 +1,163 @@
|
|
1
|
+
// Colors
|
2
|
+
$slate: #788392;
|
3
|
+
$night: #2D333B;
|
4
|
+
$space: #262b30;
|
5
|
+
$black: #000;
|
6
|
+
|
7
|
+
$white: #FFFFFF;
|
8
|
+
$softwhite: #fbfbfb;
|
9
|
+
$offwhite: #f5f6f6;
|
10
|
+
$silver: #edefef;
|
11
|
+
$overcast: darken($offwhite, 10);
|
12
|
+
$lightgray: #B3B9BC;
|
13
|
+
$gray: #8d9297;
|
14
|
+
$mediumgray: #666;
|
15
|
+
$darkgray: #444;
|
16
|
+
$bluegray: lighten(#5e6b77, 2);
|
17
|
+
$shade: darken(#5e6b77, 5);// == #57636e;
|
18
|
+
|
19
|
+
$red: #cb413a;
|
20
|
+
$boldred: #DF192A;
|
21
|
+
$lightred: hsl(5, 63%, 55%);
|
22
|
+
$palered: hsl(0, 70, 65);
|
23
|
+
$softred: hsla(0, 70%, 90%, 1);//hsl(10, 61%, 92%);
|
24
|
+
$pink: #FF2D55;
|
25
|
+
|
26
|
+
$orange: #FF9500;
|
27
|
+
$paleorange: hsl(30, 70, 65);
|
28
|
+
$softorange: hsla(35, 70%, 90%, 1);
|
29
|
+
|
30
|
+
$yellow: #FFCC00;
|
31
|
+
$softyellow: hsla(55, 70%, 90%, 1);
|
32
|
+
$cream: #fef0bd;
|
33
|
+
$yellowwhite: #fffefa;
|
34
|
+
|
35
|
+
$softgreen: hsla(140, 70%, 90%, 1);//hsl(140, 70%, 93%);
|
36
|
+
$green: #2ab22e;
|
37
|
+
$greenwhite: #fafefa;
|
38
|
+
|
39
|
+
$blue: #4A89DC;
|
40
|
+
$boyblue: #409bd9;
|
41
|
+
$softblue: hsla(196, 70%, 90%, 1);//hsl(196, 62%, 92%);
|
42
|
+
$babyblue: #82C1ED;
|
43
|
+
$darkblue: #427BC5;
|
44
|
+
$lightblue: #5D9CEC;
|
45
|
+
$paleblue: hsl(205, 50, 65);
|
46
|
+
$bluewhite: #f5fcff;
|
47
|
+
|
48
|
+
$purple: hsl(265, 67%, 60%);
|
49
|
+
$lightpurple: #967ADC;
|
50
|
+
$softpurple: hsla(265, 70%, 90%, 1);
|
51
|
+
|
52
|
+
|
53
|
+
$base-bg: $space;
|
54
|
+
|
55
|
+
// Text colors
|
56
|
+
$link-color: $blue;
|
57
|
+
$text-color: $shade;// == #57636e; #3f474f;
|
58
|
+
$light-text-color: #888;
|
59
|
+
|
60
|
+
// Main content
|
61
|
+
$main-bg: $offwhite;
|
62
|
+
$header-border: #ccc;
|
63
|
+
$page-border: darken($main-bg, 10);
|
64
|
+
|
65
|
+
$page-gray: #edefef;
|
66
|
+
$bright: #fafafa;
|
67
|
+
|
68
|
+
/*$code-purple: #8868BC;*/
|
69
|
+
/*$code-green: #539F50;*/
|
70
|
+
/*$code-yellow: #E6DB74;*/
|
71
|
+
/*$code-orange: #FD971F;*/
|
72
|
+
/*$code-red: #DB4139;*/
|
73
|
+
|
74
|
+
$full-palette: (
|
75
|
+
'black': $black,
|
76
|
+
'mediumgray': $mediumgray,
|
77
|
+
'darkgray': $darkgray,
|
78
|
+
'slate': $slate,
|
79
|
+
'space': $space,
|
80
|
+
'night': $night,
|
81
|
+
|
82
|
+
'white': $white,
|
83
|
+
'softwhite': $softwhite,
|
84
|
+
'offwhite': $offwhite,
|
85
|
+
'silver': $silver,
|
86
|
+
'lightgray': $lightgray,
|
87
|
+
'gray': $gray,
|
88
|
+
'overcast': $overcast,
|
89
|
+
'bluegray': $bluegray,
|
90
|
+
'shade': $shade,
|
91
|
+
|
92
|
+
'red': $red,
|
93
|
+
'boldred': $boldred,
|
94
|
+
'lightred': $lightred,
|
95
|
+
'palered': $palered,
|
96
|
+
'softred': $softred,
|
97
|
+
'pink': $pink,
|
98
|
+
|
99
|
+
'orange': $orange,
|
100
|
+
'paleorange': $paleorange,
|
101
|
+
'softorange': $softorange,
|
102
|
+
|
103
|
+
'yellow': $yellow,
|
104
|
+
'softyellow': $softyellow,
|
105
|
+
'cream': $cream,
|
106
|
+
'yellowwhite': $yellowwhite,
|
107
|
+
|
108
|
+
'softgreen': $softgreen,
|
109
|
+
'green': $green,
|
110
|
+
'greenwhite': $greenwhite,
|
111
|
+
|
112
|
+
'blue': $blue,
|
113
|
+
'boyblue': $boyblue,
|
114
|
+
'softblue': $softblue,
|
115
|
+
'babyblue': $babyblue,
|
116
|
+
'darkblue': $darkblue,
|
117
|
+
'lightblue': $lightblue,
|
118
|
+
'paleblue': $paleblue,
|
119
|
+
'bluewhite': $bluewhite,
|
120
|
+
|
121
|
+
'purple': $purple,
|
122
|
+
'lightpurple': $lightpurple,
|
123
|
+
'softpurple': $softpurple
|
124
|
+
);
|
125
|
+
|
126
|
+
|
127
|
+
/* Colors from Ethan Shoonover's _Solarized_:
|
128
|
+
* http://ethanschoonover.com/solarized
|
129
|
+
*/
|
130
|
+
|
131
|
+
$solarized_base03: #002b36;
|
132
|
+
$solarized_base02: #073642;
|
133
|
+
$solarized_base01: #586e75;
|
134
|
+
$solarized_base00: #657b83;
|
135
|
+
$solarized_base0: #839496;
|
136
|
+
$solarized_base1: #93a1a1;
|
137
|
+
$solarized_base2: #eee8d5;
|
138
|
+
$solarized_base3: #fbfbfb;
|
139
|
+
$solarized_yellow: #b58900;
|
140
|
+
$solarized_orange: #cb4b16;
|
141
|
+
$solarized_red: #dc322f;
|
142
|
+
$solarized_magenta: #d33682;
|
143
|
+
$solarized_violet: #6c71c4;
|
144
|
+
$solarized_blue: #268bd2;
|
145
|
+
$solarized_cyan: #2aa198;
|
146
|
+
$solarized_green: #859900;
|
147
|
+
|
148
|
+
$code_base03: $solarized_base3;
|
149
|
+
$code_base02: $solarized_base2;
|
150
|
+
$code_base01: $solarized_base1;
|
151
|
+
$code_base00: $solarized_base0;
|
152
|
+
$code_base0: $solarized_base00;
|
153
|
+
$code_base1: $solarized_base01;
|
154
|
+
$code_base2: $solarized_base02;
|
155
|
+
$code_base3: $solarized_base03;
|
156
|
+
$code_yellow: $solarized_yellow;
|
157
|
+
$code_orange: $solarized_orange;
|
158
|
+
$code_red: $solarized_red;
|
159
|
+
$code_magenta: $solarized_magenta;
|
160
|
+
$code_violet: $solarized_violet;
|
161
|
+
$code_blue: $solarized_blue;
|
162
|
+
$code_cyan: $solarized_cyan;
|
163
|
+
$code_green: $solarized_green;
|