mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 18:56:15 -04:00
style: update breakpoints
This commit is contained in:
parent
de6ba10757
commit
d7d11308af
11 changed files with 88 additions and 9 deletions
|
@ -435,6 +435,11 @@ progress,
|
|||
--pico-font-size: 125%;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
:root {
|
||||
--pico-font-size: 131.25%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
body > header,
|
||||
|
@ -468,6 +473,14 @@ progress,
|
|||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 4);
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
body > header,
|
||||
body > main,
|
||||
body > footer,
|
||||
section {
|
||||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 4.5);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
article {
|
||||
|
@ -489,6 +502,11 @@ progress,
|
|||
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 2);
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
article {
|
||||
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 2.25);
|
||||
}
|
||||
}
|
||||
|
||||
dialog > article {
|
||||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2);
|
||||
|
@ -691,6 +709,13 @@ body > footer {
|
|||
max-width: 1200px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
body > header,
|
||||
body > main,
|
||||
body > footer {
|
||||
max-width: 1450px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Section
|
||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.classless.min.css
vendored
2
css/pico.classless.min.css
vendored
File diff suppressed because one or more lines are too long
23
css/pico.css
23
css/pico.css
|
@ -437,6 +437,11 @@ progress,
|
|||
--pico-font-size: 125%;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
:root {
|
||||
--pico-font-size: 131.25%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
body > header,
|
||||
|
@ -470,6 +475,14 @@ progress,
|
|||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 4);
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
body > header,
|
||||
body > main,
|
||||
body > footer,
|
||||
section {
|
||||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 4.5);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
article {
|
||||
|
@ -491,6 +504,11 @@ progress,
|
|||
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 2);
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
article {
|
||||
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 2.25);
|
||||
}
|
||||
}
|
||||
|
||||
dialog > article {
|
||||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2);
|
||||
|
@ -695,6 +713,11 @@ body > footer {
|
|||
max-width: 1200px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
.container {
|
||||
max-width: 1450px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Section
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -435,6 +435,11 @@ progress,
|
|||
--pico-font-size: 125%;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
:root {
|
||||
--pico-font-size: 131.25%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
body > header,
|
||||
|
@ -468,6 +473,14 @@ progress,
|
|||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 4);
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
body > header,
|
||||
body > main,
|
||||
body > footer,
|
||||
section {
|
||||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 4.5);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
article {
|
||||
|
@ -489,6 +502,11 @@ progress,
|
|||
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 2);
|
||||
}
|
||||
}
|
||||
@media (min-width: 1536px) {
|
||||
article {
|
||||
--pico-block-spacing-horizontal: calc(var(--pico-spacing) * 2.25);
|
||||
}
|
||||
}
|
||||
|
||||
dialog > article {
|
||||
--pico-block-spacing-vertical: calc(var(--pico-spacing) * 2);
|
||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.fluid.classless.min.css
vendored
2
css/pico.fluid.classless.min.css
vendored
File diff suppressed because one or more lines are too long
2
css/pico.min.css
vendored
2
css/pico.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -57,7 +57,7 @@ $breakpoints: map.deep-merge(
|
|||
root-font-size: 112.5%,
|
||||
),
|
||||
|
||||
// Large (desktops)
|
||||
// Large
|
||||
// Font size: 19px
|
||||
lg:
|
||||
(
|
||||
|
@ -66,13 +66,22 @@ $breakpoints: map.deep-merge(
|
|||
root-font-size: 118.75%,
|
||||
),
|
||||
|
||||
// Extra large (large desktops)
|
||||
// Extra large
|
||||
// Font size: 20px
|
||||
xl:
|
||||
(
|
||||
breakpoint: 1280px,
|
||||
viewport: 1200px,
|
||||
root-font-size: 125%,
|
||||
),
|
||||
|
||||
// Extra extra large
|
||||
// Font size: 21px
|
||||
xxl:
|
||||
(
|
||||
breakpoint: 1536px,
|
||||
viewport: 1450px,
|
||||
root-font-size: 131.25%,
|
||||
)
|
||||
),
|
||||
$breakpoints
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
@each $key, $values in $breakpoints {
|
||||
@if $values {
|
||||
@media (min-width: map.get($values, "breakpoint")) {
|
||||
$multiplier: 1;
|
||||
$multiplier: 2;
|
||||
@if $key == "sm" {
|
||||
$multiplier: 2.5;
|
||||
} @else if $key == "md" {
|
||||
|
@ -103,6 +103,8 @@
|
|||
$multiplier: 3.5;
|
||||
} @else if $key == "xl" {
|
||||
$multiplier: 4;
|
||||
} @else if $key == "xxl" {
|
||||
$multiplier: 4.5;
|
||||
}
|
||||
|
||||
#{$✨}block-spacing-vertical: calc(var(#{$✨}spacing) * $multiplier);
|
||||
|
@ -127,6 +129,8 @@
|
|||
$multiplier: 1.75;
|
||||
} @else if $key == "xl" {
|
||||
$multiplier: 2;
|
||||
} @else if $key == "xxl" {
|
||||
$multiplier: 2.25;
|
||||
}
|
||||
|
||||
#{$✨}block-spacing-horizontal: calc(var(#{$✨}spacing) * $multiplier);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue