Skip to content

Commit 507cdaa

Browse files
committed
docs: refactor styles to use shared stylesheet
1 parent 66e1066 commit 507cdaa

7 files changed

Lines changed: 24 additions & 30 deletions

File tree

docs/examples/pdf/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>PDF QR code extract - Bysquare</title>
77
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
8-
<style>
9-
body { font-size: 0.8rem; }
10-
h1 { font-size: 1.3rem; }
11-
</style>
8+
<link rel="stylesheet" href="/examples/shared.css">
129
</head>
1310
<body>
1411
<h1>PDF QR Code Extract</h1>

docs/examples/shared.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Shared styles for Bysquare examples */
2+
body {
3+
font-size: 1rem;
4+
}
5+
6+
h1 {
7+
font-size: 1.6rem;
8+
}
9+
10+
h2 {
11+
font-size: 1.3rem;
12+
}
13+
14+
.description {
15+
font-size: 0.9rem;
16+
color: var(--text-light);
17+
font-style: italic;
18+
}

docs/examples/web/lit/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Lit Web Components Example - Bysquare</title>
88
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
9-
<style>
10-
body { font-size: 0.8rem; }
11-
h1 { font-size: 1.3rem; }
12-
</style>
9+
<link rel="stylesheet" href="/examples/shared.css">
1310
<script type="module" src="index.js"></script>
1411
</head>
1512

docs/examples/web/multi/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
77
<title>Multiple Payments Example - Bysquare</title>
88
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
9-
<style>
10-
body { font-size: 0.8rem; }
11-
h1 { font-size: 1.3rem; }
12-
</style>
9+
<link rel="stylesheet" href="/examples/shared.css">
1310
<script type="module" src="index.js"></script>
1411
</head>
1512
<body>

docs/examples/web/native/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Native JavaScript Example - Bysquare</title>
88
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
9-
<style>
10-
body { font-size: 0.8rem; }
11-
h1 { font-size: 1.3rem; }
12-
</style>
9+
<link rel="stylesheet" href="/examples/shared.css">
1310
<script type="module" src="index.js"></script>
1411
</head>
1512

docs/examples/web/preact/index.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Preact Example - Bysquare</title>
88
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
9-
<style>
10-
body { font-size: 0.8rem; }
11-
h1 { font-size: 1.3rem; }
12-
</style>
9+
<link rel="stylesheet" href="/examples/shared.css">
1310
</head>
1411
<body>
1512
<h1>Bysquare - Preact Example</h1>

docs/index.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Bysquare - Examples & Documentation</title>
77
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
8-
<style>
9-
body { font-size: 0.8rem; }
10-
h1 { font-size: 1.3rem; }
11-
h2 { font-size: 1rem; }
12-
.description {
13-
font-size: 0.7rem;
14-
color: var(--text-light);
15-
font-style: italic;
16-
}
17-
</style>
8+
<link rel="stylesheet" href="/examples/shared.css">
189
</head>
1910
<body>
2011
<header>

0 commit comments

Comments
 (0)