arctic-ui 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +36 -0
  3. data/.gitignore +12 -0
  4. data/.rspec +3 -0
  5. data/.travis.yml +5 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +98 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +28 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/core-api.gemspec +41 -0
  14. data/documentation/.editorconfig +15 -0
  15. data/documentation/.gitignore +24 -0
  16. data/documentation/.travis.yml +10 -0
  17. data/documentation/CHANGELOG.md +137 -0
  18. data/documentation/CODE_OF_CONDUCT.md +46 -0
  19. data/documentation/Gemfile +11 -0
  20. data/documentation/Gemfile.lock +129 -0
  21. data/documentation/LICENSE +13 -0
  22. data/documentation/Procfile +1 -0
  23. data/documentation/README.md +118 -0
  24. data/documentation/config.rb +57 -0
  25. data/documentation/deploy.sh +215 -0
  26. data/documentation/font-selection.json +148 -0
  27. data/documentation/lib/multilang.rb +16 -0
  28. data/documentation/lib/nesting_unique_head.rb +22 -0
  29. data/documentation/lib/toc_data.rb +30 -0
  30. data/documentation/lib/unique_head.rb +24 -0
  31. data/documentation/source/fonts/slate.eot +0 -0
  32. data/documentation/source/fonts/slate.svg +14 -0
  33. data/documentation/source/fonts/slate.ttf +0 -0
  34. data/documentation/source/fonts/slate.woff +0 -0
  35. data/documentation/source/fonts/slate.woff2 +0 -0
  36. data/documentation/source/images/logo.png +0 -0
  37. data/documentation/source/images/navbar.png +0 -0
  38. data/documentation/source/includes/_errors.md +17 -0
  39. data/documentation/source/index.html.md +179 -0
  40. data/documentation/source/javascripts/all.js +2 -0
  41. data/documentation/source/javascripts/all_nosearch.js +16 -0
  42. data/documentation/source/javascripts/app/_lang.js +164 -0
  43. data/documentation/source/javascripts/app/_search.js +98 -0
  44. data/documentation/source/javascripts/app/_toc.js +114 -0
  45. data/documentation/source/javascripts/lib/_energize.js +169 -0
  46. data/documentation/source/javascripts/lib/_imagesloaded.min.js +7 -0
  47. data/documentation/source/javascripts/lib/_jquery.highlight.js +108 -0
  48. data/documentation/source/javascripts/lib/_jquery.js +9831 -0
  49. data/documentation/source/javascripts/lib/_lunr.js +1910 -0
  50. data/documentation/source/layouts/layout.erb +116 -0
  51. data/documentation/source/stylesheets/_icon-font.scss +38 -0
  52. data/documentation/source/stylesheets/_normalize.scss +427 -0
  53. data/documentation/source/stylesheets/_rtl.scss +140 -0
  54. data/documentation/source/stylesheets/_variables.scss +103 -0
  55. data/documentation/source/stylesheets/_variables2.scss +147 -0
  56. data/documentation/source/stylesheets/print.css.scss +148 -0
  57. data/documentation/source/stylesheets/screen.css.scss +707 -0
  58. data/lib/arctic/ui.rb +21 -0
  59. data/lib/arctic/ui/api.rb +69 -0
  60. data/lib/arctic/ui/configuration.rb +26 -0
  61. data/lib/arctic/ui/version.rb +5 -0
  62. metadata +288 -0
