Skip to content

Commit 7c633a9

Browse files
committed
Code modernisations
1 parent 1c42a46 commit 7c633a9

File tree

18 files changed

+66
-34
lines changed

18 files changed

+66
-34
lines changed

.stylelintrc.yml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins:
99

1010
rules:
1111

12-
# Specify percentage or number notation for alpha-values.
12+
# Specify percentage or number notation for alpha-values.
1313
alpha-value-notation: number
1414

1515
# Specify a list of disallowed at-rules.
@@ -42,13 +42,22 @@ rules:
4242
- true
4343
-
4444
ignoreAtRules:
45+
- at-root
4546
- each
4647
- else
48+
- debug
49+
- error
50+
- extend
51+
- for
52+
- forward
4753
- function
4854
- if
4955
- include
5056
- mixin
5157
- return
58+
- use
59+
- warn
60+
- while
5261

5362
# Disallow vendor prefixes for at-rules.
5463
at-rule-no-vendor-prefix: true
@@ -116,6 +125,9 @@ rules:
116125
# Disallow empty comments.
117126
comment-no-empty: true
118127

128+
# Specify a pattern for comments.
129+
#comment-pattern:
130+
119131
# Require or disallow whitespace on the inside of comment markers.
120132
comment-whitespace-inside: always
121133

@@ -137,6 +149,9 @@ rules:
137149
# Require a single space or disallow whitespace before the bang of declarations.
138150
declaration-bang-space-before: always
139151

152+
# Disallow duplicate custom properties within declaration blocks.
153+
declaration-block-no-duplicate-custom-properties: true
154+
140155
# Disallow duplicate properties within declaration blocks.
141156
#declaration-block-no-duplicate-properties:
142157

@@ -332,6 +347,9 @@ rules:
332347
# Require a single space or disallow whitespace before the commas of media query lists.
333348
media-query-list-comma-space-before: never
334349

350+
# Disallow invalid named grid areas.
351+
named-grid-areas-no-invalid: true
352+
335353
# Disallow selectors of lower specificity from coming after overriding selectors of higher specificity.
336354
#no-descending-specificity: true
337355

@@ -356,6 +374,12 @@ rules:
356374
# Disallow double-slash comments (`//`) which are not supported by CSS.
357375
no-invalid-double-slash-comments: true
358376

377+
# Disallow invalid position `@import` rules within a stylesheet.
378+
#no-invalid-position-at-import-rule:
379+
380+
# Disallow irregular whitespaces.
381+
no-irregular-whitespace: true
382+
359383
# Disallow missing end-of-source newlines.
360384
no-missing-end-of-source-newline: true
361385

@@ -400,6 +424,9 @@ rules:
400424
# Require a single space or disallow whitespace on the inside of the brackets within attribute selectors.
401425
selector-attribute-brackets-space-inside: never
402426

427+
# Specify a list of disallowed attribute names.
428+
#selector-attribute-name-disallowed-list:
429+
403430
# Specify a blacklist of disallowed attribute operators.
404431
#selector-attribute-operator-blacklist:
405432

@@ -433,6 +460,9 @@ rules:
433460
# Disallow non-space characters for descendant combinators of selectors.
434461
selector-descendant-combinator-no-non-space: true
435462

463+
# Specify a list of disallowed selectors.
464+
#selector-disallowed-list:
465+
436466
# Specify a pattern for ID selectors.
437467
#selector-id-pattern:
438468

@@ -1058,9 +1088,6 @@ rules:
10581088
# Disallow duplicate mixins within a stylesheet.
10591089
scss/no-duplicate-mixins: true
10601090

1061-
# Disallows the use of global function names, as these global functions are now located inside built-in Sass modules.
1062-
scss/no-global-function-names: true
1063-
10641091
# Disallow linebreaks after Sass operators.
10651092
scss/operator-no-newline-after: true
10661093

dist/hive/assets/css/textpattern.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hive/hive.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Textpattern Content Management System
55
* https://textpattern.com/
66
*
7-
* Copyright (C) 2020 The Textpattern Development Team
7+
* Copyright (C) 2021 The Textpattern Development Team
88
*
99
* This file is part of Textpattern.
1010
*

dist/hive/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Hive",
33
"txp-type": "textpattern-admin-theme",
4-
"version": "4.8.5",
4+
"version": "4.8.6",
55
"description": "Textpattern CMS Hive admin theme (Classic Yellow).",
66
"author": "Phil Wareham",
77
"author_uri": "https://github.com/philwareham/textpattern-hive-admin-theme"

dist/hiveneutral/assets/css/textpattern.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hiveneutral/hiveneutral.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Textpattern Content Management System
55
* https://textpattern.com/
66
*
7-
* Copyright (C) 2020 The Textpattern Development Team
7+
* Copyright (C) 2021 The Textpattern Development Team
88
*
99
* This file is part of Textpattern.
1010
*

dist/hiveneutral/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Hive (Flat Neutral)",
33
"txp-type": "textpattern-admin-theme",
4-
"version": "4.8.5",
4+
"version": "4.8.6",
55
"description": "Textpattern CMS Hive admin theme (Flat Neutral).",
66
"author": "Phil Wareham",
77
"author_uri": "https://github.com/philwareham/textpattern-hive-admin-theme"

dist/setup-multisite.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/css/design-patterns.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/js/jquery.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)