File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
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)
3
3
}
4
4
5
5
function update ( ) {
6
6
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" ) ;
8
8
//uncomment line above if you want to use <card> instead of <div class='card'>
9
9
var len = list . length ;
10
10
for ( i = 0 ; i < len ; i ++ ) {
@@ -15,10 +15,10 @@ function update(){
15
15
list [ i ] . style . height = "100px" ;
16
16
if ( ! list [ i ] . hasAttribute ( "no-transition" ) )
17
17
list [ i ] . style . transition = ".15s box-shadow" ;
18
- if ( ! list [ i ] . hasAttribute ( "no-material-border" ) )
19
- list [ i ] . style . borderBottom = "1px solid #AAA" ;
20
18
if ( ! list [ i ] . hasAttribute ( "no-padding" ) )
21
19
list [ i ] . style . padding = "10px" ;
20
+ if ( ! list [ i ] . hasAttribute ( "no-border-radius" ) )
21
+ list [ i ] . style . borderRadius = "2px" ;
22
22
doDepth ( list [ i ] ) ; //looping through all of the elements
23
23
}
24
24
}
You can’t perform that action at this time.
0 commit comments