Comments (6)
I solved it with display: table
in the css on the ul ol
. I have to tweak it a little bit more, but now it's working.
from littlefoot.
Have you tried setting the styles for the tooltip to position: absolute
? You may need to wrap it in a container with position: relative
.
from littlefoot.
As for integrating with Jekyll, can you be more specific about which errors you're getting? Bear in mind that moving files is not enough, you'll need to call the littlefoot()
(or littlefoot.default()
) function somewhere once the document has finished loading.
from littlefoot.
Have you tried setting the styles for the tooltip to position: absolute? You may need to wrap it in a container with position: relative.
The tooltip has a position: relative
and it has a wrapper with a position: absolute
.
The problem here is related to this.
- https://stackoverflow.com/questions/710158/why-do-my-list-item-bullets-overlap-floating-elements
- https://stackoverflow.com/questions/16041229/css-overflowhidden-with-floats
In a few words, when you have a list of items and you have to have an object —typically an image— floating in the left, the bullets or numbers of the list are or over the object or really touching it, which it's really ugly and lost the sense of the list. So to fix this you have to set overflow:hidden
on the list.
That makes the bubble to get buried...
I think that solution could be something similar to this, but I don't know enough JS.
I was wondering if this behavior also happen with littlefoot.
can you be more specific about which errors you're getting? Bear in mind that moving files is not enough, you'll need to call the littlefoot() (or littlefoot.default()) function somewhere once the document has finished loading.
I don't get any error... it is just not working.
littlefoot.min.js
is atassets/js/plugins/littlefoot.min.js
_littlefoot-button.scss
,_littlefoot-content.scss
,_littlefoot-mixins.scss
,_littlefoot-variables.scss
andlittlefoot.scss
are located in_sass/minimal-mistakes/vendor/littlefoot
. and I importlittlefoot.scss
in the main scss of the template@import "minimal-mistakes/vendor/littlefoot/littlefoot";
.- at the
package.json
at the
"scripts": {
"uglify": "uglifyjs assets/js/plugins/littlefoot.min.js assets/js/_main.js -c -m -o assets/js/main.min.js",
...
- at the
_main.js
I set
var littlefoot = require('littlefoot').default
littlefoot()
- and I build main.min.js with
npm run build:js
.
What am I missing?
from littlefoot.
Just in case I've also set at header and footer:
<script type="text/javascript">
var littlefoot = require('littlefoot').default
littlefoot()
</script>
from littlefoot.
For the first problem, I haven't yet tested littlefoot for that use case, I'll give it a shot later this week. It's possible it will have the same issues as Bigfoot as the CSS was adapted from that project, and I doubt there's anything in the JavaScript right now capable of fixing an issue introduced by styles.
As for setup, I don't see anything obviously incorrect with the examples you provided, it would be helpful to diagnose a fully configured repository. Anyone familiar with Jekyll care to chip in?
from littlefoot.
Related Issues (20)
- Reader view HOT 1
- Which version is the latest stable release ? HOT 2
- Footer Disappearing HOT 3
- Sporadic formatting issues (rendered text too narrow) HOT 9
- Exclude postcss.config.js from package HOT 1
- MathJax not parsed with littlefoot HOT 12
- Accessibility issues HOT 9
- Enable/Disable the "Print Only" for the end of post Footnote list HOT 4
- Accessibility: improve button labelling HOT 1
- Accessibility: improve button contrast HOT 5
- API: popover hidden callback
- Accessibility: add automated tests HOT 1
- Popover animation work only the first time HOT 2
- Footnote buttons appear above the popover on small screens HOT 6
- Action Required: Fix Renovate Configuration
- Footnotes are broken on smartphone in landscape mode HOT 6
- Backlinks are broken HOT 5
- Dependency Dashboard
- Problem when footnotes are at different articles HOT 1
- Title tooltip on footnote button hover partially blocks footnote tooltip HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from littlefoot.