Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove trailing slash from html5 void elements #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions v1-basic-template/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Basic template • Pico CSS</title>
<meta
name="description"
content="A basic custom template for Pico using only CSS custom properties (variables). Built with Pico CSS."
/>
<link rel="shortcut icon" href="https://picocss.com/favicon.ico" />
>
<link rel="shortcut icon" href="https://picocss.com/favicon.ico">

<!-- Pico.css -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">

<!-- Custom template-->
<link rel="stylesheet" href="css/custom.css" />
<link rel="stylesheet" href="css/custom.css">
</head>

<body>
Expand Down Expand Up @@ -58,19 +58,19 @@ <h2>Preview</h2>
placeholder="First name"
aria-label="First name"
required
/>
>
<input
type="email"
name="email"
placeholder="Email address"
aria-label="Email address"
required
/>
>
<button type="submit">Subscribe</button>
</div>
<fieldset>
<label for="terms">
<input type="checkbox" role="switch" id="terms" name="terms" />
<input type="checkbox" role="switch" id="terms" name="terms">
I agree to the <a href="#" onclick="event.preventDefault()">Privacy Policy</a>
</label>
</fieldset>
Expand Down Expand Up @@ -165,7 +165,7 @@ <h6>Heading 6</h6>
<img
src="img/aleksandar-jason-a562ZEFKW8I-unsplash-2000x1000.jpg"
alt="Minimal landscape"
/>
>
<figcaption>
Image from
<a href="https://unsplash.com/photos/a562ZEFKW8I" target="_blank">unsplash.com</a>
Expand Down Expand Up @@ -197,11 +197,11 @@ <h2>Form elements</h2>

<!-- Search -->
<label for="search">Search</label>
<input type="search" id="search" name="search" placeholder="Search" />
<input type="search" id="search" name="search" placeholder="Search">

<!-- Text -->
<label for="text">Text</label>
<input type="text" id="text" name="text" placeholder="Text" />
<input type="text" id="text" name="text" placeholder="Text">
<small>Curabitur consequat lacus at lacus porta finibus.</small>

<!-- Select -->
Expand All @@ -214,20 +214,20 @@ <h2>Form elements</h2>
<!-- File browser -->
<label for="file"
>File browser
<input type="file" id="file" name="file" />
<input type="file" id="file" name="file">
</label>

<!-- Range slider control -->
<label for="range"
>Range slider
<input type="range" min="0" max="100" value="50" id="range" name="range" />
<input type="range" min="0" max="100" value="50" id="range" name="range">
</label>

<!-- States -->
<div class="grid">
<label for="valid">
Valid
<input type="text" id="valid" name="valid" placeholder="Valid" aria-invalid="false" />
<input type="text" id="valid" name="valid" placeholder="Valid" aria-invalid="false">
</label>
<label for="invalid">
Invalid
Expand All @@ -237,31 +237,31 @@ <h2>Form elements</h2>
name="invalid"
placeholder="Invalid"
aria-invalid="true"
/>
>
</label>
<label for="disabled">
Disabled
<input type="text" id="disabled" name="disabled" placeholder="Disabled" disabled />
<input type="text" id="disabled" name="disabled" placeholder="Disabled" disabled>
</label>
</div>

<div class="grid">
<!-- Date-->
<label for="date"
>Date
<input type="date" id="date" name="date" />
<input type="date" id="date" name="date">
</label>

<!-- Time-->
<label for="time"
>Time
<input type="time" id="time" name="time" />
<input type="time" id="time" name="time">
</label>

<!-- Color-->
<label for="color"
>Color
<input type="color" id="color" name="color" value="#0eaaaa" />
<input type="color" id="color" name="color" value="#0eaaaa">
</label>
</div>

