├── log └── .gitkeep ├── lib ├── tasks │ ├── .gitkeep │ └── deploy.rake └── assets │ └── .gitkeep ├── public ├── favicon.ico ├── img1.jpg ├── img2.jpg ├── img3.jpg ├── img4.jpg ├── flash │ └── clippy.swf ├── assets │ ├── img │ │ ├── bars.gif │ │ ├── jqui.png │ │ ├── zoom.png │ │ ├── arrows.png │ │ ├── bgMenu.png │ │ ├── btSair.png │ │ ├── icoChat.png │ │ ├── os │ │ │ ├── java.gif │ │ │ ├── lw.gif │ │ │ ├── ruby.gif │ │ │ ├── ruby.png │ │ │ ├── centos.gif │ │ │ ├── debian.gif │ │ │ ├── linux.gif │ │ │ ├── php4.5.gif │ │ │ ├── plesk.gif │ │ │ ├── ubuntu.gif │ │ │ └── windows.gif │ │ ├── setaTab.png │ │ ├── titDots.png │ │ ├── bgBoxGray.png │ │ ├── bgHeader.gif │ │ ├── bgToolbar.png │ │ ├── bgUsuario.png │ │ ├── bgfooter.png │ │ ├── dotMenuLi.gif │ │ ├── ico-alert.png │ │ ├── ico-beta.png │ │ ├── ico-lamp.png │ │ ├── lupaInput.png │ │ ├── setaDots.png │ │ ├── ajax-loader.gif │ │ ├── arrowRight.png │ │ ├── arrowSilver.png │ │ ├── arrowWhite.png │ │ ├── bgOptToolbar.png │ │ ├── bgSidebarBox.png │ │ ├── cartaoBoleto.png │ │ ├── cartaoCielo.png │ │ ├── cartaoPaypal.png │ │ ├── dotsPathWays.png │ │ ├── externalLnk.png │ │ ├── icoHelpDesk.png │ │ ├── icoInterroga.png │ │ ├── icoTelefone.png │ │ ├── icoerro_404.png │ │ ├── logoLocaweb.png │ │ ├── setaDirList.png │ │ ├── setaIdentTop.png │ │ ├── tit-toolBar.png │ │ ├── arrowLeftGray.png │ │ ├── arrowRightGray.png │ │ ├── bgIconSidebar.png │ │ ├── bgIdentHeader.png │ │ ├── cartaoRedecard.png │ │ ├── cartaoShopline.png │ │ ├── icoHomescreen.png │ │ ├── setaAscending.png │ │ ├── setaDescending.png │ │ ├── setaDetalheTit.png │ │ ├── setaIdentBaixo.png │ │ ├── setaTopObsGray.png │ │ ├── breadcrumb-arrow.png │ │ ├── cartaoPagseguro.png │ │ ├── ico-ultimoAcesso.png │ │ ├── select2 │ │ │ ├── select2.png │ │ │ └── spinner.gif │ │ ├── sepActionsTable.gif │ │ ├── seta-pagination.png │ │ ├── setaCollapseTop.png │ │ ├── setaCollapseBottom.png │ │ ├── setaTopObsGray copy.png │ │ ├── bgMeioPagamentoCinza.png │ │ ├── bgMeioPagamentoVerde.png │ │ ├── cartaoBoletoBradesco.png │ │ ├── pathWays-whiteGradient.png │ │ └── indicadorTopBoxGrayInput.png │ └── fonts │ │ ├── locaicons │ │ ├── brandicon.eot │ │ ├── brandicon.ttf │ │ ├── brandicon.woff │ │ ├── Locaweb-Icons.eot │ │ ├── Locaweb-Icons.ttf │ │ ├── Locaweb-Icons.woff │ │ ├── chamada-icons.eot │ │ ├── chamada-icons.ttf │ │ └── chamada-icons.woff │ │ ├── lacuna │ │ ├── lacuna-webfont.eot │ │ ├── lacuna-webfont.ttf │ │ ├── lacuna-webfont.woff │ │ ├── lacuna-italic-webfont.eot │ │ ├── lacuna-italic-webfont.ttf │ │ └── lacuna-italic-webfont.woff │ │ └── ubuntu │ │ ├── ubuntu-bold-webfont.eot │ │ ├── ubuntu-bold-webfont.ttf │ │ ├── ubuntu-bold-webfont.woff │ │ ├── ubuntu-light-webfont.eot │ │ ├── ubuntu-light-webfont.ttf │ │ ├── ubuntu-light-webfont.woff │ │ ├── ubuntu-medium-webfont.eot │ │ ├── ubuntu-medium-webfont.ttf │ │ ├── ubuntu-medium-webfont.woff │ │ ├── ubuntu-regular-webfont.eot │ │ ├── ubuntu-regular-webfont.ttf │ │ └── ubuntu-regular-webfont.woff └── robots.txt ├── app ├── mailers │ └── .gitkeep ├── models │ └── .gitkeep ├── helpers │ ├── home_helper.rb │ └── application_helper.rb ├── assets │ ├── javascripts │ │ ├── locastyle_head.js │ │ ├── manual │ │ │ ├── application.js │ │ │ ├── theme_selector.js │ │ │ ├── cookie_manager.js │ │ │ └── functions.js │ │ ├── initializer.js │ │ ├── application.js │ │ ├── browser-detect.js │ │ ├── passwordStrength.js │ │ ├── analytics_trackevent.js │ │ └── accessibility.js │ └── stylesheets │ │ ├── locastyle_head.css │ │ ├── manual │ │ ├── application.css │ │ ├── example.css │ │ └── coderay.css │ │ ├── colors │ │ ├── orange.scss │ │ ├── blue.scss │ │ ├── wine.scss │ │ ├── aqua.scss │ │ ├── light_blue.scss │ │ ├── purple.scss │ │ ├── green.scss │ │ ├── cyanogen.scss │ │ ├── navy_blue.scss │ │ ├── yellow.scss │ │ ├── colors.css │ │ └── shared.css │ │ ├── passwordStrength.css │ │ ├── application.css │ │ ├── print.css │ │ ├── tabs.css │ │ ├── buttons.css │ │ ├── footer.css │ │ ├── ie.css │ │ ├── pathway.css │ │ ├── grid.css │ │ ├── tables.css │ │ ├── fonts.css │ │ ├── toolbar.css │ │ ├── functionalclasses.css │ │ └── modal.css ├── views │ ├── home │ │ └── index.html.erb │ ├── manual │ │ ├── calendario.html │ │ ├── breadcrumb.html │ │ ├── progressbar.html │ │ ├── mobile.html │ │ ├── tabs.html │ │ ├── paths.html │ │ ├── validacoes.html │ │ ├── instalacao.html │ │ ├── slider.html │ │ ├── footer-principal.html │ │ ├── mensagens-alertas.html │ │ ├── chamadas.html │ │ ├── termo-uso.html │ │ ├── tags-inline.html │ │ ├── header-principal.html │ │ ├── popover.html │ │ ├── sidebar.html │ │ ├── maskedinput.html │ │ ├── busca-avancada.html │ │ ├── filtro-paginacao.html │ │ ├── tabela-listagem.html │ │ ├── simple_form.html │ │ ├── listagem-infos.html │ │ ├── erro505.html │ │ ├── erro404.html │ │ ├── boaspraticas.html │ │ ├── instrucoes-iniciais.html │ │ ├── campos.html │ │ └── grid.html │ └── layouts │ │ ├── example.html.erb │ │ └── application.html.erb └── controllers │ ├── application_controller.rb │ ├── example │ └── home_controller.rb │ └── manual_controller.rb ├── debian ├── compat ├── install ├── control ├── postinst ├── preinst ├── init └── rules ├── vendor ├── plugins │ └── .gitkeep └── assets │ ├── javascripts │ ├── .gitkeep │ ├── cookie.js │ └── masked-input.js │ └── stylesheets │ ├── .gitkeep │ └── bootstrap │ ├── customize-bootstrap.png │ └── img │ ├── glyphicons-halflings.png │ └── glyphicons-halflings-white.png ├── spec └── javascripts │ ├── helpers │ ├── .gitkeep │ └── SpecHelper.js │ ├── fixtures │ └── modal_auto_open.html │ └── support │ └── jasmine.yml ├── .rvmrc.example ├── config.ru ├── config ├── environment.rb ├── initializers │ ├── yaml_loader.rb │ ├── mime_types.rb │ ├── wrap_parameters.rb │ ├── backtrace_silencers.rb │ ├── session_store.rb │ ├── secret_token.rb │ └── inflections.rb ├── boot.rb ├── locales │ └── en.yml ├── routes.rb ├── locastyle_themes.yml ├── unicorn │ └── production.rb ├── environments │ ├── development.rb │ ├── test.rb │ └── production.rb └── application.rb ├── Rakefile ├── script └── rails ├── db └── seeds.rb ├── Gemfile ├── .gitignore ├── god ├── web.god └── unicorn.god ├── Gemfile.lock └── readme.md /log/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/tasks/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/mailers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 7 2 | -------------------------------------------------------------------------------- /lib/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/javascripts/helpers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/assets/javascripts/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.rvmrc.example: -------------------------------------------------------------------------------- 1 | rvm ruby-1.9.2@locastyle 2 | -------------------------------------------------------------------------------- /app/helpers/home_helper.rb: -------------------------------------------------------------------------------- 1 | module HomeHelper 2 | end 3 | -------------------------------------------------------------------------------- /app/assets/javascripts/locastyle_head.js: -------------------------------------------------------------------------------- 1 | /*! Locastyle version: 1.0.9.1*/ 2 | -------------------------------------------------------------------------------- /app/assets/stylesheets/locastyle_head.css: -------------------------------------------------------------------------------- 1 | /*! Locastyle version: 1.0.9.1*/ 2 | -------------------------------------------------------------------------------- /spec/javascripts/helpers/SpecHelper.js: -------------------------------------------------------------------------------- 1 | beforeEach(function() { 2 | }); 3 | -------------------------------------------------------------------------------- /public/img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/img1.jpg -------------------------------------------------------------------------------- /public/img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/img2.jpg -------------------------------------------------------------------------------- /public/img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/img3.jpg -------------------------------------------------------------------------------- /public/img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/img4.jpg -------------------------------------------------------------------------------- /app/assets/stylesheets/manual/application.css: -------------------------------------------------------------------------------- 1 | /* 2 | *= require_self 3 | *= require_tree . 4 | */ -------------------------------------------------------------------------------- /app/views/home/index.html.erb: -------------------------------------------------------------------------------- 1 |
Find me in app/views/home/index.html.erb
3 | -------------------------------------------------------------------------------- /public/flash/clippy.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/flash/clippy.swf -------------------------------------------------------------------------------- /public/assets/img/bars.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bars.gif -------------------------------------------------------------------------------- /public/assets/img/jqui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/jqui.png -------------------------------------------------------------------------------- /public/assets/img/zoom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/zoom.png -------------------------------------------------------------------------------- /public/assets/img/arrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/arrows.png -------------------------------------------------------------------------------- /public/assets/img/bgMenu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgMenu.png -------------------------------------------------------------------------------- /public/assets/img/btSair.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/btSair.png -------------------------------------------------------------------------------- /public/assets/img/icoChat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/icoChat.png -------------------------------------------------------------------------------- /public/assets/img/os/java.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/java.gif -------------------------------------------------------------------------------- /public/assets/img/os/lw.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/lw.gif -------------------------------------------------------------------------------- /public/assets/img/os/ruby.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/ruby.gif -------------------------------------------------------------------------------- /public/assets/img/os/ruby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/ruby.png -------------------------------------------------------------------------------- /public/assets/img/setaTab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaTab.png -------------------------------------------------------------------------------- /public/assets/img/titDots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/titDots.png -------------------------------------------------------------------------------- /public/assets/img/bgBoxGray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgBoxGray.png -------------------------------------------------------------------------------- /public/assets/img/bgHeader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgHeader.gif -------------------------------------------------------------------------------- /public/assets/img/bgToolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgToolbar.png -------------------------------------------------------------------------------- /public/assets/img/bgUsuario.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgUsuario.png -------------------------------------------------------------------------------- /public/assets/img/bgfooter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgfooter.png -------------------------------------------------------------------------------- /public/assets/img/dotMenuLi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/dotMenuLi.gif -------------------------------------------------------------------------------- /public/assets/img/ico-alert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/ico-alert.png -------------------------------------------------------------------------------- /public/assets/img/ico-beta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/ico-beta.png -------------------------------------------------------------------------------- /public/assets/img/ico-lamp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/ico-lamp.png -------------------------------------------------------------------------------- /public/assets/img/lupaInput.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/lupaInput.png -------------------------------------------------------------------------------- /public/assets/img/os/centos.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/centos.gif -------------------------------------------------------------------------------- /public/assets/img/os/debian.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/debian.gif -------------------------------------------------------------------------------- /public/assets/img/os/linux.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/linux.gif -------------------------------------------------------------------------------- /public/assets/img/os/php4.5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/php4.5.gif -------------------------------------------------------------------------------- /public/assets/img/os/plesk.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/plesk.gif -------------------------------------------------------------------------------- /public/assets/img/os/ubuntu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/ubuntu.gif -------------------------------------------------------------------------------- /public/assets/img/setaDots.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaDots.png -------------------------------------------------------------------------------- /debian/install: -------------------------------------------------------------------------------- 1 | Gemfile Gemfile.lock .bundle Rakefile config.ru app config db god lib public script vendor /var/www/locastyle 2 | -------------------------------------------------------------------------------- /public/assets/img/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/ajax-loader.gif -------------------------------------------------------------------------------- /public/assets/img/arrowRight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/arrowRight.png -------------------------------------------------------------------------------- /public/assets/img/arrowSilver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/arrowSilver.png -------------------------------------------------------------------------------- /public/assets/img/arrowWhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/arrowWhite.png -------------------------------------------------------------------------------- /public/assets/img/bgOptToolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgOptToolbar.png -------------------------------------------------------------------------------- /public/assets/img/bgSidebarBox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgSidebarBox.png -------------------------------------------------------------------------------- /public/assets/img/cartaoBoleto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/cartaoBoleto.png -------------------------------------------------------------------------------- /public/assets/img/cartaoCielo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/cartaoCielo.png -------------------------------------------------------------------------------- /public/assets/img/cartaoPaypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/cartaoPaypal.png -------------------------------------------------------------------------------- /public/assets/img/dotsPathWays.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/dotsPathWays.png -------------------------------------------------------------------------------- /public/assets/img/externalLnk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/externalLnk.png -------------------------------------------------------------------------------- /public/assets/img/icoHelpDesk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/icoHelpDesk.png -------------------------------------------------------------------------------- /public/assets/img/icoInterroga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/icoInterroga.png -------------------------------------------------------------------------------- /public/assets/img/icoTelefone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/icoTelefone.png -------------------------------------------------------------------------------- /public/assets/img/icoerro_404.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/icoerro_404.png -------------------------------------------------------------------------------- /public/assets/img/logoLocaweb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/logoLocaweb.png -------------------------------------------------------------------------------- /public/assets/img/os/windows.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/os/windows.gif -------------------------------------------------------------------------------- /public/assets/img/setaDirList.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaDirList.png -------------------------------------------------------------------------------- /public/assets/img/setaIdentTop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaIdentTop.png -------------------------------------------------------------------------------- /public/assets/img/tit-toolBar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/tit-toolBar.png -------------------------------------------------------------------------------- /app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | protect_from_forgery 3 | end 4 | -------------------------------------------------------------------------------- /public/assets/img/arrowLeftGray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/arrowLeftGray.png -------------------------------------------------------------------------------- /public/assets/img/arrowRightGray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/arrowRightGray.png -------------------------------------------------------------------------------- /public/assets/img/bgIconSidebar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgIconSidebar.png -------------------------------------------------------------------------------- /public/assets/img/bgIdentHeader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgIdentHeader.png -------------------------------------------------------------------------------- /public/assets/img/cartaoRedecard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/cartaoRedecard.png -------------------------------------------------------------------------------- /public/assets/img/cartaoShopline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/cartaoShopline.png -------------------------------------------------------------------------------- /public/assets/img/icoHomescreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/icoHomescreen.png -------------------------------------------------------------------------------- /public/assets/img/setaAscending.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaAscending.png -------------------------------------------------------------------------------- /public/assets/img/setaDescending.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaDescending.png -------------------------------------------------------------------------------- /public/assets/img/setaDetalheTit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaDetalheTit.png -------------------------------------------------------------------------------- /public/assets/img/setaIdentBaixo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaIdentBaixo.png -------------------------------------------------------------------------------- /public/assets/img/setaTopObsGray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaTopObsGray.png -------------------------------------------------------------------------------- /public/assets/img/breadcrumb-arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/breadcrumb-arrow.png -------------------------------------------------------------------------------- /public/assets/img/cartaoPagseguro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/cartaoPagseguro.png -------------------------------------------------------------------------------- /public/assets/img/ico-ultimoAcesso.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/ico-ultimoAcesso.png -------------------------------------------------------------------------------- /public/assets/img/select2/select2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/select2/select2.png -------------------------------------------------------------------------------- /public/assets/img/select2/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/select2/spinner.gif -------------------------------------------------------------------------------- /public/assets/img/sepActionsTable.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/sepActionsTable.gif -------------------------------------------------------------------------------- /public/assets/img/seta-pagination.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/seta-pagination.png -------------------------------------------------------------------------------- /public/assets/img/setaCollapseTop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaCollapseTop.png -------------------------------------------------------------------------------- /public/assets/img/setaCollapseBottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaCollapseBottom.png -------------------------------------------------------------------------------- /public/assets/img/setaTopObsGray copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/setaTopObsGray copy.png -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/brandicon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/brandicon.eot -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/brandicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/brandicon.ttf -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/brandicon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/brandicon.woff -------------------------------------------------------------------------------- /public/assets/img/bgMeioPagamentoCinza.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgMeioPagamentoCinza.png -------------------------------------------------------------------------------- /public/assets/img/bgMeioPagamentoVerde.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/bgMeioPagamentoVerde.png -------------------------------------------------------------------------------- /public/assets/img/cartaoBoletoBradesco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/cartaoBoletoBradesco.png -------------------------------------------------------------------------------- /public/assets/img/pathWays-whiteGradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/pathWays-whiteGradient.png -------------------------------------------------------------------------------- /app/assets/javascripts/manual/application.js: -------------------------------------------------------------------------------- 1 | //= require manual/functions 2 | //= require manual/theme_selector 3 | //= require manual/cookie_manager 4 | -------------------------------------------------------------------------------- /public/assets/fonts/lacuna/lacuna-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/lacuna/lacuna-webfont.eot -------------------------------------------------------------------------------- /public/assets/fonts/lacuna/lacuna-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/lacuna/lacuna-webfont.ttf -------------------------------------------------------------------------------- /public/assets/fonts/lacuna/lacuna-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/lacuna/lacuna-webfont.woff -------------------------------------------------------------------------------- /public/assets/img/indicadorTopBoxGrayInput.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/img/indicadorTopBoxGrayInput.png -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/Locaweb-Icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/Locaweb-Icons.eot -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/Locaweb-Icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/Locaweb-Icons.ttf -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/Locaweb-Icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/Locaweb-Icons.woff -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/chamada-icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/chamada-icons.eot -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/chamada-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/chamada-icons.ttf -------------------------------------------------------------------------------- /public/assets/fonts/locaicons/chamada-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/locaicons/chamada-icons.woff -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-bold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-bold-webfont.eot -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-bold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-bold-webfont.ttf -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-bold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-bold-webfont.woff -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-light-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-light-webfont.eot -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-light-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-light-webfont.ttf -------------------------------------------------------------------------------- /app/assets/javascripts/initializer.js: -------------------------------------------------------------------------------- 1 | $(window).load(function() { 2 | window.locastyle = new Locastyle(); 3 | 4 | locastyle.base.init($(document)); 5 | }); 6 | -------------------------------------------------------------------------------- /public/assets/fonts/lacuna/lacuna-italic-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/lacuna/lacuna-italic-webfont.eot -------------------------------------------------------------------------------- /public/assets/fonts/lacuna/lacuna-italic-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/lacuna/lacuna-italic-webfont.ttf -------------------------------------------------------------------------------- /public/assets/fonts/lacuna/lacuna-italic-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/lacuna/lacuna-italic-webfont.woff -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-light-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-light-webfont.woff -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-medium-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-medium-webfont.eot -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-medium-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-medium-webfont.ttf -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-medium-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-medium-webfont.woff -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-regular-webfont.eot -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-regular-webfont.ttf -------------------------------------------------------------------------------- /public/assets/fonts/ubuntu/ubuntu-regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/public/assets/fonts/ubuntu/ubuntu-regular-webfont.woff -------------------------------------------------------------------------------- /vendor/assets/stylesheets/bootstrap/customize-bootstrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/vendor/assets/stylesheets/bootstrap/customize-bootstrap.png -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require ::File.expand_path('../config/environment', __FILE__) 4 | run Boostrap::Application 5 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/bootstrap/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/vendor/assets/stylesheets/bootstrap/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- 1 | # Load the rails application 2 | require File.expand_path('../application', __FILE__) 3 | 4 | # Initialize the rails application 5 | Boostrap::Application.initialize! 6 | -------------------------------------------------------------------------------- /app/assets/stylesheets/manual/example.css: -------------------------------------------------------------------------------- 1 | #toolbar #select_themes { 2 | color: white; 3 | } 4 | 5 | .the-icons li { 6 | float: left; 7 | width: 100%; 8 | padding: 10px; 9 | } 10 | -------------------------------------------------------------------------------- /app/controllers/example/home_controller.rb: -------------------------------------------------------------------------------- 1 | class Example::HomeController < ApplicationController 2 | 3 | layout 'example' 4 | 5 | def index 6 | end 7 | def show 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /config/initializers/yaml_loader.rb: -------------------------------------------------------------------------------- 1 | # -*- encoding : utf-8 -*- 2 | config_dir = File.join Rails.root, 'config' 3 | 4 | LOCASTYLE_THEMES = YAML.load_file(File.join(config_dir, 'locastyle_themes.yml')) 5 | -------------------------------------------------------------------------------- /vendor/assets/stylesheets/bootstrap/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tableless/locawebstyle/master/vendor/assets/stylesheets/bootstrap/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /app/controllers/manual_controller.rb: -------------------------------------------------------------------------------- 1 | class ManualController < ApplicationController 2 | 3 | def show 4 | params[:id] = 'instrucoes-iniciais' if params[:id].blank? 5 | render params[:id] 6 | end 7 | 8 | end 9 | -------------------------------------------------------------------------------- /config/boot.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | 3 | # Set up gems listed in the Gemfile. 4 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) 5 | 6 | require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) 7 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-Agent: * 5 | # Disallow: / 6 | -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | # Mime::Type.register_alias "text/html", :iphone 6 | -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- 1 | # Sample localization file for English. Add more files in this directory for other locales. 2 | # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. 3 | 4 | en: 5 | hello: "Hello world" 6 | -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- 1 | Boostrap::Application.routes.draw do 2 | 3 | namespace :example do 4 | root :to => 'home#index' 5 | match 'home/show' => 'home#show' 6 | end 7 | 8 | match ':id' => 'manual#show' 9 | root :to => 'manual#show' 10 | 11 | end 12 | -------------------------------------------------------------------------------- /app/assets/stylesheets/colors/orange.scss: -------------------------------------------------------------------------------- 1 | $theme_name: ".colorOrange"; 2 | 3 | $pallet_1: #ffb500; 4 | $pallet_2: #cc9100; 5 | $pallet_3: #664800; 6 | $pallet_4: #332400; 7 | $pallet_5: #fff0cc; 8 | $pallet_6: #ffe199; 9 | $pallet_7: #fff8e6; 10 | 11 | @import "theme_base"; -------------------------------------------------------------------------------- /app/assets/stylesheets/colors/blue.scss: -------------------------------------------------------------------------------- 1 | // Gateway 2 | $theme_name: ".colorBlue"; 3 | 4 | $pallet_1: #00417b; 5 | $pallet_2: #003462; 6 | $pallet_3: #001a31; 7 | $pallet_4: #000d19; 8 | $pallet_5: #ccd9e5; 9 | $pallet_6: #99b3ca; 10 | $pallet_7: #e6ecf2; 11 | 12 | @import "theme_base"; -------------------------------------------------------------------------------- /app/assets/stylesheets/colors/wine.scss: -------------------------------------------------------------------------------- 1 | // DNS Panel 2 | $theme_name: ".colorWine"; 3 | 4 | $pallet_1: #654445; 5 | $pallet_2: #513637; 6 | $pallet_3: #281b1c; 7 | $pallet_4: #140e0e; 8 | $pallet_5: #e0dada; 9 | $pallet_6: #c1b4b5; 10 | $pallet_7: #f0eded; 11 | 12 | @import "theme_base"; -------------------------------------------------------------------------------- /app/views/manual/calendario.html: -------------------------------------------------------------------------------- 1 |Caminho usado em alguns projetos.
3 |Mesmo esquema do Bootstrap. Inserimos apenas uma tag B dentro do div bar para mostrar a indicação de status de progresso.
3 | <%= content_for_clippy do %> 4 |Esse atributo STYLE que define a largura da barra de progresso é feito via Javascript e você precisa fazer isso dependendo da sua necessidade.
10 | 11 |São 3 breakpoints principais: 480px, para mobiles. 990px para telas com menos de 1024. 1180px para telas grandes. Ou seja, os layouts com Locaweb Style já tem versões responsivas de fábrica. Você não precisa fazer para que sua aplicação esteja preparada para ser visualizada em mobiles.
3 | 4 |Abaixo veja um exemplo de como o layout seria visto em um smartphone com uma tela de 320px x 480px.
5 |Padrão de código do Bootstrap.
18 | <%= clippy(yield(:code)) %> 19 |Para telas que tem um processo, um passo a passo a seguir.
3 |Tipos de validações. Normalmente usamos apenas a validação de error. Mas existem outras possibilidades.
3 | <%= content_for_clippy do %> 4 | 5 |Primeiro passo: Adicione as tags abaixo para adicionar o pacote de CSS e Javascript.
3 |
4 | <link rel="stylesheet" type="text/css" href="<%= File.join(root_url.gsub(/https?:(.*)/, '\1'), path_to_asset('application.css')) %>">
5 | <script type="text/javascript" src="<%= File.join(root_url.gsub(/https?:(.*)/, '\1'), path_to_asset('application.js')) %>"></script>
6 |
8 | Segundo passo: Não tem segundo passo. ;-) 9 |
10 | 11 | <% content_for_clippy do %> 12 | 13 | 14 | <% end %> 15 | 16 |Slider simples.
3 |O Footer precisa ser colocado no final do div #main.
3 | 4 | <%= content_for_clippy do %> 5 | 27 | <% end %> 28 | 29 |4 | São mensagens para mostrar uma mensagem de retorno, alertas, erros ou informações. 5 |
6 |Uma pequena lista de emails do Campus Online. Criado em 20/04/2012
12 |Comece aqui suas ações para as configurações do seu site.
21 | 35 | Minimizar Atalhos 36 |1. A LOCAWEB mantém o “site” style.locaweb.com.br na internet,
5 | 6 |2. Por meio do referido “site”, a LOCAWEB oferece uma biblioteca das linguagens de programação web CSS e Javascript, linguagens estas que agrupam funções e códigos, permitindo que o desenvolvedor produza páginas na internet de maneira mais consistente e rápida,
7 | 8 |3. Esta biblioteca é de uso gratuito e pode ser utilizada por qualquer desenvolvedor que desejar, sendo, no entanto, EXPRESSAMENTE VEDADA a alteração dos códigos disponíveis,
9 | 10 |4. O ANUENTE tem interesse em se utilizar desta página e conhecimentos técnicos para esta finalidade,
11 | 12 |DECLARA ELE, expressamente, que CONCORDA com o fato de que a utilização da página e da biblioteca nela disponível corre por sua conta única e exclusiva, isentando a Locaweb de qualquer responsabilidade:
13 | 14 |O presente termo será registrado em Cartório de Títulos e Documentos.
25 | 26 |São Paulo, 13 de agosto de 2012
27 | 28 |LOCAWEB SERVIÇOS DE INTERNET S/A
29 | -------------------------------------------------------------------------------- /spec/javascripts/support/jasmine.yml: -------------------------------------------------------------------------------- 1 | # src_files 2 | # 3 | # Return an array of filepaths relative to src_dir to include before jasmine specs. 4 | # Default: [] 5 | # 6 | # EXAMPLE: 7 | # 8 | # src_files: 9 | # - lib/source1.js 10 | # - lib/source2.js 11 | # - dist/**/*.js 12 | # 13 | src_files: 14 | - assets/jquery.js 15 | - assets/cookie.js 16 | - assets/jquery-ui.min.js 17 | - assets/select2.min.js 18 | - assets/bootstrap/js/bootstrap.js 19 | # DEPENDENCIES 20 | - assets/locastyle.js 21 | 22 | # stylesheets 23 | # 24 | # Return an array of stylesheet filepaths relative to src_dir to include before jasmine specs. 25 | # Default: [] 26 | # 27 | # EXAMPLE: 28 | # 29 | # stylesheets: 30 | # - css/style.css 31 | # - stylesheets/*.css 32 | # 33 | stylesheets: 34 | - stylesheets/**/*.css 35 | 36 | # helpers 37 | # 38 | # Return an array of filepaths relative to spec_dir to include before jasmine specs. 39 | # Default: ["helpers/**/*.js"] 40 | # 41 | # EXAMPLE: 42 | # 43 | # helpers: 44 | # - helpers/**/*.js 45 | # 46 | helpers: 47 | - helpers/**/*.js 48 | 49 | # spec_files 50 | # 51 | # Return an array of filepaths relative to spec_dir to include. 52 | # Default: ["**/*[sS]pec.js"] 53 | # 54 | # EXAMPLE: 55 | # 56 | # spec_files: 57 | # - **/*[sS]pec.js 58 | # 59 | spec_files: 60 | - '**/*[sS]pec.js' 61 | 62 | # src_dir 63 | # 64 | # Source directory path. Your src_files must be returned relative to this path. Will use root if left blank. 65 | # Default: project root 66 | # 67 | # EXAMPLE: 68 | # 69 | # src_dir: public 70 | # 71 | src_dir: 72 | 73 | # spec_dir 74 | # 75 | # Spec directory path. Your spec_files must be returned relative to this path. 76 | # Default: spec/javascripts 77 | # 78 | # EXAMPLE: 79 | # 80 | # spec_dir: spec/javascripts 81 | # 82 | spec_dir: spec/javascripts 83 | -------------------------------------------------------------------------------- /app/assets/stylesheets/tabs.css: -------------------------------------------------------------------------------- 1 | /*** TABS ***/ 2 | .tabs { 3 | background: #e5e5e5; 4 | height: 32px; 5 | padding: 0 10px 1px; 6 | margin: 10px 0 0; 7 | border-top-left-radius: 3px; 8 | border-top-right-radius: 3px; 9 | } 10 | .tabs li {display: inline;} 11 | .tabs li a { 12 | display: inline-block; 13 | font: 500 11px Ubuntu, helvetica, tahoma, verdana, arial, sans-serif; 14 | text-transform: uppercase; 15 | color: #545454; 16 | padding: 13px 10px 7px; 17 | height: 13px; 18 | position: relative; 19 | top: -3px; 20 | border-top: 2px solid transparent; 21 | position: relative; 22 | } 23 | .tabs li a:after, 24 | .tabs li.active a:after { 25 | content: " "; 26 | display: none; 27 | width: 11px; 28 | height: 6px; 29 | position: absolute; 30 | bottom: -6px; 31 | left: 50%; 32 | background: url(img/setaTab.png) no-repeat center center; 33 | margin-left: -5px; 34 | } 35 | 36 | .tabs li a:hover, 37 | .tabs li a:focus, 38 | .tabs li.active a { 39 | text-decoration: none; 40 | background:#FFF; 41 | outline: none; 42 | border-top: 2px solid #777; 43 | border-top-right-radius: 3px; 44 | border-top-left-radius: 3px; 45 | } 46 | .tabs li.active a{outline: none;} 47 | .tabs li a:hover .setaTab, 48 | .tabs li a:focus .setaTab, 49 | .tabs li.active a .setaTab, 50 | .tabs li a:hover:after, 51 | .tabs li a:focus:after, 52 | .tabs li.active a:after { 53 | display: block; 54 | } 55 | 56 | .tab-content { 57 | border: 1px solid #e5e5e5; 58 | margin-bottom: 20px; 59 | min-width: 734px; 60 | width: auto; 61 | background: white; 62 | } 63 | .tabs + .tab-content {border-top: none;} 64 | 65 | .tab-content .tab-pane {padding: 20px 10px 10px;} 66 | 67 | .tab-content.noborder {border: none;} 68 | .tabs .searchInput { 69 | height: 17px; 70 | margin: 2px 0 0; 71 | } 72 | .tabs .btn-small{padding: 5px 12px;} 73 | -------------------------------------------------------------------------------- /app/views/layouts/example.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |4 | No Bootstrap eles chamam de LABELS. Mas para não confundirmos com LABELS de input, colocamos o nome de Tags. 5 |
6 | 7 | <%= content_for_clippy do %> 8 || Labels | 12 |Markup | 13 |
|---|---|
| 18 | Default 19 | | 20 |
21 | <span class="label">Default</span>
22 | |
23 |
| 26 | Success 27 | | 28 |
29 | <span class="label label-success">Success</span>
30 | |
31 |
| 34 | Warning 35 | | 36 |
37 | <span class="label label-warning">Warning</span>
38 | |
39 |
| 42 | Important 43 | | 44 |
45 | <span class="label label-important">Important</span>
46 | |
47 |
| 50 | Info 51 | | 52 |
53 | <span class="label label-info">Info</span>
54 | |
55 |
| 58 | Inverse 59 | | 60 |
61 | <span class="label label-inverse">Inverse</span>
62 | |
63 |
Padrão de código do Bootstrap.
70 | <%= clippy(yield(:code)) %> 71 |As opções devem ser passadas via atributo data, ex: data-animation="false", data-trigger="click".
12 || Name | 16 |type | 17 |default | 18 |description | 19 |
|---|---|---|---|
| animation | 24 |boolean | 25 |true | 26 |Aplica uma transição de fade | 27 |
| placement | 30 |string|function | 31 |'right' | 32 |Onde o popover ficará posicionado - top | bottom | left | right | 33 |
| selector | 36 |string | 37 |false | 38 |Se um seletor é definido, os objetos do popover será delegado para alvos específicos | 39 |
| trigger | 42 |string | 43 |'hover' | 44 |Como o popover é ativado - hover | focus | manual | 45 |
| title | 48 |string | function | 49 |'' | 50 |Título padrão do popover se o atributo title não existir | 51 |
| content | 54 |string | function | 55 |'' | 56 |Conteúdo padrão se o data-content não existir | 57 |
| delay | 60 |number | object | 61 |0 | 62 |
63 | Delay para mostrar e esconder o popover (ms) - não aplicável para ativação manual. 64 |Se um número é fornecido, o delay é aplicado no hide e show. 65 |Estrutura do objeto é: |
67 |
| html | 70 |boolean | 71 |false | 72 |
73 | Permite que o conteúdo tenha código HTML. 74 | |
75 |
Utilizamos o plugin Masked Input para criar máscaras de campos de formulários. No Locaweb Style nós não tratamos nenhuma máscara por default, logo você precisará fazer isso no seu projeto. O funcionamento é muito simples. Você pode definir em uma linha no seu Javascript/JQuery como será a máscara dos determinados inputs.
3 | 4 |<%= content_for_clippy do %>$("#data").mask("99/99/9999");
5 | //Aceita até 9 digitos
6 | $('#telefone').mask("(99) 9999-9999?9").ready(function(event) {
7 | var target, phone, element;
8 | target = (event.currentTarget) ? event.currentTarget : event.srcElement;
9 | phone = target.value.replace(/\D/g, '');
10 | element = $(target);
11 | element.unmask();
12 | if(phone.length > 10) {
13 | element.mask("(99) 99999-999?9");
14 | } else {
15 | element.mask("(99) 9999-9999?9");
16 | }
17 | });
18 | $("#cpf").mask("999.999.999-99");
19 | <% end %>
20 |
21 | Se você não quer que a máscara fique com os underlines (___), você pode modificar pelo parâmetro placeholder, assim:
39 |
40 | $("#cpf").mask("999.999.999-99",{placeholder:" "});
41 |
42 | Assim, ele mostraria espaços em vez de _ (underline).
43 |Você pode executar uma função quando o campo for totalmente completo.
50 |
51 | $("#data").mask("99/99/9999",{completed:function(){alert("Você digitou a data: "+this.val());}});
52 |
53 | Veja outras funções desse plugin aqui.
59 |A busca avançada já reconhece se os inputs estão marcados com preenchidos. Se estiverem preenchidos, o busca avançada já fica aberto, caso contrário ele aparece fechado.
3 |Quando o usuário clica no botão VOLTAR PARA BUSCA SIMPLES, executa uma ação de limpar os inputs de BUSCA AVANCADA para não submete-los quando o usuário clicar em BUSCAR.
4 |61 | Siga o exemplo abaixo para que o estilo da paginação funcione como esperado. 62 |
63 | 64 || Nome do cliente | 7 |# do pedido | 8 |Data - Hora | 9 |Status | 10 |Valor | 11 |Ações | 12 ||
|---|---|---|---|---|---|---|
| Helena da Silva 18 | 22 | | 23 |74994 | 24 |14/03/12 - 11h25 | 25 |Autorizada | 26 |R$ 297,00 | 27 |Ver Detalhes | 28 |Estornar | 29 |
| Helena da Silva 32 | 36 | | 37 |74994 | 38 |14/03/12 - 11h25 | 39 |Autorizada | 40 |R$ 297,00 | 41 |Ver Detalhes | 42 |Estornar | 43 |
| Helena da Silva 46 | 50 | | 51 |74994 | 52 |14/03/12 - 11h25 | 53 |Autorizada | 54 |R$ 297,00 | 55 |Ver Detalhes | 56 |Estornar | 57 |
Basta sobrescrever a configuração inicial do simple_form que os formulários já estarão formatados.
3 |Pra todo input será gerado uma div > label + input. Caso você não queira a div em volta basta alterar o wrapper do input.
4 |<%= f.input :name, wrapper: :empty %>
5 | 6 |config/initializers/simple_form.rb
8 | <% content_for_clippy do %> 9 | SimpleForm.setup do |config| 10 | config.wrappers :default, :class => :input, :hint_class => :field_with_hint, :error_class => :field_with_errors do |b| 11 | b.use :html5 12 | b.use :placeholder 13 | b.optional :maxlength 14 | b.optional :pattern 15 | b.optional :min_max 16 | b.optional :readonly 17 | b.use :label_input 18 | b.use :hint, :wrap_with => { :tag => :span, :class => :hint } 19 | b.use :error, :wrap_with => { :tag => :span, :class => :error } 20 | end 21 | 22 | config.wrappers :bootstrap, :tag => :div, :class => 'control-group', :error_class => 'error' do |b| 23 | b.use :html5 24 | b.use :placeholder 25 | b.use :label_input 26 | b.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' } 27 | b.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' } 28 | end 29 | 30 | config.wrappers :empty, :tag => false, :error_class => 'error' do |b| 31 | b.use :html5 32 | b.use :placeholder 33 | b.use :label_input 34 | b.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' } 35 | b.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' } 36 | end 37 | 38 | config.default_wrapper = :bootstrap 39 | config.boolean_style = :nested 40 | config.button_class = 'btn' 41 | config.error_notification_tag = :div 42 | config.error_notification_class = 'alert alert-error' 43 | # You can wrap each item in a collection of radio/check boxes with a tag, 44 | # defaulting to :span. Please note that when using :boolean_style = :nested, 45 | # SimpleForm will force this option to be a label. 46 | config.item_wrapper_tag = nil 47 | # config.item_wrapper_class = nil 48 | config.label_text = lambda { |label, required| "#{label} #{required}" } 49 | config.label_class = 'control-label' 50 | config.form_class = nil 51 | config.browser_validations = false 52 | # config.file_methods = [ :mounted_as, :file?, :public_filename ] 53 | # config.input_mappings = { /count/ => :integer } 54 | # config.time_zone_priority = nil 55 | # config.country_priority = nil 56 | config.default_input_size = nil 57 | # config.translate_labels = true 58 | # config.inputs_discovery = true 59 | # config.cache_discovery = !Rails.env.development? 60 | end 61 | <% end %> 62 | <%= clippy(yield(:code), :ruby) %> 63 |Identificador: 123456789 | Nome: Lojinha do Régis
7 | 8 | Administrar 9 | 10 |Gateway de pagamentos: (1000 transações)
11 |Identificador: 123456789 | Nome: Lojinha com divisões na observação
17 | 18 | Administrar 19 | 20 | Status: Ativo 21 | 22 | Período de renovação: 1 ano 23 | Alterar 24 | 25 |Gateway de pagamentos: (1000 transações)
26 |
32 | Gateway de pagamentos: (1000 transações)
38 |
41 |
49 |
57 | Ocorreu uma instabilidade temporária que impediu a exibição do conteúdo. Nossa equipe técnica foi notificada e estamos trabalhando para resolvê-lo.
31 | 32 |Você pode:
33 |O conteúdo pode ter sido removido ou não estar mais disponível.
60 | 61 |Você pode:
62 |Como este é um projeto onde várias pessoas escrevem código front, precisamos manter alguns padrões de escrita. Isso é importante para que o projeto perdure e que novos integrantes entendam facilmente como tudo funciona.
4 | 5 |Quando definimos um padrão de escrita de código, queremos que o código seja uniforme. Isso quer dizer que o código precisa parecer que foi escrito por uma única pessoa. Assim, conseguimos manter a manutenção mais simples, garantindo que o projeto seja flexível e escalável de forma consistente. Abaixo separamos algumas das regras que devemos seguir para manter isso tudo funcionando.
6 | 7 |Pode ser que tenha alguma regra que você goste ou não esteja familiarizado. Infelizmente, você vai precisa seguir. Todo mundo tem um gosto e não é possível manter o gosto de todos, por isso precisamos escolher apenas um.
8 | 9 |Senhor programador back-end, utilize esse código para iniciar seu HTML.
11 |12 | <!DOCTYPE html> 13 | <html lang="pt-br"> 14 | <head> 15 | <title></title> 16 | <meta charset="utf-8"> 17 | </head> 18 | <body> 19 | 20 | </body> 21 | </html> 22 |23 | 24 |
Escolher entre tabs e espaços sempre é uma dúvida terrível. Mesmo assim, quando se trata de HTML/CSS e Javascript, o padrão sempre foi TABs, embora usemos espaços em linguagens como Ruby, Python e etc.
26 | 27 |
31 | .collapseGroup summary span,
32 | .boxGray.listDetail a,
33 | .serviceName a,
34 | [class^="ico"],
35 | [class*=" ico"]
36 | #menuPrincipal .btMenu a,
37 | #menuPrincipal .parent:hover > a,
38 | #menuPrincipal .parent > a:hover,
39 | #menuPrincipal > ul > li > a:hover {color: #4B7CB8;}
40 |
41 |
42 | Para não ficar uma linha muito grande com vários elementos definidos, quebramos linha a cada seletor criado. Isso mantém a leitura legível e nos ajuda a identificar erros. Não se preocupe, o Ruby vai minificar todo esse código depois, por isso, ele não vai para a produção dessa forma.
43 | 44 |Eu sei que eu não preciso dizer, mas quem sabe, não é?
46 | O encoding utilizado é o padrão da web inteira: UTF-8.
<meta charset="utf-8">49 |
SEM BOM! Pelo amor de Deus.
50 | 51 |O simbolo do Euro é €. Cifrão $54 | 55 |
Sempre que utilizar uma cor hexadecimal que tenha repetição de valores, use sempre o valor de atalho, assim:
57 |
58 | /** Recomendado **/
59 | p {color: #AAA;}
60 |
61 | /** Não Recomendado **/
62 | p {color: #AAAAAA;}
63 |
64 |
65 |
68 | p { color: rgba(0, 0, 0, 0.5); }
69 | .no-rgba p { color: #000; }
70 |
71 |
72 |
73 | Tanto no CSS quanto no HTML utilizamos ASPAS DUPLAS. Nunca aspas simples, a não ser no Javascript/JQuery.
75 |
76 | input[type="checkout"] { ... }
77 | div:after { content: " "; }
78 |
79 |
80 | Para uma seção:
82 |83 | /*** HEADER 84 | **** Header principal do site 85 | ***/ 86 |87 | 88 |
Nunca use comentários na mesma linha da propriedade:
89 |
90 | p {color: #FFF;} /** Nunca use comentários assim **/
91 |
92 | p {color: #FFF; /** Nunca use comentários assim **/}
93 |
94 |
95 | Assim é melhor:
96 |
97 |
98 | /** Assim é melhor **/
99 | p {
100 | color: #FFF;
101 | background: red;
102 | margin: 0;
103 |
104 | /** Assim também é bom **/
105 | padding: 0;
106 | }
107 |
108 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/functionalclasses.css:
--------------------------------------------------------------------------------
1 | /**
2 | *** FLOAT E CLEAR
3 | **/
4 | .noFloat {float: none !important;}
5 | .fRight {float: right !important;}
6 | .fLeft {float: left !important;}
7 |
8 | .cBoth {clear: both !important;}
9 | .cRight {clear: right !important;}
10 | .cLeft {clear: left !important;}
11 |
12 | .overflowHidden { overflow: hidden !important;}
13 | .overflowVisible {overflow: visible !important;}
14 |
15 | /**
16 | *** BLOCO E LINHA
17 | **/
18 | .dBlock {display: block !important;}
19 | .dInline {display: inline !important; float: none !important;}
20 | .dInlineBlock {display: inline-block !important; float: none !important;}
21 | .dNone, .hide {display: none !important;}
22 |
23 | /**
24 | *** TAMANHO
25 | **/
26 | .widthAuto {width: auto !important;}
27 | .widthInherit {width: inherit;}
28 | .heightInherit {height: inherit;}
29 | .heightAuto {height: auto !important;}
30 |
31 | /**
32 | *** MARGIN E PADDING
33 | **/
34 | .noMargin {margin: 0 !important;}
35 | .noMarginLeft, .row.noMarginLeft {margin-left: 0 !important;}
36 | .noMarginRight {margin-right: 0 !important;}
37 | .noMarginTop {margin-top: 0 !important;}
38 | .noMarginBottom {margin-bottom: 0 !important;}
39 |
40 | .noPadding {padding: 0 !important;}
41 | .noPaddingLeft {padding-left: 0 !important;}
42 | .noPaddingRight {padding-right: 0 !important;}
43 | .noPaddingTop {padding-top: 0 !important;}
44 | .noPaddingBottom {padding-bottom: 0 !important;}
45 |
46 | .marginAuto {
47 | margin-left: auto !important;
48 | margin-right: auto !important;
49 | }
50 |
51 | .marginBottom40 {margin-bottom: 40px;}
52 |
53 | /**
54 | *** ALINHAMENTO DE TEXTO
55 | **/
56 | .txtLeft {text-align: left !important;}
57 | .txtRight {text-align: right !important;}
58 | .txtJustify {text-align: justify !important;}
59 | .txtCenter {text-align: center !important;}
60 |
61 | table.txtLeft td, table.txtLeft th {text-align: left;}
62 | table.txtRight td, table.txtRight th {text-align: right;}
63 |
64 | /**
65 | *** ALINHAMENTO VERTICAL
66 | **/
67 | .vAlignTop {vertical-align: top !important;}
68 | .vAlignMiddle {vertical-align: middle !important;}
69 | .vAlignBottom {vertical-align: bottom !important;}
70 | .vAlignTopImportant {vertical-align: top !important;}
71 | .vAlignMiddleImportant {vertical-align: middle !important;}
72 | .vAlignBottomImportant {vertical-align: bottom !important;}
73 |
74 | /**
75 | *** BACKGROUND E BORDA
76 | **/
77 | .noBackground {background: none !important;}
78 | .noShadow {box-shadow: none !important;}
79 |
80 | .noBorder {border: none !important;}
81 | .noBorderRight {border-right: none !important;}
82 | .noBorderLeft {border-left: none !important;}
83 | .noBorderBottom {border-bottom: none !important;}
84 | .noBorderTop {border-top: none !important;}
85 |
86 | .noBullet, .noListStyle {list-style: none !important;}
87 |
88 | /**
89 | *** CURSOR DE MOUSE
90 | **/
91 | .cursorPointer {cursor: pointer !important;}
92 | .cursorDefault {cursor: default !important;}
93 | .cursorCrosshair {cursor: crosshair !important;}
94 | .cursorMove {cursor: move !important;}
95 | .cursorHelp {cursor: help !important;}
96 | .cursorWait {cursor: wait !important;}
97 | .cursorInherit {cursor: inherit !important;}
98 | .cursorText {cursor: text !important;}
99 | .cursorProgress {cursor: progress !important;}
100 |
101 | .cursorGrab {
102 | cursor: hand;
103 | cursor: grab;
104 | cursor: -o-grab;
105 | cursor: -ms-grab;
106 | cursor: -moz-grab;
107 | cursor: -webkit-grab;
108 | }
109 | .cursorGrabbing {
110 | cursor: grabbing;
111 | cursor: -o-grabbing;
112 | cursor: -ms-grabbing;
113 | cursor: -moz-grabbing;
114 | cursor: -webkit-grabbing;
115 | }
116 |
117 | .ellipsis {
118 | overflow: hidden;
119 | text-overflow: ellipsis;
120 | white-space: nowrap;
121 | display: inline-block !important;
122 | }
123 | .noBold {font-weight: normal!important;}
124 | .noBgHover {background: none!important;}
125 | .noRadius{
126 | border-radius: 0!important;
127 | -moz-border-radius: 0!important;
128 | -webkit-border-radius: 0!important;
129 | }
130 |
131 | /** COLORS **/
132 | .bgWhite {background: white!important;}
133 | .colorBlack {color: #000!important;}
134 |
135 | /**
136 | *** INPUTS
137 | **/
138 | .noSpin::-webkit-inner-spin-button {-webkit-appearance: none;}
139 |
140 | /**
141 | *** HR - LINHA HORIZONTAL
142 | **/
143 | hr, hr.sepDot {border: none; border-bottom: 1px solid #e5e5e5; background: none; display: block; margin: 15px 0;}
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | Locaweb Style Guide
2 | =================
3 |
4 | O Locaweb Style são os padrões de interface utilizados nos produtos da Locaweb. Ele explora um simples e flexível HTML, CSS e Javascript para as necessidades comuns na manutenção e criação dos nossos serviços.
5 |
6 | Este projeto foi criado para manter uniforme a identidade de todas as interfaces dos produtos da Locaweb. Outro objetivo importante para tal iniciativa é a uniformização do código da Locaweb, melhorando a perfomance de produção, facilitando o aprendizado de novos integrantes e agilizando a implementação de novas ideias.
7 |
8 | Com essa estrutura, a Locaweb integra de forma consistente as necessidades de interface e programação, trabalhando em um código client-side robusto e escalável. Assim mantemos a fidelidade do layout sob um código limpo e enxuto, que se adequa às necessidades dos programadores.
9 |
10 | Caso você tenha alguma sugestão para melhorar a inteligência destes códigos, entre em contato conosco. Novas idéias são sempre bem vindas.
11 | ________
12 |
13 | Instalando e contribuindo
14 | =================
15 | Mas que coisa linda você contribuir com seu código. Seja bem-vindo.
16 |
17 | Embora só utilizemos arquivos estáticos no [Locaweb Style](http://developer.locaweb.com.br/locawebstyle/), toda a estrutura é baseada em ruby/rails para compilarmos os assets. Por isso você precisa saber como rodar aplicações rails em sua máquina. Se você não sabe, [dá uma procurada no Google](http://lmgtfy.com/?q=como+rodar+rails). Se você já sabe fazer isso, basta clonar o projeto e rodar a aplicação. Rode um bundle da vida para poder instalar alguma dependência e etc…
18 |
19 | Arquivos
20 | ---
21 | Todos os arquivos que criamos estão dentro de app/assets/javascripts e app/assets/stylesheets.
22 | Os arquivos de terceiros estão dentro da pasta /vendor/assets/javascripts e /vendor/assets/stylesheets. Nestas pastas você encontra por exemplo o Bootstrap, jQuery e etc...
23 |
24 | ----
25 |
26 |
27 | Baseado em que?
28 | -----------
29 | Este projeto foi baseado em alguns frameworks já conhecidos de todos os desenvolvedores
30 |
31 | ***Bootstrap***
32 |
33 | Os estilos e comportamentos foram baseados no Bootstrap, framework criado pelo [Mark Otto](http://twitter.com/mdo/) e [Jacob Thornton](http://twitter.com/fat) para agilizar a criação de interface do Twitter.
34 |
35 | Se você não conhece, visite o github do projeto e conheça já!
36 | [Bootstrap](twitter.github.com/bootstrap/)
37 |
38 | *Curiosidade* --
39 | Dentro do Bootstrap eles usam o Normalize, que é um CSS Reset bastante completo. Ele reseta e compatibiliza alguns problemas de textos e valores padrões em elementos HTML. O Normalize foi criado por [Nicolas Gallagher](@necolas) e [Jonathan Neal](@jon_neal).
40 | [Dê uma olhada no projeto](http://necolas.github.com/normalize.css/)
41 |
42 | ***JQuery***
43 |
44 | O JQuery é o framework mais utilizado para controlar comportamentos de elementos e outras coisinhas mais. Acho que ele dispensa apresentações. [Link do projeto](http://jquery.com)
45 |
46 |
47 | ***Modernizr***
48 |
49 | O Modernizr é um script de detecção de suporte HTML5. Ele nos avisa se o browser suporta ou não suporta as novas propriedades do CSS, nos dando a possibilidade de criar fallbacks para os browsers incompatíveis. Assim fica muito fácil saber qual browser suporta ou não SVG, Canvas, RGBA, drop shadow, gradiente e tudo o mais.
50 |
51 | Ele foi criado por desenvolvedores muito renomados como [Paul Irish](http://paulirish.com/) e [Faruk Ates](http://farukat.es/). [Site do projeto](http://www.modernizr.com/)
52 |
53 | ***Select2***
54 |
55 | [Select2](http://ivaynberg.github.com/select2/) é um plugin para customização de selects (ou como muitos chamam “combo box”) muito útil e flexível. Ele é o melhor plugin para executar essa tarefa por que ele mantém a acessibilidade. Você consegue navegar via teclado e etc. Para ver como o Locaweb Style utiliza, [visite esse link](http://developer.locaweb.com.br/locawebstyle/formularios/entendendo-os-selects/).
56 |
57 | ***Masked Input***
58 |
59 | [Masked Input](http://digitalbush.com/projects/masked-input-plugin/) é um plugin para a criação de máscaras para formulários. É muito simples de utilizar. Para ver seu funcionamento, [clique aqui](http://developer.locaweb.com.br/locawebstyle/formularios/mascaras-formularios/).
60 |
61 | -----
62 |
63 | ***Changelog***
64 |
65 | Para verificar o changelog, visite a página oficial: [http://developer.locaweb.com.br/locawebstyle/introducao/changelog/](http://developer.locaweb.com.br/locawebstyle/introducao/changelog/)
66 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/modal.css:
--------------------------------------------------------------------------------
1 | /** MODAL **/
2 | .modal {
3 | padding: 10px;
4 | max-height: 590px;
5 | display: none;
6 | overflow: hidden;
7 | word-break: normal;
8 | }
9 |
10 | .modalSmall {
11 | width: 450px;
12 | margin-left: -200px;
13 | }
14 |
15 | .modal-header {
16 | border: none;
17 | padding-bottom: 0;
18 | padding: 0;
19 | margin: 0;
20 | }
21 | .modal-header .close {
22 | float: right;
23 | font-size: 20px;
24 | font-weight: bold;
25 | line-height: 20px;
26 | color: #000;
27 | text-shadow: 0 1px 0 #fff;
28 | opacity: 0.2;
29 | filter: alpha(opacity=20);
30 | }
31 |
32 | .modal-header .close:hover {
33 | color: #000;
34 | text-decoration: none;
35 | cursor: pointer;
36 | opacity: 0.4;
37 | filter: alpha(opacity=40);
38 | }
39 |
40 | .modal-header button.close {
41 | padding: 0;
42 | cursor: pointer;
43 | background: transparent;
44 | border: 0;
45 | -webkit-appearance: none;
46 | }
47 |
48 | .modal h1 {
49 | max-width: 490px;
50 | margin: 0 auto 10px;
51 | }
52 |
53 | .modal-header h3 {
54 | text-align: left;
55 | margin: 0;
56 | color: #000;
57 | padding: 0 5px 10px;
58 | font-size: 20px;
59 | font-weight: 400;
60 | border-bottom: 1px solid #EEE;
61 | font: 400 20px Ubuntu, arial, verdana, tahoma, sans-serif;
62 | }
63 |
64 | .modal-header p {padding: 0 5px;}
65 | .modal-header h3 + p {padding-top: 20px;}
66 |
67 | .modal-body {
68 | padding: 15px 5px 0;
69 | min-height: auto;
70 | margin: 0 0 15px;
71 | }
72 |
73 | .modal-body .titAlert {
74 | font: bold 18px verdana, arial, tahoma, sans-serif;
75 | padding: 15px 0;
76 | }
77 |
78 | .modal-body p {
79 | line-height: 18px;
80 | margin: 0 0 10px;
81 | }
82 |
83 | .modal-body h2:first-child {margin-top: 0;}
84 | .modal-footer .btn.close {
85 | float: none;
86 | display: inline-block;
87 | }
88 |
89 | .modal-footer {
90 | border-top: 5px solid #e5e5e5;
91 | background-color: transparent;
92 | clear: both;
93 | text-align: left;
94 | padding: 20px 0 10px 0;
95 | margin-top: 20px;
96 | }
97 | .modal-footer form {display: inline-block;}
98 | .modal-footer .btn + .btn {margin-left: 0;}
99 | .modal form {margin-bottom: 0;}
100 |
101 | .boxGray.listDetail {padding: 10px;}
102 |
103 | .listDetail {
104 | font-size: 13px;
105 | font-family: verdana, arial, tahoma, sans-serif;
106 | clear: both;
107 | margin: 0 0 20px;
108 | }
109 |
110 | .listDetail:after {
111 | content: " ";
112 | display: block;
113 | clear: both;
114 | }
115 | .listDetail.boxGray {
116 | background-color: #e2e2e2;
117 | padding: 10px 0;
118 | margin-bottom: 15px;
119 | }
120 |
121 | .listDetail li {
122 | color: #616161;
123 | float: left;
124 | list-style: none;
125 | width: 270px;
126 | padding: 5px 0;
127 | }
128 | .listDetail li.nofloat {float: none;}
129 | .listDetail strong {display: block;}
130 |
131 | .listDetail dt {
132 | width: 150px;
133 | text-align: right;
134 | font-weight: normal;
135 | clear: left;
136 | margin: 0 0 6px;
137 | color: #767676;
138 | display: inline-block;
139 | vertical-align: middle;
140 | }
141 |
142 | .listDetail dd {
143 | display: inline-block;
144 | vertical-align: middle;
145 | margin-left: 5px;
146 | font-weight: bold;
147 | margin-bottom: 6px;
148 | }
149 |
150 | .listDetail .sep {
151 | display: block;
152 | border: none;
153 | background: none;
154 | margin: 0;
155 | padding: 0;
156 | }
157 |
158 | .modal-footer .slidePrev,
159 | .modal-footer .slideNext,
160 | .modalSlider .modal-footer .btn-primary {float:left;}
161 |
162 | .modal-footer .slidePrev:before, .modal-footer .slideNext:after {
163 | content: " ";
164 | display: inline-block;
165 | width: 10px;
166 | height: 10px;
167 | }
168 | .modal-footer .slidePrev:before {background: url(img/arrowLeftGray.png) no-repeat center; margin-right: 5px;}
169 | .modal-footer .slideNext:after {background: url(img/arrowRightGray.png) no-repeat center; margin-left: 5px;}
170 |
171 | .modal-footer .btn {margin: 0 5px;}
172 |
173 | .modal.txtCenter .modal-body,
174 | .modal.txtCenter .modal-footer,
175 | .modal.txtCenter .modal-header,
176 | .modal.txtCenter .modal-header h3,
177 | .modalCenter .modal-body,
178 | .modalCenter .modal-header,
179 | .modalCenter .modal-header h3,
180 | .modalCenter .modal-footer {text-align: center;}
181 |
182 | .modal.modalCenter .btn {margin: 0;}
183 |
184 | /*** Modal Nude
185 | **** Modal sem background, transparentes, sem bordas, sem nada... Totalmente nu!
186 | ***/
187 | .modalNude {
188 | background: none;
189 | box-shadow: none;
190 | border: none;
191 | }
192 |
193 | .modalNude .close {
194 | border-radius: 50%;
195 | background-color: white;
196 | color: #666;
197 | padding: 1px 4px 4px 4px;
198 | opacity: 1;
199 | }
200 |
--------------------------------------------------------------------------------
/app/assets/javascripts/accessibility.js:
--------------------------------------------------------------------------------
1 | $(function(){
2 |
3 | accessMenu();
4 | subMenuAccess();
5 |
6 | // $('select, textarea, h1, h2, h3, h4, h5, h6, p').attr('tabindex','0');
7 | // $('input, select, .pathWay li.active > a, .btn-primary, .alert a').attr('tabindex','2');
8 | // $('.btn-primary').attr('tabindex','3');
9 | // $('.tabs li a').attr('tabindex','4');
10 | //$('#menuPrincipal li > a, #main .shortcutBox h3 a, .headerContent h1, .alert').attr('tabindex','2');
11 | $('#menuPrincipal li > a').attr('tabindex','2');
12 | $('.btn, .tabs a').attr('tabindex','3');
13 | //$('input, select, .btn.btn-primary').attr('tabindex','2');
14 |
15 | //
16 | // WAI-ARIA nos elementos
17 | //
18 |
19 | //
20 | // Menu
21 | $('#menuPrincipal').attr('role','navigation');
22 | $('#menuPrincipal li a').attr('role','menuitem');
23 | $('#menuPrincipal li > a').attr('tabindex','2');
24 |
25 |
26 | //
27 | // Elementos Geral
28 | $('.pathWays').attr('role','navigation');
29 | $('#rodape').attr('role','contentinfo');
30 | $('.alert').attr('role','alert');
31 | $('a.btn, .modal-header .close').attr('role','button');
32 | $('.boxGray').attr('role','region');
33 | $('.boxGray h2').attr('role','presentation');
34 | $('.headerPrincipal').attr('role','banner');
35 | $('.content').attr('role','main'); // criar essa classe nos produtos ??
36 | $('.sidebar').attr('role','complementary');
37 | $('input.required').attr('aria-required','true');
38 | $('.lnkCoverAll').attr('tabindex','3');
39 | //$('.shortcutBox h3 > a').attr('aria-hidden','true');
40 |
41 | $('.lnkCoverAll .btn').attr('tabindex','0');
42 |
43 |
44 | //
45 | // TABS
46 | $('.tabs').attr('role','tablist');
47 |
48 | // Inserie ARIA-SELECTED em TABS ativas
49 | $('.tabs li a').attr({
50 | role: 'tab',
51 | 'aria-selected': 'false',
52 | tabindex : 3
53 | });
54 |
55 | $('.tabs li.active a').attr('aria-selected','true');
56 | $('.tabs li.active a').attr('tabindex','3');
57 |
58 | //collapse
59 | $('.boxCollapse header').each(function(){
60 | var title = $(this).find('h4').text();
61 | var target = $(this).data('target');
62 | $(this).prepend('');
63 | })
64 | $('.collapse').find('[tabindex="3"]').attr('tabindex','0');
65 | $('.collapse.in').find('[tabindex="0"]').attr('tabindex','3');
66 |
67 | //Notificaçao
68 | $('.flash_alert, .onFocus, .modal-header .close').attr('tabindex','-1').focus();
69 |
70 | //Ir para o conteudo
71 | $('.lnkContent').on('click',function(e){
72 | e.preventDefault();
73 | $('.titleContent').attr('tabindex', '-1').focus().css('outline','none');
74 | $('html, body').animate({
75 | scrollTop: $(".titleContent").offset().top
76 | }, 500);
77 | })
78 | $('.accessibility a').focus(function(){
79 | $(this).parent().addClass('show');
80 | }).blur(function(){
81 | $(this).parent().removeClass('show');
82 | })
83 |
84 | // Selecao de servicos no header
85 | $('.dropdown-menu li:last-child a').blur(function(){
86 | $(this).parents('.dropdown-menu').siblings('.dropdown-toggle').click();
87 | $('.serviceName a').focus();
88 | })
89 |
90 | // Insere link sobre as chamadas
91 | // $('.shortcutBox > div').each(function(){
92 | // var title = $(this).find('p').text()
93 | // $(this).append( $(this).find('h3 a').clone().addClass('lnkCoverAll').attr('title',title).attr('aria-label',title).attr('tabindex', '3') );
94 | // })
95 |
96 | // Ativa visualmente as chamadas ao receber o foco do teclado
97 | $('.shortcutBox a').focus(function(){
98 | $(this).parents('div:first').addClass('active');
99 | }).blur(function(){
100 | $('.shortcutBox > div').removeClass('active')
101 | })
102 |
103 | // Ativa visualmente as chamadas ao receber o foco do teclado
104 | $('.lnkCollapse').focus(function(){
105 | $(this).parents('.boxCollapse').addClass('focus');
106 | }).blur(function(){
107 | $(this).parents('.boxCollapse').removeClass('focus');
108 | })
109 |
110 | // Menu com focus
111 | $('#menuPrincipal > ul > li > a').focus(function(){
112 | $(this).parents('li').addClass('selected');
113 | }).blur(function(){
114 | $(this).parents('li').removeClass('selected');
115 | })
116 |
117 | })
118 |
119 | function accessMenu(){
120 | // Menu acessivel, sendo lido apos o link de ir para o conteudo
121 | $('#header .limit').prepend('');
122 | $('[data-access]').each(function(){
123 | var title = $(this).attr('title');
124 | var href = $(this).attr('href');
125 | var text = $(this).text();
126 | $('.menuAccess').append('' + text + '');
127 | })
128 | }
129 |
130 | // Deixa o submenu acessivel
131 | function subMenuAccess(){
132 | $('#menuPrincipal .parent a').focus(function(){
133 | $(this).parents('.parent').addClass('focus');
134 | $(this).parents('.parent').find('ul').attr({
135 | 'aria-expanded' : true,
136 | 'aria-hidden': false
137 | })
138 | }).blur(function(){
139 | $(this).parents('.parent').removeClass('focus');
140 | $(this).parents('.parent').find('ul').attr({
141 | 'aria-expanded' : false,
142 | 'aria-hidden': true
143 | })
144 | })
145 | }
146 |
--------------------------------------------------------------------------------
/app/views/manual/instrucoes-iniciais.html:
--------------------------------------------------------------------------------
1 | O Locaweb Style são os padrões de interface utilizados nos produtos da Locaweb. Ele explora um simples e flexível HTML, CSS e Javascript para as necessidades comuns na manutenção e criação dos nossos serviços.
3 | 4 |5 | Este projeto foi criado para manter uniforme a identidade de todas as interfaces dos produtos da Locaweb. Outro objetivo importante para tal iniciativa é a uniformização do código da Locaweb, melhorando a perfomance de produção, facilitando o aprendizado de novos integrantes e agilizando a implementação de novas ideias. 6 |
7 | 8 |9 | Com essa estrutura, a Locaweb integra de forma consistente as necessidades de interface e programação, trabalhando em um código client-side robusto e escalável. Assim mantemos a fidelidade do layout sob um código limpo e enxuto, que se adequa às necessidades dos programadores. 10 |
11 | 12 |Por mera liberalidade e de forma gratuita, a LOCAWEB divulga o Locaweb Style por meio do “site” www.locaweb.style.com.br (CONFIRMAR), para uso por qualquer pessoa que tenha conhecimento técnico para tanto (usuário), mediante a simples adesão ao termo anexo. 13 |
14 |A responsabilidade pela utilização do Locaweb Style é exclusiva do usuário. O usuário desde já isenta a Locaweb da responsabilidade por qualquer ato ou fato decorrente desta utilização.
15 | 16 |Caso você tenha alguma sugestão para melhorar a inteligência destes códigos, entre em contato conosco. Novas idéias são sempre bem vindas.
17 | 18 | 19 |24 | O Locaweb Style utiliza alguns plugins já conhecidos de todos os devs e que não precisam ser inseridos novamente no projeto, a saber: 25 |
26 | 27 |Os estilos e comportamentos foram baseados no Bootstrap, framework criado pelo Mark Ott e Jacob Thornton para agilizar a criação de interface do Twitter.
29 | 30 |Se você não conhece, visite o github do projeto e conheça já!
31 | 32 |33 | Curiosidade – 34 | O Bootstrap utiliza o Normalize, que é um CSS Reset bastante completo. Ele padroniza e compatibiliza alguns problemas de textos e valores padrões em elementos do HTML. O Normalize foi criado pelo Nicolas Gallagher and Jonathan Neal. 35 | Dê uma olhada no projeto 36 |
37 | 38 |O JQuery é o framework mais utilizado para controle e manipulação de comportamentos de elementos do HTML. Acho que ele dispensa apresentações. Link do projeto
40 | 41 |A Modernizr é um script de detecção de compatibilidade e suporte dos browsers ao CSS3 e algumas features do HTML5. Ele avisa se o browser suporta ou não as novidades do W3C, possibilitando a criação de fallbacks para browsers incompatíveis. Assim fica fácil saber quais browsers suportam ou não SVG, canvas, RGBA, drop shadow, gradiente e tudo o mais.
43 | 44 |Ele foi criado por desenvolvedores renomados como Paul Irish e Faruk Ates. Site do projeto
45 | 46 |Select2 é um plugin para customização de selects (ou como muitos chamam "combo box") muito útil e flexível. Ele é o melhor plugin para executar essa tarefa por que ele mantém a acessibilidade. Você consegue navegar via teclado e etc. Para ver como o Locaweb Style utiliza, visite esse link.
48 | 49 |Masked Input é um plugin para a criação de máscaras para formulários. É muito simples de utilizar. Para ver seu funcionamento, clique aqui.
51 | 52 |Se precisar de algum plugin ou um novo adendo às funcionalidades, bem como se tiver qualquer dúvida, fale conosco que tentaremos attender a sua solicitação, por liberalidade e independentemente da assunção de qualquer responsabilidade.
54 |
55 | Antes de pular da janela, tente falar com o Diego Eis que é o Coordenador Front-end.
56 | O Ítalo Oliveira é o designer responsável.
57 | O Márcio Trindade do SAAS, também pode ajudar bastante caso der algo errado. Foi ele montou o esquema de instalação mother fucker para integrar o Locaweb Style.
58 |
Mas que coisa linda! Seja bem-vindo. Nos procure e compartilhe suas ideias. Se elas forem realmente ajudar o projeto como um todo, podendo ser implementado para todos os serviços da Locaweb, ela será muito bem vinda.
62 | 63 | -------------------------------------------------------------------------------- /app/views/manual/campos.html: -------------------------------------------------------------------------------- 1 |24 | <div class="simpleFilter sideBySide formInline"> 25 | <a href="#" class="btn btn-primary ico-plus fLeft">Criar nova lista</a> 26 | <form class="fRight"> 27 | <div class="control-group"> 28 | <label>Buscar</label> 29 | <input type="text" placeholder="Buscar pelo nome"> 30 | <input type="submit" value="Buscar" class="btn"> 31 | </div> 32 | </form> 33 | </div> 34 |35 |
| Classes usadas | 39 |Descrição | 40 |
|---|---|
| simpleFilter | 45 |Prepara uma barra com campos, botoes e ações. | 46 |
| sideBySide | 49 |Faz elementos control-group ficarem lado a lado. | 50 |
| formInline | 53 |Faz labels dos inputs ficarem ao lado dos campos de formulário. | 54 |
| control-group | 57 |Classe padrão do Bootstrap. Agrupa elemento de formulários: labels, campos, botões. | 58 |
73 | <div class="input-prepend"> 74 | <span class="add-on">@</span> 75 | <input class="span2" id="prependedInput" type="text" placeholder="Username"> 76 | </div> 77 | <div class="input-append"> 78 | <input class="span2" id="appendedInput" type="text"> 79 | <span class="add-on">.00</span> 80 | </div> 81 |82 |
Insere uma classe .add-on no elemento, formatando-o de forma que ele fique acomplado ao campo.
83 | 84 | 85 |106 | <div class="control-group"> 107 | <label>Tipo de autenticação:</label> 108 | <div class="controls"> 109 | <label class="control-label"> 110 | <input type="radio" data-target="#authOpt" data-toggle="show" checked="checked"> Autenticado 111 | </label> 112 | <label class="control-label"> 113 | <input type="radio" data-target="#authOpt" data-toggle="hide"> Não autenticado 114 | </label> 115 | <div id="authOpt" class="collapse"> 116 | <div class="boxGrayOpt formInline"> 117 | <label><input type="checkbox" value="1"> CPF</label> 118 | <label><input type="checkbox" value="1"> Endereço</label> 119 | <label><input type="checkbox" value="1"> CEP</label> 120 | </div> 121 | </div> 122 | </div> 123 | </div> 124 |125 | 126 | <% end %> 127 | 128 |
O layout é baseado em um grid criado por nós por isso temos alguma flexibilidade para a criação das estruturas utilizadas nos serviços.
3 |Em telas com uma coluna, onde normalmente não usamos uma sidebar, o conteúdo tem a largura total do espaço, é necessário inserir uma classe para que o grid funcione perfeitamente.
4 |Nós precisamos gerenciar diversas estruturas, tanto estruturas de layout quanto as estruturas internas dos layouts. Ter um layout baseado por grids ajuda a manter a padronização e uniformização de todos os serviços.
6 |Abaixo segue um exemplo com as grids e suas respectivas classes.
7 |O grid sempre deve ter uma estrutura de hierarquia correta de elementos. Um elemento com a classe .row deve envolver os elementos que dividirão a estrutura, que terão classes como .span2, span3, .span4 até span16.
8 |span16
54 |span1
58 |span15
61 |span2
65 |span14
68 |span3
72 |span13
75 |span4
79 |span12
82 |span5
87 |span11
90 |span6
94 |span10
97 |span7
101 |span9
104 |span8
108 |span8
111 |Locaweb Style - Padrões de código e UI
18 |