@@ -0,0 +1,140 @@
1
+ ////////////////////////////////////////////////////////////////////////////////
2
+ // RTL Styles Variables
3
+ ////////////////////////////////////////////////////////////////////////////////
4
+
5
+ $default: auto;
6
+
7
+ ////////////////////////////////////////////////////////////////////////////////
8
+ // TABLE OF CONTENTS
9
+ ////////////////////////////////////////////////////////////////////////////////
10
+
11
+ #toc>ul>li>a>span {
12
+ float: left;
13
+ }
14
+
15
+ .toc-wrapper {
16
+ transition: right 0.3s ease-in-out !important;
17
+ left: $default !important;
18
+ #{right}: 0;
19
+ }
20
+
21
+ .toc-h2 {
22
+ padding-#{right}: $nav-padding + $nav-indent;
23
+ }
24
+
25
+ #nav-button {
26
+ #{right}: 0;
27
+ transition: right 0.3s ease-in-out;
28
+ &.open {
29
+ right: $nav-width
30
+ }
31
+ }
32
+
33
+ ////////////////////////////////////////////////////////////////////////////////
34
+ // PAGE LAYOUT AND CODE SAMPLE BACKGROUND
35
+ ////////////////////////////////////////////////////////////////////////////////
36
+ .page-wrapper {
37
+ margin-#{left}: $default !important;
38
+ margin-#{right}: $nav-width;
39
+ .dark-box {
40
+ #{right}: $default;
41
+ #{left}: 0;
42
+ }
43
+ }
44
+
45
+ .lang-selector {
46
+ width: $default !important;
47
+ a {
48
+ float: right;
49
+ }
50
+ }
51
+
52
+ ////////////////////////////////////////////////////////////////////////////////
53
+ // CODE SAMPLE STYLES
54
+ ////////////////////////////////////////////////////////////////////////////////
55
+ .content {
56
+ &>h1,
57
+ &>h2,
58
+ &>h3,
59
+ &>h4,
60
+ &>h5,
61
+ &>h6,
62
+ &>p,
63
+ &>table,
64
+ &>ul,
65
+ &>ol,
66
+ &>aside,
67
+ &>dl {
68
+ margin-#{left}: $examples-width;
69
+ margin-#{right}: $default !important;
70
+ }
71
+ &>ul,
72
+ &>ol {
73
+ padding-#{right}: $main-padding + 15px;
74
+ }
75
+ table {
76
+ th,
77
+ td {
78
+ text-align: right;
79
+ }
80
+ }
81
+ dd {
82
+ margin-#{right}: 15px;
83
+ }
84
+ aside {
85
+ aside:before {
86
+ padding-#{left}: 0.5em;
87
+ }
88
+ .search-highlight {
89
+ background: linear-gradient(to top right, #F7E633 0%, #F1D32F 100%);
90
+ }
91
+ }
92
+ pre,
93
+ blockquote {
94
+ float: left !important;
95
+ clear: left !important;
96
+ }
97
+ }
98
+
99
+ ////////////////////////////////////////////////////////////////////////////////
100
+ // TYPOGRAPHY
101
+ ////////////////////////////////////////////////////////////////////////////////
102
+ h1,
103
+ h2,
104
+ h3,
105
+ h4,
106
+ h5,
107
+ h6,
108
+ p,
109
+ aside {
110
+ text-align: right;
111
+ direction: rtl;
112
+ }
113
+
114
+ .toc-wrapper {
115
+ text-align: right;
116
+ direction: rtl;
117
+ font-weight: 100 !important;
118
+ }
119
+
120
+
121
+ ////////////////////////////////////////////////////////////////////////////////
122
+ // RESPONSIVE DESIGN
123
+ ////////////////////////////////////////////////////////////////////////////////
124
+ @media (max-width: $tablet-width) {
125
+ .toc-wrapper {
126
+ #{right}: -$nav-width;
127
+ &.open {
128
+ #{right}: 0;
129
+ }
130
+ }
131
+ .page-wrapper {
132
+ margin-#{right}: 0;
133
+ }
134
+ }
135
+
136
+ @media (max-width: $phone-width) {
137
+ %left-col {
138
+ margin-#{left}: 0;
139
+ }
140
+ }
@@ -0,0 +1,103 @@
1
+ /*
2
+ Copyright 2008-2013 Concur Technologies, Inc.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License"); you may
5
+ not use this file except in compliance with the License. You may obtain
6
+ a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+ License for the specific language governing permissions and limitations
14
+ under the License.
15
+ */
16
+
17
+
18
+ ////////////////////////////////////////////////////////////////////////////////
19
+ // CUSTOMIZE SLATE
20
+ ////////////////////////////////////////////////////////////////////////////////
21
+ // Use these settings to help adjust the appearance of Slate
22
+
23
+
24
+ // BACKGROUND COLORS
25
+ ////////////////////
26
+ $nav-bg: #2d3033 !default;
27
+ $examples-bg: #2E3336 !default;
28
+ $code-bg: #2d3033 !default;
29
+ $code-annotation-bg: #191D1F !default;
30
+ $nav-subitem-bg: #1E2224 !default;
31
+ $nav-active-bg: #2B4C56 !default;
32
+ $nav-active-parent-bg: #2B4C56 !default; // parent links of the current section
33
+ $lang-select-border: #000 !default;
34
+ $lang-select-bg: #1E2224 !default;
35
+ $lang-select-active-bg: $examples-bg !default; // feel free to change this to blue or something
36
+ $lang-select-pressed-bg: #111 !default; // color of language tab bg when mouse is pressed
37
+ $main-bg: #F3F7F9 !default;
38
+ $aside-notice-bg: #8fbcd4 !default;
39
+ $aside-warning-bg: #c97a7e !default;
40
+ $aside-success-bg: #6ac174 !default;
41
+ $search-notice-bg: #c97a7e !default;
42
+
43
+
44
+ // TEXT COLORS
45
+ ////////////////////
46
+ $main-text: #333 !default; // main content text color
47
+ $nav-text: #fff !default;
48
+ $nav-active-text: #fff !default;
49
+ $nav-active-parent-text: #fff !default; // parent links of the current section
50
+ $lang-select-text: #fff !default; // color of unselected language tab text
51
+ $lang-select-active-text: #fff !default; // color of selected language tab text
52
+ $lang-select-pressed-text: #fff !default; // color of language tab text when mouse is pressed
53
+
54
+
55
+ // SIZES
56
+ ////////////////////
57
+ $nav-width: 230px !default; // width of the navbar
58
+ $examples-width: 50% !default; // portion of the screen taken up by code examples
59
+ $logo-margin: 0px !default; // margin below logo
60
+ $main-padding: 28px !default; // padding to left and right of content & examples
61
+ $nav-padding: 15px !default; // padding to left and right of navbar
62
+ $nav-v-padding: 10px !default; // padding used vertically around search boxes and results
63
+ $nav-indent: 10px !default; // extra padding for ToC subitems
64
+ $code-annotation-padding: 13px !default; // padding inside code annotations
65
+ $h1-margin-bottom: 21px !default; // padding under the largest header tags
66
+ $tablet-width: 930px !default; // min width before reverting to tablet size
67
+ $phone-width: $tablet-width - $nav-width !default; // min width before reverting to mobile size
68
+
69
+
70
+ // FONTS
71
+ ////////////////////
72
+ %default-font {
73
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
74
+ font-size: 14px;
75
+ }
76
+
77
+ %header-font {
78
+ @extend %default-font;
79
+ font-weight: bold;
80
+ }
81
+
82
+ %code-font {
83
+ font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
84
+ font-size: 12px;
85
+ line-height: 1.5;
86
+ }
87
+
88
+
89
+ // OTHER
90
+ ////////////////////
91
+ $nav-footer-border-color: #666 !default;
92
+ $search-box-border-color: #666 !default;
93
+
94
+
95
+ ////////////////////////////////////////////////////////////////////////////////
96
+ // INTERNAL
97
+ ////////////////////////////////////////////////////////////////////////////////
98
+ // These settings are probably best left alone.
99
+
100
+ %break-words {
101
+ word-break: break-all;
102
+ hyphens: auto;
103
+ }
@@ -0,0 +1,147 @@
1
+ /*
2
+ Copyright 2008-2013 Concur Technologies, Inc.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License"); you may
5
+ not use this file except in compliance with the License. You may obtain
6
+ a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+ License for the specific language governing permissions and limitations
14
+ under the License.
15
+ */
16
+
17
+
18
+ ////////////////////////////////////////////////////////////////////////////////
19
+ // CUSTOMIZE SLATE
20
+ ////////////////////////////////////////////////////////////////////////////////
21
+ // Use these settings to help adjust the appearance of Slate
22
+
23
+ // TG COLORS
24
+ ////////////////////
25
+ $tg-green: #70cf32;
26
+ $tg-dark-green: #61b729;
27
+ $tg-slate: #2d3033;
28
+ $tg-grey: #6c7279;
29
+ $tg-teal: #65d5d9;
30
+ $tg-red: #f6574d;
31
+ $tg-bermuda-green: #7be3bd;
32
+ $base-grey-10: #f4f4f5;
33
+ $base-grey-5: rgba($base-grey-10, .5);
34
+ $base-grey-30: #e2e6e8;
35
+ $base-grey-70: #a4aeb3;
36
+ $white: #ffffff;
37
+ $black: #000000;
38
+
39
+ // BACKGROUND COLORS
40
+ ////////////////////
41
+ $nav-bg: $white;
42
+ $examples-bg: #2b4c56;
43
+ $code-bg: $tg-slate;
44
+ $code-annotation-bg: #244048;
45
+ $search-highlight: rgba($tg-bermuda-green, .3);
46
+ $nav-subitem-bg: #fff;
47
+ $lang-select-border: #000;
48
+ $lang-select-bg: #222;
49
+ $lang-select-active-bg: #f6574d; // feel free to change this to blue or something
50
+ $lang-select-pressed-bg: $code-annotation-bg; // color of language tab bg when mouse is pressed
51
+ $main-bg: $white;
52
+ $aside-notice-bg: #429BCE;
53
+ $aside-warning-bg: #E1AD05;
54
+ $aside-success-bg: #6ac174;
55
+ $search-notice-bg: #c97a7e;
56
+
57
+
58
+ // TEXT COLORS
59
+ ////////////////////
60
+ $main-text: $tg-slate; // main content text color
61
+ $nav-text: $tg-grey;
62
+ $nav-active-text: $main-text;
63
+ $nav-footer-text: $base-grey-70;
64
+ $content-link: $tg-green;
65
+ $content-link-hover: $tg-dark-green;
66
+ $code: $tg-red;
67
+ $lang-select-text: $white; // color of unselected language tab text
68
+ $lang-select-active-text: $white; // color of selected language tab text
69
+ $lang-select-pressed-text: $white; // color of language tab text when mouse is pressed
70
+
71
+
72
+ // SIZES
73
+ ////////////////////
74
+ $nav-width: 230px; // width of the navbar
75
+ $examples-width: 50%; // portion of the screen taken up by code examples
76
+ $logo-margin: 20px; // margin between nav items and logo, ignored if search is active
77
+ $main-padding: 28px; // padding to left and right of content & examples
78
+ $nav-padding: 10px; // padding to left and right of navbar
79
+ $nav-v-padding: 5px; // padding used vertically around search boxes and results
80
+ $nav-indent: 10px; // extra padding for ToC subitems
81
+ $code-annotation-padding: 13px; // padding inside code annotations
82
+ $h1-margin-bottom: 21px; // padding under the largest header tags
83
+ $tablet-width: 930px; // min width before reverting to tablet size
84
+ $phone-width: $tablet-width - $nav-width; // min width before reverting to mobile size
85
+
86
+
87
+ // FONTS
88
+ ////////////////////
89
+ %base-font {
90
+ font-size: 14px;
91
+ }
92
+
93
+ %nav-font {
94
+ font-size: 13px;
95
+ font-weight: 600;
96
+ }
97
+
98
+ %small-font {
99
+ font-size: 12px;
100
+ }
101
+
102
+ %label-font {
103
+ font-size: 10px;
104
+ font-weight: 600;
105
+ text-transform: uppercase;
106
+ }
107
+
108
+ %default-font {
109
+ font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei","微软雅黑", STXihei, "华文细黑", sans-serif;
110
+ @extend %base-font;
111
+ }
112
+
113
+ %header-font {
114
+ font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei","微软雅黑", STXihei, "华文细黑", sans-serif;
115
+ font-weight: 300;
116
+ }
117
+
118
+ %code-font {
119
+ font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
120
+ line-height: 1.5;
121
+ color: $code;
122
+
123
+ @extend %small-font;
124
+ }
125
+
126
+
127
+ // OTHER
128
+ ////////////////////
129
+ $border-radius: 3px;
130
+ $border-color: $base-grey-30;
131
+ $solid-border: 1px solid $border-color;
132
+ $dotted-border: 1px dotted $border-color;
133
+
134
+
135
+ ////////////////////////////////////////////////////////////////////////////////
136
+ // INTERNAL
137
+ ////////////////////////////////////////////////////////////////////////////////
138
+ // These settings are probably best left alone.
139
+
140
+ %break-words {
141
+ word-break: break-all;
142
+
143
+ /* Non standard for webkit */
144
+ word-break: break-word;
145
+
146
+ hyphens: auto;
147
+ }
@@ -0,0 +1,148 @@
1
+ @charset "utf-8";
2
+ @import 'normalize';
3
+ // @import 'variables'; revert to tripit defaults
4
+ @import 'variables2'; // tradegecko overrides
5
+ @import 'icon-font';
6
+
7
+ /*
8
+ Copyright 2008-2013 Concur Technologies, Inc.
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License"); you may
11
+ not use this file except in compliance with the License. You may obtain
12
+ a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
19
+ License for the specific language governing permissions and limitations
20
+ under the License.
21
+ */
22
+
23
+ $print-color: #999;
24
+ $print-color-light: #ccc;
25
+ $print-font-size: 12px;
26
+
27
+ body {
28
+ @extend %default-font;
29
+ }
30
+
31
+ .toc, .toc-footer, .lang-selector, .search, #nav-button {
32
+ display: none;
33
+ }
34
+
35
+ .toc-wrapper>img {
36
+ margin: 0 auto;
37
+ display: block;
38
+ }
39
+
40
+ .content {
41
+ font-size: 12px;
42
+
43
+ pre, code {
44
+ @extend %code-font;
45
+ @extend %break-words;
46
+ border: 1px solid $print-color;
47
+ border-radius: 5px;
48
+ font-size: 0.8em;
49
+ }
50
+
51
+ pre {
52
+ code {
53
+ border: 0;
54
+ }
55
+ }
56
+
57
+ pre {
58
+ padding: 1.3em;
59
+ }
60
+
61
+ code {
62
+ padding: 0.2em;
63
+ }
64
+
65
+ table {
66
+ border: 1px solid $print-color;
67
+ tr {
68
+ border-bottom: 1px solid $print-color;
69
+ }
70
+ td,th {
71
+ padding: 0.7em;
72
+ }
73
+ }
74
+
75
+ p {
76
+ line-height: 1.5;
77
+ }
78
+
79
+ a {
80
+ text-decoration: none;
81
+ color: #000;
82
+ }
83
+
84
+ h1 {
85
+ @extend %header-font;
86
+ font-size: 2.5em;
87
+ padding-top: 0.5em;
88
+ padding-bottom: 0.5em;
89
+ margin-top: 1em;
90
+ margin-bottom: $h1-margin-bottom;
91
+ border: 2px solid $print-color-light;
92
+ border-width: 2px 0;
93
+ text-align: center;
94
+ }
95
+
96
+ h2 {
97
+ @extend %header-font;
98
+ font-size: 1.8em;
99
+ margin-top: 2em;
100
+ border-top: 2px solid $print-color-light;
101
+ padding-top: 0.8em;
102
+ }
103
+
104
+ h1+h2, h1+div+h2 {
105
+ border-top: none;
106
+ padding-top: 0;
107
+ margin-top: 0;
108
+ }
109
+
110
+ h3, h4 {
111
+ @extend %header-font;
112
+ font-size: 0.8em;
113
+ margin-top: 1.5em;
114
+ margin-bottom: 0.8em;
115
+ text-transform: uppercase;
116
+ }
117
+
118
+ h5, h6 {
119
+ text-transform: uppercase;
120
+ }
121
+
122
+ aside {
123
+ padding: 1em;
124
+ border: 1px solid $print-color-light;
125
+ border-radius: 5px;
126
+ margin-top: 1.5em;
127
+ margin-bottom: 1.5em;
128
+ line-height: 1.6;
129
+ }
130
+
131
+ aside:before {
132
+ vertical-align: middle;
133
+ padding-right: 0.5em;
134
+ font-size: 14px;
135
+ }
136
+
137
+ aside.notice:before {
138
+ @extend %icon-info-sign;
139
+ }
140
+
141
+ aside.warning:before {
142
+ @extend %icon-exclamation-sign;
143
+ }
144
+
145
+ aside.success:before {
146
+ @extend %icon-ok-sign;
147
+ }
148
+ }