mirror of
https://github.com/picocss/pico.git
synced 2025-02-24 00:39:20 -05:00
This reverts commit 6a6d67dbab230a058b494f6a468ed5f4423f1c4c, reversing changes made to ba4bd765d8fb28466d816c098b03476754c13fc3.
50 lines
1.0 KiB
SCSS
50 lines
1.0 KiB
SCSS
/**
|
|
* Docs: Main (Grid)
|
|
*/
|
|
|
|
// Config
|
|
$navHeight: 3.5rem;
|
|
|
|
// Main grid
|
|
body > main {
|
|
padding-top: calc(var(--block-spacing-vertical) + #{$navHeight});
|
|
|
|
@if map-get($breakpoints, "lg") {
|
|
@media (min-width: map-get($breakpoints, "lg")) {
|
|
--block-spacing-horizontal: calc(var(--spacing) * 1.75);
|
|
grid-column-gap: calc(var(--block-spacing-horizontal) * 3);
|
|
display: grid;
|
|
grid-template-columns: 200px auto;
|
|
}
|
|
}
|
|
|
|
@if map-get($breakpoints, "xl") {
|
|
@media (min-width: map-get($breakpoints, "xl")) {
|
|
--block-spacing-horizontal: calc(var(--spacing) * 2);
|
|
}
|
|
}
|
|
|
|
> aside,
|
|
div[role="document"] {
|
|
min-width: 0;
|
|
}
|
|
}
|
|
|
|
// External links
|
|
div[role="document"] section a[href*="//"]:not([href*="https://picocss.com"]):not([role])::after
|
|
{
|
|
display: inline-block;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
background-image: var(--icon-external);
|
|
background-position: top center;
|
|
background-size: 0.66rem auto;
|
|
background-repeat: no-repeat;
|
|
content: "";
|
|
}
|
|
|
|
// Embedded SVG
|
|
svg {
|
|
height: 1rem;
|
|
}
|