![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2024
Device: none
|
Sigil & Bootstrap
Are there any instructions or guidelines for how to include Bootstrap in epubs made in Sigil?
Yes, I understand that some readers may not support it, but I would still like to know how to do it. Thank you in advance! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You might start by clueing us in as to what "Bootstrap" might be.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2024
Device: none
|
Bootstrap 5 is the newest version of Bootstrap, which is the most popular HTML, CSS, and JavaScript framework for creating responsive, mobile-first websites.
https://www.w3schools.com/bootstrap5/index.php I did find an earlier thread that mentioned it, but that was like from 5 or 6 years ago. |
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
An epub is not a website in a "box" as epubs require OPF xml documents for control and the Nav and the code to produce is xhtml not html. That said Sigil supports css and javascript (when enabled in its Preferences) so you could try playing around with it. But the number of javascript related e-readers are quite limited.
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 808
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
|
The previous thread is still relevant. No reader will handle all the capabilities of bootstrap, so most of its features won't be useful.
When creating ebooks one of the guiding principles is KISS (Keep It Simple Stupid!) and using bootstrap for this is the exact opposite. But if you insist... You can easily prepare the file itself. 1. download the latest version of booststrap 2. extract the two files (bootstrap.min.css and bootstrap.min.js) 3. add them to Sigil 4. add references to these files in the xhtml file. It will look simpler like this: Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <head> <title></title> <link href="../Styles/bootstrap.min.css" type="text/css" rel="stylesheet"/> </head> <body> <script src="../Misc/bootstrap.min.js"></script> </body> </html> |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2024
Device: none
|
I am interested in some of its built in CSS formatting possibilities, not the javascript side of things. (i.e. short-cutting have to enter all those CSS styles manually...)
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2024
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
So all it is a set of pre-done css and pre-done javascript? Why not just create your own css template if not interested in the javascript part.
|
![]() |
![]() |
![]() |
#9 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2024
Device: none
|
Quote:
![]() Plus, this way, I can see what elements will work to see how far I can push thing (one main thing is styling tables and such, since I am planning on putting the table-top rpg I have written into epub format to give gamers another method of utilizing the game. |
|
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
So many device vendors think they are Burger King ('Have it our way' ![]() Just read a bunch of more recent posts (device forum, Calibre and Sigil) and you will see: does not work on XYZ ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
./setup.py bootstrap has been successfully passed | cuser | Calibre | 9 | 12-02-2020 10:03 AM |
Recommend an ePub3 using Bootstrap? | SigilBear | ePub | 23 | 02-16-2019 01:19 PM |
Using Bootstrap with Epubs | SigilBear | ePub | 5 | 02-06-2017 08:59 PM |
Comparison Sigil 0.8.7 & Sigil 0.9.1 | r2d256 | Sigil | 15 | 12-03-2015 02:38 PM |
iplinux-bootstrap failure | Nocturnal | OpenInkpot | 1 | 04-26-2010 03:57 AM |