ctl_base_ui 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +32 -0
- data/app/assets/images/ctl_base_ui/ctl_labs_long_color.svg +79 -0
- data/app/assets/images/ctl_base_ui/ctl_labs_run_color.svg +47 -0
- data/app/assets/images/ctl_base_ui/ctl_logo_base.svg +48 -0
- data/app/assets/images/ctl_base_ui/icon_sprite.svg +161 -0
- data/app/assets/images/ctl_base_ui/icon_sprite_blue.svg +161 -0
- data/app/assets/images/ctl_base_ui/icon_sprite_green.svg +161 -0
- data/app/assets/images/ctl_base_ui/icon_sprite_light_blue.svg +161 -0
- data/app/assets/images/ctl_base_ui/icon_sprite_light_green.svg +161 -0
- data/app/assets/images/ctl_base_ui/icon_sprite_light_grey.svg +161 -0
- data/app/assets/images/ctl_base_ui/icon_sprite_red.svg +161 -0
- data/app/assets/images/ctl_base_ui/icon_sprite_white.svg +161 -0
- data/app/assets/javascripts/ctl_base_ui/kitchen_sink.js +2 -0
- data/app/assets/stylesheets/ctl_base_ui/_colors.scss +19 -0
- data/app/assets/stylesheets/ctl_base_ui/_mixins.scss +37 -0
- data/app/assets/stylesheets/ctl_base_ui/_variables.scss +2 -0
- data/app/assets/stylesheets/ctl_base_ui/application.css +21 -0
- data/app/assets/stylesheets/ctl_base_ui/baseline.scss +13 -0
- data/app/assets/stylesheets/ctl_base_ui/buttons.scss +81 -0
- data/app/assets/stylesheets/ctl_base_ui/forms.scss +111 -0
- data/app/assets/stylesheets/ctl_base_ui/icons.scss +131 -0
- data/app/assets/stylesheets/ctl_base_ui/modals.scss +77 -0
- data/app/assets/stylesheets/ctl_base_ui/notices.scss +41 -0
- data/app/assets/stylesheets/ctl_base_ui/reset.scss +48 -0
- data/app/assets/stylesheets/ctl_base_ui/styleguide.scss +437 -0
- data/app/assets/stylesheets/ctl_base_ui/typography.scss +92 -0
- data/app/controllers/ctl_base_ui/application_controller.rb +7 -0
- data/app/controllers/ctl_base_ui/styleguide_controller.rb +8 -0
- data/app/helpers/ctl_base_ui/application_helper.rb +12 -0
- data/app/views/ctl_base_ui/styleguide/_buttons.html.haml +10 -0
- data/app/views/ctl_base_ui/styleguide/_century_link_identity.html.haml +3 -0
- data/app/views/ctl_base_ui/styleguide/_colors.html.haml +44 -0
- data/app/views/ctl_base_ui/styleguide/_forms.html.haml +19 -0
- data/app/views/ctl_base_ui/styleguide/_icons.html.haml +11 -0
- data/app/views/ctl_base_ui/styleguide/_modals.html.haml +15 -0
- data/app/views/ctl_base_ui/styleguide/_notices.html.haml +21 -0
- data/app/views/ctl_base_ui/styleguide/_typography.html.haml +30 -0
- data/app/views/ctl_base_ui/styleguide/index.html.haml +57 -0
- data/app/views/layouts/ctl_base_ui/application.html.haml +12 -0
- data/config/routes.rb +3 -0
- data/lib/ctl_base_ui/configuration.rb +25 -0
- data/lib/ctl_base_ui/engine.rb +8 -0
- data/lib/ctl_base_ui/version.rb +3 -0
- data/lib/ctl_base_ui.rb +6 -0
- data/lib/tasks/ctl_base_ui_tasks.rake +4 -0
- data/test/ctl_base_ui_test.rb +7 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.haml +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +28 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +27 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/ctl_base_ui.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +3 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/log/development.log +616 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/_colors.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/baseline.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/icons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/modals.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/notices.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/reset.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/styleguide.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8abd77cf1f8106f52f12194ed1fcc1613b5c14c6/typography.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0303b432eb383e61ba34ea5078f66a48 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0733a75c8a2b4eb73f605ea998af15b5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d1b08b26685a1c2b4b97e1f671a4af3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/179b270ea6a97e5d46ff601500a6846d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/187cf46ce796ff8dcd272c736d459e99 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1e20264e24c10967027560b2869fb1d3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/270aa30dc683f1dd3c2dfaa993e1321a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2c971479f73bafa4a357b3e08e571167 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2cabf41a81ca2c912333d520cd6902bb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2deb642dada5251ae5b3fe9453bef203 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/34e5eaecd93f40aa15f62d46e38d0aec +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3864760eed16c23aabbd3714d39731ab +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/38d0b1e7a58a1fa245500f6cf244ffbe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3b7e3122ce02b3cc004c88ebd07f159f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3d3580db821c9121cb1fb6bdca57973e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/49dbb80fd198f03d655ef7ea0d3d102a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4bb25d18d10b2678b08bfcafe0c34e26 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58e530ef4bbbc16c59c12bbc75fdf59e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5e96a4fa7adc21893ef800cb5b4d7b1b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/60e0b9f6bc47b7dd0c638e3d9b89710c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/62b022ed57ae78bbda6088e9224e7f80 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/65d1d5c459b20f2a3e1155ffca39b322 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/68d639a7ec8b865c18b91b405f7d1e6f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6d410574ba327d6b66b019a4564d4a3a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/713251a5497bb66ab924fea15e9b0284 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7ce45cf5080d9abd1b0e837b4ae20b67 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7d16eef429258a61204ec3a6ff31527a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/810fe112337898d76dbdedeb6b1ba9b8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/864adbf04c5ab0d32fa685701ae62f38 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/89606f28c3dfd69b84b4d24946538037 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8c7ada169200de41cc4c79475e29fe0b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/918faf7a66bb2533d7e0dc594d71debb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9190a159a7c37dd97f3a472206575242 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/925baff581c9b50a6419c475485e942b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/95ea9c200445fe8fd20e0d6da242ddbd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/95fa285c1de558eb3c20f169b844f76c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/96b14e59638628abe7a2efb736c23f5e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a0a731c98e68c1444457d754e9093369 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a6bda980439e51cb092fb6d8b7920b49 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a9df84c7eebe716cac74822f5c1db1cb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/adee1d66169ed6e8595218f2c42f5f59 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b3396a881ee33e938a6fdb3d9c7593b1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b3a303ba4385b3991be89acba49ca62c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b652de37608b55f2cb1258e1202297a9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b65ea5f591919e176212719cb8170eec +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b6d2153d7c97d1cf2714e14e24fa7d39 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7114ea3513dfa680adc1909bc20c89b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bf7625999e0a55773e8afa91f8fa2619 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bfe9a98f3b82d40c3b13aed73ba185c7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c08bc7cd26f85ce11741ee6e5efebf91 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c0cbe5c4109d439bca0bdc67f0f13246 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c3a0786a7c4480e9754d0b490b216eac +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c599b6ae6831d05fb0b54aa099afa193 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c635164eabd3a3b87f718b0eb6288fa6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c6b006903d4bab49e7e017e830cbcc03 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ca2920c72c4de8e2c6ca165348f1801e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cbf1e5fb527fc7e1febc8068c0e99292 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ceaa26a5cd606fcda7ffbb9963b86c33 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cf05718545630da575a491be1620f58e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d40c55a44bd87cc334c38165c1badb69 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d5188f154ad181a5c1d97d75180144e2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d896be8cd59389c8d9aa62897e2539aa +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d931b88d566c4c1f7413fb6206bc70b9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/db8d11fa2072f99f9b09158ce432cd73 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dda0d76adf30b8d41364feb544dbc43b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/de15c0d8d02e8bf92eb8e4a476c15a13 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/df073ef92311baf471749246bc63cd9e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dfd377efa43e490bc47ea01a8bc2db63 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e236b528d40f4a291d03a2c07ea4dc45 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e71d9fdfcbb630a0c49ecd9610afe42b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e769263e01360490916801f8cd28c510 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e971944fd6d11922fbfd51283a82fa47 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f2f6c99c1fe4a5298c92950f556aeae1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f482e693e6b20f9a3d2f77ff8a130086 +0 -0
- data/test/integration/navigation_test.rb +9 -0
- data/test/test_helper.rb +15 -0
- metadata +398 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
%h1 H1's are IMPORTANT
|
2
|
+
%p Prosciutto pork loin filet mignon jowl, turkey ball tip pancetta cow ham hock salami. Ground round jerky ribeye chuck ham corned beef. Pastrami drumstick sausage meatloaf hamburger ham spare ribs pancetta pork belly beef ribs venison tongue. Pork belly chicken venison andouille spare ribs strip steak leberkas shankle turducken. Ribeye short loin biltong cow, tenderloin tri-tip short ribs filet mignon prosciutto landjaeger doner jowl drumstick beef.
|
3
|
+
%h2 H2's are for section headings
|
4
|
+
%p Lorem ipsum dolizzle bow wow wow amizzle, break it down elizzle. Nullam sapizzle velizzle, pimpin' volutpizzle, suscipit bizzle, break yo neck, yall vel, check out this. Pellentesque eget doggy. Sed eros. Phat izzle dolizzle pimpin' turpis tempus yo mamma. Maurizzle da bomb nibh check it out turpis. Crackalackin izzle tortor. Pellentesque dope rhoncizzle . In hizzle habitasse shiz dictumst. Donec dapibizzle. Own yo' sheezy fo shizzle, pretium mammasay mammasa mamma oo sa, gizzle izzle, eleifend fizzle, nunc. Funky fresh suscipizzle. Mah nizzle mammasay mammasa mamma oo sa black sizzle dizzle.
|
5
|
+
%h3 #{link_to('Headings like this H3 can even have links', '#')}
|
6
|
+
%p Fap vegan trust fund hashtag before they sold out, master cleanse 8-bit art party Banksy plaid kale chips. Ugh bespoke next level 8-bit Wes Anderson mustache. Church-key Schlitz flexitarian leggings Williamsburg, Banksy Bushwick Pitchfork hoodie American Apparel. Quinoa +1 freegan, XOXO try-hard ugh occupy paleo mumblecore cray PBR&B fingerstache. Blog Pinterest McSweeney's cornhole, tattooed photo booth chambray artisan. IPhone normcore swag hashtag. 90's Portland tofu, polaroid readymade hella put a bird on it kitsch chia pug.
|
7
|
+
%h4 H4's pair well with beer
|
8
|
+
%p caramel malt noble hops keg yeast yeast mead fermentation; hydrometer. cask conditioning lambic sour/acidic biere de garde mouthfeel? bottom fermenting yeast gravity hefe carboy becher dunkle bunghole mash dunkle-- craft beer wort. hand pump noble hops berliner weisse ipa, " bottom fermenting yeast ibu bacterial." finishing hops craft beer ester wort bottom fermenting yeast berliner weisse specific gravity.
|
9
|
+
%h5 There's something fishy about people that use H5 tags
|
10
|
+
%p Chimaera dusky grouper woody sculpin paradise fish, golden loach, orbicular batfish sind danio wallago redside four-eyed fish. Mozambique tilapia daggertooth pike conger spookfish cutlassfish bullhead zebra pleco North Pacific daggertooth Redfish freshwater eel half-gill desert pupfish. Southern smelt dogfish shark blue eye slickhead squeaker grunt glassfish, longnose dace mudminnow gunnel prowfish skilfish. Giant wels cutthroat eel bonytongue tommy ruff, "yellowbelly tail catfish barbeled dragonfish oilfish."
|
11
|
+
%h6 Samuel L Jackson doesn't like H6 tags
|
12
|
+
%p Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb.
|
13
|
+
%p.microcopy Exmaple of microcopy
|
14
|
+
%a{ href: 'http://google.com' } A hyperlink
|
15
|
+
%br/
|
16
|
+
%br/
|
17
|
+
%a.title{ href: 'http://google.com' } A title-ized hyperlink
|
18
|
+
%br/
|
19
|
+
%br/
|
20
|
+
%code
|
21
|
+
:preserve
|
22
|
+
# some code
|
23
|
+
Started GET "/apps/1/services/2.json" for 10.0.2.2 at 2014-05-12 22:06:53 +0000
|
24
|
+
Processing by ServicesController#show as JSON
|
25
|
+
Parameters: {"app_id"=>"1", "id"=>"2"}
|
26
|
+
App Load (0.1ms) SELECT "apps".* FROM "apps" WHERE "apps"."id" = ? LIMIT 1 [["id", 1]]
|
27
|
+
Service Load (0.9ms) SELECT "services".* FROM "services" WHERE "services"."app_id" = ? AND "services"."id" = ? LIMIT 1 [["app_id", 1], ["id", 2]]
|
28
|
+
AppCategory Load (0.1ms) SELECT "app_categories".* FROM "app_categories" INNER JOIN "service_categories" ON "app_categories"."id" = "service_categories"."app_category_id" WHERE "service_categories"."service_id" = ? [["service_id", 2]]
|
29
|
+
ServiceLink Load (0.1ms) SELECT "service_links".* FROM "service_links" WHERE "service_links"."linked_from_service_id" = ? [["linked_from_service_id", 2]]
|
30
|
+
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 1.2ms)
|
@@ -0,0 +1,57 @@
|
|
1
|
+
%nav
|
2
|
+
%h1.ctl-labs-logo= link_to('CenturLink Labs', '#about')
|
3
|
+
%h4 Generic components
|
4
|
+
%ul
|
5
|
+
%li= link_to('CTL Identity', '#ctl_id')
|
6
|
+
%li= link_to('Buttons', '#buttons')
|
7
|
+
%li= link_to('Forms', '#forms')
|
8
|
+
%li= link_to('Colors', '#colors')
|
9
|
+
%li= link_to('Icons', '#icons')
|
10
|
+
%li= link_to('Notices', '#notices')
|
11
|
+
%li= link_to('Typograhy','#typograhy')
|
12
|
+
%li= link_to('Modal Windows','#modals')
|
13
|
+
%h4= "#{CtlBaseUi.configuration.app_name} specific components"
|
14
|
+
%ul
|
15
|
+
- CtlBaseUi.configuration.additional_entries.each do |entry|
|
16
|
+
%li= link_to(entry.humanize,"##{entry}")
|
17
|
+
%main
|
18
|
+
%h1 CenturyLink Labs Base UI Kit
|
19
|
+
%section#about
|
20
|
+
%p
|
21
|
+
This UI kit provides the visual foundation for CenturyLink Labs projects.
|
22
|
+
Optionally, this styleguide may contain application-specific items if the developer of the parent application chooses to include them.
|
23
|
+
Application-specific items will appear in the menu under the "[My application] specific components" headline.
|
24
|
+
%p
|
25
|
+
%strong A quick note about semantics:
|
26
|
+
This style guide uses class names that are tied to corresponding mixin names.
|
27
|
+
In practice, the class names can be much more semantic.
|
28
|
+
|
29
|
+
%section#ctl_id
|
30
|
+
%h2 Century Link Identity
|
31
|
+
= render 'century_link_identity'
|
32
|
+
%section#buttons
|
33
|
+
%h2 Buttons
|
34
|
+
= render 'buttons'
|
35
|
+
%section#forms
|
36
|
+
%h2 Forms
|
37
|
+
= render 'forms'
|
38
|
+
%section#colors
|
39
|
+
%h2 Color Palette
|
40
|
+
= render 'colors'
|
41
|
+
%section#icons
|
42
|
+
%h2 Icons
|
43
|
+
= render 'icons'
|
44
|
+
%section#notices
|
45
|
+
%h2 Notices
|
46
|
+
= render 'notices'
|
47
|
+
%section#typograhy
|
48
|
+
%h2 Typography
|
49
|
+
= render 'typography'
|
50
|
+
%section#modals
|
51
|
+
%h2 Modal Windows
|
52
|
+
= render 'modals'
|
53
|
+
%h1= "#{CtlBaseUi.configuration.app_name} specific components"
|
54
|
+
- CtlBaseUi.configuration.additional_entries.each do |entry|
|
55
|
+
%section{id: entry}
|
56
|
+
%h2= entry.humanize
|
57
|
+
= render "#{CtlBaseUi.configuration.partials_path}#{entry}"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title CtlBaseUi
|
5
|
+
= stylesheet_link_tag "ctl_base_ui/application", media: "all"
|
6
|
+
- CtlBaseUi.configuration.additional_stylesheets.each do |stylesheet|
|
7
|
+
= stylesheet_link_tag stylesheet, media: "all"
|
8
|
+
= stylesheet_link_tag "ctl_base_ui/styleguide", media: "all"
|
9
|
+
= javascript_include_tag "ctl_base_ui/kitchen_sink"
|
10
|
+
= csrf_meta_tags
|
11
|
+
%body
|
12
|
+
= yield
|
data/config/routes.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
module CtlBaseUi
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :additional_entries, :partials_path, :app_name, :additional_stylesheets, :view_helpers
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@additional_entries = []
|
7
|
+
@view_helpers = []
|
8
|
+
@partials_path = '/styleguide/'
|
9
|
+
@app_name = 'My App'
|
10
|
+
@additional_stylesheets = []
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.configuration
|
15
|
+
@configuration ||= Configuration.new
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.configuration=(config)
|
19
|
+
@configuration = config
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.configure
|
23
|
+
yield configuration
|
24
|
+
end
|
25
|
+
end
|
data/lib/ctl_base_ui.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
== README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
+
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
data/test/dummy/bin/rake
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
# require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "sprockets/railtie"
|
8
|
+
require "rails/test_unit/railtie"
|
9
|
+
|
10
|
+
Bundler.require(*Rails.groups)
|
11
|
+
require "ctl_base_ui"
|
12
|
+
|
13
|
+
module Dummy
|
14
|
+
class Application < Rails::Application
|
15
|
+
# Settings in config/environments/* take precedence over those specified here.
|
16
|
+
# Application configuration should go into files in config/initializers
|
17
|
+
# -- all .rb files in that directory are automatically loaded.
|
18
|
+
|
19
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
20
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
21
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
22
|
+
|
23
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
24
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
25
|
+
# config.i18n.default_locale = :de
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
|
23
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
24
|
+
# This option may cause significant delays in view rendering with a large
|
25
|
+
# number of complex assets.
|
26
|
+
config.assets.debug = true
|
27
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both thread web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation can not be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = "public, max-age=3600"
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Print deprecation notices to the stderr.
|
35
|
+
config.active_support.deprecation = :stderr
|
36
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
Dummy::Application.config.secret_key_base = '81efe25efb037a7cfe6d43eef62970ee09e4f27ac320a8508bcd20b33ec2519d5eed35d2e051c49f9216563614615d235416dc18f595906da39b0250312f09e1'
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|