Skip to content

Commit 0590e22

Browse files
committed
Minor shadow fix
Also remove bottom-border and add border-radius
1 parent 97335d8 commit 0590e22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

card-depth.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
function shadow(int){
2-
return "0px "+int/5+"px "+int/3+"px #555"; //shadow equation. accurate to the material design standards (approximately)
2+
return "0px "+int*2+"px "+int*6+"px #555"; //shadow equation. accurate to the material design standards (approximately)
33
}
44

55
function update(){
66
var list = document.getElementsByClassName("card"); //loop through all HTML elements with the class card.
7-
//var list = document.getElementsByTagName("card");
7+
var list = document.getElementsByTagName("card");
88
//uncomment line above if you want to use <card> instead of <div class='card'>
99
var len = list.length;
1010
for(i=0;i<len;i++){
@@ -15,10 +15,10 @@ function update(){
1515
list[i].style.height="100px";
1616
if(!list[i].hasAttribute("no-transition"))
1717
list[i].style.transition=".15s box-shadow";
18-
if(!list[i].hasAttribute("no-material-border"))
19-
list[i].style.borderBottom="1px solid #AAA";
2018
if(!list[i].hasAttribute("no-padding"))
2119
list[i].style.padding="10px";
20+
if(!list[i].hasAttribute("no-border-radius"))
21+
list[i].style.borderRadius="2px";
2222
doDepth(list[i]); //looping through all of the elements
2323
}
2424
}

0 commit comments

Comments
 (0)