How to name CSS classes
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)
This file contains 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
/** Evaluates an array, makes the key lowercasee and makes the value an object with original keyname | |
* @param {Array} iterable=[] an array of arrays:[[key,val],[key,val]] | |
* @returns Array | |
*/ | |
function LowercaseIterable(iterable = []) { | |
if (iterable.length === 0) return []; | |
const newIterable = iterable.map(([key, val]) => { | |
const entry = [ | |
key.toLowerCase(), |
This file contains 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 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
/** | |
* @typedef SpeakerDefaults | |
* @type {object} | |
* @property {string} voiceURI voice that the browser uses | |
* @property {Number} volume loudness. Between 0 and 1.0 | |
* @property {Number} rate speed at which words are spoken. Between 0 and 2. | |
* @property {Number} pitch Between 0 and 2 | |
* @property {string} lang ISO language | |
*/ |
This file contains 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
body { | |
--bgColor: #111; | |
--textColor:rgb(201, 208, 221) ; | |
--infoColor: rgba(201, 208, 221, .7) ; | |
--titleColor: rgb(133,153,187); | |
--linkColor: rgb(57,114,198); | |
--buttonBGColor: #444547; | |
--buttonColor: rgb(201,228,221); | |
--buttonBGColorHover: #72829e; | |
--itemBGColor: #272524; |
This file contains 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 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) |
This file contains 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: { |
NewerOlder