1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| .background-gradient-1px { background: linear-gradient(#000, #000 100%, transparent 100%) left / 1px 100% no-repeat, linear-gradient(#000, #000 100%, transparent 100%) right / 1px 100% no-repeat, linear-gradient(#000, #000 100%, transparent 100%) top / 100% 1px no-repeat, linear-gradient(#000, #000 100%, transparent 100%) bottom / 100% 1px no-repeat; } .background-gradient-1px { background: -webkit-gradient( linear, left top, right bottom, color-stop(0, transparent), color-stop(0, #000), to(#000) ) left / 1px 100% no-repeat, -webkit-gradient( linear, left top, right bottom, color-stop(0, transparent), color-stop(0, #000), to(#000) ) right / 1px 100% no-repeat, -webkit-gradient( linear, left top, right bottom, color-stop(0, transparent), color-stop(0, #000), to(#000) ) top / 100% 1px no-repeat, -webkit-gradient( linear, left top, right bottom, color-stop(0, transparent), color-stop(0, #000), to(#000) ) bottom / 100% 1px no-repeat; }
|