Git Product home page Git Product logo

Comments (6)

lucaslarroche avatar lucaslarroche commented on May 17, 2024 1

This is a deliberate choice.
Typography, Container and Cards provide responsive sizes and margins.

You can disable all responsive spacings in the config file (line 16).

from pico.

bard avatar bard commented on May 17, 2024 1

I felt the same margins on large screens, and since I wanted a CSS solution without build steps, the mention of SCSS almost made me look for a different micro framework. It turned out however that this can be easily achieved with CSS variables. Leaving this here in case someone stumbles on the same issue:

      @media (min-width: 1200px) {
        body > footer,
        body > header,
        body > main,
        section {
          --block-spacing-vertical: calc(var(--spacing) * 2); /* default is var(--spacing) * 4 */
        }
      }

from pico.

prologic avatar prologic commented on May 17, 2024

I guess my argument is that the spacings are too much for larger devices. The responsiveness is good but you end up wasting a lot of space? Maybe it's just me :)

from pico.

lucaslarroche avatar lucaslarroche commented on May 17, 2024

I this case, you can fine tune the "spacing factor" in pico in the config file (line 135). 🙂

For example:

$spacing-factor: (
  xs: 1,
  sm: 1.125,
  md: 1.25,
  lg: 1.375,
  xl: 1.5
);

from pico.

lucaslarroche avatar lucaslarroche commented on May 17, 2024

Here is an example scss file to compile your own pico version.

from pico.

prologic avatar prologic commented on May 17, 2024

I think I ended up doing this actually and forked (even though I know nothing about sass!) Thanks :)

from pico.

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.