Comments (6)
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.
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.
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.
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.
Here is an example scss file to compile your own pico version.
from pico.
I think I ended up doing this actually and forked (even though I know nothing about sass!) Thanks :)
from pico.
Related Issues (20)
- v2/docs: loading link example HOT 1
- aria-busy with tooltip unexpected rendering HOT 2
- Form group with hidden input (Pico v2) HOT 2
- Details has a temporary visual gap after opening
- v2: Explicitly specifying the implicit role of a fieldset element changes the styling HOT 3
- Forced dark theme doesn't work on HTML elements. HOT 4
- React Toastify Not Working properly
- v2: the selected options of an unfocussed select multiple element are not readable in dark mode HOT 5
- Missing Theme Builder HOT 2
- Remove "cursor: default" HOT 2
- v2: Card footers are not aligned in grid HOT 1
- Vertical distance between sections is too small compared to spacing between h3 h4, etc. HOT 3
- Use `button` instead of `a` for closing modals HOT 8
- Cards (`<article>` tags) have poor contrast with background in light mode HOT 2
- Grid with inputs has incorrect gap on mobile devices HOT 3
- Modal component is relying too much on Javascript HOT 9
- Input shadows are offset incorrectly in Firefox HOT 2
- Unable to use on Hugo v0.122.0 via Dart Sass HOT 5
- SassError: "This variable was not declared with !default in the @used module" HOT 3
- v2: inconsistent switch states HOT 5
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 pico.