ctl_base_ui 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +32 -0
  3. data/app/assets/images/ctl_base_ui/ctl_labs_long_color.svg +79 -0
  4. data/app/assets/images/ctl_base_ui/ctl_labs_run_color.svg +47 -0
  5. data/app/assets/images/ctl_base_ui/ctl_logo_base.svg +48 -0
  6. data/app/assets/images/ctl_base_ui/icon_sprite.svg +161 -0
  7. data/app/assets/images/ctl_base_ui/icon_sprite_blue.svg +161 -0
  8. data/app/assets/images/ctl_base_ui/icon_sprite_green.svg +161 -0
  9. data/app/assets/images/ctl_base_ui/icon_sprite_light_blue.svg +161 -0
  10. data/app/assets/images/ctl_base_ui/icon_sprite_light_green.svg +161 -0
  11. data/app/assets/images/ctl_base_ui/icon_sprite_light_grey.svg +161 -0
  12. data/app/assets/images/ctl_base_ui/icon_sprite_red.svg +161 -0
  13. data/app/assets/images/ctl_base_ui/icon_sprite_white.svg +161 -0
  14. data/app/assets/javascripts/ctl_base_ui/kitchen_sink.js +2 -0
  15. data/app/assets/stylesheets/ctl_base_ui/_colors.scss +19 -0
  16. data/app/assets/stylesheets/ctl_base_ui/_mixins.scss +37 -0
  17. data/app/assets/stylesheets/ctl_base_ui/_variables.scss +2 -0
  18. data/app/assets/stylesheets/ctl_base_ui/application.css +21 -0
  19. data/app/assets/stylesheets/ctl_base_ui/baseline.scss +13 -0
  20. data/app/assets/stylesheets/ctl_base_ui/buttons.scss +81 -0
  21. data/app/assets/stylesheets/ctl_base_ui/forms.scss +111 -0
  22. data/app/assets/stylesheets/ctl_base_ui/icons.scss +131 -0
  23. data/app/assets/stylesheets/ctl_base_ui/modals.scss +77 -0
  24. data/app/assets/stylesheets/ctl_base_ui/notices.scss +41 -0
  25. data/app/assets/stylesheets/ctl_base_ui/reset.scss +48 -0
  26. data/app/assets/stylesheets/ctl_base_ui/styleguide.scss +437 -0
  27. data/app/assets/stylesheets/ctl_base_ui/typography.scss +92 -0
  28. data/app/controllers/ctl_base_ui/application_controller.rb +7 -0
  29. data/app/controllers/ctl_base_ui/styleguide_controller.rb +8 -0
  30. data/app/helpers/ctl_base_ui/application_helper.rb +12 -0
  31. data/app/views/ctl_base_ui/styleguide/_buttons.html.haml +10 -0
  32. data/app/views/ctl_base_ui/styleguide/_century_link_identity.html.haml +3 -0
  33. data/app/views/ctl_base_ui/styleguide/_colors.html.haml +44 -0
  34. data/app/views/ctl_base_ui/styleguide/_forms.html.haml +19 -0
  35. data/app/views/ctl_base_ui/styleguide/_icons.html.haml +11 -0
  36. data/app/views/ctl_base_ui/styleguide/_modals.html.haml +15 -0
  37. data/app/views/ctl_base_ui/styleguide/_notices.html.haml +21 -0
  38. data/app/views/ctl_base_ui/styleguide/_typography.html.haml +30 -0
  39. data/app/views/ctl_base_ui/styleguide/index.html.haml +57 -0
  40. data/app/views/layouts/ctl_base_ui/application.html.haml +12 -0
  41. data/config/routes.rb +3 -0
  42. data/lib/ctl_base_ui/configuration.rb +25 -0
  43. data/lib/ctl_base_ui/engine.rb +8 -0
  44. data/lib/ctl_base_ui/version.rb +3 -0
  45. data/lib/ctl_base_ui.rb +6 -0
  46. data/lib/tasks/ctl_base_ui_tasks.rake +4 -0
  47. data/test/ctl_base_ui_test.rb +7 -0
  48. data/test/dummy/README.rdoc +28 -0
  49. data/test/dummy/Rakefile +6 -0
  50. data/test/dummy/app/assets/javascripts/application.js +13 -0
  51. data/test/dummy/app/controllers/application_controller.rb +5 -0
  52. data/test/dummy/app/helpers/application_helper.rb +2 -0
  53. data/test/dummy/app/views/layouts/application.html.haml +14 -0
  54. data/test/dummy/bin/bundle +3 -0
  55. data/test/dummy/bin/rails +4 -0
  56. data/test/dummy/bin/rake +4 -0
  57. data/test/dummy/config/application.rb +28 -0
  58. data/test/dummy/config/boot.rb +5 -0
  59. data/test/dummy/config/environment.rb +5 -0
  60. data/test/dummy/config/environments/development.rb +27 -0
  61. data/test/dummy/config/environments/production.rb +80 -0
  62. data/test/dummy/config/environments/test.rb +36 -0
  63. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  64. data/test/dummy/config/initializers/ctl_base_ui.rb +3 -0
  65. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  66. data/test/dummy/config/initializers/inflections.rb +16 -0
  67. data/test/dummy/config/initializers/mime_types.rb +5 -0
  68. data/test/dummy/config/initializers/secret_token.rb +12 -0
  69. data/test/dummy/config/initializers/session_store.rb +3 -0
  70. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  71. data/test/dummy/config/locales/en.yml +23 -0
  72. data/test/dummy/config/routes.rb +3 -0
  73. data/test/dummy/config.ru +4 -0
  74. data/test/dummy/log/development.log +616 -0
  75. data/test/dummy/public/404.html +58 -0
  76. data/test/dummy/public/422.html +58 -0
  77. data/test/dummy/public/500.html +57 -0
  78. data/test/dummy/public/favicon.ico +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/_colors.scssc +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/_mixins.scssc +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/_variables.scssc +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/baseline.scssc +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/buttons.scssc +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/forms.scssc +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/icons.scssc +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/modals.scssc +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/notices.scssc +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/reset.scssc +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/styleguide.scssc +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/typography.scssc +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/0303b432eb383e61ba34ea5078f66a48 +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/0733a75c8a2b4eb73f605ea998af15b5 +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/0d1b08b26685a1c2b4b97e1f671a4af3 +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/179b270ea6a97e5d46ff601500a6846d +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/187cf46ce796ff8dcd272c736d459e99 +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/1e20264e24c10967027560b2869fb1d3 +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/270aa30dc683f1dd3c2dfaa993e1321a +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/2c971479f73bafa4a357b3e08e571167 +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/2cabf41a81ca2c912333d520cd6902bb +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/2deb642dada5251ae5b3fe9453bef203 +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/34e5eaecd93f40aa15f62d46e38d0aec +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/3864760eed16c23aabbd3714d39731ab +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/38d0b1e7a58a1fa245500f6cf244ffbe +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/3b7e3122ce02b3cc004c88ebd07f159f +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/3d3580db821c9121cb1fb6bdca57973e +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/49dbb80fd198f03d655ef7ea0d3d102a +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/4bb25d18d10b2678b08bfcafe0c34e26 +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/58e530ef4bbbc16c59c12bbc75fdf59e +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/5e96a4fa7adc21893ef800cb5b4d7b1b +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/60e0b9f6bc47b7dd0c638e3d9b89710c +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/62b022ed57ae78bbda6088e9224e7f80 +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/65d1d5c459b20f2a3e1155ffca39b322 +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/68d639a7ec8b865c18b91b405f7d1e6f +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/6d410574ba327d6b66b019a4564d4a3a +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/713251a5497bb66ab924fea15e9b0284 +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/7ce45cf5080d9abd1b0e837b4ae20b67 +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/7d16eef429258a61204ec3a6ff31527a +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/810fe112337898d76dbdedeb6b1ba9b8 +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/864adbf04c5ab0d32fa685701ae62f38 +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/89606f28c3dfd69b84b4d24946538037 +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/8c7ada169200de41cc4c79475e29fe0b +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/918faf7a66bb2533d7e0dc594d71debb +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/9190a159a7c37dd97f3a472206575242 +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/925baff581c9b50a6419c475485e942b +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/95ea9c200445fe8fd20e0d6da242ddbd +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/95fa285c1de558eb3c20f169b844f76c +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/96b14e59638628abe7a2efb736c23f5e +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/a0a731c98e68c1444457d754e9093369 +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/a6bda980439e51cb092fb6d8b7920b49 +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/a9df84c7eebe716cac74822f5c1db1cb +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/adee1d66169ed6e8595218f2c42f5f59 +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/b3396a881ee33e938a6fdb3d9c7593b1 +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/b3a303ba4385b3991be89acba49ca62c +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/b652de37608b55f2cb1258e1202297a9 +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/b65ea5f591919e176212719cb8170eec +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/b6d2153d7c97d1cf2714e14e24fa7d39 +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/b7114ea3513dfa680adc1909bc20c89b +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/bf7625999e0a55773e8afa91f8fa2619 +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/bfe9a98f3b82d40c3b13aed73ba185c7 +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/c08bc7cd26f85ce11741ee6e5efebf91 +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/c0cbe5c4109d439bca0bdc67f0f13246 +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/c3a0786a7c4480e9754d0b490b216eac +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/c599b6ae6831d05fb0b54aa099afa193 +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/c635164eabd3a3b87f718b0eb6288fa6 +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/c6b006903d4bab49e7e017e830cbcc03 +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/ca2920c72c4de8e2c6ca165348f1801e +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/cbf1e5fb527fc7e1febc8068c0e99292 +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/ceaa26a5cd606fcda7ffbb9963b86c33 +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/cf05718545630da575a491be1620f58e +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/d40c55a44bd87cc334c38165c1badb69 +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/d5188f154ad181a5c1d97d75180144e2 +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/d896be8cd59389c8d9aa62897e2539aa +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/d931b88d566c4c1f7413fb6206bc70b9 +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/db8d11fa2072f99f9b09158ce432cd73 +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/dda0d76adf30b8d41364feb544dbc43b +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/de15c0d8d02e8bf92eb8e4a476c15a13 +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/df073ef92311baf471749246bc63cd9e +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/dfd377efa43e490bc47ea01a8bc2db63 +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/e236b528d40f4a291d03a2c07ea4dc45 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/e71d9fdfcbb630a0c49ecd9610afe42b +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/e769263e01360490916801f8cd28c510 +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/e971944fd6d11922fbfd51283a82fa47 +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/f2f6c99c1fe4a5298c92950f556aeae1 +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/f482e693e6b20f9a3d2f77ff8a130086 +0 -0
  165. data/test/integration/navigation_test.rb +9 -0
  166. data/test/test_helper.rb +15 -0
  167. metadata +398 -0