Expand All @@ -270,11 +270,11 @@ <h2>Form elements</h2>
<fieldset>
<legend><strong>Checkboxes</strong></legend>
<label for="checkbox-1">
<input type="checkbox" id="checkbox-1" name="checkbox-1" checked />
<input type="checkbox" id="checkbox-1" name="checkbox-1" checked>
Checkbox
</label>
<label for="checkbox-2">
<input type="checkbox" id="checkbox-2" name="checkbox-2" />
<input type="checkbox" id="checkbox-2" name="checkbox-2">
Checkbox
</label>
</fieldset>
Expand All @@ -283,11 +283,11 @@ <h2>Form elements</h2>
<fieldset>
<legend><strong>Radio buttons</strong></legend>
<label for="radio-1">
<input type="radio" id="radio-1" name="radio" value="radio-1" checked />
<input type="radio" id="radio-1" name="radio" value="radio-1" checked>
Radio button
</label>
<label for="radio-2">
<input type="radio" id="radio-2" name="radio" value="radio-2" />
<input type="radio" id="radio-2" name="radio" value="radio-2">
Radio button
</label>
</fieldset>
Expand All @@ -296,19 +296,19 @@ <h2>Form elements</h2>
<fieldset>
<legend><strong>Switches</strong></legend>
<label for="switch-1">
<input type="checkbox" id="switch-1" name="switch-1" role="switch" checked />
<input type="checkbox" id="switch-1" name="switch-1" role="switch" checked>
Switch
</label>
<label for="switch-2">
<input type="checkbox" id="switch-2" name="switch-2" role="switch" />
<input type="checkbox" id="switch-2" name="switch-2" role="switch">
Switch
</label>
</fieldset>
</div>

<!-- Buttons -->
<input type="reset" value="Reset" onclick="event.preventDefault()" />
<input type="submit" value="Submit" onclick="event.preventDefault()" />
<input type="reset" value="Reset" onclick="event.preventDefault()">
<input type="submit" value="Submit" onclick="event.preventDefault()">
</form>
</section>
<!-- ./ Form elements-->
Expand Down
10 changes: 5 additions & 5 deletions v1-bootstrap-grid/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap grid system example • Pico CSS</title>
<meta
name="description"
content="Custom CSS build with the Bootstrap grid system to manage complex grid layouts in Pico."
/>
<link rel="shortcut icon" href="https://picocss.com/favicon.ico" />
>
<link rel="shortcut icon" href="https://picocss.com/favicon.ico">

<!-- Pico.css custom build with Bootstrap grid -->
<link rel="stylesheet" href="css/pico-bootstrap-grid.min.css" />
<link rel="stylesheet" href="css/pico-bootstrap-grid.min.css">

<!-- Custom Styles for this example -->
<style>
Expand Down
54 changes: 27 additions & 27 deletions v1-classless/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Classless example • Pico CSS</title>
<meta
name="description"
content="Just a pure semantic HTML markup, without .classes. Built with Pico CSS."
/>
<link rel="shortcut icon" href="https://picocss.com/favicon.ico" />
>
<link rel="shortcut icon" href="https://picocss.com/favicon.ico">

<!-- Pico.css (Classless version) -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.classless.min.css"
/>
>
</head>

<body>
Expand Down Expand Up @@ -57,17 +57,17 @@ <h2>Preview</h2>
placeholder="First name"
aria-label="First name"
required
/>
>
<input
type="email"
name="email"
placeholder="Email address"
aria-label="Email address"
required
/>
>
<fieldset>
<label for="terms">
<input type="checkbox" role="switch" id="terms" name="terms" />
<input type="checkbox" role="switch" id="terms" name="terms">
I agree to the <a href="#" onclick="event.preventDefault()">Privacy Policy</a>
</label>
</fieldset>
Expand Down Expand Up @@ -169,7 +169,7 @@ <h6>Heading 6</h6>
<img
src="img/aleksandar-jason-a562ZEFKW8I-unsplash-2000x1000.jpg"
alt="Minimal landscape"
/>
>
<figcaption>
Image from
<a href="https://unsplash.com/photos/a562ZEFKW8I" target="_blank">unsplash.com</a>
Expand All @@ -192,11 +192,11 @@ <h2>Form elements</h2>

