domain.cls par Bruce Wen
Add 'domain' to body class
1 utilisateur·trice1 utilisateur·trice
MĂ©tadonnĂ©es de lâextension
Ă propos de cette extension
Most web sites pages don't use the domain name as body class to distinguish from other web sites' pages. That makes web page appearance customization hard in some degree. The reason is that people have to distinguish web sites by specific configuration (by domain name, regex etc).
By adding domain name to body classList, the problem could be solved. Web/UI/UX developers can create customized styl, css scripts to re-design web page appearance easily - they can put all customization script together for different web sites and don't need to care about collision.
For example, after using the add-on, the web page will be changed to add domain name to body class attribute.
<body class="mozilla ">
<body class="apache">
Then, in styl or css script file, developer can make customization like below:
body.mozilla {font-size: 15px}
body.apache {font-size: 16px}
By adding domain name to body classList, the problem could be solved. Web/UI/UX developers can create customized styl, css scripts to re-design web page appearance easily - they can put all customization script together for different web sites and don't need to care about collision.
For example, after using the add-on, the web page will be changed to add domain name to body class attribute.
<body class="mozilla ">
<body class="apache">
Then, in styl or css script file, developer can make customization like below:
body.mozilla {font-size: 15px}
body.apache {font-size: 16px}
Noté 0 par 1 personne
Autorisations et données
Plus dâinformations
- Liens du module
- Version
- 1.6
- Taille
- 68,21Â Ko
- DerniĂšre mise Ă jour
- il y a 4 ans (22 févr. 2022)
- Catégories associées
- Licence
- Mozilla Public License 2.0
- Historique des versions
- Ajouter Ă la collection
Le dĂ©veloppeur de cette extension demande que vous lâaidiez Ă assurer la poursuite de son dĂ©veloppement en lui versant une petite contribution.
By adding domain name to body classList, it's easier to define styl, css scripts for specific web sites/pages belong to the same domain without worry about collision among different domains.