Update accounts.google.com.css #118
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Comment and PR Management | |
on: | |
pull_request: | |
types: [opened] | |
jobs: | |
manage-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add comment to new pull request | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.payload.pull_request.number, | |
body: ` | |
## Contributing styles | |
> ### Please make sure you go through all the provided instructions before submitting a new theme with a PR. | |
1. You can use the [example.com.css](https://github.com/sameerasw/my-internet/raw/refs/heads/main/websites/example.com.css) as a starter for most websites to grab the stylesheet format. | |
2. Make sure the file is named in the correct format [website domain].css (google.com.css and docs.google.com.css are 2 styles which are not merged unless you do 9.) | |
3. Please respect auto theming for day and night themes. If the website does not have a dark theme, account for dark reader. | |
4. Do not use wildcards such as applying transparency for all div elements since that is handled with force theming in the addon. | |
5. Every property should include \`!important\` to make sure it gets applied. | |
6. Do NOT leave commented out code. | |
7. Don't include \`www\` in the stylesheet file name. | |
8. Add proper comments for each section of a feature at the beginning with a clear but compact description. | |
9. For theming similar domains like app.arduino.cc , login.arduino.cc ..... similar urls with \`prefixes\`, you can add a general style with a leading \`+\` symbol when creating the stylesheet. ( \`+arduino.cc.css\` ) [example](https://github.com/sameerasw/my-internet/blob/main/websites/%2Bnixos.org.css) | |
10. Similarly, for theming websites with a shared domain but with different \`suffixes\` (like google.com, google.lk...), you can add the \`-\` symbol to the start of the stylesheet file name so it will replace the provided domain of the file name's domain. (\`-google.com.css\`). [example](https://github.com/sameerasw/my-internet/blob/main/websites/-ebay.com.css) | |
11. [optional] Each comment of the same file should have a unique domain specific identified prefix (yt- ytm- gh- ...) which will help the browser to separately apply themes. | |
\`\`\` | |
/* yt-transparency */ | |
:root{ | |
--colorBgApp: transparent !important; | |
} | |
/* yt-no footer */ | |
footer.app-footer { | |
display: none !important; | |
} | |
\`\`\` | |
12. Always make sure the first feature is \`transparency\` and also use the exact feature name without a difference allowing the global transparency toggle to work. Prefixes with \`-\` are acceptable. | |
13. Don't keep the firefox selectors if you are copying over from the userContent.css (remove \`@-moz-document domain(" ")\` ) | |
14. Once committed to the repository, github actions will parse the css file and update/ generate the [styles.js](https://github.com/sameerasw/my-internet/blob/main/styles.json) and then will be deployed to the github pages allowing the add-on to fetch from it. | |
> | |
### Thank you <3 | |
` | |
}) | |
- name: Assign PR to author | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.issues.addAssignees({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.payload.pull_request.number, | |
assignees: [context.payload.pull_request.user.login] | |
}) | |
- name: Add reviewer to PR | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.pulls.requestReviewers({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
pull_number: context.payload.pull_request.number, | |
reviewers: ['sameerasw'] | |
}) | |
- name: Add 'theme' label to PR | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.issues.addLabels({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.payload.pull_request.number, | |
labels: ['theme'] | |
}) |