Pure CSS Notification Panel

Developer
Size
4,425 Kb
Views
28,336

How do I make an pure css notification panel?

What is a pure css notification panel? How do you make a pure css notification panel? This script and codes were developed by Elad Shechter on 13 July 2022, Wednesday.

Pure CSS Notification Panel Previews

Pure CSS Notification Panel - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS Notification Panel</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body>	<div class="notification-panel"> <h5 class="notification-title">Notifications</h5> <div class="content"> <ul class="fc main-form"> <li class="fc"> <label for="news">News</label> <input type="checkbox" id="news" checked/> <div class="fc slide-button"> <label for="news"></label> </div> <div class="more-opt"> <ul class="fc"> <li> <input type="radio" id="news-impo" name="news" /> <label class="radio-view" for="news-impo"></label> <label for="news-impo">Important</label> </li> <li> <input type="radio" id="news-regu" name="news" checked="checked" /> <label class="radio-view" for="news-regu"></label> <label for="news-regu">Regular</label> </li> </ul> </div> </li> <li class="fc"> <label for="celebs">Sports</label> <input type="checkbox" id="celebs" /> <div class="fc slide-button"> <label for="celebs"></label> </div> </li> <li class="fc"> <label for="econemy">Econemy</label> <input type="checkbox" id="econemy" /> <div class="fc slide-button"> <label for="econemy"></label> </div> </li> <li class="fc"> <label for="technology">Technology</label> <input type="checkbox" id="technology" /> <div class="fc slide-button"> <label for="technology"></label> </div> </li> </ul> </div>	</div>
</body>
</html>

Pure CSS Notification Panel - Script Codes CSS Codes