<!-- Search -->
<label for="search">Search</label>
<input type="search" id="search" name="search" placeholder="Search" />
<input type="search" id="search" name="search" placeholder="Search">

<!-- Text -->
<label for="text">Text</label>
<input type="text" id="text" name="text" placeholder="Text" />
<input type="text" id="text" name="text" placeholder="Text">
<small>Curabitur consequat lacus at lacus porta finibus.</small>

<!-- Select -->
Expand All @@ -209,19 +209,19 @@ <h2>Form elements</h2>
<!-- File browser -->
<label for="file"
>File browser
<input type="file" id="file" name="file" />
<input type="file" id="file" name="file">
</label>

<!-- Range slider control -->
<label for="range"
>Range slider
<input type="range" min="0" max="100" value="50" id="range" name="range" />
<input type="range" min="0" max="100" value="50" id="range" name="range">
</label>

<!-- Valid -->
<label for="valid">
Valid
<input type="text" id="valid" name="valid" placeholder="Valid" aria-invalid="false" />
<input type="text" id="valid" name="valid" placeholder="Valid" aria-invalid="false">
</label>

<!-- Invalid -->
Expand All @@ -233,42 +233,42 @@ <h2>Form elements</h2>
name="invalid"
placeholder="Invalid"
aria-invalid="true"
/>
>
</label>

<!-- Disabled -->
<label for="disabled">
Disabled
<input type="text" id="disabled" name="disabled" placeholder="Disabled" disabled />
<input type="text" id="disabled" name="disabled" placeholder="Disabled" disabled>
</label>

<!-- Date-->
<label for="date"
>Date
<input type="date" id="date" name="date" />
<input type="date" id="date" name="date">
</label>

<!-- Time-->
<label for="time"
>Time
<input type="time" id="time" name="time" />
<input type="time" id="time" name="time">
</label>

<!-- Color-->
<label for="color"
>Color
<input type="color" id="color" name="color" value="#0eaaaa" />
<input type="color" id="color" name="color" value="#0eaaaa">
</label>

<!-- Checkboxes -->
<fieldset>
<legend><strong>Checkboxes</strong></legend>
<label for="checkbox-1">
<input type="checkbox" id="checkbox-1" name="checkbox-1" checked />
<input type="checkbox" id="checkbox-1" name="checkbox-1" checked>
Checkbox
</label>
<label for="checkbox-2">
<input type="checkbox" id="checkbox-2" name="checkbox-2" />
<input type="checkbox" id="checkbox-2" name="checkbox-2">
Checkbox
</label>
</fieldset>
Expand All @@ -277,11 +277,11 @@ <h2>Form elements</h2>
<fieldset>
<legend><strong>Radio buttons</strong></legend>
<label for="radio-1">
<input type="radio" id="radio-1" name="radio" value="radio-1" checked />
<input type="radio" id="radio-1" name="radio" value="radio-1" checked>
Radio button
</label>
<label for="radio-2">
<input type="radio" id="radio-2" name="radio" value="radio-2" />
<input type="radio" id="radio-2" name="radio" value="radio-2">
Radio button
</label>
</fieldset>
Expand All @@ -290,18 +290,18 @@ <h2>Form elements</h2>
<fieldset>
<legend><strong>Switches</strong></legend>
<label for="switch-1">
<input type="checkbox" id="switch-1" name="switch-1" role="switch" checked />
<input type="checkbox" id="switch-1" name="switch-1" role="switch" checked>
Switch
</label>
<label for="switch-2">
<input type="checkbox" id="switch-2" name="switch-2" role="switch" />
<input type="checkbox" id="switch-2" name="switch-2" role="switch">
Switch
</label>
</fieldset>

<!-- Buttons -->
<input type="reset" value="Reset" onclick="event.preventDefault()" />
<input type="submit" value="Submit" onclick="event.preventDefault()" />
<input type="reset" value="Reset" onclick="event.preventDefault()">
<input type="submit" value="Submit" onclick="event.preventDefault()">
</form>
</section>
<!-- ./ Form elements-->
Expand Down
Loading