-
Notifications
You must be signed in to change notification settings - Fork 1
/
LogStyle.min.js
1 lines (1 loc) · 902 Bytes
/
LogStyle.min.js
1
export default{title:o=>{dt=o},log:o=>cl(o),a:(...o)=>{cl(s+(lh(o)>1&&o[0]?o[0]:dt)+s+(lh(o)>2?o[1]:o[lh(o)-1]),pg(3,5)+bs(3,0,0,3)+cr(o[4]?o[4]:color[0])+bd(o[2]?o[2]:color[2])+fs(12),pg(3,5)+br(0,3,3,0)+cr(o[5]?o[5]:color[1])+bd(o[3]?o[3]:color[0])+fs(12))},b:(...o)=>{cl(s+(o[0]?o[0]:dt),pg(4,12)+br(15)+cr(o[2]?o[2]:color[3])+bd(o[1]?o[1]:color[4])+fs(12)+ts("0 0 3px rgba(0, 0, 0, .5)"))},c:(...o)=>{cl(s+(lh(o)>1&&o[0]?o[0]:dt)+s+(o[1]?o[1]:o[0]),pg(3,5)+cr(color[3])+bd(o[2]?o[2]:color[4])+fs(12),pg(3,5)+fs(12))}};let color=["#f8dfa5","#000","#424242","#FFF","#52b138"],dt="Log",s="%c",pg=(...o)=>map(o,"padding:"),bs=(...o)=>map(o,"border-radius:"),mn=(...o)=>map(o,"margin:"),cr=o=>`color:${o};`,bd=o=>`background:${o};`,fs=o=>`ont-size:${o}px;`,br=(...o)=>map(o,"border-radius:"),ts=o=>"text-shadow:"+o+";",map=(o,r)=>(o.map(o=>r+=o+"px "),r+";"),cl=(...o)=>console.log(...o),lh=o=>o.length;