How to use replacement pattern in css?
Assuming your view uses Show: fields. 

Add type as a field, check mark the hide from view box.

Click on your field, in REWRITE RESULTS, checkmark rewrite outlput of field

In there, put &lt;div class="all-links [type]"&gt;[field_name]&lt;/div&gt;

Then in CSS 

.all-links { display: none; }
.all-links.article { display: block !important; }




Another solution, is to use Views Conditional 


  Views Conditional is a simple module that allows you to define
  conditionals (if xxx then yyy) with fields in views.


Then just do a simple condition if type is x, then [field_name]