How to name CSS classes
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
| store = { | |
| types: [localStorage,sessionStorage], | |
| convertValue: function (v) { | |
| return typeof v !== "object" ? v : JSON.stringify(v); | |
| }, | |
| unconvertValue: function (v) { | |
| if (v !== null) { | |
| if ( v.indexOf("{") === 0 || v.indexOf("[") === 0 ) { | |
| var v = JSON.parse(v); | |
| return v; |
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
| table { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: stretch; | |
| } | |
| thead { | |
| order: -1; | |
| } | |
| tbody { | |
| flex-grow: 1; |
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
| window.analyzer = { | |
| init: function (object, id) { | |
| this.functions.appendTable(id); | |
| this.functions.setupHeaders(object); | |
| this.functions.addData(object); | |
| this.functions.addCaption("Analysis of the stylesheets"); | |
| }, | |
| data: {}, | |
| helpers: { | |
| wrapper: function (id) { |
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
| window.cssom = { | |
| init: function () { | |
| var _this = window.cssom; | |
| _this.functions.bootstrapTable(); | |
| }, | |
| data: { | |
| table: {}, | |
| rootClass: "CSSOM", | |
| tableClass: "table", | |
| rowButton: { |
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
| speech = function (msg, options, onend) { | |
| this.text = msg; | |
| this._defaults = { | |
| voiceURI: 'native', | |
| volume: 3, | |
| rate: 2, | |
| pitch: 1.5, | |
| lang: 'en-US' | |
| }; | |
| this.defaults = options !== undefined ? options : this._defaults; |
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
| Release 1 (1996) | |
| Release 2 (1997) | |
| Release 3 (1999) | |
| Release 4 (2001) | |
| Release 5 (2003) | |
| Tridion 5.1 (2005) | |
| Tridion 5.2 (2006) | |
| SDL Tridion 5.3 (January 2008) | |
| SDL Tridion 2009 (November 2009) | |
| SDL Tridion 2011 (Januari 2011) |
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
| # Shamelessly stolen from https://www.quora.com/As-a-programmer-what-tasks-have-you-automated-to-make-your-everyday-life-easier/answer/Cory-Engdahl?srid=tVE5 | |
| # | |
| # Usage: | |
| # python cleaner.py -f [full/path/to/folder] | |
| # arguments | |
| # -p, --path : fully qualified path to folder (required) | |
| # -d, --days : Age in days of the file to delete (optional, default is 1 day) | |
| # -e, --exclude: name of files to save (optional) | |
| # -i, --include: name of files to delete regardless of timeframe (optional) |
Special thanks to Carwin Young (Github @carwin) whose docs this is based on
This is a guide for formatting Sass stylesheets, it's goals are:
- To encourage consistency between developers in a repository.
- Styles applying to an element should be in one place
- Code should be easily find-able and legible by humans
- Classes are mostly explicitly named (pointing to specific elements, not functionality)
OlderNewer