Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [comment]code by sox
- [font=Staatliches]font1[/font]
- [/comment][comment]----
- SOX'S RECOMMENDED WAY TO CUSTOMIZE THIS CODE:
- 1. swap out the sample picture URL value (mainpic) to your new picture's URL
- 2. try different colors for the overlay blocks (accent1) to find one that creates a color scheme that you feel suits the picture. i usually start by picking a color from the background of the picture and going warmer/colder/brighter/darker from there, or trying a color from the foreground if that one doesn't work.
- 3. pick two new accent colors (accent2, accent3) out of the color scheme you just created with the overlay blocks that balance out the color distribution across the card
- ----[/comment][div=height:auto; width:100%; overflow-x:auto; overflow-y:hidden;
- /*accent colors*/
- --accent0: #000; /*black - keep dark!*/
- --accent1: #FB3B3F; /*red*/
- --accent2: #069870; /*green*/
- --accent3: #F1BBA2; /*tan*/
- /*other colors*/
- --cord: #171717; /*lanyard color - dark gray*/
- --clip: #9C9C9C; /*metal clips color - gray*/
- /*values to edit*/
- --card: var(--accent0); /*card background color*/
- --blockcolor: var(--accent1); /*overlay block decorations color*/
- --blockblend: difference; /*block blend mode*/
- --titlecolor: var(--accent2); /*name color*/
- --titlesize: 18px; /*name font size*/
- --titlelineheight: 15px; /*name line height*/
- --titlefont: var(--font1); /*name font*/
- --rolecolor: var(--accent3); /*role color*/
- --rolesize: 13px; /*role font size*/
- --rolelineheight: 15px; /*role line height*/
- --rolefont: var(--font1); /*role font*/
- /*pics*/
- --mainpic: url('https://i.imgur.com/4yxrNMG.png'); /*character picture*/
- --mainpicsize: cover; /*picture size*/
- --mainpicposition: 50% 50%; /*picture positioning*/
- /*values you probably don't need to edit*/
- --cardshadow: 3px 3px 5px rgba(0,0,0,0.4); /*card bkgd shadow*/
- --contentwidth: 140px; /*card content container width*/
- --contentheight: 235px; /*card content container height*/
- --clipbase: 5px solid var(--clip); /*metal clips base color/width*/
- --clipshadowouter: 0px 0px 3px rgba(0,0,0,1) inset; /*clips shading*/
- --clipshadowinner: 0px 0px 3px rgba(0,0,0,1); /*clips shading*/
- --topclipradius: 5px 5px 50px 50px; /*top clip border radius*/
- --bottomclipradius: 10px; /*bottom clip border radius*/
- --coverradius: 0px 0px 3px 3px; /*clip overlap cover border radius*/
- --covershadow: 0px 0px 3px rgba(0,0,0,0.5) inset; /*clip overlap cover shading*/
- --cordradius: 0px 0px 3px 3px; /*lanyard border radius*/
- --cordshadow: 0px 0px 3px rgba(0,0,0,1) inset; /*lanyard shading*/
- /*fonts*/
- --font1: 'Staatliches', sans-serif;
- ][div=margin:auto; position:relative; width:300px; height:410px; margin-top:10px; margin-bottom:10px; background:var(--bkgd); border:var(--border0); box-sizing:border-box; overflow:hidden; cursor: url(https://imgur.com/5ex8RXq.png), auto; font-family:var(--font1); color:var(--accent00);][nobr]
- [comment]---- CARD START ----[/comment]
- [div=position:absolute; left:57px; bottom:8px; width:185px; height:275px; background:var(--card); border-radius:5px; box-shadow: var(--cardshadow);]
- [comment]---- content container start ----[/comment]
- [div=position:absolute; left:22.5px; top:20px; width:var(--contentwidth); height:var(--contentheight); box-sizing-border-box;overflow:hidden;]
- [comment]-- top line --[/comment][div=position:absolute; left:0px; top:0px; width:100%; height:2px; background:var(--accent3);][/div]
- [comment]-- bottom line --[/comment][div=position:absolute; left:0px; bottom:0px; width:100%; height:2px; background:var(--accent2);][/div]
- [comment]-- picture --[/comment][div=position:absolute; left:0px; top:5px; width:100%; height:140px; background:var(--mainpic); background-size:var(--mainpicsize); background-position:var(--mainpicposition);][/div]
- [comment]-- block 1: overlay block --[/comment][div=position:absolute; right:0px; top:5px; width:20px; height:175px; background:var(--blockcolor); background-size:cover; background-position:50% 50%; mix-blend-mode:var(--blockblend);][/div]
- [comment]-- block 2: bottom left --[/comment][div=position:absolute; left:0px; bottom:5px; width:36px; height:33px; background:var(--blockcolor); background-size:cover; background-position:50% 50%; mix-blend-mode:var(--blockblend);][/div]
- [comment]-- block 3: bottom right --[/comment][div=position:absolute; left:0px; bottom:5px; width:var(--contentwidth); height:13px; background:var(--blockcolor); background-size:cover; background-position:50% 50%; mix-blend-mode:var(--blockblend);][/div]
- [comment]-- right line --[/comment][div=position:absolute; right:0px; top:183px; width:20px; height:2px; background:var(--accent3);][/div]
- [comment]-- left line --[/comment][div=position:absolute; left:0px; top:191px; width:36px; height:2px; background:var(--accent2);][/div]
- [comment]-- name start --[/comment][div=position:absolute; left:0px; top:150px; width:115px; height:170px; font-family:var(--titlefont); font-size:var(--titlesize); line-height:var(--titlelineheight); color: var(--titlecolor); text-align:right;][comment]
- ---- FIRST NAME HERE ----
- [/comment]yuchan
- [br][/br][comment]
- ---- LAST NAME HERE ----
- [/comment]kang
- [/div][comment]-- name end --[/comment]
- [comment]-- role start --[/comment][div=position:absolute; left:0px; top:198px; width:var(--contentwidth); height:170px; padding-left:41px; font-family:var(--rolefont); font-size:var(--rolesize); line-height:var(--rolelineheight); color: var(--rolecolor); text-align:left;]
- [comment]
- ---- ROLE/FACECLAIM HERE ----
- [/comment]the spitfire
- [/div][comment]-- role end--[/comment]
- [/div][comment]---- content container end----[/comment]
- [/div][comment]---- CARD END ----[/comment]
- [comment]---- CLIPS START ----[/comment]
- [comment]---- top clip start ----[/comment]
- [comment]-- metal body --[/comment][div=position:absolute; left:120px; top:15px; width:60px; height:60px; border:var(--clipbase); box-sizing:border-box;border-radius:var(--topclipradius);][/div]
- [comment]-- outer shadow --[/comment][div=position:absolute; left:120px; top:15px; width:60px; height:60px; border-radius:var(--topclipradius); box-shadow:var(--clipshadowouter);][/div]
- [comment]-- inner shadow --[/comment][div=position:absolute; left:125px; top:20px; width:50px; height:50px; border-radius:var(--topclipradius); box-shadow:var(--clipshadowinner);][/div]
- [comment]---- top clip end ----[/comment]
- [comment]---- bottom clip start ----[/comment]
- [comment]-- metal body --[/comment][div=position:absolute; left:140px; top:65px; width:20px; height:75px; border:var(--clipbase); box-sizing:border-box; border-radius:var(--bottomclipradius);][/div]
- [comment]-- outer shadow --[/comment][div=position:absolute; left:140px; top:65px; width:20px; height:75px; box-sizing:border-box; border-radius:var(--bottomclipradius); box-shadow:var(--clipshadowouter);][/div]
- [comment]-- inner shadow --[/comment][div=position:absolute; left:145px; top:70px; width:10px; height:65px; box-sizing:border-box; border-radius:var(--bottomclipradius); box-shadow:var(--clipshadowinner);][/div]
- [comment]---- bottom clip end ----[/comment]
- [comment]---- clip covers start ----[/comment]
- [comment]-- metal overlap container --[/comment][div=position:absolute; left:152px; top:69.5px; background:var(--clip); width:9px; height:4.5px;box-sizing:border-box; border-radius:var(--coverradius); transform:rotate(-14deg);overflow:hidden;]
- [comment]-- metal overlap --[/comment][div=position:absolute; left:-2px; top:0px; background:var(--clip); width:13px; height:4.5px;box-sizing:border-box; border-radius:var(--coverradius); box-shadow:var(--covershadow);][/div][/div]
- [comment]-- card hole 1 --[/comment][div=position:absolute; left:150px; top:127px; width:12px; height:8px; background:var(--card);][/div]
- [comment]-- card hole 2 --[/comment][div=position:absolute; left:152px; top:130px; width:10px; height:8px; background:var(--card); transform:rotate(40deg);][/div]
- [comment]---- clip covers end ----[/comment]
- [comment]-- cord/lanyard --[/comment][div=position:absolute; left:127px; top:-2px; width:46px; height:25px; background:var(--cord); border-radius:var(--cordradius); box-shadow:var(--cordshadow);][/div]
- [comment]---- CLIPS END ----[/comment]
- [/nobr][/div][/div]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement