brand-colors
Advanced tools
Comparing version 1.1.2 to 1.2.1
@@ -97,4 +97,3 @@ var companyContainer = document.getElementById('companies'), | ||
search.addEventListener('keyup', function(event){ | ||
var text = event.target.value.toLowerCase(); | ||
function setSearchCss(text){ | ||
var search = 'li:not([class*="' + text + '"])'; | ||
@@ -110,4 +109,16 @@ | ||
(search, 'width:0 !important', 0); | ||
} | ||
search.addEventListener('keyup', function(event){ | ||
var text = event.target.value.toLowerCase(); | ||
setSearchCss(text); | ||
}); | ||
function checkIfSearchQuery(){ | ||
var query = document.location.search.split('?search='); | ||
if(query.length == 2){ | ||
setSearchCss(query[1]); | ||
search.value = query[1]; | ||
} | ||
} | ||
@@ -117,2 +128,3 @@ // Initiate everything; | ||
companyContainer.addEventListener('mouseout', resetState); | ||
checkIfSearchQuery(); | ||
@@ -154,1 +166,2 @@ //clipboard.js implement event delegation iternally | ||
}) | ||
{ | ||
"name": "brand-colors", | ||
"version": "1.1.2", | ||
"version": "1.2.1", | ||
"description": "A Collection with brand colors (CSS, LESS, SCSS, Stylus).", | ||
@@ -5,0 +5,0 @@ "homepage": "https://brand-colors.com", |
@@ -38,2 +38,3 @@ /* | ||
'alcon-4': '#49a942', | ||
'alibaba': '#F47937', | ||
'alienware': '#020202', | ||
@@ -210,2 +211,3 @@ 'alienware-2': '#2ad2c9', | ||
'daimler-5': '#606061', | ||
'debian': '#A80030', | ||
'delectable': '#334858', | ||
@@ -292,3 +294,3 @@ 'delectable-2': '#cd595a', | ||
'dunked-2': '#212a3e', | ||
'dunked-2': '#3fc380', | ||
'dunked-3': '#3fc380', | ||
'easy-jet': '#ff6600', | ||
@@ -345,2 +347,7 @@ 'easy-jet-2': '#000000', | ||
'feedly': '#2bb24c', | ||
'fedora': '#294172', | ||
'fedora-2': '#325191', | ||
'fedora-3': '#3C6EB4', | ||
'fedora-4': '#81DC3E', | ||
'fedora-5': '#9970B5', | ||
'fiat': '#96172e', | ||
@@ -423,2 +430,4 @@ 'fiat-2': '#6d2d41', | ||
'grunt-2': '#463014', | ||
'gulp': '#CF4646', | ||
'gulp-2':'#FFFFFF', | ||
'hacker-news': '#ff6600', | ||
@@ -594,2 +603,3 @@ 'happn': '#0087b4', | ||
'mcdonalds-8': '#865200', | ||
'medium': '#2FB88B', | ||
'meetup': '#e0393e', | ||
@@ -757,2 +767,6 @@ 'meijer': '#0a4d8c', | ||
'qantas-airlines': '#e0001b', | ||
'qq': '#000000', | ||
'qq-2': '#FFA600', | ||
'qq-3': '#FB0009', | ||
'qq-4': '#FFFFFF', | ||
'quizup': '#ff5454', | ||
@@ -814,2 +828,4 @@ 'quora': '#a82400', | ||
'sap-2': '#999999', | ||
'scratch': '#F7A83A', | ||
'scratch': '#25AFF4', | ||
'scribd': '#1a7bba', | ||
@@ -836,2 +852,4 @@ 'shazam': '#0088ff', | ||
'shopify-6': '#666666', | ||
'sina': '#e71d34', | ||
'sina-2': '#232021', | ||
'skype': '#00aff0', | ||
@@ -901,2 +919,5 @@ 'slack': '#6ecadc', | ||
't-mobile': '#e20074', | ||
'taobao': '#FF4200', | ||
'tableless': '#D71E24', | ||
'tableless-2': '#303030', | ||
'tagstr': '#e74635', | ||
@@ -1078,3 +1099,3 @@ 'tagstr-2': '#e74635', | ||
'western-digital-6': '#003369', | ||
'whatsapp': '#43d854', | ||
'whatsapp': '#25d366', | ||
'whoosnap-designer': '#2fa5d6', | ||
@@ -1081,0 +1102,0 @@ 'whoosnap-designer-2': '#b52f2c', |
{ | ||
"name": "brand-colors", | ||
"version": "1.1.2", | ||
"version": "1.2.1", | ||
"description": "A collection of branding colors of all the major companies.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://brand-colors.com", |
@@ -53,3 +53,18 @@ ![](brand-colors.png) | ||
``` | ||
####postcss | ||
Use [postcss-brand-color](https://github.com/postcss/postcss-brand-colors) plugin. Add it to PostCSS: | ||
```js | ||
postcss([ require('postcss-brand-colors') ]) | ||
``` | ||
and use `*-color` names: | ||
```css | ||
.a-div { | ||
color: spotify-color; | ||
} | ||
``` | ||
###Run brand-colors.com locally | ||
@@ -56,0 +71,0 @@ If you want to work on the static homepage, just run the following commands |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4580441
110
71374
85