body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; background-color: rgba(0, 0, 0, 0.7);
}
label { cursor: pointer;
}
.notification-panel { position: absolute; z-index: 2; top: 65px; left: 50%; width: 300px; -ms-transform: translateX(-50%); -moz-transform: translateX(-50%); /* Firefox 4 */ -webkit-transform: translateX(-50%); /* Safari and Chrome */ -o-transform: translateX(-50%); /* Opera */ transform: translateX(-50%); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; outline-style: none; background-color: #1f1f1f; color: #fff; border: solid 1px #000; border-radius: 3px;
}
.notification-panel .hide { display: none;
}
.notification-panel .notification-title { height: 60px; line-height: 60px; background-color: #4ea7f9; font-size: 33px; text-align: center;
}
.notification-panel .notification-button { display: block; height: 60px; line-height: 60px; background-color: #3c3c3c; color: #fff; border: none; font-size: 18px; text-align: center;
}
.notification-panel .notification-button.half { float: right; width: 50%; -moz-box-sizing: border-box; box-sizing: border-box;
}
.notification-panel .notification-button.half + .half { border-right: solid 1px #1f1f1f;
}
.notification-panel .sep-form { border-top: solid 1px #3c3c3c; margin-top: 20px;
}
.notification-panel .content { padding: 20px;
}
.notification-panel .content label { font-size: 17px;
}
.notification-panel .content .info-label { color: #a5a5a5; font-size: 16px; float: right;
}
.notification-panel .content .main-form > li { position: relative; clear: both; line-height: 60px;
}
.notification-panel .content .main-form > li > label { float: left;
}
.notification-panel .content .main-form > li > input { visibility: hidden; position: absolute; left: 0; top: 0;
}
.notification-panel .content .main-form > li > .slide-button { float: right; top: 15px;
}
.notification-panel .content .main-form .list-radio li { clear: both; line-height: 60px;
}
.notification-panel .content .main-form .list-radio li:not(:first-child) { border-top: solid 1px #3c3c3c;
}
.notification-panel .content .main-form .list-radio input { visibility: hidden; position: absolute; right: 0; top: 0;
}
.notification-panel .content .main-form .list-radio .radio-view { float: right; margin: 15px;
}
.notification-panel .content .main-form .list-radio .label { float: left;
}
.notification-panel .content .more-opt li { float: left; margin-right: 20px; position: relative;
}
.notification-panel .content .more-opt input { visibility: hidden; position: absolute; right: 0; top: 0;
}
.notification-panel .slide-button { -webkit-transform: translateZ(0px); -moz-transform: translateZ(0px); -ms-transform: translateZ(0px); -o-transform: translateZ(0px); transform: translateZ(0px); -ms-transform: translateZ(0); -moz-transform: translateZ(0); /* Firefox 4 */ -webkit-transform: translateZ(0); /* Safari and Chrome */ -o-transform: translateZ(0); /* Opera */ transform: translateZ(0);
}
.notification-panel .more-opt { clear: both; display: none;
}
.notification-panel input[type="checkbox"] + .slide-button { position: relative; width: 100px; height: 25px; border: solid 1px #3c3c3c; padding: 1px;
}
.notification-panel input[type="checkbox"] + .slide-button label { position: absolute; left: 1px; top: 1px; -moz-transition: 0.3s; /* Firefox 4 */ -webkit-transition: 0.3s; /* Safari and Chrome */ -o-transition: 0.3s; /* Opera */ transition: 0.3s; width: 50px; height: 25px; line-height: 25px; background-color: #3c3c3c;
}
.notification-panel input[type="checkbox"] + .slide-button label:before,
.notification-panel input[type="checkbox"] + .slide-button label :after { content: ""; display: block; text-align: center; font-weight: bold;
}
.notification-panel input[type="checkbox"]:checked + .slide-button label { left: 50%; background-color: #139b30;
}
.notification-panel input[type="checkbox"]:checked + .slide-button label:before { content: "ON";
}
.notification-panel input[type="checkbox"]:checked + .slide-button + .more-opt { display: block;
}
.notification-panel input[type="checkbox"]:not(:checked) + .slide-button label { left: 1px;
}
.notification-panel input[type="checkbox"]:not(:checked) + .slide-button label:before { content: "OFF"; color: #898989;
}
.notification-panel input[type="radio"] + .radio-view { display: inline-block; vertical-align: middle; width: 30px; height: 30px; background-color: #141414; border: solid 1px #3c3c3c; border-radius: 50%; padding: 6px; -moz-box-sizing: border-box; box-sizing: border-box;
}
.notification-panel input[type="radio"] + .radio-view + label { margin-left: 10px; font-size: 16px;
}
.notification-panel input[type="radio"] + .radio-view:before { content: ""; display: block; width: 16px; height: 16px; background-color: #141414; border-radius: 50%; -moz-transition: 0.3s; /* Firefox 4 */ -webkit-transition: 0.3s; /* Safari and Chrome */ -o-transition: 0.3s; /* Opera */ transition: 0.3s;
}
.notification-panel input[type="radio"]:checked + .radio-view:before { background-color: #139b30;
}
.notification-panel .popup-wrapper { position: fixed; z-index: 10; left: 0; right: 0; top: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.7);
}
.notification-panel .inner-popup { position: absolute; z-index: 20; top: 30px; left: 50%; width: 260px; -ms-transform: translateX(-50%); -moz-transform: translateX(-50%); /* Firefox 4 */ -webkit-transform: translateX(-50%); /* Safari and Chrome */ -o-transform: translateX(-50%); /* Opera */ transform: translateX(-50%); background-color: #1f1f1f;
}
.notification-panel .inner-popup .notification-title { font-size: 20px;
}
.fc:before,
.fc:after { content: ""; display: table;
}
.fc:after { clear: both;
}
/******Mixing********/
/*Transform function*/
/*Transition function*/
Pure CSS Notification Panel - Script Codes
Pure CSS Notification Panel - Script Codes
Home Page Home
Developer Elad Shechter
Username elad2412
Uploaded July 13, 2022
Rating 3.5
Size 4,425 Kb
Views 28,336
Do you need developer help for Pure CSS Notification Panel?

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!

Elad Shechter (elad2412) Script Codes
Create amazing SEO content with AI!

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!