Git Product home page Git Product logo

Comments (6)

luispuerto avatar luispuerto commented on June 28, 2024 1

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.

goblindegook avatar goblindegook commented on June 28, 2024

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.

goblindegook avatar goblindegook commented on June 28, 2024

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.

luispuerto avatar luispuerto commented on June 28, 2024

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.

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 at assets/js/plugins/littlefoot.min.js
  • _littlefoot-button.scss, _littlefoot-content.scss, _littlefoot-mixins.scss, _littlefoot-variables.scss and littlefoot.scss are located in _sass/minimal-mistakes/vendor/littlefoot. and I import littlefoot.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.

luispuerto avatar luispuerto commented on June 28, 2024

Just in case I've also set at header and footer:

<script type="text/javascript">
  var littlefoot = require('littlefoot').default

  littlefoot()
</script>

from littlefoot.

goblindegook avatar goblindegook commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.