Skip to content

Commit

Permalink
add styles for Want My RSS.
Browse files Browse the repository at this point in the history
update linter modules.
  • Loading branch information
aminomancer committed Oct 5, 2022
1 parent eea6b34 commit cc43808
Show file tree
Hide file tree
Showing 139 changed files with 20,784 additions and 15 deletions.
14 changes: 11 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* This Source Code Form is subject to the terms of the Creative Commons
* Attribution-NonCommercial-ShareAlike International License, v. 4.0.
* If a copy of the CC BY-NC-SA 4.0 was not distributed with this
* file, You can obtain one at http://creativecommons.org/licenses/by-nc-sa/4.0/
* or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. */

"use strict";

Expand Down Expand Up @@ -108,5 +110,11 @@ module.exports = {
curly: "off",
},
},
{
// Rules of Hooks broadly checks for camelCase "use" identifiers, so
// enable only for paths actually using React to avoid false positives.
extends: ["plugin:react-hooks/recommended"],
files: ["*.jsx"],
},
],
};
30 changes: 18 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
{
"name": "uc.css.js",
"description": "This package file is for node modules used in uc.css.js and is based on https://searchfox.org/mozilla-central/source/package.json",
"repository": {},
"license": "CC BY-NC-SA 4.0",
"devDependencies": {
"@babel/core": "7.17.9",
"@babel/eslint-parser": "7.17.0",
"@babel/eslint-plugin": "7.17.7",
"@babel/plugin-syntax-jsx": "7.16.7",
"eslint": "^8.22.0",
"eslint-config-prettier": "8.3.0",
"@babel/core": "7.19.1",
"@babel/eslint-parser": "7.19.1",
"@babel/eslint-plugin": "7.19.1",
"@babel/plugin-syntax-jsx": "7.18.6",
"eslint": "8.24.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-fetch-options": "0.0.5",
"eslint-plugin-file-header": "0.0.1",
"eslint-plugin-html": "6.2.0",
"eslint-plugin-html": "7.1.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "23.20.0",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-mozilla": "^2.12.4",
"eslint-plugin-jsdoc": "39.3.6",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-mozilla": "file:tools/lint/eslint/eslint-plugin-mozilla",
"eslint-plugin-no-unsanitized": "4.0.1",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-react": "7.29.4",
"eslint-plugin-react-hooks": "4.5.0",
"jsdoc": "3.6.10",
"prettier": "1.19.1"
"eslint-plugin-react-hooks": "4.6.0",
"jsdoc": "3.6.11",
"prettier": "1.19.1",
"yarn": "1.22.19"
}
}
68 changes: 68 additions & 0 deletions resources/in-content/ext-rss.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/* This Source Code Form is subject to the terms of the Creative Commons
* Attribution-NonCommercial-ShareAlike International License, v. 4.0.
* If a copy of the CC BY-NC-SA 4.0 was not distributed with this
* file, You can obtain one at http://creativecommons.org/licenses/by-nc-sa/4.0/
* or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. */

/* Want My RSS extension */

@-moz-document regexp("^moz-extension://.*/popup.html.*") {
:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i],
:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i] body {
color-scheme: dark;
background-color: var(--uc-arrowpanel-background) !important;
}

:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i] body {
margin: var(--menupopup-inner-padding-magnitude) !important;
max-width: 42em;
}

:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i] .items {
padding: 0 !important;
}

:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i] .items__item {
border-radius: var(--context-menuitem-border-radius) !important;
display: flex !important;
flex-flow: row nowrap !important;
align-items: center !important;
box-sizing: border-box !important;
border: none !important;
min-height: var(--subviewbutton-height) !important;
user-select: none !important;
white-space: nowrap;
line-height: 1 !important;
}

:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i]
.items__item:is(:hover, :focus-visible) {
background: var(--uc-arrowpanel-dimmed) !important;
}

:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i] .items__item:hover:active {
background: var(--uc-arrowpanel-dimmed-further) !important;
}

:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i] .items__item-link {
cursor: default !important;
color: var(--uc-arrowpanel-color) !important;
padding: var(--uc-arrowpanel-menuitem-padding-block)
var(--uc-arrowpanel-menuitem-padding-inline) !important;
flex-grow: 1 !important;
flex-shrink: 1 !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}

:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i] .items__item-link span {
opacity: revert !important;
}

@supports -moz-bool-pref("userChrome.css.mac-ui-fonts") {
:root[uc-extension-id="{4d567245-e70d-466a-bb2f-390fc7fb25c2}"i] body {
font-family: SF Pro Text, SF Arabic, Segoe UI, sans-serif !important;
font-kerning: normal !important;
}
}
}
27 changes: 27 additions & 0 deletions tools/lint/eslint/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

"use strict";

module.exports = {
// eslint-plugin-mozilla runs under node, so we need a more restrictive
// environment / parser setup here than the rest of mozilla-central.
env: {
browser: false,
node: true,
},
parser: "espree",
parserOptions: {
ecmaVersion: 12,
},

rules: {
camelcase: ["error", { properties: "never" }],
"handle-callback-err": ["error", "er"],
"no-shadow": "error",
"no-undef-init": "error",
"one-var": ["error", "never"],
strict: ["error", "global"],
},
};
8 changes: 8 additions & 0 deletions tools/lint/eslint/eslint-plugin-mozilla/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.eslintrc.js
.npmignore
node_modules
reporters
scripts
tests
package-lock.json
update.sh
Loading

0 comments on commit cc43808

Please sign in to comment.