Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [comment]a remake of instagram's ui, coded by uxie!
- [font=Assistant]username[/font]
- [font=Oxygen]buttons[/font]
- [font=Segoe UI]everything else[/font]
- i recommend not changing fonts for this code!
- [/comment][border=transparent;
- /*background colour*/
- --bg-color: #fefefe;
- /*border, separator colour*/
- --border: #dbdbdb;
- /*main accent -- verified badge, follow button*/
- --color-1: #0095f6;
- /*dark text colour*/
- --color-2: #8e8e8e;
- /*grey text colour*/
- --color-3: #262626;
- /*fonts used*/
- --uname:'Assistant', sans-serif;
- --button: 'Oxygen', sans-serif;
- --body: 'Segoe UI', sans-serif;
- /*icon*/
- --img-1: url('https://i.imgur.com/SKCl12D.png');
- /*post images*/
- --p1: url('https://i.imgur.com/23xsei3.png');
- --p2: url('https://i.imgur.com/HSYi6C1.png');
- --p3: url('https://i.imgur.com/6ObQBip.png');
- --p4: url('https://i.imgur.com/RkAKxai.jpg');
- --p5: url('https://i.imgur.com/zthuTyx.png');
- --p6: url('https://i.imgur.com/cWSTnkt.png');
- --p7: url('https://i.imgur.com/v5grXkL.jpg');
- --p8: url('https://i.imgur.com/9wYG1aB.png');
- --p9: url('https://i.imgur.com/qu3NCwm.png');
- height:auto; width:100%; padding:0; overflow-x:auto; line-height:0; margin:20px 0 30px 0;][border=transparent; height:auto; width:100%; min-width:320px; max-width:390px; background: var(--bg); padding:15px 20px; box-sizing:border-box; border:1px solid var(--border); margin:0 auto; position:relative; display:flex; flex-flow:column nowrap; overflow:hidden;]
- [comment]----header----[/comment]
- [border=transparent; height:auto; min-height:130px; max-height:150px; width:100%; padding:8px; box-sizing:border-box; display:flex; flex-flow:row nowrap; --i: clamp(70px, 35%, 100px);]
- [comment]----icon----[/comment]
- [border=transparent; width:var(--i); padding:0; flex-shrink:0; margin-right:25px;][border=transparent; padding:0; padding-top:calc(100% - 1px); border-radius:50%; border:1px solid var(--border); background: var(--img-1); background-size:cover;
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;][/border][/border]
- [comment]----account details----[/comment]
- [border=transparent; height:100%; flex:1; max-width:calc(100% - var(--i) - 25px); padding:0;]
- [comment]----username----[/comment]
- [border=transparent; height:25px; width:auto; max-width:100%; min-width:0; padding:0; display:flex; flex-flow:row nowrap; align-items:center;][border=transparent; height:25px; width:auto; min-width:0px; padding:0 3px 0 0; box-sizing:border-box; color: var(--color-3); font-family: var(--button); font-size:23px; line-height:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-family: var(--uname); letter-spacing:-1px;][comment]
- ----* * * user name here----
- [/comment]username[/border]
- [border=transparent;
- /*replace here; with display:none; to hide verified badge*/ here;
- height:auto; width:auto; padding:0; color: var(--color-1); font-size:14px; flex-shrink:0; line-height:100%; margin-left:5px;][fa]fas fa-badge-check[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--color-3); font-size:20px; flex-shrink:0; margin-left:15px;][fa]far fa-ellipsis-h[/fa][/border][/border]
- [comment]----username end----[/comment]
- [comment]----follow buttons (ignore)----[/comment]
- [border=transparent; height:22px; width:100%; padding:0; margin-top:8px; display:flex; flex-flow:row nowrap;][border=transparent; height:22px; width:auto; min-width:30%; padding:3px 10px; box-sizing:border-box; border:1px solid var(--border); color: var(--color-3); font-family: var(--button); font-size:11px; border-radius:3px; line-height:100%; font-weight:bold; text-align:center; display:flex; align-items:center;]Message[/border][border=transparent; height:100%; width:65px; padding:0; position:relative; margin-left:8px;][border=transparent; height:20px; width:65px; padding:0; overflow:hidden; border-radius:3px;][border=transparent; padding:0; margin:3px -40px 0 -25px; display:flex; justify-content:flex-end; letter-spacing:-5px;][tabs]
- [tab=.][border=0; width:152px; padding:0; line-height:0; letter-spacing:0;][border=transparent; height:22px; width:auto; position:absolute; top:0; left:0; padding:3px 13px; box-sizing:border-box; background: var(--color-1); color: var(--bg-color); font-family: var(--button); font-size:11px; border-radius:3px; line-height:100%; font-weight:bold; text-align:center; pointer-events:none; display:flex; align-items:center; letter-spacing:0.5px;]Follow[/border][/border][/tab]
- [tab=aaaa][border=0; padding:0; font-size:0; letter-spacing:0;]h[border=transparent; height:100%; width:auto; position:absolute; top:0; left:0; padding:3px 13px; box-sizing:border-box; border:1px solid var(--border); color: var(--color-3); font-size:11px; border-radius:3px; line-height:100%; font-weight:bold; text-align:center; pointer-events:none; background: var(--bg-color); display:flex; align-items:center; z-index:3;][fa]fas fa-user-check[/fa][/border][border=transparent; height:100%; width:28px; padding:0; position:absolute; top:0; right:0; background: var(--bg-color);][/border][/border][/tab]
- [/tabs][/border][/border][/border][/border]
- [comment]----follow buttons end----[/comment]
- [comment]----name----[/comment]
- [border=transparent; height:auto; width:100%; padding:0; color: var(--color-3); font-size:13.5px; font-family: var(--body); line-height:100%; font-weight:600; margin:12px 0 5px 1px;][comment]
- ----* * * name here----
- [/comment]it's me![/border]
- [comment]----bio----[/comment]
- [border=transparent; height:auto; max-height:30px; width:100%; padding:0 0 2px 0; box-sizing:border-box; color: var(--color-3); font-family: var(--body); font-size:13px; margin:auto 0 4px 1px; line-height:14px; overflow:hidden;][comment]
- ----* * * bio here (max two lines)----
- [/comment]a cute little bio, max two lines![/border]
- [comment]----link----[/comment]
- [border=transparent; height:auto; max-height:17px; width:90%; font-family: var(--body);
- /*replace here; with display:none; to hide link*/ here;
- padding:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:13px; margin:0 0 8px 0; color: var(--color-1);][comment]
- ----* * * put link here----
- [/comment][url='link here'][comment]
- [/comment][border=transparent; padding:0; display:inline; color: var(--color-1); line-height:17px;][comment]
- ----* * * link display here----
- [/comment]link something![/border][/url][/border]
- [/border]
- [comment]----account details end----[/comment]
- [/border]
- [comment]----header end----[/comment]
- [comment]----account statistics----[/comment]
- [border=transparent; height:48px; width:100%; padding:10px 5px; box-sizing:border-box; border:1px solid var(--border); border-left:0; border-right:0; display:flex; flex-flow:row nowrap; justify-content:space-between; align-items:center; cursor:default;]
- [comment]----posts----[/comment]
- [border=transparent; height:auto; width:80px; padding:0; display:flex; flex-flow:column-reverse nowrap; align-items:center; font-family: var(--body);][border=transparent; height:auto; width:auto; padding:0 0 0 2px; box-sizing:border-box; color: var(--color-2); font-size:11.5px; line-height:100%; margin-top:2px; text-align:center;]posts[/border][border=transparent; height:auto; width:auto; padding:0; color: var(--color-3); font-weight:600; font-size:12px; line-height:100%; text-align:center; text-transform:uppercase;][comment]
- ----* * * number of posts here----
- [/comment]569[/border]
- [/border]
- [comment]----posts end----[/comment]
- [comment]----followers----[/comment]
- [border=transparent; height:auto; width:80px; padding:0; display:flex; flex-flow:column-reverse nowrap; align-items:center; font-family: var(--body);][border=transparent; height:auto; width:auto; padding:0 0 0 2px; box-sizing:border-box; color: var(--color-2); font-size:11.5px; line-height:100%; margin-top:2px; text-align:center;]followers[/border][border=transparent; height:auto; width:auto; padding:0; color: var(--color-3); font-weight:600; font-size:12px; line-height:100%; text-align:center; text-transform:uppercase;][comment]
- ----* * * number of followers here----
- [/comment]12.4m[/border]
- [/border]
- [comment]----followers end----[/comment]
- [comment]----followers----[/comment]
- [border=transparent; height:auto; width:80px; padding:0; display:flex; flex-flow:column-reverse nowrap; align-items:center; font-family: var(--body); flex-shrink:0;][border=transparent; height:auto; width:auto; padding:0 0 0 2px; box-sizing:border-box; color: var(--color-2); font-size:11.5px; line-height:100%; margin-top:2px; text-align:center;]following[/border][border=transparent; height:auto; width:auto; padding:0; color: var(--color-3); font-weight:600; font-size:12px; line-height:100%; text-align:center; text-transform:uppercase;][comment]
- ----* * * number of following here----
- [/comment]18[/border]
- [/border]
- [comment]----followers end----[/comment]
- [/border]
- [comment]----account statistics end----[/comment]
- [comment]----posts section----[/comment]
- [border=transparent; height:auto; width:100%; padding:25px 0 10px 0; box-sizing:border-box; margin:0 0 -50px 0; display:grid; grid-template:3fr 3fr 3fr / 3fr 3fr 3fr; gap:10px;]
- [comment]----post image 1----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 1 / 1 / 2 / 2;][border=transparent; padding:0; padding-top:100%; background: var(--p1);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover; position:relative;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [comment]----post image 2 (tab)----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 1 / 2 / 2 / 3;][border=transparent; padding:0; padding-top:100%; background: var(--p2);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover; position:relative;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [comment]----post image 3----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 1 / 3 / 2 / 4;][border=transparent; padding:0; padding-top:100%; background: var(--p3);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover; position:relative;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [comment]----post image 4 (tab)----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 2 / 1 / 3 / 2;][border=transparent; padding:0; padding-top:100%; background: var(--p4);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover; position:relative;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [comment]----post image 5----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 2 / 2 / 3 / 3;][border=transparent; padding:0; padding-top:100%; background: var(--p5);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover; position:relative;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [comment]----post image 6 (tab)----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 2 / 3 / 3 / 4;][border=transparent; padding:0; padding-top:100%; background: var(--p6);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover; position:relative;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [comment]----post image 7----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 3 / 1 / end / 2;][border=transparent; padding:0; padding-top:100%; background: var(--p7);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover; position:relative;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [comment]----post image 8----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 3 / 2 / end / 3;][border=transparent; padding:0; padding-top:100%; background: var(--p8);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover; position:relative;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [comment]----post image 9----[/comment]
- [border=transparent; width:auto; padding:0; grid-area: 3 / 3 / end / 4;][border=transparent; padding:0; padding-top:100%; background: var(--p9);
- /*edit the following to adjust the cropping of the image*/ background-position:50% 50%;
- background-size:cover;][border=transparent; height:auto; width:auto; padding:0;
- /*replace here; with display:none; to hide carousel icon*/ here;
- ][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:5px; right:7px;][fa]fas fa-square[/fa][/border][border=transparent; height:auto; width:auto; padding:0; color: var(--bg-color); font-size:13px; position:absolute; top:7px; right:5px; clip-path: polygon(0 80%, 90% 80%, 90% 0, 100% 0, 100% 100%, 0 100%);][fa]fas fa-square[/fa][/border][/border][/border][/border]
- [/border]
- [comment]----posts section end----[/comment]
- [comment]----signature! do not remove----[/comment]
- [bg=transparent; height:10px;width:fit-content; position:absolute ;z-index:6;opacity:0.3;color: var(--color-2); font-size:9px;text-align:center; top:7px; right:3px;][font=Open Sans]♡coded by uxie♡[/font][/bg]
- [/border][/border]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement