{"id":16074040,"url":"https://github.com/adrienpoly/stylesheets","last_synced_at":"2025-04-04T12:41:39.818Z","repository":{"id":92447755,"uuid":"103708686","full_name":"adrienpoly/stylesheets","owner":"adrienpoly","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-15T23:18:01.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T22:31:06.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrienpoly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-15T23:08:24.000Z","updated_at":"2017-09-15T23:08:40.000Z","dependencies_parsed_at":"2023-06-01T03:00:15.265Z","dependency_job_id":null,"html_url":"https://github.com/adrienpoly/stylesheets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienpoly%2Fstylesheets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienpoly%2Fstylesheets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienpoly%2Fstylesheets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienpoly%2Fstylesheets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrienpoly","download_url":"https://codeload.github.com/adrienpoly/stylesheets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182337,"owners_count":20897379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T08:41:11.687Z","updated_at":"2025-04-04T12:41:39.793Z","avatar_url":"https://github.com/adrienpoly.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"These stylesheets are based on [Le Wagon's Rails StyleSheets](https://github.com/lewagon/rails-stylesheets)\n\n## Setup\n\nEnsure you have the following gems in your Rails `Gemfile`\n\n```ruby\n# Gemfile\ngem 'bootstrap-sass'\ngem 'font-awesome-sass'\ngem 'simple_form'\ngem 'autoprefixer-rails'\n```\n\nIn your terminal, generate SimpleForm Bootstrap config.\n\n```bash\n$ bundle install\n$ rails generate simple_form:install --bootstrap\n```\n\nThen replace Rails' stylesheets by Le Wagon's stylesheets:\n\n```\n$ rm -rf app/assets/stylesheets\n$ curl -L https://github.com/lewagon/stylesheets/archive/master.zip \u003e stylesheets.zip\n$ unzip stylesheets.zip -d app/assets \u0026\u0026 rm stylesheets.zip \u0026\u0026 mv app/assets/rails-stylesheets-master app/assets/stylesheets\n```\n\nDon't forget the sprockets directives in `assets/javascripts/application.js`\n\n```javascript\n// app/assets/javascripts/application.js\n\n//= require jquery\n//= require jquery_ujs\n//= require bootstrap-sprockets\n//= require_tree .\n```\n\nAnd the viewport in the layout\n\n```html\n\u003c!-- app/views/layouts/application.html.erb --\u003e\n\u003chead\u003e\n  \u003c!-- Add these line for detecting device width --\u003e\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003e\n  \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\"\u003e\n\u003c/head\u003e\n```\n\n## Adding new `.scss` files\n\nLook at your main `application.scss` file to see how SCSS files are imported.\n\n```scss\n// Graphical variables\n@import \"config/variables\";\n@import \"config/bootstrap_variables\";\n@import \"config/mixins\";\n\n// External libraries\n@import \"bootstrap\";\n@import \"font-awesome-sprockets\";\n@import \"font-awesome\";\n@import \"vendor/index\";\n\n// Your CSS\n@import \"layout/index\";\n@import \"components/index\";\n@import \"pages/index\";\n```\n\nFor every folder (**`components`**, **`layout`**, **`pages`**, **`vendor`**), there is one `_index.scss` partial which is responsible for importing all the other partials of its folder.\n\n**Example 1**: Let's say you add a new `_contact.scss` file in **`pages`** then modify `pages/_index.scss` as:\n\n```scss\n// pages/_index.scss\n@import \"home\";\n@import \"contact\";\n```\n\n**Example 2**: Let's say you add a new `_sidebar.scss` file in **`layout`** then modify `layout/_index.scss` as:\n\n```scss\n// layout/_index.scss\n@import \"base\";\n@import \"utilities\";\n@import \"footer\";\n@import \"navbar\";\n@import \"sidebar\";\n```\n\n## Navbar template\n\nOur `layout/_navbar.scss` code works well with our home-made ERB template which you can find\n\n- [version without login](https://github.com/lewagon/awesome-navbars/blob/master/templates/_navbar_wagon_without_login.html.erb).\n- [version with login](https://github.com/lewagon/awesome-navbars/blob/master/templates/_navbar_wagon.html.erb).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrienpoly%2Fstylesheets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrienpoly%2Fstylesheets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrienpoly%2Fstylesheets/lists"}