@@ -0,0 +1,437 @@
1
+ @import 'colors';
2
+ @import 'mixins';
3
+ @import 'icons';
4
+ @import 'buttons';
5
+
6
+
7
+ nav {
8
+ position: fixed;
9
+ background-color: $light_grey;
10
+ width: 280px;
11
+ height: 100%;
12
+ overflow: auto;
13
+
14
+ h1 {
15
+ border-bottom: none;
16
+ margin-bottom: 0px;
17
+ padding-bottom: 0px;
18
+ }
19
+
20
+ h1.ctl-labs-logo a {
21
+ background: asset-url('ctl_base_ui/ctl_labs_long_color.svg') 15px 15px no-repeat;
22
+ @include background-size(240px, 56px);
23
+ @include hide-text;
24
+ width: 280px;
25
+ height: 90px;
26
+ display: block;
27
+ }
28
+
29
+ h1.ctl-labs-logo a:hover {
30
+ background-color: #FFF;
31
+ width: 275px;
32
+ border-right: 5px solid $grey;
33
+ transition: all 0.35s ease;
34
+ }
35
+
36
+ h4 {
37
+ margin: 0px 0px 10px 0px;
38
+ padding: 15px 15px;
39
+ border-bottom: $grey 1px solid;
40
+ font-size: 13px;
41
+ font-weight: bold;
42
+ }
43
+
44
+ ul li a {
45
+ font-size: 13px;
46
+ display: block;
47
+ padding: 5px 15px;
48
+ color: $dark_grey;
49
+ text-decoration: none;
50
+ }
51
+
52
+ ul li a:hover {
53
+ color: $sky-blue;
54
+ transition: all 0.35s ease;
55
+ background-color: #FFF;
56
+ border-right: 5px solid $sky-blue;
57
+ padding-right: 10px;
58
+ }
59
+ }
60
+
61
+ main {
62
+ width: 960px;
63
+ margin-left: 300px;
64
+
65
+ h1 {
66
+ padding-top: 1em;
67
+ }
68
+ }
69
+
70
+ section {
71
+ padding: 2em 0;
72
+ border-bottom: $light_grey 1px solid;
73
+ /* overflow: auto; */
74
+ &:after {
75
+ content: '';
76
+ clear: both;
77
+ display: block;
78
+ }
79
+ }
80
+
81
+ section#about p {
82
+ font-size: 18px;
83
+ color: $medium_grey;
84
+ }
85
+
86
+ section h2:first-of-type {
87
+ color: $sky-blue;
88
+ font-weight: 100;
89
+ letter-spacing: 2px;
90
+ background-color: $light_grey;
91
+ border-left: 5px solid $sky-blue;
92
+ padding: 10px 10px 10px 15px;
93
+ }
94
+
95
+ h2 {
96
+ font-size: 2em;
97
+ }
98
+
99
+ /* Section Specific styles */
100
+
101
+ /* CTL Identity */
102
+
103
+ .ctl-logo-base {
104
+ height: 30px;
105
+ width: 140px;
106
+ margin: 0;
107
+ padding: 0;
108
+ @include hide-text;
109
+ background: image-url('ctl_base_ui/ctl_logo_base.svg') no-repeat;
110
+ @include background-size(140px, 30px);
111
+ background-position: center left;
112
+ }
113
+
114
+ /* Colors */
115
+
116
+ .color-block {
117
+ @include border-box;
118
+ margin: 10px 0px;
119
+ padding-left: 45px;
120
+ position: relative;
121
+ line-height: 35px;
122
+ width: 310px;
123
+ float: left;
124
+
125
+ &:before {
126
+ content: '';
127
+ width: 35px;
128
+ height: 35px;
129
+ position: absolute;
130
+ left: 0;
131
+ }
132
+ }
133
+
134
+ .lipstick-red {
135
+ @extend .color-block;
136
+
137
+ &:before {
138
+ background-color: $lipstick_red;
139
+ }
140
+ }
141
+
142
+ .dark-red {
143
+ @extend .color-block;
144
+
145
+ &:before {
146
+ background-color: $dark_red;
147
+ }
148
+ }
149
+
150
+ .dark-blue {
151
+ @extend .color-block;
152
+
153
+ &:before {
154
+ background-color: $dark_blue;
155
+ }
156
+ }
157
+
158
+ .sky-blue {
159
+ @extend .color-block;
160
+
161
+ &:before {
162
+ background-color: $blue_grey;
163
+ }
164
+ }
165
+
166
+ .lime {
167
+ @extend .color-block;
168
+
169
+ &:before {
170
+ background-color: $lime;
171
+ }
172
+ }
173
+
174
+ .green {
175
+ @extend .color-block;
176
+
177
+ &:before {
178
+ background-color: $green;
179
+ }
180
+ }
181
+
182
+ .yellow {
183
+ @extend .color-block;
184
+
185
+ &:before {
186
+ background-color: $yellow;
187
+ }
188
+ }
189
+
190
+ .orange {
191
+ @extend .color-block;
192
+
193
+ &:before {
194
+ background-color: $orange;
195
+ }
196
+ }
197
+
198
+ .ctl-dark-green {
199
+ @extend .color-block;
200
+
201
+ &:before {
202
+ background-color: $ctl_dark_green;
203
+ }
204
+ }
205
+
206
+ .ctl-light-green {
207
+ @extend .color-block;
208
+
209
+ &:before {
210
+ background-color: $ctl-light-green;
211
+ }
212
+ }
213
+
214
+ .light-grey {
215
+ @extend .color-block;
216
+
217
+ &:before {
218
+ background-color: $light_grey;
219
+ }
220
+ }
221
+
222
+ .grey {
223
+ @extend .color-block;
224
+
225
+ &:before {
226
+ background-color: $grey;
227
+ }
228
+ }
229
+
230
+ .medium-grey {
231
+ @extend .color-block;
232
+
233
+ &:before {
234
+ background-color: $medium_grey;
235
+ }
236
+ }
237
+
238
+ .warm-grey {
239
+ @extend .color-block;
240
+
241
+ &:before {
242
+ background-color: $warm_grey;
243
+ }
244
+ }
245
+
246
+ .dark-grey {
247
+ @extend .color-block;
248
+
249
+ &:before {
250
+ background-color: $dark_grey;
251
+ }
252
+ }
253
+
254
+ /* Icons */
255
+
256
+ .icon {
257
+ overflow: auto;
258
+ line-height: 50px;
259
+ border-bottom:1px solid #f1f1f1;
260
+ margin:0px 0px 20px 0px;
261
+ }
262
+
263
+ .example-icon {
264
+ @include border-box;
265
+ float: left;
266
+ position: relative;
267
+ width: 20px;
268
+ height: 40px;
269
+ margin: 0 10px 15px 0;
270
+
271
+ &:before {
272
+ content: '';
273
+ display: block;
274
+ position: absolute;
275
+ left: 5px;
276
+ top: 0;
277
+ }
278
+ &:after {
279
+ content: '';
280
+ display: block;
281
+ position: absolute;
282
+ left: 0;
283
+ top: 20px;
284
+ }
285
+ }
286
+
287
+ @each $icon, $position in $icons {
288
+ .icon-#{$icon}-example {
289
+ @extend .example-icon;
290
+
291
+ &:before {
292
+ @extend .icon-#{$icon};
293
+ }
294
+
295
+ &:after {
296
+ @extend .icon-#{$icon}-large;
297
+ }
298
+ }
299
+
300
+ .icon-#{$icon}-green-example {
301
+ @extend .example-icon;
302
+
303
+ &:before {
304
+ @extend .icon-#{$icon};
305
+ @include icon-green;
306
+ }
307
+
308
+ &:after {
309
+ @include icon-green;
310
+ @extend .icon-#{$icon}-large;
311
+ }
312
+ }
313
+
314
+ .icon-#{$icon}-blue-example {
315
+ @extend .example-icon;
316
+
317
+ &:before {
318
+ @extend .icon-#{$icon};
319
+ @include icon-blue;
320
+ }
321
+
322
+ &:after {
323
+ @include icon-blue;
324
+ @extend .icon-#{$icon}-large;
325
+ }
326
+ }
327
+
328
+ .icon-#{$icon}-red-example {
329
+ @extend .example-icon;
330
+
331
+ &:before {
332
+ @extend .icon-#{$icon};
333
+ @include icon-red;
334
+ }
335
+
336
+ &:after {
337
+ @include icon-red;
338
+ @extend .icon-#{$icon}-large;
339
+ }
340
+ }
341
+
342
+ .icon-#{$icon}-light-blue-example {
343
+ @extend .example-icon;
344
+
345
+ &:before {
346
+ @extend .icon-#{$icon};
347
+ @include icon-light-blue;
348
+ }
349
+
350
+ &:after {
351
+ @include icon-light-blue;
352
+ @extend .icon-#{$icon}-large;
353
+ }
354
+ }
355
+
356
+ .icon-#{$icon}-light-green-example {
357
+ @extend .example-icon;
358
+
359
+ &:before {
360
+ @extend .icon-#{$icon};
361
+ @include icon-light-green;
362
+ }
363
+
364
+ &:after {
365
+ @include icon-light-green;
366
+ @extend .icon-#{$icon}-large;
367
+ }
368
+ }
369
+
370
+ .icon-#{$icon}-light-grey-example {
371
+ @extend .example-icon;
372
+
373
+ &:before {
374
+ @include icon-light-grey;
375
+ @extend .icon-#{$icon};
376
+ }
377
+
378
+ &:after {
379
+ @extend .icon-#{$icon}-large;
380
+ @include icon-light-grey;
381
+ }
382
+ }
383
+
384
+ .icon-#{$icon}-white-example {
385
+ @extend .example-icon;
386
+
387
+ &:before {
388
+ background-color: $medium_grey;
389
+ @include icon-white;
390
+ @extend .icon-#{$icon};
391
+ }
392
+
393
+ &:after {
394
+ background-color: $medium_grey;
395
+ @extend .icon-#{$icon}-large;
396
+ @include icon-white;
397
+ }
398
+ }
399
+ }
400
+
401
+ /* Buttons */
402
+
403
+ @each $icon, $position in $icons {
404
+ .button-primary-with-icon-#{$icon} {
405
+ @extend .button-primary;
406
+ @extend .icon-#{$icon}-for-button;
407
+ padding-left: 3em;
408
+ margin-bottom: .5em;
409
+ }
410
+ }
411
+
412
+ /* Modals */
413
+ #modals {
414
+ position: relative;
415
+ height: 400px;
416
+ }
417
+ .ui-dialog {
418
+ position: relative;
419
+ margin: 50px auto;
420
+ height: 208px;
421
+ .ui-dialog-content {
422
+ height: 54px;
423
+ }
424
+ }
425
+ .ui-widget-overlay.ui-front {
426
+ position: absolute;
427
+ top: 84px;
428
+ height: 315px
429
+ }
430
+
431
+ select {
432
+ min-width: 160px;
433
+ }
434
+
435
+ label {
436
+ display: block;
437
+ }
@@ -0,0 +1,92 @@
1
+ @import 'colors';
2
+ @import 'variables';
3
+
4
+ h1,
5
+ h2,
6
+ h3,
7
+ h4,
8
+ h5,
9
+ h6 {
10
+ color: $orange;
11
+ padding-bottom: 0.6em;
12
+ margin-bottom: 0.6em;
13
+
14
+ a {
15
+ text-decoration: none;
16
+
17
+ &:hover {
18
+ text-decoration: underline;
19
+ }
20
+ }
21
+ }
22
+
23
+ h1 {
24
+ color: $blue_grey;
25
+ font-size: 2.5em;
26
+ font-weight: 200;
27
+ border-bottom: $grey 1px solid;
28
+ }
29
+
30
+ h2 {
31
+ font-size: 1.3em;
32
+ font-weight: 800;
33
+ }
34
+
35
+ h3 {
36
+ font-size: 1.2em;
37
+ font-weight: 800;
38
+ }
39
+
40
+ h4 {
41
+ font-size: 1.2em;
42
+ font-weight: 400;
43
+ }
44
+
45
+ h5 {
46
+ font-size: 1.125em;
47
+ font-weight: 400;
48
+ }
49
+
50
+ h6 {
51
+ font-size: 0.929em;
52
+ font-weight: 400;
53
+ }
54
+
55
+ p {
56
+ font-size: 0.857em;
57
+ padding: 0 0 1em 0;
58
+ line-height: 1.7em;
59
+ }
60
+
61
+ a {
62
+ color: $blue_grey;
63
+ cursor: pointer;
64
+ }
65
+
66
+ strong {
67
+ font-weight: bold;
68
+ }
69
+
70
+ .title {
71
+ font-size: 1.2em;
72
+ font-weight: bold;
73
+ }
74
+ a.title {
75
+ text-decoration: none;
76
+
77
+ &:hover {
78
+ text-decoration: underline;
79
+ color: $blue_grey_dark;
80
+ }
81
+ }
82
+
83
+ .microcopy {
84
+ color: $medium_grey;
85
+ font-style: italic;
86
+ }
87
+
88
+ code {
89
+ white-space: pre;
90
+ font-family: $monospace_font_family;
91
+ font-size: 0.9em;
92
+ }
@@ -0,0 +1,7 @@
1
+ module CtlBaseUi
2
+ class ApplicationController < ActionController::Base
3
+ CtlBaseUi.configuration.view_helpers.each do |helper|
4
+ helper helper
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ require_dependency "ctl_base_ui/application_controller"
2
+
3
+ module CtlBaseUi
4
+ class StyleguideController < ApplicationController
5
+ def index
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,12 @@
1
+ module CtlBaseUi
2
+ module ApplicationHelper
3
+ def all_icons
4
+ %w( plus minus x sprocket arrowloop checkmark document magnifying-glass
5
+ pencil outbox grid envelope list folder menu house star thin-arrow-right
6
+ thick-arrow-right magnifying-glass-plus magnifying-glass-minus comment-box
7
+ happy-face sad-face copy twitter linked-in facebook link docker-blocks
8
+ disks speedometer thin-arrow-down thick-arrow-down thin-arrow-left
9
+ thick-arrow-left thin-arrow-up thick-arrow-up github )
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ %h3 Basic Buttons
2
+ %input.button-primary{ type: "submit", value: "Primary" }
3
+ %button.button-secondary Secondary
4
+ %a.button-positive Positive
5
+ %button.button-negative Negative
6
+ %button.button-primary{disabled: true} Disabled
7
+
8
+ %h3 Buttons with icons
9
+ - all_icons.each do |icon|
10
+ %a{class: "button-primary-with-icon-#{icon}"}= "primary button with #{icon}"
@@ -0,0 +1,3 @@
1
+ %h6 Base Century Link logo:
2
+ .ctl-logo-base
3
+
@@ -0,0 +1,44 @@
1
+ .lipstick-red
2
+ Lipstick Red #E41741
3
+
4
+ .dark-red
5
+ Dark red #D90000
6
+
7
+ .dark-blue
8
+ Dark Blue #1C6D95
9
+
10
+ .sky-blue
11
+ Sky Blue #229FE5
12
+
13
+ .lime
14
+ Lime #83BB45
15
+
16
+ .green
17
+ Green #699C48
18
+
19
+ .yellow
20
+ Yellow #FFEEC0
21
+
22
+ .orange
23
+ Orange #F89838
24
+
25
+ .ctl-dark-green
26
+ CenturyLink Dark Green #128745
27
+
28
+ .ctl-light-green
29
+ CenturyLink Light Green #8EC643
30
+
31
+ .light-grey
32
+ Light Grey #F1F1F1
33
+
34
+ .grey
35
+ Grey #CCCCCC
36
+
37
+ .medium-grey
38
+ Medium Grey #AAAAAA
39
+
40
+ .warm-grey
41
+ Warm Grey #9A9A8C
42
+
43
+ .dark-grey
44
+ Dark Grey #777777
@@ -0,0 +1,19 @@
1
+ %h3 labels
2
+ %label Required Field
3
+ %label.optional Optional Field
4
+ %h3 Inputs
5
+ %input{type: :text, placeholder: 'text input'}
6
+ %input{type: :number, placeholder: 'number input'}
7
+ %h3 textarea
8
+ %textarea
9
+ %h3 Selects
10
+ %select#example-select
11
+ %option{value: 1} bizaaam
12
+ %option{value: 2} baz
13
+ %p.microcopy
14
+ Note: requires pulling in chosen, require from /ctl-base-ui/chosen
15
+ :javascript
16
+ $('#example-select').chosen({
17
+ disable_search: true
18
+ });
19
+
@@ -0,0 +1,11 @@
1
+ - all_icons.each do |icon|
2
+ .icon
3
+ = icon
4
+ %div{class: "icon-#{icon}-example"}
5
+ %div{class: "icon-#{icon}-light-grey-example"}
6
+ %div{class: "icon-#{icon}-white-example"}
7
+ %div{class: "icon-#{icon}-red-example"}
8
+ %div{class: "icon-#{icon}-light-blue-example"}
9
+ %div{class: "icon-#{icon}-blue-example"}
10
+ %div{class: "icon-#{icon}-light-green-example"}
11
+ %div{class: "icon-#{icon}-green-example"}
@@ -0,0 +1,15 @@
1
+ .ui-widget-overlay.ui-front
2
+ .ui-dialog
3
+ .ui-dialog-titlebar
4
+ %span.ui-dialog-title Modal Title
5
+ %button.ui-dialog-titlebar-close
6
+ %span.ui-button-icon-primary
7
+ .ui-dialog-content.ui-widget-content
8
+ %p
9
+ The modal styles work with classnames provided by jqueryui. The example here includes
10
+ the minimum markup needed for the style. The overlay is used by passing
11
+ {modal: true} when calling .dialog on the element you want to populate the modal.
12
+ .ui-dialog-buttonpane
13
+ .ui-dialog-buttonset
14
+ %button.button-secondary
15
+ %span.ui-button-text Cancel
@@ -0,0 +1,21 @@
1
+ .notice-success
2
+ %a.dismiss dismiss
3
+ %strong This is a success message.
4
+ with some additional content.
5
+
6
+ .notice-default
7
+ %a.dismiss dismiss
8
+ %strong This is a general message.
9
+ %br
10
+ with some additional content after a line break.
11
+
12
+ .notice-warning
13
+ %a.dismiss dismiss
14
+ %strong This is a warning message.
15
+ %br
16
+ with some additional content after a line break.
17
+
18
+ .notice-danger
19
+ %a.dismiss dismiss
20
+ %strong This is an error/danger message.
21
+ with some additional content.