User Listing
How do I make an user listing?
A little design for a web chat app I'm working on.. What is a user listing? How do you make a user listing? This script and codes were developed by Derek Wheelden on 10 August 2022, Wednesday.
User Listing - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>User Listing</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(http://fonts.googleapis.com/css?family=Lato:300,700|Oswald);
@import url(//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css);
.main-container { width: 70%; height: 100%; background: #0088cc; float: left;
}
.user-container { width: 30%; height: 100%; background: #1a4d66; color: white; float: right; overflow-y: auto; cursor: default;
}
.user-container > i { padding: 0.5em; visibility: hidden;
}
@media (max-width: 1300px) { .main-container { width: 100%; float: none; } .user-container { position: absolute; top: 0; right: 0; width: 25em; float: none; transition: transform 0.5s; transform: translateX(calc(100% - 2em)); } .user-container:hover { transform: translateX(0); } .user-container > i { visibility: visible; }
}
.users { margin: 0; padding: 0; list-style: none; line-height: 3;
}
.users li { padding: 0 3em;
}
.users li:nth-child(odd) { background: #1f5c7a;
}
.users li.is-current-user { color: #66ccff;
}
.users li.is-active .users__user--status i { color: #7eeb47;
}
.users li.is-idle .users__user--status i { color: #ebcf47;
}
.users li.is-offline .users__user--status i { color: #eb4747;
}
.users li.is-offline .users__user--name { opacity: 0.5;
}
.users li.is-offline .users__user--interactions i.fa-comment { opacity: 0.2; cursor: default;
}
.users li.is-offline .users__user--interactions i.fa-comment:hover:after { display: none;
}
.users__user--status { padding-right: 1em; font-size: 0.7em; line-height: 4.3; float: left;
}
.users__user--name { float: left;
}
.users__user--interactions { float: right;
}
.users__user--interactions i { position: relative; margin-left: 0.5em; padding: 0.5em; cursor: pointer;
}
li.is-current-user .users__user--interactions { visibility: hidden;
}
i.fa-envelope:hover:after, i.fa-comment:hover:after { content: 'Send Email'; display: inline-block; position: absolute; top: 50%; right: 100%; padding: 0.5em; border-radius: 0.25em; background: white; font-size: 0.7em; font-family: 'Lato'; font-weight: 700; text-transform: lowercase; white-space: nowrap; color: #004466; z-index: 100; transform: translateY(-50%);
}
i.fa-comment:hover:after { content: 'Private Message';
}
i.disabled { opacity: 0.3; cursor: default;
}
i.disabled:hover:after { display: none;
}
/** PAGE STYLES **/
* { box-sizing: border-box;
}
html, body { width: 100%; height: 100%;
}
html { font-size: 62.5%;
}
body { font-family: 'Lato', sans-serif; font-size: 2em; line-height: 1.5; font-weight: 300; overflow-x: hidden; -webkit-backface-visibility: hidden;
}
p { color: white; text-align: center;
}
h1 { margin: 0; padding: 0.75em 0 0; font-family: 'Oswald', sans-serif; font-size: 4em; text-transform: uppercase; text-align: center; color: white;
}
h3 { margin: 0 0 0.5em; font-size: 1.5em; font-weight: 300; color: #33bbff;
}
.user-container h3 { padding: 1em 2em 0;
}
.cf:before, .users li:before,
.cf:after,
.users li:after { content: " "; /* 1 */ display: table; /* 2 */
}
.cf:after, .users li:after { clear: both;
}
.cf, .users li { *zoom: 1;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="main-container"> <h1>User Listing Panel</h1> <p>It’s over there on the right. It’s responsive too.</p>
</div>
<div class="user-container"> <i class="fa fa-users"></i> <h3>Connected</h3>
<ul class="users"> <li class="is-active"> <div class="users__user--status"><i class="fa fa-circle"></i></div> <div class="users__user--name">Sherriff B.</div> <div class="users__user--interactions"> <i class="fa fa-envelope"></i> <i class="fa fa-comment"></i> </div> </li> <li class="is-active"> <div class="users__user--status"><i class="fa fa-circle"></i></div> <div class="users__user--name">Waco K.</div> <div class="users__user--interactions"> <i class="fa fa-envelope"></i> <i class="fa fa-comment"></i> </div> </li> <li class="is-current-user is-idle"> <div class="users__user--status"><i class="fa fa-circle"></i></div> <div class="users__user--name">Hedley L.</div> <div class="users__user--interactions"> <i class="fa fa-envelope"></i> <i class="fa fa-comment"></i> </div> </li> <li class="is-active"> <div class="users__user--status"><i class="fa fa-circle"></i></div> <div class="users__user--name">Lili V.S.</div> <div class="users__user--interactions"> <i class="fa fa-envelope"></i> <i class="fa fa-comment"></i> </div> </li> <li class="is-offline"> <div class="users__user--status"><i class="fa fa-circle"></i></div> <div class="users__user--name">William J.L.P.</div> <div class="users__user--interactions"> <i class="fa fa-envelope"></i> <i class="fa fa-comment"></i> </div> </li>
</ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
User Listing - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Lato:300,700|Oswald);
@import url(//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css);
.main-container { width: 70%; height: 100%; background: #0088cc; float: left;
}
.user-container { width: 30%; height: 100%; background: #1a4d66; color: white; float: right; overflow-y: auto; cursor: default;
}
.user-container > i { padding: 0.5em; visibility: hidden;
}
@media (max-width: 1300px) { .main-container { width: 100%; float: none; } .user-container { position: absolute; top: 0; right: 0; width: 25em; float: none; transition: transform 0.5s; transform: translateX(calc(100% - 2em)); } .user-container:hover { transform: translateX(0); } .user-container > i { visibility: visible; }
}
.users { margin: 0; padding: 0; list-style: none; line-height: 3;
}
.users li { padding: 0 3em;
}
.users li:nth-child(odd) { background: #1f5c7a;
}
.users li.is-current-user { color: #66ccff;
}
.users li.is-active .users__user--status i { color: #7eeb47;
}
.users li.is-idle .users__user--status i { color: #ebcf47;
}
.users li.is-offline .users__user--status i { color: #eb4747;
}
.users li.is-offline .users__user--name { opacity: 0.5;
}
.users li.is-offline .users__user--interactions i.fa-comment { opacity: 0.2; cursor: default;
}
.users li.is-offline .users__user--interactions i.fa-comment:hover:after { display: none;
}
.users__user--status { padding-right: 1em; font-size: 0.7em; line-height: 4.3; float: left;
}
.users__user--name { float: left;
}
.users__user--interactions { float: right;
}
.users__user--interactions i { position: relative; margin-left: 0.5em; padding: 0.5em; cursor: pointer;
}
li.is-current-user .users__user--interactions { visibility: hidden;
}
i.fa-envelope:hover:after, i.fa-comment:hover:after { content: 'Send Email'; display: inline-block; position: absolute; top: 50%; right: 100%; padding: 0.5em; border-radius: 0.25em; background: white; font-size: 0.7em; font-family: 'Lato'; font-weight: 700; text-transform: lowercase; white-space: nowrap; color: #004466; z-index: 100; transform: translateY(-50%);
}
i.fa-comment:hover:after { content: 'Private Message';
}
i.disabled { opacity: 0.3; cursor: default;
}
i.disabled:hover:after { display: none;
}
/** PAGE STYLES **/
* { box-sizing: border-box;
}
html, body { width: 100%; height: 100%;
}
html { font-size: 62.5%;
}
body { font-family: 'Lato', sans-serif; font-size: 2em; line-height: 1.5; font-weight: 300; overflow-x: hidden; -webkit-backface-visibility: hidden;
}
p { color: white; text-align: center;
}
h1 { margin: 0; padding: 0.75em 0 0; font-family: 'Oswald', sans-serif; font-size: 4em; text-transform: uppercase; text-align: center; color: white;
}
h3 { margin: 0 0 0.5em; font-size: 1.5em; font-weight: 300; color: #33bbff;
}
.user-container h3 { padding: 1em 2em 0;
}
.cf:before, .users li:before,
.cf:after,
.users li:after { content: " "; /* 1 */ display: table; /* 2 */
}
.cf:after, .users li:after { clear: both;
}
.cf, .users li { *zoom: 1;
}
Developer | Derek Wheelden |
Username | frxnz |
Uploaded | August 10, 2022 |
Rating | 4.5 |
Size | 5,274 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Dumb Triangle Thing | 3,280 Kb |
Blockquote Patterns | 3,021 Kb |
JavaScript Templates | 4,381 Kb |
Bouncing Border | 2,548 Kb |
Fantastic Mr. Fox | 7,290 Kb |
Google Maps Geolocation Test | 4,439 Kb |
Triangle Peeker | 4,339 Kb |
Tile Animation Thing | 4,332 Kb |
Pulsing Notification | 3,736 Kb |
A Pen by Derek Wheelden | 4,054 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
The Monty Hall Problem | Melatonind | 4,360 Kb |
Very Simple Slider | Doodlemarks | 2,682 Kb |
Animated bar chart | CreativePunch | 3,124 Kb |
Slide In Panel | Vikvarg | 2,811 Kb |
Pure CSS Animated Photo Stack | Depthdev | 2,486 Kb |
3D-box | Parthviroja | 2,346 Kb |
Perforated foil | 0x04 | 2,617 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Expandable Left Side Bar with jQuery animate | Retrofuturistic | 2,483 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!