mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 01:26:13 -04:00
Merge branch 'dev' of https://github.com/picocss/pico into dev
This commit is contained in:
commit
002008996d
31 changed files with 3293 additions and 89 deletions
|
@ -19,10 +19,9 @@
|
||||||
--typography-spacing-vertical: 1.5rem;
|
--typography-spacing-vertical: 1.5rem;
|
||||||
--block-spacing-vertical: calc(var(--spacing) * 2);
|
--block-spacing-vertical: calc(var(--spacing) * 2);
|
||||||
--block-spacing-horizontal: var(--spacing);
|
--block-spacing-horizontal: var(--spacing);
|
||||||
--grid-spacing-vertical: 0;
|
|
||||||
--grid-spacing-horizontal: var(--spacing);
|
|
||||||
--form-element-spacing-vertical: 0.75rem;
|
--form-element-spacing-vertical: 0.75rem;
|
||||||
--form-element-spacing-horizontal: 1rem;
|
--form-element-spacing-horizontal: 1rem;
|
||||||
|
--form-label-font-weight: var(--font-weight);
|
||||||
--transition: 0.2s ease-in-out;
|
--transition: 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
|
@ -981,6 +980,7 @@ button[disabled],
|
||||||
input[type=submit][disabled],
|
input[type=submit][disabled],
|
||||||
input[type=button][disabled],
|
input[type=button][disabled],
|
||||||
input[type=reset][disabled],
|
input[type=reset][disabled],
|
||||||
|
a[role=button]:not([href]),
|
||||||
a[role=button][disabled] {
|
a[role=button][disabled] {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -1081,6 +1081,7 @@ label,
|
||||||
fieldset legend {
|
fieldset legend {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: calc(var(--spacing) * 0.25);
|
margin-bottom: calc(var(--spacing) * 0.25);
|
||||||
|
font-weight: var(--form-label-font-weight, var(--font-weight));
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio]),
|
input:not([type=checkbox]):not([type=radio]),
|
||||||
|
|
File diff suppressed because one or more lines are too long
1
css/pico.classless.min.css
vendored
1
css/pico.classless.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
12
css/pico.css
12
css/pico.css
|
@ -23,6 +23,7 @@
|
||||||
--grid-spacing-horizontal: var(--spacing);
|
--grid-spacing-horizontal: var(--spacing);
|
||||||
--form-element-spacing-vertical: 0.75rem;
|
--form-element-spacing-vertical: 0.75rem;
|
||||||
--form-element-spacing-horizontal: 1rem;
|
--form-element-spacing-horizontal: 1rem;
|
||||||
|
--form-label-font-weight: var(--font-weight);
|
||||||
--transition: 0.2s ease-in-out;
|
--transition: 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
|
@ -798,13 +799,16 @@ ul ~ h6 {
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
hgroup {
|
hgroup,
|
||||||
|
.headings {
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
hgroup > * {
|
hgroup > *,
|
||||||
|
.headings > * {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
hgroup > *:last-child {
|
hgroup > *:last-child,
|
||||||
|
.headings > *:last-child {
|
||||||
--color: var(--muted-color);
|
--color: var(--muted-color);
|
||||||
--font-weight: unset;
|
--font-weight: unset;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
@ -1163,6 +1167,7 @@ button[disabled],
|
||||||
input[type=submit][disabled],
|
input[type=submit][disabled],
|
||||||
input[type=button][disabled],
|
input[type=button][disabled],
|
||||||
input[type=reset][disabled],
|
input[type=reset][disabled],
|
||||||
|
a[role=button]:not([href]),
|
||||||
a[role=button][disabled] {
|
a[role=button][disabled] {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -1263,6 +1268,7 @@ label,
|
||||||
fieldset legend {
|
fieldset legend {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: calc(var(--spacing) * 0.25);
|
margin-bottom: calc(var(--spacing) * 0.25);
|
||||||
|
font-weight: var(--form-label-font-weight, var(--font-weight));
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio]),
|
input:not([type=checkbox]):not([type=radio]),
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -19,10 +19,9 @@
|
||||||
--typography-spacing-vertical: 1.5rem;
|
--typography-spacing-vertical: 1.5rem;
|
||||||
--block-spacing-vertical: calc(var(--spacing) * 2);
|
--block-spacing-vertical: calc(var(--spacing) * 2);
|
||||||
--block-spacing-horizontal: var(--spacing);
|
--block-spacing-horizontal: var(--spacing);
|
||||||
--grid-spacing-vertical: 0;
|
|
||||||
--grid-spacing-horizontal: var(--spacing);
|
|
||||||
--form-element-spacing-vertical: 0.75rem;
|
--form-element-spacing-vertical: 0.75rem;
|
||||||
--form-element-spacing-horizontal: 1rem;
|
--form-element-spacing-horizontal: 1rem;
|
||||||
|
--form-label-font-weight: var(--font-weight);
|
||||||
--transition: 0.2s ease-in-out;
|
--transition: 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
|
@ -951,6 +950,7 @@ button[disabled],
|
||||||
input[type=submit][disabled],
|
input[type=submit][disabled],
|
||||||
input[type=button][disabled],
|
input[type=button][disabled],
|
||||||
input[type=reset][disabled],
|
input[type=reset][disabled],
|
||||||
|
a[role=button]:not([href]),
|
||||||
a[role=button][disabled] {
|
a[role=button][disabled] {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -1051,6 +1051,7 @@ label,
|
||||||
fieldset legend {
|
fieldset legend {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: calc(var(--spacing) * 0.25);
|
margin-bottom: calc(var(--spacing) * 0.25);
|
||||||
|
font-weight: var(--form-label-font-weight, var(--font-weight));
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio]),
|
input:not([type=checkbox]):not([type=radio]),
|
||||||
|
|
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
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
File diff suppressed because one or more lines are too long
|
@ -26,6 +26,7 @@
|
||||||
--grid-spacing-horizontal: var(--spacing);
|
--grid-spacing-horizontal: var(--spacing);
|
||||||
--form-element-spacing-vertical: 0.75rem;
|
--form-element-spacing-vertical: 0.75rem;
|
||||||
--form-element-spacing-horizontal: 1rem;
|
--form-element-spacing-horizontal: 1rem;
|
||||||
|
--form-label-font-weight: var(--font-weight);
|
||||||
--transition: 0.2s ease-in-out;
|
--transition: 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
|
@ -727,13 +728,16 @@ ul ~ h6 {
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
hgroup {
|
hgroup,
|
||||||
|
.headings {
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
hgroup > * {
|
hgroup > *,
|
||||||
|
.headings > * {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
hgroup > *:last-child {
|
hgroup > *:last-child,
|
||||||
|
.headings > *:last-child {
|
||||||
--color: var(--muted-color);
|
--color: var(--muted-color);
|
||||||
--font-weight: unset;
|
--font-weight: unset;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
@ -1091,6 +1095,7 @@ button[disabled],
|
||||||
input[type=submit][disabled],
|
input[type=submit][disabled],
|
||||||
input[type=button][disabled],
|
input[type=button][disabled],
|
||||||
input[type=reset][disabled],
|
input[type=reset][disabled],
|
||||||
|
a[role=button]:not([href]),
|
||||||
a[role=button][disabled] {
|
a[role=button][disabled] {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -1191,6 +1196,7 @@ label,
|
||||||
fieldset legend {
|
fieldset legend {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: calc(var(--spacing) * 0.25);
|
margin-bottom: calc(var(--spacing) * 0.25);
|
||||||
|
font-weight: var(--form-label-font-weight, var(--font-weight));
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio]),
|
input:not([type=checkbox]):not([type=radio]),
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.slim.min.css
vendored
2
css/pico.slim.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -19,6 +19,7 @@
|
||||||
--grid-spacing-horizontal: var(--spacing);
|
--grid-spacing-horizontal: var(--spacing);
|
||||||
--form-element-spacing-vertical: 0.75rem;
|
--form-element-spacing-vertical: 0.75rem;
|
||||||
--form-element-spacing-horizontal: 1rem;
|
--form-element-spacing-horizontal: 1rem;
|
||||||
|
--form-label-font-weight: var(--font-weight);
|
||||||
--transition: 0.2s ease-in-out;
|
--transition: 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/themes/default.min.css
vendored
2
css/themes/default.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,7 @@
|
||||||
</<b>dialog</b>></code></pre><hgroup><h2>Live demo</h2><h3>Toggle a modal by clicking the button below.</h3></hgroup><article><button class="contrast" data-target="modal-example" onclick="toggleModal(event)">Launch demo modal</button><footer class="code"><pre><code><em><!-- Button to trigger the modal --></em>
|
</<b>dialog</b>></code></pre><hgroup><h2>Live demo</h2><h3>Toggle a modal by clicking the button below.</h3></hgroup><article><button class="contrast" data-target="modal-example" onclick="toggleModal(event)">Launch demo modal</button><footer class="code"><pre><code><em><!-- Button to trigger the modal --></em>
|
||||||
<<b>button</b> <i>class</i>=<u>"contrast"</u>
|
<<b>button</b> <i>class</i>=<u>"contrast"</u>
|
||||||
<i>data-target</i>=<u>"modal-example"</u>
|
<i>data-target</i>=<u>"modal-example"</u>
|
||||||
<i>onClick</i>=<u>"toggleModal()"</u>>
|
<i>onClick</i>=<u>"toggleModal(event)"</u>>
|
||||||
Launch demo modal
|
Launch demo modal
|
||||||
</<b>button</b>>
|
</<b>button</b>>
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
<i>aria-label</i>=<u>"Close"</u>>
|
<i>aria-label</i>=<u>"Close"</u>>
|
||||||
<i>class</i>=<u>"close"</u>
|
<i>class</i>=<u>"close"</u>
|
||||||
<i>data-target</i>=<u>"modal-example"</u>
|
<i>data-target</i>=<u>"modal-example"</u>
|
||||||
<i>onClick</i>=<u>"toggleModal()"</u>>
|
<i>onClick</i>=<u>"toggleModal(event)"</u>>
|
||||||
</<b>a</b>>
|
</<b>a</b>>
|
||||||
<<b>h3</b>>Confirm your action!</<b>h3</b>>
|
<<b>h3</b>>Confirm your action!</<b>h3</b>>
|
||||||
<<b>p</b>>
|
<<b>p</b>>
|
||||||
|
@ -51,13 +51,13 @@
|
||||||
<i>role</i>=<u>"button"</u>>
|
<i>role</i>=<u>"button"</u>>
|
||||||
<i>class</i>=<u>"secondary"</u>
|
<i>class</i>=<u>"secondary"</u>
|
||||||
<i>data-target</i>=<u>"modal-example"</u>
|
<i>data-target</i>=<u>"modal-example"</u>
|
||||||
<i>onClick</i>=<u>"toggleModal()"</u>>
|
<i>onClick</i>=<u>"toggleModal(event)"</u>>
|
||||||
Cancel
|
Cancel
|
||||||
</<b>a</b>>
|
</<b>a</b>>
|
||||||
<<b>a</b> <i>href</i>=<u>"#confirm"</u>
|
<<b>a</b> <i>href</i>=<u>"#confirm"</u>
|
||||||
<i>role</i>=<u>"button"</u>
|
<i>role</i>=<u>"button"</u>
|
||||||
<i>data-target</i>=<u>"modal-example"</u>
|
<i>data-target</i>=<u>"modal-example"</u>
|
||||||
<i>onClick</i>=<u>"toggleModal()"</u>>
|
<i>onClick</i>=<u>"toggleModal(event)"</u>>
|
||||||
Confirm
|
Confirm
|
||||||
</<b>a</b>>
|
</<b>a</b>>
|
||||||
</<b>footer</b>>
|
</<b>footer</b>>
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
<pre><code><em><!-- Button to trigger the modal --></em>
|
<pre><code><em><!-- Button to trigger the modal --></em>
|
||||||
<<b>button</b> <i>class</i>=<u>"contrast"</u>
|
<<b>button</b> <i>class</i>=<u>"contrast"</u>
|
||||||
<i>data-target</i>=<u>"modal-example"</u>
|
<i>data-target</i>=<u>"modal-example"</u>
|
||||||
<i>onClick</i>=<u>"toggleModal()"</u>>
|
<i>onClick</i>=<u>"toggleModal(event)"</u>>
|
||||||
Launch demo modal
|
Launch demo modal
|
||||||
</<b>button</b>>
|
</<b>button</b>>
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
<i>aria-label</i>=<u>"Close"</u>>
|
<i>aria-label</i>=<u>"Close"</u>>
|
||||||
<i>class</i>=<u>"close"</u>
|
<i>class</i>=<u>"close"</u>
|
||||||
<i>data-target</i>=<u>"modal-example"</u>
|
<i>data-target</i>=<u>"modal-example"</u>
|
||||||
<i>onClick</i>=<u>"toggleModal()"</u>>
|
<i>onClick</i>=<u>"toggleModal(event)"</u>>
|
||||||
</<b>a</b>>
|
</<b>a</b>>
|
||||||
<<b>h3</b>>Confirm your action!</<b>h3</b>>
|
<<b>h3</b>>Confirm your action!</<b>h3</b>>
|
||||||
<<b>p</b>>
|
<<b>p</b>>
|
||||||
|
@ -122,13 +122,13 @@
|
||||||
<i>role</i>=<u>"button"</u>>
|
<i>role</i>=<u>"button"</u>>
|
||||||
<i>class</i>=<u>"secondary"</u>
|
<i>class</i>=<u>"secondary"</u>
|
||||||
<i>data-target</i>=<u>"modal-example"</u>
|
<i>data-target</i>=<u>"modal-example"</u>
|
||||||
<i>onClick</i>=<u>"toggleModal()"</u>>
|
<i>onClick</i>=<u>"toggleModal(event)"</u>>
|
||||||
Cancel
|
Cancel
|
||||||
</<b>a</b>>
|
</<b>a</b>>
|
||||||
<<b>a</b> <i>href</i>=<u>"#confirm"</u>
|
<<b>a</b> <i>href</i>=<u>"#confirm"</u>
|
||||||
<i>role</i>=<u>"button"</u>
|
<i>role</i>=<u>"button"</u>
|
||||||
<i>data-target</i>=<u>"modal-example"</u>
|
<i>data-target</i>=<u>"modal-example"</u>
|
||||||
<i>onClick</i>=<u>"toggleModal()"</u>>
|
<i>onClick</i>=<u>"toggleModal(event)"</u>>
|
||||||
Confirm
|
Confirm
|
||||||
</<b>a</b>>
|
</<b>a</b>>
|
||||||
</<b>footer</b>>
|
</<b>footer</b>>
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
${require('./_head.html')
|
${require('./_head.html') title="Typography" description="All typographic
|
||||||
title="Typography"
|
elements are responsive, allowing text to scale gracefully across devices
|
||||||
description="All typographic elements are responsive, allowing text to scale gracefully across devices and viewports."
|
and viewports." canonical="typography.html" }
|
||||||
canonical="typography.html"
|
|
||||||
}
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -18,7 +16,10 @@
|
||||||
<section id="typography">
|
<section id="typography">
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1>Typography</h1>
|
<h1>Typography</h1>
|
||||||
<h2>All typographic elements are responsive, allowing text to scale gracefully across devices and viewports.</h2>
|
<h2>
|
||||||
|
All typographic elements are responsive, allowing text to scale
|
||||||
|
gracefully across devices and viewports.
|
||||||
|
</h2>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
<figure>
|
<figure>
|
||||||
<table role="grid">
|
<table role="grid">
|
||||||
|
@ -109,38 +110,48 @@
|
||||||
<h5>Heading 5</h5>
|
<h5>Heading 5</h5>
|
||||||
<h6>Heading 6</h6>
|
<h6>Heading 6</h6>
|
||||||
<footer class="code">
|
<footer class="code">
|
||||||
|
<pre><code><<b>h1</b>>Heading 1</<b>h1</b>>
|
||||||
<pre><code><<b>h1</b>>Heading 1</<b>h1</b>>
|
|
||||||
<<b>h2</b>>Heading 2</<b>h2</b>>
|
<<b>h2</b>>Heading 2</<b>h2</b>>
|
||||||
<<b>h3</b>>Heading 3</<b>h3</b>>
|
<<b>h3</b>>Heading 3</<b>h3</b>>
|
||||||
<<b>h4</b>>Heading 4</<b>h4</b>>
|
<<b>h4</b>>Heading 4</<b>h4</b>>
|
||||||
<<b>h5</b>>Heading 5</<b>h5</b>>
|
<<b>h5</b>>Heading 5</<b>h5</b>>
|
||||||
<<b>h6</b>>Heading 6</<b>h6</b>></code></pre>
|
<<b>h6</b>>Heading 6</<b>h6</b>></code></pre>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
<p>Inside a <code><<b>hgroup</b>></code> all <code><i>margin-bottom</i></code> are collapsed and the <code>:last-child</code> is muted.</p>
|
<p>
|
||||||
|
Inside a <code><<b>hgroup</b>></code> or a
|
||||||
|
<code><<b>div</b> <i>class</i>=<u>"headings"</u>></code> all
|
||||||
|
<code><i>margin-bottom</i></code> are collapsed and the
|
||||||
|
<code>:last-child</code> is muted.
|
||||||
|
</p>
|
||||||
<article aria-label="Hgroup example">
|
<article aria-label="Hgroup example">
|
||||||
<hgroup>
|
<div class="headings">
|
||||||
<h2>Heading 2</h2>
|
<h2>Heading 2</h2>
|
||||||
<h3>Subtitle for heading 2</h3>
|
<h3>Subtitle for heading 2</h3>
|
||||||
</hgroup>
|
</div>
|
||||||
<footer class="code">
|
<footer class="code">
|
||||||
|
<pre><code><<b>hgroup</b>>
|
||||||
<pre><code><<b>hgroup</b>>
|
|
||||||
<<b>h2</b>>Heading 2</<b>h2</b>>
|
<<b>h2</b>>Heading 2</<b>h2</b>>
|
||||||
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
||||||
</<b>hgroup</b>></code></pre>
|
</<b>hgroup</b>></code></pre>
|
||||||
|
|
||||||
|
<pre><code><<b>div</b> <i>class</i>=<u>"headings</u>">
|
||||||
|
<<b>h2</b>>Heading 2</<b>h2</b>>
|
||||||
|
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
||||||
|
</<b>div</b>></code></pre>
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<p>Inline text elements:</p>
|
<p>Inline text elements:</p>
|
||||||
<article aria-label="Inline text examples">
|
<article aria-label="Inline text examples">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<div>
|
<div>
|
||||||
<p><abbr title="Abbreviation">Abbr.</abbr> <code>abbr</code></p>
|
<p><abbr title="Abbreviation">Abbr.</abbr> <code>abbr</code></p>
|
||||||
<p><strong>Bold</strong> <code>strong</code> <code>b</code></p>
|
<p><strong>Bold</strong> <code>strong</code> <code>b</code></p>
|
||||||
<p><em>Italic</em> <code>i</code> <code>em</code> <code>cite</code></p>
|
<p>
|
||||||
|
<em>Italic</em> <code>i</code> <code>em</code>
|
||||||
|
<code>cite</code>
|
||||||
|
</p>
|
||||||
<p><del>Deleted</del> <code>del</code></p>
|
<p><del>Deleted</del> <code>del</code></p>
|
||||||
<p><ins>Inserted</ins> <code>ins</code></p>
|
<p><ins>Inserted</ins> <code>ins</code></p>
|
||||||
<p><kbd>Ctrl + S</kbd> <code>kbd</code></p>
|
<p><kbd>Ctrl + S</kbd> <code>kbd</code></p>
|
||||||
|
@ -155,44 +166,46 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<p>Links come with <code>.secondary</code> and <code>.contrast</code> styles.</p>
|
<p>
|
||||||
|
Links come with <code>.secondary</code> and
|
||||||
|
<code>.contrast</code> styles.
|
||||||
|
</p>
|
||||||
<article aria-label="Links examples">
|
<article aria-label="Links examples">
|
||||||
<a href="#" onclick="event.preventDefault()">Primary</a><br>
|
<a href="#" onclick="event.preventDefault()">Primary</a><br />
|
||||||
<a href="#" onclick="event.preventDefault()" class="secondary">Secondary</a><br>
|
<a href="#" onclick="event.preventDefault()" class="secondary"
|
||||||
<a href="#" onclick="event.preventDefault()" class="contrast">Contrast</a><br>
|
>Secondary</a
|
||||||
|
><br />
|
||||||
|
<a href="#" onclick="event.preventDefault()" class="contrast"
|
||||||
|
>Contrast</a
|
||||||
|
><br />
|
||||||
<footer class="code">
|
<footer class="code">
|
||||||
|
<pre><code><<b>a</b> <i>href</i>=<u>"#"</u>>Primary</<b>a</b>>
|
||||||
<pre><code><<b>a</b> <i>href</i>=<u>"#"</u>>Primary</<b>a</b>>
|
|
||||||
<<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"secondary"</u>>Secondary</<b>a</b>>
|
<<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"secondary"</u>>Secondary</<b>a</b>>
|
||||||
<<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"contrast"</u>>Contrast</<b>a</b>></code></pre>
|
<<b>a</b> <i>href</i>=<u>"#"</u> <i>class</i>=<u>"contrast"</u>>Contrast</<b>a</b>></code></pre>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
<p>Blockquote:</p>
|
<p>Blockquote:</p>
|
||||||
<article aria-label="Blockquote example">
|
<article aria-label="Blockquote example">
|
||||||
<blockquote>
|
<blockquote>
|
||||||
"Maecenas vehicula metus tellus, vitae congue turpis hendrerit non.
|
"Maecenas vehicula metus tellus, vitae congue turpis hendrerit
|
||||||
Nam at dui sit amet ipsum cursus ornare."
|
non. Nam at dui sit amet ipsum cursus ornare."
|
||||||
<footer>
|
<footer>
|
||||||
<cite>- Phasellus eget lacinia</cite>
|
<cite>- Phasellus eget lacinia</cite>
|
||||||
</footer>
|
</footer>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<footer class="code">
|
<footer class="code">
|
||||||
|
<pre><code><<b>blockquote</b>>
|
||||||
<pre><code><<b>blockquote</b>>
|
|
||||||
"Maecenas vehicula metus tellus, vitae congue turpis hendrerit non.
|
"Maecenas vehicula metus tellus, vitae congue turpis hendrerit non.
|
||||||
Nam at dui sit amet ipsum cursus ornare."
|
Nam at dui sit amet ipsum cursus ornare."
|
||||||
<<b>footer</b>>
|
<<b>footer</b>>
|
||||||
<<b>cite</b>>- Phasellus eget lacinia</<b>cite</b>>
|
<<b>cite</b>>- Phasellus eget lacinia</<b>cite</b>>
|
||||||
</<b>footer</b>>
|
</<b>footer</b>>
|
||||||
</<b>blockquote</b>></code></pre>
|
</<b>blockquote</b>></code></pre>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
${require('./_footer.html')}
|
${require('./_footer.html')}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<script src="js/commons.min.js"></script>
|
<script src="js/commons.min.js"></script>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -23,6 +23,9 @@ $enable-responsive-typography: true !default;
|
||||||
// .classless version if disabled
|
// .classless version if disabled
|
||||||
$enable-classes: true !default;
|
$enable-classes: true !default;
|
||||||
|
|
||||||
|
// Enable .grid class
|
||||||
|
$enable-grid: true !default;
|
||||||
|
|
||||||
// Enable transitions
|
// Enable transitions
|
||||||
$enable-transitions: true !default;
|
$enable-transitions: true !default;
|
||||||
|
|
||||||
|
|
|
@ -195,13 +195,12 @@ input[type="reset"] {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Button [disabled]
|
// Button [disabled]
|
||||||
button,
|
button[disabled],
|
||||||
input[type="submit"],
|
input[type="submit"][disabled],
|
||||||
input[type="button"],
|
input[type="button"][disabled],
|
||||||
input[type="reset"],
|
input[type="reset"][disabled],
|
||||||
a[role="button"] {
|
a[role="button"]:not([href]),
|
||||||
&[disabled] {
|
a[role="button"][disabled] {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -129,6 +129,7 @@ label,
|
||||||
fieldset legend {
|
fieldset legend {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: calc(var(--spacing) * 0.25);
|
margin-bottom: calc(var(--spacing) * 0.25);
|
||||||
|
font-weight: var(--form-label-font-weight, var(--font-weight));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blocks, 100%
|
// Blocks, 100%
|
||||||
|
|
|
@ -181,7 +181,8 @@ ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Heading group
|
// Heading group
|
||||||
hgroup {
|
@if $enable-classes == false {
|
||||||
|
hgroup {
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
|
@ -194,6 +195,25 @@ hgroup {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-family: unset;
|
font-family: unset;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $enable-classes {
|
||||||
|
hgroup,
|
||||||
|
.headings {
|
||||||
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
|
|
||||||
|
> * {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
> *:last-child {
|
||||||
|
--color: var(--muted-color);
|
||||||
|
--font-weight: unset;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-family: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Paragraphs
|
// Paragraphs
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@if $enable-classes {
|
@if ($enable-classes and $enable-grid) {
|
||||||
/**
|
/**
|
||||||
* Grid
|
* Grid
|
||||||
* Minimal grid system with auto-layout columns
|
* Minimal grid system with auto-layout columns
|
||||||
|
|
|
@ -50,14 +50,18 @@
|
||||||
--block-spacing-vertical: calc(var(--spacing) * 2);
|
--block-spacing-vertical: calc(var(--spacing) * 2);
|
||||||
--block-spacing-horizontal: var(--spacing);
|
--block-spacing-horizontal: var(--spacing);
|
||||||
|
|
||||||
// Spacings .grid
|
@if ($enable-classes and $enable-grid) {
|
||||||
--grid-spacing-vertical: 0;
|
--grid-spacing-vertical: 0;
|
||||||
--grid-spacing-horizontal: var(--spacing);
|
--grid-spacing-horizontal: var(--spacing);
|
||||||
|
}
|
||||||
|
|
||||||
// Spacings for form elements and button
|
// Spacings for form elements and button
|
||||||
--form-element-spacing-vertical: 0.75rem;
|
--form-element-spacing-vertical: 0.75rem;
|
||||||
--form-element-spacing-horizontal: 1rem;
|
--form-element-spacing-horizontal: 1rem;
|
||||||
|
|
||||||
|
// Font weight for form labels & fieldsets legend
|
||||||
|
--form-label-font-weight: var(--font-weight);
|
||||||
|
|
||||||
// Transitions
|
// Transitions
|
||||||
--transition: 0.2s ease-in-out;
|
--transition: 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue