├── .editorconfig ├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── BUG.md │ ├── DOCS.md │ ├── MODIFICATION.md │ └── SUPPORT.md ├── PULL_REQUEST_TEMPLATE.md └── labels.json ├── .gitignore ├── .stylelintignore ├── .stylelintrc ├── LICENSE ├── README.md ├── assets ├── gmail-classic.ai ├── icons │ ├── 128 ~ 96.png │ ├── 128.png │ ├── 16.png │ ├── 32.png │ ├── 48.png │ └── 64.png ├── screenshot-chrome-webstore-small.png ├── screenshot-chrome-webstore.png ├── screenshot-full.png └── screenshot.png ├── build ├── chrome │ └── manifest.json └── extension-desc.txt ├── dist ├── chrome.zip └── chrome │ ├── assets │ ├── 128 ~ 96.png │ ├── 128.png │ ├── 16.png │ ├── 32.png │ ├── 48.png │ └── 64.png │ ├── gmail.css │ └── manifest.json ├── gmail.css ├── original-source.css ├── package-lock.json └── package.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | indent_style = space 7 | indent_size = 2 8 | end_of_line = lf 9 | insert_final_newline = true 10 | trim_trailing_whitespace = true 11 | 12 | [*.md] 13 | insert_final_newline = true 14 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing in postcss-values-parser 2 | 3 | We 💛 contributions! The rules for contributing to this org are few: 4 | 5 | 1. Don't be a jerk 6 | 1. Search issues before opening a new one 7 | 1. Lint and run tests locally before submitting a PR 8 | 1. Adhere to the code style the org has chosen 9 | 10 | 11 | ## Before Committing 12 | 13 | 1. Lint your changes via `npm run lint`. Fix any errors and warnings before committing. 14 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🐞 Bug Report 3 | about: Something went awry and you'd like to tell us about it. 4 | 5 | --- 6 | 7 | 16 | 17 | - Browser Name and Version: 18 | - gmail-classic Version: 19 | 20 | ### Screenshot of Problem 21 | 22 | 27 | 28 | ### Expected Behavior 29 | 30 | 31 | ### Actual Behavior 32 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/DOCS.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 📚 Documentation 3 | about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here. 4 | 5 | --- 6 | 7 | 16 | 17 | Documentation Is: 18 | 19 | 20 | 21 | - [ ] Missing 22 | - [ ] Needed 23 | - [ ] Confusing 24 | - [ ] Not Sure? 25 | 26 | ### Please Explain in Detail... 27 | 28 | 29 | ### Your Proposal for Changes 30 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/MODIFICATION.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🔧 Modification Request 3 | about: Would you like something work differently? Have an alternative approach? This is the template for you. 4 | 5 | --- 6 | 7 | 16 | 17 | 18 | ### Expected Behavior / Situation 19 | 20 | 21 | ### Actual Behavior / Situation 22 | 23 | 24 | ### Modification Proposal 25 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/SUPPORT.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🆘 Support, Help, and Advice 3 | about: 👉🏽 If you want to ask how to do a thing with this project, this is the place for you. 4 | 5 | --- 6 | 7 | 10 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 14 | 15 | This PR contains: 16 | 17 | - [ ] bugfix 18 | - [ ] documentation 19 | - [ ] metadata 20 | 21 | ### Please Describe Your Changes 22 | 23 | 27 | -------------------------------------------------------------------------------- /.github/labels.json: -------------------------------------------------------------------------------- 1 | [ 2 | { "name": "💩 template incomplete", "color": "#4E342E" }, 3 | { "name": "💩 template removed", "color": "#4E342E" }, 4 | 5 | { "name": "c¹ ⋅ discussion", "color": "#1976D2" }, 6 | { "name": "c² ⋅ feedback wanted", "color": "#F9A825" }, 7 | { "name": "c³ ⋅ PR welcome", "color": "#1B5E20" }, 8 | { "name": "c⁴ ⋅ need more info", "color": "#6A1B9A" }, 9 | { "name": "c⁵ ⋅ question", "color": "#C2185B" }, 10 | { "name": "c⁶ ⋅ request for comments", "color": "#BBDEFB" }, 11 | 12 | { "name": "p¹ ⋅ electron", "color": "#B2DFDB" }, 13 | { "name": "p² ⋅ linux", "color": "#B2DFDB" }, 14 | { "name": "p³ ⋅ mac", "color": "#B2DFDB" }, 15 | { "name": "p⁴ ⋅ windows", "color": "#B2DFDB" }, 16 | 17 | { "name": "pr¹ 🔧 chore", "color": "#D7CCC8" }, 18 | { "name": "pr² 🔧 docs", "color": "#D7CCC8" }, 19 | { "name": "pr³ 🔧 feature", "color": "#D7CCC8" }, 20 | { "name": "pr⁴ 🔧 fix", "color": "#D7CCC8" }, 21 | { "name": "pr⁵ 🔧 performance", "color": "#D7CCC8" }, 22 | { "name": "pr⁶ 🔧 refactor", "color": "#D7CCC8" }, 23 | { "name": "pr⁷ 🔧 style", "color": "#D7CCC8" }, 24 | { "name": "pr⁸ 🔧 test", "color": "#D7CCC8" }, 25 | 26 | { "name": "s¹ 🔥🔥🔥 critical", "color": "#E53935" }, 27 | { "name": "s² 🔥🔥 important", "color": "#FB8C00" }, 28 | { "name": "s³ 🔥 nice to have", "color": "#FDD835" }, 29 | { "name": "s⁴ 💧 low", "color": "#039BE5" }, 30 | { "name": "s⁵ 💧💧 inconvenient", "color": "#c0e0f7" }, 31 | 32 | { "name": "t¹ 🐞 bug", "color": "#F44336" }, 33 | { "name": "t² 📚 documentation", "color": "#FDD835" }, 34 | { "name": "t³ ✨ enhancement", "color": "#03a9f4" }, 35 | { "name": "t⁴ ✨ feature", "color": "#8bc34A" }, 36 | { "name": "t⁵ ⋅ regression", "color": "#0052cc" }, 37 | { "name": "t⁶ ⋅ todo", "color": "#311B92" }, 38 | { "name": "t⁷ ⋅ waiting on upstream", "color": "#0D47A1" }, 39 | 40 | { "name": "v¹ ⋅ alpha", "color": "#CDDC39" }, 41 | { "name": "v² ⋅ beta", "color": "#FFEB3B" }, 42 | { "name": "v³ ⋅ major", "color": "#FF9800" }, 43 | { "name": "v⁴ ⋅ minor", "color": "#FFC107" }, 44 | { "name": "v⁵ ⋅ next", "color": "#CDDC39" }, 45 | 46 | { "name": "x¹ ⋅ abandoned", "color": "#CFD8DC" }, 47 | { "name": "x² ⋅ duplicate", "color": "#CFD8DC" }, 48 | { "name": "x³ ⋅ hold", "color": "#CFD8DC" }, 49 | { "name": "x⁴ ⋅ in progress", "color": "#4CAF50" }, 50 | { "name": "x⁵ ⋅ invalid", "color": "#CFD8DC" }, 51 | { "name": "x⁶ ⋅ wontfix", "color": "#CFD8DC" } 52 | ] 53 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /.stylelintignore: -------------------------------------------------------------------------------- 1 | original-source.css 2 | -------------------------------------------------------------------------------- /.stylelintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "stylelint-config-standard", 3 | "plugins": [ 4 | "stylelint-order" 5 | ], 6 | "rules": { 7 | "order/properties-alphabetical-order": true, 8 | 9 | "color-hex-case": "lower", 10 | "color-hex-length": "short", 11 | "color-named": "never", 12 | "comment-whitespace-inside": "always", 13 | "declaration-block-trailing-semicolon": "always", 14 | "declaration-colon-space-after": "always", 15 | "declaration-colon-space-before": "never", 16 | "function-linear-gradient-no-nonstandard-direction": null, 17 | "function-url-quotes": "always", 18 | "indentation": 2, 19 | "media-feature-colon-space-after": "always", 20 | "media-feature-colon-space-before": "always", 21 | "media-feature-parentheses-space-inside": "never", 22 | "media-feature-range-operator-space-after": "always", 23 | "media-feature-range-operator-space-before": "always", 24 | "no-descending-specificity": null, 25 | "no-duplicate-selectors": true, 26 | "number-leading-zero": "always", 27 | "rule-empty-line-before": "always", 28 | "selector-combinator-space-after": "always", 29 | "selector-attribute-quotes": "always", 30 | "selector-attribute-operator-space-before": "never", 31 | "selector-attribute-operator-space-after": "never", 32 | "selector-attribute-brackets-space-inside": "never", 33 | "selector-pseudo-class-parentheses-space-inside": "never", 34 | "string-quotes": "double" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # gmail-classic 2 | 3 | CSS for reverting Gmail to the Classic Theme 4 | 5 | 6 | 7 | 8 | 9 | _Please consider donating if you find this useful._ 10 | 11 |
12 | 13 | gmail classic 14 | 15 |
16 | 17 | ## Usage 18 | 19 | A [Gmail Classic Theme Chrome Extension](https://chrome.google.com/webstore/detail/gmail-classic-theme/cokholnilkppcchlfepienmlbafkjplj) is now available for quick and easy use of the theme in Chrome. 20 | 21 | --- 22 | 23 | The CSS in this repository can also be used with an extension for your browser which allows users to inject their own CSS into a page. We recommend the [Stylus](https://add0n.com/stylus.html) extension, which is available for free for [Chrome](https://chrome.google.com/webstore/detail/clngdbkpkpeebahjckkjfobafhncgmne), [Firefox](https://addons.mozilla.org/firefox/addon/styl-us/), and [Opera](https://addons.opera.com/extensions/details/stylus/). 24 | 25 | Using with Stylus: 26 | 27 | 1. Install Stylus 28 | 1. Click the Stylus button in the browser toolbar 29 | 1. Click _Manage_ button 30 | 1. Click the _Write new Style_ button 31 | 1. In the _Enter a Name_ textbox, enter 'Gmail Classic' 32 | 1. Paste the code from [gmail.css](https://github.com/shellscape/gmail-classic/blob/master/gmail.css) in this repository into the _Code 1_ textarea 33 | 1. Click the _+_ button to the right of _Applies to Everything_, which is directly beneath the textarea 34 | 1. In the select dropdown that appears, choose _URLs on the domain_, and enter 'mail.google.com' 35 | 1. Click the _Save_ button near the top left 36 | 1. Enjoy 😀 37 | 38 | ## Meta 39 | 40 | [CONTRIBUTING](./.github/CONTRIBUTING.md) 41 | 42 | [LICENSE (Mozilla Public License)](./LICENSE) 43 | -------------------------------------------------------------------------------- /assets/gmail-classic.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/gmail-classic.ai -------------------------------------------------------------------------------- /assets/icons/128 ~ 96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/icons/128 ~ 96.png -------------------------------------------------------------------------------- /assets/icons/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/icons/128.png -------------------------------------------------------------------------------- /assets/icons/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/icons/16.png -------------------------------------------------------------------------------- /assets/icons/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/icons/32.png -------------------------------------------------------------------------------- /assets/icons/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/icons/48.png -------------------------------------------------------------------------------- /assets/icons/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/icons/64.png -------------------------------------------------------------------------------- /assets/screenshot-chrome-webstore-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/screenshot-chrome-webstore-small.png -------------------------------------------------------------------------------- /assets/screenshot-chrome-webstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/screenshot-chrome-webstore.png -------------------------------------------------------------------------------- /assets/screenshot-full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/screenshot-full.png -------------------------------------------------------------------------------- /assets/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/assets/screenshot.png -------------------------------------------------------------------------------- /build/chrome/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Gmail Classic Theme", 3 | "short_name": "Gmail Classic Theme", 4 | "version": "{{ version }}", 5 | "description": "An extension for reverting Gmail to the Classic Theme", 6 | "homepage_url": "http://github.com/shellscape/gmail-classic", 7 | "update_url": "https://clients2.google.com/service/update2/crx", 8 | "author": "Andrew Powell (shellscape)", 9 | "manifest_version": 2, 10 | "browser_action": { 11 | "default_icon": { 12 | "19": "/assets/16.png", 13 | "38": "/assets/48.png" 14 | } 15 | }, 16 | "content_scripts": [{ 17 | "matches": [ "https://mail.google.com/*" ], 18 | "css": [ "gmail.css" ] 19 | }], 20 | "icons": { 21 | "16": "/assets/16.png", 22 | "32": "/assets/32.png", 23 | "48": "/assets/48.png", 24 | "64": "/assets/64.png", 25 | "128": "/assets/128.png" 26 | }, 27 | "permissions": [ 28 | "activeTab", 29 | "*://mail.google.com/" 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /build/extension-desc.txt: -------------------------------------------------------------------------------- 1 | An extension for reverting Gmail to the Classic Theme. 2 | 3 | What Google giveth, Google taketh away. Google has recently forced a UI update upon the users of Gmail. Unfortunately, not everyone thinks it's an improvement. Installing this extension will revert the UI of Gmail to the previous "Classic" theme. The theme is based on the actual CSS from the previous UI and makes no additions or subjective changes. 4 | 5 | This extension is open source. You can review or contribute to the code for this extension here: https://github.com/shellscape/gmail-classic. 6 | 7 | Release info and change-log can be found here: https://github.com/shellscape/gmail-classic/releases. -------------------------------------------------------------------------------- /dist/chrome.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/dist/chrome.zip -------------------------------------------------------------------------------- /dist/chrome/assets/128 ~ 96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/dist/chrome/assets/128 ~ 96.png -------------------------------------------------------------------------------- /dist/chrome/assets/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/dist/chrome/assets/128.png -------------------------------------------------------------------------------- /dist/chrome/assets/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/dist/chrome/assets/16.png -------------------------------------------------------------------------------- /dist/chrome/assets/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/dist/chrome/assets/32.png -------------------------------------------------------------------------------- /dist/chrome/assets/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/dist/chrome/assets/48.png -------------------------------------------------------------------------------- /dist/chrome/assets/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shellscape/gmail-classic/97b0c80bf1068444e5d83cba96837cb2afe9715d/dist/chrome/assets/64.png -------------------------------------------------------------------------------- /dist/chrome/gmail.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright © 2018 Andrew Powell 3 | 4 | This Source Code Form is subject to the terms of the Mozilla Public 5 | License, v. 2.0. If a copy of the MPL was not distributed with this 6 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | The above copyright notice and this permission notice shall be 9 | included in all copies or substantial portions of this Source Code Form. 10 | */ 11 | 12 | /* ## Generics */ 13 | 14 | /* Use @font-face to prevent conflicts with received HTML email */ 15 | @font-face { 16 | font-family: "Roboto"; 17 | font-weight: 100 549; 18 | src: local("Arial"); 19 | } 20 | 21 | @font-face { 22 | font-family: "Roboto"; 23 | font-weight: 550 900; 24 | src: local("Arial Bold"); 25 | } 26 | 27 | @font-face { 28 | font-family: "Google Sans"; 29 | font-weight: normal; 30 | font-weight: 100 549; 31 | src: local("Arial"); 32 | } 33 | 34 | @font-face { 35 | font-family: "Google Sans"; 36 | font-weight: normal; 37 | font-weight: 550 900; 38 | src: local("Arial Bold"); 39 | } 40 | 41 | * { 42 | -webkit-font-smoothing: auto !important; 43 | letter-spacing: 0 !important; 44 | } 45 | 46 | body, 47 | td, 48 | input, 49 | textarea, 50 | select { 51 | box-shadow: none !important; 52 | font-size: 12.8px !important; 53 | margin: 0 !important; 54 | } 55 | 56 | span { 57 | font-size: 12.8px; 58 | letter-spacing: normal; 59 | } 60 | 61 | a { 62 | font-size: 12.8px; 63 | } 64 | 65 | .aeN, 66 | .wT { 67 | min-width: 202px !important; 68 | } 69 | 70 | .nM, 71 | .xY, 72 | .yW { 73 | font-size: 0.8rem !important; 74 | } 75 | 76 | .TK .TO { 77 | -webkit-border-radius: 0 !important; 78 | border-radius: 0 !important; 79 | } 80 | 81 | .TN .qr { 82 | display: none; 83 | } 84 | 85 | /* ## Buttons */ 86 | 87 | .qr { 88 | visibility: hidden !important; 89 | } 90 | 91 | .Bn { 92 | border: none !important; 93 | } 94 | 95 | .bzo > .G-tF > .G-Ni > .T-I, 96 | .SI .bzo > .G-tF > .G-Ni > .T-I { 97 | margin-left: 0; 98 | } 99 | 100 | .bzn:not(.bzo) .mA > .Bn { 101 | margin: 0 !important; 102 | } 103 | 104 | div[role="button"] div::before { 105 | /* Remove Button Animation */ 106 | transform: scale(0) !important; 107 | } 108 | 109 | body[jsaction] [gh="cm"] { 110 | /* Compose */ 111 | background-color: #d14836 !important; 112 | background-image: linear-gradient(to bottom, #dd4b39, #d14836) !important; 113 | border: 1px solid transparent !important; 114 | border-radius: 2px !important; 115 | box-shadow: none !important; 116 | color: #fff !important; 117 | font-size: 11px !important; 118 | font-weight: bold !important; 119 | height: 27px !important; 120 | line-height: 27px !important; 121 | margin-left: 18px !important; 122 | text-shadow: 0 1px rgba(0, 0, 0, 0.1) !important; 123 | text-transform: uppercase !important; 124 | } 125 | 126 | body[jsaction] [gh="cm"]::before { 127 | /* Compose Background */ 128 | background-image: none !important; 129 | min-width: 26px !important; 130 | } 131 | 132 | body[jsaction] div[jscontroller] > div > div > div > div { 133 | /* Compose Background */ 134 | margin: -1px !important; 135 | padding-top: 15px !important; 136 | } 137 | 138 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div[style]::after { 139 | /* Folders */ 140 | display: none !important; 141 | } 142 | 143 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div[style]::before { 144 | /* Folders */ 145 | border-radius: 0 !important; 146 | } 147 | 148 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div:nth-child(4) { 149 | /* Tag Dropdown */ 150 | margin-right: 15px; 151 | position: absolute; 152 | top: 0; 153 | } 154 | 155 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div:nth-child(4) div[aria-haspopup="true"]::before { 156 | /* No Bubbles */ 157 | background-color: initial !important; 158 | } 159 | 160 | body[jsaction] [role="navigation"] [data-collapsed-nav-tooltip] { 161 | /* No Bubbles */ 162 | border-radius: 0 !important; 163 | } 164 | 165 | body[jsaction] [role="navigation"] a { 166 | /* No Bubbles */ 167 | font-size: 12.8px !important; 168 | } 169 | 170 | .TI .T-I-ax7, 171 | .z0 .T-I-ax7, 172 | .G-atb .T-I-ax7, 173 | .Bn { 174 | background-color: transparent !important; 175 | background-image: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1) !important; 176 | background-image: linear-gradient(top, #f5f5f5, #f1f1f1) !important; 177 | background-image: -webkit-linear-gradient(to bottom, #f5f5f5, #f1f1f1) !important; 178 | background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1) !important; 179 | font-size: 11px !important; 180 | font-weight: bold !important; 181 | } 182 | 183 | /* stylelint-disable-next-line */ 184 | .TI .T-I-ax7, 185 | .z0 .T-I-ax7, 186 | .G-atb .T-I-ax7, 187 | .Bn { 188 | border: 1px solid rgba(0, 0, 0, 0.1) !important; 189 | border-radius: 2px !important; 190 | height: 26px !important; 191 | line-height: 27px !important; 192 | min-width: 64px !important; 193 | } 194 | 195 | .G-tF > .G-Ni > .T-I, 196 | .SI .G-tF > .G-Ni > .T-I { 197 | margin-left: 0 !important; 198 | margin-right: 24px !important; 199 | } 200 | 201 | .G-atb { 202 | padding: 0 16px 0 0 !important; 203 | } 204 | 205 | .G-Ni.J-J5-Ji > .T-I { 206 | margin-right: 0 !important; 207 | } 208 | 209 | .aqL .G-Ni.J-J5-Ji { 210 | -webkit-box-shadow: none !important; 211 | box-shadow: none !important; 212 | margin-right: 32px !important; 213 | padding-right: 0 !important; 214 | } 215 | 216 | .G-Ni.G-aE { 217 | margin-right: 32px !important; 218 | } 219 | 220 | .G-Ni.J-J5-Ji > .T-I:not(:first-child) { 221 | border-bottom-left-radius: 0 !important; 222 | border-top-left-radius: 0 !important; 223 | } 224 | 225 | .G-Ni.J-J5-Ji:not(:first-child) > .T-I:not(:last-child) { 226 | border-bottom-right-radius: 0 !important; 227 | border-top-right-radius: 0 !important; 228 | margin-right: -1px !important; 229 | } 230 | 231 | .aqK, 232 | .G-tF, 233 | .aqJ, 234 | .iH, 235 | .adF { 236 | height: 28px !important; 237 | } 238 | 239 | .d-Na-JX-I.d-Na-M7-JX.d-Na-Gs, 240 | .d-Na-JX-I.d-Na-JG.d-Na-IF { 241 | height: 28px !important; 242 | line-height: 28px !important; 243 | } 244 | 245 | .G-atb .aqJ .amD, 246 | .G-atb .aqJ .T-I-ax7 { 247 | margin-left: 0 !important; 248 | min-width: 40px !important; 249 | } 250 | 251 | .G-atb .aqJ .amD:nth-child(2) { 252 | margin-left: 20px !important; 253 | } 254 | 255 | .T-I-JW.amD::before, 256 | .G-Ni .G-asx::before { 257 | display: none !important; 258 | } 259 | 260 | .asa::before, 261 | .T-Jo::before, 262 | .d-Na-JX-I::before { 263 | display: none !important; 264 | } 265 | 266 | .G-Ni.G-aE:not(:first-child) { 267 | -webkit-box-shadow: none !important; 268 | box-shadow: none !important; 269 | } 270 | 271 | .iG .h0 .adg { 272 | margin-left: 0 !important; 273 | min-width: 40px !important; 274 | } 275 | 276 | .h0 > .adl { 277 | padding-right: 20px !important; 278 | } 279 | 280 | .nH .gm-boomerang-button-home { 281 | background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1) !important; 282 | border-radius: 2px !important; 283 | color: transparent !important; 284 | line-height: 26px !important; 285 | padding-top: 0 !important; 286 | position: relative !important; 287 | text-indent: -9999px !important; 288 | top: 0 !important; 289 | width: 66px !important; 290 | } 291 | 292 | .nH .gm-boomerang-button-home:hover { 293 | background-image: linear-gradient(to bottom, #dbdbdb, #e8e8e8) !important; 294 | } 295 | 296 | .nH .gm-boomerang-button-home img { 297 | left: 20px !important; 298 | position: absolute !important; 299 | top: 6px !important; 300 | } 301 | 302 | .bzn .G-Ni { 303 | margin-left: 0 !important; 304 | } 305 | 306 | .inboxsdk__thread_toolbar_parent .bzn .G-Ni { 307 | margin-right: 32px !important; 308 | padding-right: 0 !important; 309 | } 310 | 311 | .gm-boomerang-button-thread { 312 | background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1) !important; 313 | position: relative !important; 314 | text-indent: -20px !important; 315 | top: 1px !important; 316 | width: 140px !important; 317 | } 318 | 319 | .gm-boomerang-button-thread:hover { 320 | background-image: linear-gradient(to bottom, #dbdbdb, #e8e8e8) !important; 321 | } 322 | 323 | .gm-boomerang-button-thread img { 324 | left: 20px !important; 325 | position: absolute !important; 326 | top: 6px !important; 327 | } 328 | 329 | .adg::before { 330 | display: none !important; 331 | } 332 | 333 | /* ## Email Count */ 334 | 335 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div.aio { 336 | flex: inherit !important; 337 | } 338 | 339 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div.aio div:last-child { 340 | color: #222; 341 | display: initial !important; 342 | font-size: 12.8px; 343 | font-weight: bold; 344 | padding-left: 5px; 345 | } 346 | 347 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div.aio div:last-child::before { 348 | content: "("; 349 | } 350 | 351 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div.aio div:last-child:last-child::after { 352 | content: ")"; 353 | } 354 | 355 | /* ## Labels */ 356 | 357 | .ar { 358 | border-radius: 5 !important; 359 | font-size: 0.7rem !important; 360 | } 361 | 362 | /* ## List Rows */ 363 | 364 | .wT > .n3 .byl:first-child .aim:first-child .nZ { 365 | background-color: transparent !important; 366 | } 367 | 368 | .yO { 369 | background: rgba(242, 245, 245, 0.8) !important; 370 | border-bottom: 1px #e5e5e5 solid !important; 371 | color: #222 !important; 372 | } 373 | 374 | .zA { 375 | /* Rows */ 376 | border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important; 377 | box-shadow: unset !important; 378 | padding-bottom: 7px; 379 | padding-top: 6px; 380 | } 381 | 382 | .zE { 383 | border-bottom: 1px #e5e5e5 solid !important; 384 | color: #222 !important; 385 | -webkit-font-smoothing: auto !important; 386 | } 387 | 388 | .x7 { 389 | /* Selected Row */ 390 | background: #ffc !important; 391 | color: #222 !important; 392 | } 393 | 394 | .zA:hover, 395 | .zE, 396 | .yO { 397 | -webkit-box-shadow: none !important; 398 | box-shadow: none !important; 399 | -webkit-font-smoothing: auto !important; 400 | } 401 | 402 | .yW { 403 | -webkit-font-smoothing: auto !important; 404 | } 405 | 406 | /* ## Subject Preview */ 407 | 408 | .zA .ze { 409 | font-weight: 400; 410 | } 411 | 412 | /* ## Email Detail View */ 413 | 414 | .hx .gD { 415 | /* Sender Name */ 416 | font-size: 15px; 417 | font-weight: 500; 418 | } 419 | 420 | .ha > .hP { 421 | /* Subject */ 422 | font-size: 18px; 423 | } 424 | 425 | div { 426 | /* Tab / Sender */ 427 | font-weight: 400; 428 | } 429 | 430 | .bA4 { 431 | font-size: 13px !important; 432 | } 433 | 434 | /* ## Left Nav */ 435 | 436 | .TO .n0 { 437 | color: #222 !important; 438 | font-size: 13px !important; 439 | } 440 | 441 | .TO { 442 | border-left: 4px solid transparent; 443 | } 444 | 445 | .nZ.aiq { 446 | background: transparent !important; 447 | border-left: 4px solid rgb(221, 75, 57) !important; 448 | } 449 | 450 | .nZ.TO .n0 { 451 | color: rgb(221, 75, 57) !important; 452 | text-shadow: none !important; 453 | } 454 | 455 | .gb_Ra { 456 | /* Logo Border */ 457 | background-color: #f1f1f1 !important; 458 | border-width: 0 !important; 459 | } 460 | 461 | div[role="navigation"][style][aria-labelledby] h2 + div { 462 | max-width: 179px !important; 463 | min-width: 179px !important; 464 | } 465 | 466 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div { 467 | /* Selection */ 468 | background: #fff; 469 | } 470 | 471 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div::before { 472 | border-left: 4px solid #dd4b39; 473 | content: ""; 474 | display: block; 475 | height: 100%; 476 | left: 0; 477 | position: absolute; 478 | width: 100%; 479 | } 480 | 481 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div:hover { 482 | background: transparent !important; 483 | background-color: #f1f3f4 !important; 484 | } 485 | 486 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div a { 487 | color: #dd4b39 !important; 488 | } 489 | 490 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div > div:nth-child(3) div { 491 | /* Email Count */ 492 | color: #dd4b39 !important; 493 | } 494 | 495 | body[jsaction] [role="navigation"] [data-collapsed-nav-tooltip] > div img + div { 496 | /* Inbox Nav Icon */ 497 | display: none !important; 498 | } 499 | 500 | body[jsaction] [role="navigation"] [data-collapsed-nav-tooltip] > div { 501 | height: 21px !important; 502 | } 503 | 504 | /* ## Tabs */ 505 | 506 | .aAy.aIf-aLe.J-KU-KO, 507 | .aAy.aKe-aLe.J-KU-KO, 508 | .aAy.aJi-aLe.J-KU-KO, 509 | .aAy.aH2-aLe.J-KU-KO { 510 | height: 38px !important; 511 | } 512 | 513 | .aKh { 514 | background-color: #f5f5f5 !important; 515 | height: 38px !important; 516 | margin-top: 5px !important; 517 | } 518 | 519 | .l2 { 520 | padding-bottom: 5px !important; 521 | } 522 | 523 | .l6 { 524 | padding-top: 0 !important; 525 | } 526 | 527 | .bAp.b8.UC .vh { 528 | font-size: 12px; 529 | margin-left: 260px; 530 | opacity: 0.4; 531 | padding-right: 30px; 532 | } 533 | 534 | /* ## Header */ 535 | 536 | header[role="banner"] { 537 | background-color: #f1f1f1 !important; 538 | } 539 | 540 | #aso_search_form_anchor { 541 | background-color: #fff !important; 542 | } 543 | 544 | #aso_search_form_anchor:hover { 545 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important; 546 | } 547 | 548 | /* ## Message */ 549 | 550 | [role="main"] table[role="presentation"] > tr > td:first-child > div:nth-child(2) > div:first-child { 551 | /* Title */ 552 | padding: 8px 0 0 8px; 553 | position: relative; 554 | } 555 | 556 | div:not([role="list"]) div[data-message-id][class]::before { 557 | /* Title Bottom Border */ 558 | border-bottom: 1px solid #d8d8d8; 559 | content: ""; 560 | height: 1px; 561 | pointer-events: none; 562 | position: absolute; 563 | top: 7px; 564 | width: 100%; 565 | } 566 | 567 | [role="main"] table[role="presentation"] > tr > td:first-child > div:nth-child(2) h2 { 568 | font-size: 17.6px; 569 | } 570 | 571 | /* ## Tags */ 572 | 573 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div[style], 574 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div.qj { 575 | margin-right: 0 !important; 576 | position: absolute; 577 | right: 0; 578 | } 579 | 580 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div.qj::after { 581 | display: none; 582 | } 583 | 584 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div.qj::before { 585 | border-radius: 0 !important; 586 | } 587 | -------------------------------------------------------------------------------- /dist/chrome/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Gmail Classic Theme", 3 | "short_name": "Gmail Classic Theme", 4 | "version": "0.1.1", 5 | "description": "An extension for reverting Gmail to the Classic Theme", 6 | "homepage_url": "http://github.com/shellscape/gmail-classic", 7 | "update_url": "https://clients2.google.com/service/update2/crx", 8 | "author": "Andrew Powell (shellscape)", 9 | "manifest_version": 2, 10 | "browser_action": { 11 | "default_icon": { 12 | "19": "/assets/16.png", 13 | "38": "/assets/48.png" 14 | } 15 | }, 16 | "content_scripts": [{ 17 | "matches": [ "https://mail.google.com/*" ], 18 | "css": [ "gmail.css" ] 19 | }], 20 | "icons": { 21 | "16": "/assets/16.png", 22 | "32": "/assets/32.png", 23 | "48": "/assets/48.png", 24 | "64": "/assets/64.png", 25 | "128": "/assets/128.png" 26 | }, 27 | "permissions": [ 28 | "activeTab", 29 | "*://mail.google.com/" 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /gmail.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright © 2018 Andrew Powell 3 | 4 | This Source Code Form is subject to the terms of the Mozilla Public 5 | License, v. 2.0. If a copy of the MPL was not distributed with this 6 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | 8 | The above copyright notice and this permission notice shall be 9 | included in all copies or substantial portions of this Source Code Form. 10 | */ 11 | 12 | /* ## Generics */ 13 | 14 | /* Use @font-face to prevent conflicts with received HTML email */ 15 | @font-face { 16 | font-family: "Roboto"; 17 | font-weight: 100 549; 18 | src: local("Arial"); 19 | } 20 | 21 | @font-face { 22 | font-family: "Roboto"; 23 | font-weight: 550 900; 24 | src: local("Arial Bold"); 25 | } 26 | 27 | @font-face { 28 | font-family: "Google Sans"; 29 | font-weight: normal; 30 | font-weight: 100 549; 31 | src: local("Arial"); 32 | } 33 | 34 | @font-face { 35 | font-family: "Google Sans"; 36 | font-weight: normal; 37 | font-weight: 550 900; 38 | src: local("Arial Bold"); 39 | } 40 | 41 | * { 42 | -webkit-font-smoothing: auto !important; 43 | letter-spacing: 0 !important; 44 | } 45 | 46 | body, 47 | td, 48 | input, 49 | textarea, 50 | select { 51 | box-shadow: none !important; 52 | font-size: 12.8px !important; 53 | margin: 0 !important; 54 | } 55 | 56 | span { 57 | font-size: 12.8px; 58 | letter-spacing: normal; 59 | } 60 | 61 | a { 62 | font-size: 12.8px; 63 | } 64 | 65 | .aeN, 66 | .wT { 67 | min-width: 202px !important; 68 | } 69 | 70 | .nM, 71 | .xY, 72 | .yW { 73 | font-size: 0.8rem !important; 74 | } 75 | 76 | .TK .TO { 77 | -webkit-border-radius: 0 !important; 78 | border-radius: 0 !important; 79 | } 80 | 81 | .TN .qr { 82 | display: none; 83 | } 84 | 85 | /* ## Buttons */ 86 | 87 | .qr { 88 | visibility: hidden !important; 89 | } 90 | 91 | .Bn { 92 | border: none !important; 93 | } 94 | 95 | .bzo > .G-tF > .G-Ni > .T-I, 96 | .SI .bzo > .G-tF > .G-Ni > .T-I { 97 | margin-left: 0; 98 | } 99 | 100 | .bzn:not(.bzo) .mA > .Bn { 101 | margin: 0 !important; 102 | } 103 | 104 | div[role="button"] div::before { 105 | /* Remove Button Animation */ 106 | transform: scale(0) !important; 107 | } 108 | 109 | body[jsaction] [gh="cm"] { 110 | /* Compose */ 111 | background-color: #d14836 !important; 112 | background-image: linear-gradient(to bottom, #dd4b39, #d14836) !important; 113 | border: 1px solid transparent !important; 114 | border-radius: 2px !important; 115 | box-shadow: none !important; 116 | color: #fff !important; 117 | font-size: 11px !important; 118 | font-weight: bold !important; 119 | height: 27px !important; 120 | line-height: 27px !important; 121 | margin-left: 18px !important; 122 | text-shadow: 0 1px rgba(0, 0, 0, 0.1) !important; 123 | text-transform: uppercase !important; 124 | } 125 | 126 | body[jsaction] [gh="cm"]::before { 127 | /* Compose Background */ 128 | background-image: none !important; 129 | min-width: 26px !important; 130 | } 131 | 132 | body[jsaction] div[jscontroller] > div > div > div > div { 133 | /* Compose Background */ 134 | margin: -1px !important; 135 | padding-top: 15px !important; 136 | } 137 | 138 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div[style]::after { 139 | /* Folders */ 140 | display: none !important; 141 | } 142 | 143 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div[style]::before { 144 | /* Folders */ 145 | border-radius: 0 !important; 146 | } 147 | 148 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div:nth-child(4) { 149 | /* Tag Dropdown */ 150 | margin-right: 15px; 151 | position: absolute; 152 | top: 0; 153 | } 154 | 155 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div:nth-child(4) div[aria-haspopup="true"]::before { 156 | /* No Bubbles */ 157 | background-color: initial !important; 158 | } 159 | 160 | body[jsaction] [role="navigation"] [data-collapsed-nav-tooltip] { 161 | /* No Bubbles */ 162 | border-radius: 0 !important; 163 | } 164 | 165 | body[jsaction] [role="navigation"] a { 166 | /* No Bubbles */ 167 | font-size: 12.8px !important; 168 | } 169 | 170 | .TI .T-I-ax7, 171 | .z0 .T-I-ax7, 172 | .G-atb .T-I-ax7, 173 | .Bn { 174 | background-color: transparent !important; 175 | background-image: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1) !important; 176 | background-image: linear-gradient(top, #f5f5f5, #f1f1f1) !important; 177 | background-image: -webkit-linear-gradient(to bottom, #f5f5f5, #f1f1f1) !important; 178 | background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1) !important; 179 | font-size: 11px !important; 180 | font-weight: bold !important; 181 | } 182 | 183 | /* stylelint-disable-next-line */ 184 | .TI .T-I-ax7, 185 | .z0 .T-I-ax7, 186 | .G-atb .T-I-ax7, 187 | .Bn { 188 | border: 1px solid rgba(0, 0, 0, 0.1) !important; 189 | border-radius: 2px !important; 190 | height: 26px !important; 191 | line-height: 27px !important; 192 | min-width: 64px !important; 193 | } 194 | 195 | .G-tF > .G-Ni > .T-I, 196 | .SI .G-tF > .G-Ni > .T-I { 197 | margin-left: 0 !important; 198 | margin-right: 24px !important; 199 | } 200 | 201 | .G-atb { 202 | padding: 0 16px 0 0 !important; 203 | } 204 | 205 | .G-Ni.J-J5-Ji > .T-I { 206 | margin-right: 0 !important; 207 | } 208 | 209 | .aqL .G-Ni.J-J5-Ji { 210 | -webkit-box-shadow: none !important; 211 | box-shadow: none !important; 212 | margin-right: 32px !important; 213 | padding-right: 0 !important; 214 | } 215 | 216 | .G-Ni.G-aE { 217 | margin-right: 32px !important; 218 | } 219 | 220 | .G-Ni.J-J5-Ji > .T-I:not(:first-child) { 221 | border-bottom-left-radius: 0 !important; 222 | border-top-left-radius: 0 !important; 223 | } 224 | 225 | .G-Ni.J-J5-Ji:not(:first-child) > .T-I:not(:last-child) { 226 | border-bottom-right-radius: 0 !important; 227 | border-top-right-radius: 0 !important; 228 | margin-right: -1px !important; 229 | } 230 | 231 | .aqK, 232 | .G-tF, 233 | .aqJ, 234 | .iH, 235 | .adF { 236 | height: 28px !important; 237 | } 238 | 239 | .d-Na-JX-I.d-Na-M7-JX.d-Na-Gs, 240 | .d-Na-JX-I.d-Na-JG.d-Na-IF { 241 | height: 28px !important; 242 | line-height: 28px !important; 243 | } 244 | 245 | .G-atb .aqJ .amD, 246 | .G-atb .aqJ .T-I-ax7 { 247 | margin-left: 0 !important; 248 | min-width: 40px !important; 249 | } 250 | 251 | .G-atb .aqJ .amD:nth-child(2) { 252 | margin-left: 20px !important; 253 | } 254 | 255 | .T-I-JW.amD::before, 256 | .G-Ni .G-asx::before { 257 | display: none !important; 258 | } 259 | 260 | .asa::before, 261 | .T-Jo::before, 262 | .d-Na-JX-I::before { 263 | display: none !important; 264 | } 265 | 266 | .G-Ni.G-aE:not(:first-child) { 267 | -webkit-box-shadow: none !important; 268 | box-shadow: none !important; 269 | } 270 | 271 | .iG .h0 .adg { 272 | margin-left: 0 !important; 273 | min-width: 40px !important; 274 | } 275 | 276 | .h0 > .adl { 277 | padding-right: 20px !important; 278 | } 279 | 280 | .nH .gm-boomerang-button-home { 281 | background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1) !important; 282 | border-radius: 2px !important; 283 | color: transparent !important; 284 | line-height: 26px !important; 285 | padding-top: 0 !important; 286 | position: relative !important; 287 | text-indent: -9999px !important; 288 | top: 0 !important; 289 | width: 66px !important; 290 | } 291 | 292 | .nH .gm-boomerang-button-home:hover { 293 | background-image: linear-gradient(to bottom, #dbdbdb, #e8e8e8) !important; 294 | } 295 | 296 | .nH .gm-boomerang-button-home img { 297 | left: 20px !important; 298 | position: absolute !important; 299 | top: 6px !important; 300 | } 301 | 302 | .bzn .G-Ni { 303 | margin-left: 0 !important; 304 | } 305 | 306 | .inboxsdk__thread_toolbar_parent .bzn .G-Ni { 307 | margin-right: 32px !important; 308 | padding-right: 0 !important; 309 | } 310 | 311 | .gm-boomerang-button-thread { 312 | background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1) !important; 313 | position: relative !important; 314 | text-indent: -20px !important; 315 | top: 1px !important; 316 | width: 140px !important; 317 | } 318 | 319 | .gm-boomerang-button-thread:hover { 320 | background-image: linear-gradient(to bottom, #dbdbdb, #e8e8e8) !important; 321 | } 322 | 323 | .gm-boomerang-button-thread img { 324 | left: 20px !important; 325 | position: absolute !important; 326 | top: 6px !important; 327 | } 328 | 329 | .adg::before { 330 | display: none !important; 331 | } 332 | 333 | /* ## Email Count */ 334 | 335 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div.aio { 336 | flex: inherit !important; 337 | } 338 | 339 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div.aio div:last-child { 340 | color: #222; 341 | display: initial !important; 342 | font-size: 12.8px; 343 | font-weight: bold; 344 | padding-left: 5px; 345 | } 346 | 347 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div.aio div:last-child::before { 348 | content: "("; 349 | } 350 | 351 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] div div.aio div:last-child:last-child::after { 352 | content: ")"; 353 | } 354 | 355 | /* ## Labels */ 356 | 357 | .ar { 358 | border-radius: 5 !important; 359 | font-size: 0.7rem !important; 360 | } 361 | 362 | /* ## List Rows */ 363 | 364 | .wT > .n3 .byl:first-child .aim:first-child .nZ { 365 | background-color: transparent !important; 366 | } 367 | 368 | .yO { 369 | background: rgba(242, 245, 245, 0.8) !important; 370 | border-bottom: 1px #e5e5e5 solid !important; 371 | color: #222 !important; 372 | } 373 | 374 | .zA { 375 | /* Rows */ 376 | border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important; 377 | box-shadow: unset !important; 378 | padding-bottom: 7px; 379 | padding-top: 6px; 380 | } 381 | 382 | .zE { 383 | border-bottom: 1px #e5e5e5 solid !important; 384 | color: #222 !important; 385 | -webkit-font-smoothing: auto !important; 386 | } 387 | 388 | .x7 { 389 | /* Selected Row */ 390 | background: #ffc !important; 391 | color: #222 !important; 392 | } 393 | 394 | .zA:hover, 395 | .zE, 396 | .yO { 397 | -webkit-box-shadow: none !important; 398 | box-shadow: none !important; 399 | -webkit-font-smoothing: auto !important; 400 | } 401 | 402 | .yW { 403 | -webkit-font-smoothing: auto !important; 404 | } 405 | 406 | /* ## Subject Preview */ 407 | 408 | .zA .ze { 409 | font-weight: 400; 410 | } 411 | 412 | /* ## Email Detail View */ 413 | 414 | .hx .gD { 415 | /* Sender Name */ 416 | font-size: 15px; 417 | font-weight: 500; 418 | } 419 | 420 | .ha > .hP { 421 | /* Subject */ 422 | font-size: 18px; 423 | } 424 | 425 | div { 426 | /* Tab / Sender */ 427 | font-weight: 400; 428 | } 429 | 430 | .bA4 { 431 | font-size: 13px !important; 432 | } 433 | 434 | /* ## Left Nav */ 435 | 436 | .TO .n0 { 437 | color: #222 !important; 438 | font-size: 13px !important; 439 | } 440 | 441 | .TO { 442 | border-left: 4px solid transparent; 443 | } 444 | 445 | .nZ.aiq { 446 | background: transparent !important; 447 | border-left: 4px solid rgb(221, 75, 57) !important; 448 | } 449 | 450 | .nZ.TO .n0 { 451 | color: rgb(221, 75, 57) !important; 452 | text-shadow: none !important; 453 | } 454 | 455 | .gb_Ra { 456 | /* Logo Border */ 457 | background-color: #f1f1f1 !important; 458 | border-width: 0 !important; 459 | } 460 | 461 | div[role="navigation"][style][aria-labelledby] h2 + div { 462 | max-width: 179px !important; 463 | min-width: 179px !important; 464 | } 465 | 466 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div { 467 | /* Selection */ 468 | background: #fff; 469 | } 470 | 471 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div::before { 472 | border-left: 4px solid #dd4b39; 473 | content: ""; 474 | display: block; 475 | height: 100%; 476 | left: 0; 477 | position: absolute; 478 | width: 100%; 479 | } 480 | 481 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div:hover { 482 | background: transparent !important; 483 | background-color: #f1f3f4 !important; 484 | } 485 | 486 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div a { 487 | color: #dd4b39 !important; 488 | } 489 | 490 | body[jsaction] .ain [data-collapsed-nav-tooltip][data-tooltip] > div > div:nth-child(3) div { 491 | /* Email Count */ 492 | color: #dd4b39 !important; 493 | } 494 | 495 | body[jsaction] [role="navigation"] [data-collapsed-nav-tooltip] > div img + div { 496 | /* Inbox Nav Icon */ 497 | display: none !important; 498 | } 499 | 500 | body[jsaction] [role="navigation"] [data-collapsed-nav-tooltip] > div { 501 | height: 21px !important; 502 | } 503 | 504 | /* ## Tabs */ 505 | 506 | .aAy.aIf-aLe.J-KU-KO, 507 | .aAy.aKe-aLe.J-KU-KO, 508 | .aAy.aJi-aLe.J-KU-KO, 509 | .aAy.aH2-aLe.J-KU-KO { 510 | height: 38px !important; 511 | } 512 | 513 | .aKh { 514 | background-color: #f5f5f5 !important; 515 | height: 38px !important; 516 | margin-top: 5px !important; 517 | } 518 | 519 | .l2 { 520 | padding-bottom: 5px !important; 521 | } 522 | 523 | .l6 { 524 | padding-top: 0 !important; 525 | } 526 | 527 | .bAp.b8.UC .vh { 528 | font-size: 12px; 529 | margin-left: 260px; 530 | opacity: 0.4; 531 | padding-right: 30px; 532 | } 533 | 534 | /* ## Header */ 535 | 536 | header[role="banner"] { 537 | background-color: #f1f1f1 !important; 538 | } 539 | 540 | #aso_search_form_anchor { 541 | background-color: #fff !important; 542 | } 543 | 544 | #aso_search_form_anchor:hover { 545 | box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) !important; 546 | } 547 | 548 | /* ## Message */ 549 | 550 | [role="main"] table[role="presentation"] > tr > td:first-child > div:nth-child(2) > div:first-child { 551 | /* Title */ 552 | padding: 8px 0 0 8px; 553 | position: relative; 554 | } 555 | 556 | div:not([role="list"]) div[data-message-id][class]::before { 557 | /* Title Bottom Border */ 558 | border-bottom: 1px solid #d8d8d8; 559 | content: ""; 560 | height: 1px; 561 | pointer-events: none; 562 | position: absolute; 563 | top: 7px; 564 | width: 100%; 565 | } 566 | 567 | [role="main"] table[role="presentation"] > tr > td:first-child > div:nth-child(2) h2 { 568 | font-size: 17.6px; 569 | } 570 | 571 | /* ## Tags */ 572 | 573 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div[style], 574 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div.qj { 575 | margin-right: 0 !important; 576 | position: absolute; 577 | right: 0; 578 | } 579 | 580 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div.qj::after { 581 | display: none; 582 | } 583 | 584 | body[jsaction] [data-collapsed-nav-tooltip][data-tooltip-suspended] > div div.qj::before { 585 | border-radius: 0 !important; 586 | } 587 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gmail-classic", 3 | "version": "0.1.1", 4 | "description": "CSS for reverting Gmail to the Classic Theme", 5 | "repository": "shellscape/gmail-classic", 6 | "author": "Andrew Powell ", 7 | "license": "MPL-2.0", 8 | "scripts": { 9 | "build": "npm run build:chrome", 10 | "build:chrome": "npm-run-all --parallel \"build:task:* -- chrome\"", 11 | "build:task:copy": "f(){ cp gmail.css dist/$1; }; f", 12 | "build:task:icons": "f(){ cp -R assets/icons/* \"dist/$1/assets\"; }; f", 13 | "build:task:manifest": "f(){ cat package.json | mustache - build/$1/manifest.json > dist/$1/manifest.json; }; f", 14 | "build:task:zip": "f(){ cd dist/$1 && npx bestzip ../$1.zip ./* && cd ../..;}; f", 15 | "lint": "stylelint gmail.css --config ./.stylelintrc" 16 | }, 17 | "devDependencies": { 18 | "bestzip": "^2.1.2", 19 | "mustache": "^3.0.1", 20 | "npm-run-all": "^4.1.5", 21 | "postcss": "^7.0.6", 22 | "stylelint": "^9.8.0", 23 | "stylelint-config-standard": "^18.2.0", 24 | "stylelint-order": "^1.0.0" 25 | } 26 | } 27 | --------------------------------------------------------------------------------