"dicord"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html lang='en' class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/Avarel/pen/rjzaxX?q=discord&limit=all&type=type-pens" /> <link rel='stylesheet prefetch' href='https://codepen.io/tutsplus/pen/WROvdG.css'><link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css'><link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css'> <style class="cp-pen-styles">.discord-mockup { background: #36393e; position: relative; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; height: 700px; border-radius: 5px; overflow-x: hidden; } @media only screen and (max-width: 600px) { .discord-mockup { flex-direction: column; } .discord-mockup .items-panel { width: 100% !important; height: 80px !important; } .discord-mockup .items-panel .actions { display: none !important; } .discord-mockup .items-panel .items { flex-direction: row !important; } .discord-mockup .items-panel .items .item { margin: auto 10px 0 0 !important; } .discord-mockup .sidebar-panel { width: 100% !important; height: 120px !important; } .discord-mockup .sidebar-panel .header { display: none !important; } .discord-mockup .sidebar-panel .items { margin-top: 0 !important; } } .discord-mockup .section-header, .discord-mockup .sidebar-panel .header, .discord-mockup .messages-panel .messages-group .header { position: absolute; z-index: 1; height: 56px; line-height: 56px; vertical-align: middle; color: white; padding-left: 24px; margin-bottom: 20px; font-weight: bold; } .discord-mockup .items-panel { background: #1e2124; height: inherit; width: 80px; padding: 15px; } .discord-mockup .items-panel .actions { height: 20px; display: flex; margin-bottom: 10px; } .discord-mockup .items-panel .actions .action-item, .discord-mockup .items-panel .actions .close, .discord-mockup .items-panel .actions .minimize, .discord-mockup .items-panel .actions .zoom { height: 12px; width: 12px; border-radius: 50%; margin: auto; } .discord-mockup .items-panel .actions .action-item:hover, .discord-mockup .items-panel .actions .close:hover, .discord-mockup .items-panel .actions .minimize:hover, .discord-mockup .items-panel .actions .zoom:hover { filter: brightness(2); } .discord-mockup .items-panel .actions .close { background: #ff6052; } .discord-mockup .items-panel .actions .minimize { background: #ffbe06; } .discord-mockup .items-panel .actions .zoom { background: #16cc37; } .discord-mockup .items-panel .items { display: flex; flex-direction: column; } .discord-mockup .items-panel .items .item { margin: 0 auto 10px; color: white; height: 50px; width: 50px; } .discord-mockup .items-panel .items .item img { border-radius: 50%; transition: all 0.3s ease; } .discord-mockup .items-panel .items .item img:hover { border-radius: 30%; } .discord-mockup .items-panel .items .item .guild-add { transition: all .3s ease; height: 50px; width: 50px; border-radius: 50%; background: transparent; color: #535559; border: 1px dashed #535559; padding: 0; font-size: 40px; font-weight: 200; text-align: center; line-height: 48px; } .discord-mockup .items-panel .items .item .guild-add:hover { border: 1px dashed white; color: white; border-radius: 30%; } .discord-mockup .sidebar-panel { background: #2e3136; height: inherit; overflow-y: auto; width: 240px; flex-shrink: 1; -ms-overflow-style: -ms-autohiding-scrollbar; } @media only screen and (max-width: 992px) { .discord-mockup .sidebar-panel { width: 170px; } } .discord-mockup .sidebar-panel .header { background: #2e3136; width: 240px; border-bottom: solid 1px #23252a; } .discord-mockup .sidebar-panel::-webkit-scrollbar { display: none; } .discord-mockup .sidebar-panel .items { margin-top: 56px; } .discord-mockup .sidebar-panel .items .item { height: 36px; line-height: 36px; vertical-align: middle; padding-left: 20px; opacity: 0.3; color: white; } .discord-mockup .sidebar-panel .items .item::before { content: "#"; color: #8a8e94 !important; margin-right: 3px; font-weight: normal; } .discord-mockup .sidebar-panel .items .item:hover { opacity: 1; background: linear-gradient(to right, #282b30 85%, #2e3136); } .discord-mockup .messages-panel { height: inherit; overflow-y: auto; flex: 1; -ms-overflow-style: -ms-autohiding-scrollbar; } .discord-mockup .messages-panel::-webkit-scrollbar { display: none; } .discord-mockup .messages-panel .messages-group { display: none; } .discord-mockup .messages-panel .messages-group.show { display: block; } .discord-mockup .messages-panel .messages-group .header { background: #36393e; border-bottom: solid 1px #303337; width: 100%; position: absolute; } .discord-mockup .messages-panel .messages-group .header::before { content: "#"; color: #8a8e94 !important; margin-right: 3px; font-weight: normal; } .discord-mockup .messages-panel .messages-group .messages { padding: 56px 20px 0; } .discord-mockup .messages-panel .messages-group .messages .message { width: 100%; border-bottom: solid 1px #4d5259; position: relative; padding: 15px 0 15px; } .discord-mockup .messages-panel .messages-group .messages .message .icon { float: left; height: 40px; width: 40px; margin-right: 20px; } .discord-mockup .messages-panel .messages-group .messages .message .icon img { border-radius: 50%; } .discord-mockup .messages-panel .messages-group .messages .message .body { margin-left: 60px; } .discord-mockup .messages-panel .messages-group .messages .message .body .user-name { color: white; font-weight: bold; } .discord-mockup .messages-panel .messages-group .messages .message .body p, .discord-mockup .messages-panel .messages-group .messages .message .body .content { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin: 0; } .discord-mockup .messages-panel .messages-group .messages .message .body .embed-wrapper { margin-top: 5px; display: flex; line-height: 1.1em; } .discord-mockup .messages-panel .messages-group .messages .message .body .embed-wrapper .content-inner { background-color: rgba(46, 48, 54, 0.3); border: solid 1px rgba(46, 48, 54, 0.6); border-radius: 0 3px 3px 0; padding: 8px 10px; display: flex; } .discord-mockup .messages-panel .messages-group .messages .message .body .embed-wrapper .content-inner .content { word-wrap: break-word; flex: 1; max-width: 300px; color: rgba(255, 255, 255, 0.7); font-size: 14px; } .discord-mockup .messages-panel .messages-group .messages .message .body .embed-wrapper .content-inner .content .title { color: white; font-weight: bold; } .discord-mockup .messages-panel .messages-group .messages .message .body .embed-wrapper .content-inner .thumb { float: right; max-height: 80px; max-width: 80px; width: auto; border-radius: 3px; object-fit: contain; margin-left: 20px; } .discord-mockup .messages-panel .messages-group .messages .message .body .embed-wrapper .color-pill { float: left; background-color: #0050af; border-radius: 3px 0 0 3px; width: 4px; flex-shrink: 0; } </style></head><body> <div class="container"> <div class="row valign-wrapper no-valign-wrap-on-mobile"> <div class="col s12 l19"> <div class="discord-mockup z-depth-3"> <div class="items-panel"> <div class="actions"> <div class="close"></div> <div class="minimize"></div> <div class="zoom"></div> </div> <div class="items"> <div class="item"><a href="#"><img class="responsive-img" src="http://gnarbot.xyz/img/profile.jpg"/></a></div> <div class="item"> <button class="guild-add">+</button> </div> </div> </div> <div class="sidebar-panel hide-on-med-and-down"> <div class="header">Demonstration</div> <div class="items"><a href="#"> <div class="item trigger-group" data="default">help</div></a><a href="#"> <div class="item trigger-group" data="overwatch">overwatch</div></a><a href="#"> <div class="item trigger-group" data="embed-testing">embed testing WIP</div></a><a href="#"> <div class="item trigger-group">xkcd</div></a></div> </div> <div class="messages-panel"> <div class="messages-group hide-unless-show" id="default"> <div class="header">help</div> <div class="messages"> <div class="message"> <div class="icon"><img class="responsive-img" src="http://gnarbot.xyz/img/profile.jpg"/></div> <div class="body"> <div class="user-name">Gnar</div> <div class="content">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</div> </div> </div> <div class="message"> <div class="icon"><img class="responsive-img" src="http://gnarbot.xyz/img/profile.jpg"/></div> <div class="body"> <div class="user-name">Username</div> <div class="content">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div> </div> </div> <div class="message"> <div class="icon"><img class="responsive-img" src="http://gnarbot.xyz/img/profile.jpg"/></div> <div class="body"> <div class="user-name">Username</div> <div class="content">It's high noon.</div> </div> </div> <div class="message"> <div class="icon"><img class="responsive-img" src="http://gnarbot.xyz/img/profile.jpg"/></div> <div class="body"> <div class="user-name">Username</div> <div class="content">I don't know how you can CSS without a preprocessor anymore.</div> </div> </div> </div> </div> <div class="messages-group hide-unless-show" id="overwatch"> <div class="header">overwatch</div> <div class="messages"> <div class="message"> <div class="icon"><img class="responsive-img" src="http://gnarbot.xyz/img/profile.jpg"/></div> <div class="body"> <div class="user-name">Gnar</div> <div class="content">I'm lonely.</div> </div> </div> </div> </div> <div class="messages-group hide-unless-show" id="embed-testing"> <div class="header">embed testing</div> <div class="messages"> <div class="message"> <div class="icon"><img class="responsive-img" src="http://gnarbot.xyz/img/profile.jpg"/></div> <div class="body"> <div class="user-name">Gnar</div> <div class="content">Non-embedded message.</div> </div> </div> <div class="message"> <div class="icon"><img class="responsive-img" src="http://gnarbot.xyz/img/profile.jpg"/></div> <div class="body"> <div class="user-name">Gnar</div> <div class="embed-wrapper"> <div class="color-pill"></div> <div class="content-inner"> <div class="content"> <div class="title">Overwatch Stats</div> <p>Battle Tag: Avalon-11557 </p> <p>Region: US </p> <p>General Level: 270</p><br/> <p><b> <u>Quick Play </u></b></p> <p>Avg. Elims: 10.42 </p> <p>Avg. Deaths: 5.91 Avg. </p> <p>Final Blows: 4.66 Wins: 832 K/D</p> </div><img class="thumb" src="https://images-ext-2.discordapp.net/eyJ1cmwiOiJodHRwczovL2JsemdkYXBpcHJvLWEuYWthbWFpaGQubmV0L2dhbWUvdW5sb2Nrcy8weDAyNTAwMDAwMDAwMDBGMDcucG5nIn0.Oip1Q5vQ3VLcNrM1NufPbcTXvdM?width=80&height=80"/> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script >(function($) { "use strict"; // Start of use strict var defaultId = 'default'; function showGroup(id) { if (typeof id == 'undefined') { showGroup(defaultId); return; } $('.messages-group').each(function() { if ($(this).attr('id') === id) { $(this).addClass('show'); } else { $(this).removeClass('show'); } }); }; $(document).ready(function() { showGroup(defaultId); }); $('.trigger-group').click(function() { console.log($(this).attr('data-id')); var id = $(this).attr('data'); showGroup(id); }); })(jQuery); // End of use strict //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: