Add custom setting for foundation variables.
This commit is contained in:
@@ -17,6 +17,7 @@ Para adaptarlo puedes hacerlo a través de los directorios que están en custom
|
||||
Aparte de estos directorios también cuentas con ciertos ficheros para:
|
||||
|
||||
* `app/assets/stylesheets/custom.css`
|
||||
* `app/assets/stylesheets/_custom_settings.css`
|
||||
* `app/assets/javascripts/custom.js`
|
||||
* `Gemfile_custom`
|
||||
* `config/application.custom.rb`
|
||||
@@ -67,6 +68,11 @@ Si quieres cambiar algun selector CSS (de las hojas de estilo) puedes hacerlo en
|
||||
background: red;
|
||||
}
|
||||
```
|
||||
Si quieres cambiar alguna variable de foundation puedes hacerlo en el fichero `app/assets/stylesheets/_custom_settings.scss`. Por ejemplo para cambiar el color general de la aplicación puedes hacerlo agregando:
|
||||
|
||||
```css
|
||||
$brand: #446336;
|
||||
```
|
||||
|
||||
Usamos un preprocesador de CSS, [SASS, con la sintaxis SCSS](http://sass-lang.com/guide).
|
||||
|
||||
|
||||
5
app/assets/stylesheets/_custom_settings.scss
Normal file
5
app/assets/stylesheets/_custom_settings.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
// Overrides and adds customized foundation settings in this file
|
||||
// Read more on documentation:
|
||||
// * English: https://github.com/consul/consul/blob/master/CUSTOMIZE_EN.md#css
|
||||
// * Spanish: https://github.com/consul/consul/blob/master/CUSTOMIZE_ES.md#css
|
||||
//
|
||||
@@ -1,6 +1,7 @@
|
||||
@charset 'utf-8';
|
||||
|
||||
@import 'settings';
|
||||
@import 'custom_settings';
|
||||
@import 'foundation';
|
||||
|
||||
@include foundation-global-styles;
|
||||
|
||||
Reference in New Issue
Block a user