mirror of
https://github.com/wassname/template.git
synced 2026-07-14 11:18:56 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f221583de8 | ||
|
|
cddd538f9d | ||
|
|
6f95c37c2c | ||
|
|
db3af262f2 | ||
|
|
184e094ae9 | ||
|
|
5ede2dd9d0 | ||
|
|
2a14b4c811 | ||
|
|
350b6c6f67 | ||
|
|
49deb31aeb | ||
|
|
b5a00b7f43 | ||
|
|
0f8f0f5962 | ||
|
|
094f0d4c58 | ||
|
|
cd4594f320 |
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "distill-template",
|
"name": "distill-template",
|
||||||
"version": "2.2.12",
|
"version": "2.2.16",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "distill-template",
|
"name": "distill-template",
|
||||||
"version": "2.2.12",
|
"version": "2.2.16",
|
||||||
"description": "Template for creating Distill articles.",
|
"description": "Template for creating Distill articles.",
|
||||||
"main": "dist/template.v2.js",
|
"main": "dist/template.v2.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
+4
-10
@@ -14,29 +14,23 @@ d-title h1 {
|
|||||||
grid-column: text;
|
grid-column: text;
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 1.05em;
|
line-height: 1.1em;
|
||||||
margin: 0 0 1rem;
|
margin: 0 0 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(min-width: 768px) {
|
@media(min-width: 768px) {
|
||||||
d-title h1 {
|
d-title h1 {
|
||||||
font-size: 60px;
|
font-size: 50px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
d-title p {
|
d-title p {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
line-height: 1.7em;
|
line-height: 1.55em;
|
||||||
grid-column: text;
|
grid-column: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(min-width: 768px) {
|
|
||||||
d-title p {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
d-title .status {
|
d-title .status {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ sub {
|
|||||||
figure {
|
figure {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: 2.5em;
|
margin-bottom: 2.5em;
|
||||||
margin-top: 2.5em;
|
margin-top: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption+figure {
|
figcaption+figure {
|
||||||
|
|||||||
+2
-1
@@ -181,6 +181,7 @@ export class Slider extends T(HTMLElement) {
|
|||||||
static get observedAttributes() {return ['min', 'max', 'value', 'step', 'ticks', 'origin', 'tickValues', 'tickLabels']; }
|
static get observedAttributes() {return ['min', 'max', 'value', 'step', 'ticks', 'origin', 'tickValues', 'tickLabels']; }
|
||||||
|
|
||||||
attributeChangedCallback(attr, oldValue, newValue) {
|
attributeChangedCallback(attr, oldValue, newValue) {
|
||||||
|
if (isNaN(newValue) || newValue === undefined || newValue === null) return;
|
||||||
if (attr == 'min') {
|
if (attr == 'min') {
|
||||||
this.min = +newValue;
|
this.min = +newValue;
|
||||||
this.setAttribute('aria-valuemin', this.min);
|
this.setAttribute('aria-valuemin', this.min);
|
||||||
@@ -194,7 +195,7 @@ export class Slider extends T(HTMLElement) {
|
|||||||
}
|
}
|
||||||
if (attr == 'origin') {
|
if (attr == 'origin') {
|
||||||
this.origin = +newValue;
|
this.origin = +newValue;
|
||||||
this.update(this.value);
|
// this.update(this.value);
|
||||||
}
|
}
|
||||||
if (attr == 'step') {
|
if (attr == 'step') {
|
||||||
if (newValue > 0) {
|
if (newValue > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user