You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LEEME.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -254,7 +254,7 @@ Es decir:
254
254
255
255
## Themes
256
256
257
-
Este paquete fue creado pensando que hay muchos frameworks de CSS por ahí, y aunque sólo Twitter Bootstrap es incluído por defecto, planeamos agregar más paquetes en el futuro (y también invitamos a colaborar).
257
+
Este paquete fue creado pensando que hay muchos frameworks de CSS por ahí, y aunque Bootstrap (versión 3 y 4) y Bulma (version 0.7.2) son incluídos por defecto, planeamos agregar más paquetes en el futuro (y también invitamos a colaborar).
258
258
259
259
Puedes crear tus propios temas o modificar el existente con facilidad:
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,7 +261,7 @@ i.e.:
261
261
262
262
## Themes
263
263
264
-
There are a lot of CSS frameworks out there, this package was created with that in mind, and even though only Twitter Bootstrap is included out of the box, we plan to add more packages in the future (we also invite you to collaborate).
264
+
There are a lot of CSS frameworks out there, this package was created with that in mind, and even though *Bootstrap* (version 3 and 4) and *Bulma* are included out of the box, we plan to add more packages in the future (we also invite you to collaborate).
265
265
266
266
But you can also create your own themes with ease, or modify the existing one:
Copy file name to clipboardExpand all lines: docs/es/themes.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,22 @@
1
1
# Temas
2
2
3
-
Este paquete fue creado teniendo en cuenta que hay un montón de frameworks de CSS por ahí (de todo tipo) y aunque *Twitter Bootstrap* sea incluido por defecto, se planea agregar más temas en el futuro (te invitamos a colaborar). También puedes crear temas propios, publicarlos y personalizarlos, si es necesario.
3
+
Este paquete fue creado teniendo en cuenta que hay un montón de frameworks de CSS por ahí (de todo tipo) y aunque *Bootstrap* (versión 3 y 4) y *Bulma* sean incluidos por defecto, se planea agregar más temas en el futuro (te invitamos a colaborar).
4
+
5
+
## Cambiar el tema
6
+
7
+
El tema Bootstrap 4 theme está definido por defecto, pero tu puedes ir a `config/html.php` y cambiar el valor del tema:
8
+
```php
9
+
//config/html.php
10
+
11
+
return [
12
+
'theme' => 'bulma',
13
+
];
14
+
```
15
+
>Nota: `bootstrap` es para Bootstrap versión 3, `bootstrap4` es para Bootstrap versión 4 and `bulma` es para Bulma CSS versión 0.7.2.
16
+
17
+
## Personalización
18
+
19
+
También puedes crear temas propios, publicarlos y personalizarlos, si es necesario.
4
20
5
21
Para cambiar o personalizar un theme, simplemente ejecuta:
6
22
@@ -22,7 +38,7 @@ Después crea una carpeta en `resources/views/themes/` llamada 'custom-theme', p
22
38
23
39
Si es necesario puedes cambiar todas las plantillas dentro de ese directorio o agregar nuevas.
24
40
25
-
## Personalizar plantillas individuales
41
+
###Personalizar plantillas individuales
26
42
27
43
Quizás no necesites crear o usar un nuevo tema y simplemente necesitas sustituir una plantilla determinada; esto se puede hacer también, debido a que la mayoría de los métodos lo soporta, por ejemplo:
28
44
@@ -38,10 +54,14 @@ Quizás no necesites crear o usar un nuevo tema y simplemente necesitas sustitui
## Personalizar plantillas por tipo de campo (fieldBuilder)
57
+
###Personalizar plantillas por tipo de campo (fieldBuilder)
42
58
43
59
¿Estás usando un framework de CSS que requiere un markup diferente para un tipo de campo determinado? No te preocupes, solo lee la sección de "Personalizar por tipo" de la [página field builder](field-builder.md)
44
60
45
61
## Pull requests
46
62
47
-
Si creas un tema para un framework de CSS popular, puedes colaborar haciendo fork de este repositorio y crear un pull request, recuerda guardar las plantillas en la carpeta `themes/`. Gracias.
63
+
Si creas un tema para un framework de CSS popular, puedes colaborar haciendo fork de este repositorio y crear un pull request, recuerda guardar las plantillas en la carpeta `themes/` y actualizar el archivo `config.php`.
64
+
65
+
Puedes probar tu tema usando este repositorio: [https://github.com/StydeNet/html-integration-tests](https://github.com/StydeNet/html-integration-tests).
Copy file name to clipboardExpand all lines: docs/themes.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,22 @@
1
1
# Themes
2
2
3
-
There are a lot of CSS (and all kind of) frameworks out there, this package was created with that in mind, and even though *Bootstrap*is included _out of the box_, we plan to add more themes in the future (we also invite you to collaborate). You can also create your own themes, publish and customize them if you need to.
3
+
There are a lot of CSS (and all kind of) frameworks out there, this package was created with that in mind, and even though *Bootstrap*(version 3 and 4) and *Bulma* are included _out of the box_, we plan to add more themes in the future (we also invite you to collaborate).
4
4
5
-
To change or customize a theme, simply run:
5
+
## Change the theme
6
+
7
+
The Bootstrap 4 theme is set by default, but you can go to `config/html.php` and change the theme value:
8
+
```php
9
+
//config/html.php
10
+
11
+
return [
12
+
'theme' => 'bulma',
13
+
];
14
+
```
15
+
>Note: `bootstrap` is for Bootstrap version 3, `bootstrap4` is for Bootstrap version 4 and `bulma` is for Bulma CSS version 0.7.2.
16
+
17
+
## Customize
18
+
19
+
You can also create your own themes, publish and customize them if you need to. To change or customize a theme, simply run:
6
20
7
21
```bash
8
22
php artisan vendor:publish
@@ -22,7 +36,7 @@ Then create a folder in `resources/views/themes/` called 'custom-theme', to save
22
36
23
37
Then you can change all the templates within that directory or add new ones if you need to.
24
38
25
-
## Customize individual templates
39
+
###Customize individual templates
26
40
27
41
Maybe you don't need to create or use a new theme and you just simply need to override a particular template, you can do this too, since most methods support that, for example:
28
42
@@ -38,10 +52,14 @@ Maybe you don't need to create or use a new theme and you just simply need to ov
## Customize templates by field type (field builder)
55
+
###Customize templates by field type (field builder)
42
56
43
57
Are you using a CSS framework that requires a different markup for a particular field type? Don't worry, just read the "Customize by type" section of the [ field builder page](field-builder.md)
44
58
45
59
## Pull requests
46
60
47
-
If you create a theme for a popular CSS framework, you can collaborate by forking this repository, and creating a pull request, remember to store the templates in the `themes/` folder. Thank you.
61
+
If you create a theme for a popular CSS framework, you can collaborate by forking this repository, and creating a pull request, remember to store the templates in the `themes/` folder and update the `config.php` file.
62
+
63
+
You can prove your theme using this repository [https://github.com/StydeNet/html-integration-tests](https://github.com/StydeNet/html-integration-tests)
0 commit comments