mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 08:45:06 -04:00
Add padding to container for all viewports
This commit is contained in:
parent
9847f55020
commit
b0dca0677f
2 changed files with 90 additions and 91 deletions
|
@ -24,7 +24,7 @@
|
|||
<link rel="manifest" href="manifest.json">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github-dark.min.css">
|
||||
<!-- Pico.css -->
|
||||
<link rel="stylesheet" href="pico.css" id="theme-color-ss">
|
||||
<link rel="stylesheet" href="pico.min.css" id="theme-color-ss">
|
||||
<link rel="stylesheet" href="pico.colors.min.css">
|
||||
<!--
|
||||
Yohn's Simple CSS Class helpers
|
||||
|
@ -238,7 +238,7 @@
|
|||
</footer>
|
||||
</article>
|
||||
<hr>
|
||||
<article id="tables">
|
||||
<iv id="tables">
|
||||
<header>
|
||||
<h2>Tables</h2>
|
||||
<h6 class="fw-n">Striped rows require .striped class</h6>
|
||||
|
@ -257,6 +257,7 @@
|
|||
Hidden Rows</button></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="overflow-auto">
|
||||
<table class="striped" id="hidden-row-example">
|
||||
<caption> Solar System Planets </caption>
|
||||
<thead>
|
||||
|
@ -335,6 +336,7 @@
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</article>
|
||||
<hr>
|
||||
<article id="tabs">
|
||||
|
|
|
@ -9,24 +9,21 @@
|
|||
#{$parent-selector} .container,
|
||||
#{$parent-selector} .container-fluid {
|
||||
width: 100%;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(#{$css-var-prefix}block-spacing-horizontal);
|
||||
}
|
||||
|
||||
#{$parent-selector} .container {
|
||||
$first-breakpoint: true;
|
||||
//$first-breakpoint: true;
|
||||
@each $key, $values in $breakpoints {
|
||||
@if $values {
|
||||
@media (min-width: map.get($values, "breakpoint")) {
|
||||
max-width: map.get($values, "viewport");
|
||||
@if $first-breakpoint {
|
||||
$first-breakpoint: false;
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
} @else {
|
||||
padding-right: var(#{$css-var-prefix}spacing);
|
||||
padding-left: var(#{$css-var-prefix}spacing);
|
||||
}
|
||||
//@if $first-breakpoint {
|
||||
// $first-breakpoint: false;
|
||||
// padding-right: 0;
|
||||
// padding-left: 0;
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue