Single Element Icons

Developer
Size
3,423 Kb
Views
34,408

How do I make an single element icons?

Claudio Gomboli had some pretty rad icons over on Dribbble, so I decided to make them out of CSS, and just one element!. What is a single element icons? How do you make a single element icons? This script and codes were developed by Albert Filice on 26 August 2022, Friday.

Single Element Icons Previews

Single Element Icons - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Single Element Icons</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=Anonymous+Pro);
*, *:before, *:after { box-sizing: border-box;
}
body { background-color: #89d9cc; overflow: hidden; }
a { color: #f008f0; text-decoration: none; }
a:hover { color: #f008f0; }
h1 { margin: 20px; text-align: center; font-family: 'Anonymous Pro'; font-size: 3em; text-shadow: 2px 2px 1px rgba(255,255,255,.8);
}
p { margin: 0px auto; width: 240px;
}
.container { width: 284px; margin: 50px auto 0px auto;
}
.icon { position: relative; display: inline-block; width: 32px; height: 32px; border: 1px solid black; background-color: #fff;
}
.icon:hover { border: 1px solid rgba(0,0,0,.3);
}
.reload:before,
.reload:after { content: ''; position: absolute;
}
.reload:before { top: 9px; left: 9px; width: 12px; height: 12px; border: 2px solid rgba(0,0,0,.8); border-top-color: transparent; border-radius: 100%; transform: rotate(35deg);
}
.reload:after { top: 6px; left: 14px; width: 4px; height: 4px; border: 4px solid transparent; border-left: 4px solid rgba(0,0,0,.8);
}
.add:before,
.add:after { content: ''; position: absolute; background-color: rgba(0,0,0,.8);
}
.add:before { top: 14px; left: 9px; width: 12px; height: 2px;
}
.add:after { top: 9px; left: 14px; width: 2px; height: 12px;
}
.subtract:before { content: ''; position: absolute; top: 14px; left: 9px; width: 12px; height: 2px; background-color: rgba(0,0,0,.8);
}
.logo:before,
.logo:after { content: ''; position: absolute;
}
.logo:before { top: 5px; left: 13px; width: 12px; height: 12px; border-radius: 100%; border: 1px solid black;
}
.logo:after { top: 14px; left: 7px; width: 12px; height: 12px; border-radius: 100%; border: 1px solid black; border-right-color: transparent; box-shadow: -1px -2px #fff;
}
.eye:before,
.eye:after { content: ''; position: absolute;
}
.eye:before { top: 6px; left: 6px; width: 18px; height: 18px; border: 1px solid rgba(0,0,0,.8); border-radius: 80% 0%; box-shadow: 0px 0px 1px #000 inset; transform: rotate(45deg);
}
.eye:after { top: 10px; left: 10px; width: 10px; height: 10px; border-radius: 100%; background-color: rgba(0,0,0,.8);
}
.mail:before,
.mail:after { content: ''; position: absolute; width: 18px; height: 11px;
}
.mail:before { top: 10px; left: 6px; background-color: rgba(0,0,0,.8);
}
.mail:after { top: -2px; left:7px; width: 20px; height: 14px; transform: rotate(-45deg); box-shadow: -1px 1px #fff;
}
.close:before,
.close:after { content: ''; position: absolute; top: 15px; left: 5px; width: 20px; height: 1px; background-color: rgba(0,0,0,.8); transform: rotate(45deg);
}
.close:after { transform: rotate(-45deg);
}
.up:before { content: ''; position: absolute; top: 5px; left: 9px; height: 7px; width: 6px; border: 6px solid transparent; border-bottom: 7px solid rgba(0,0,0,.8);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="container"> <div class="reload icon"></div> <div class="add icon"></div> <div class="subtract icon"></div> <div class="logo icon"></div> <div class="eye icon"></div> <div class="mail icon"></div> <div class="close icon"></div> <div class="up icon"></div>
</div>
<h1>Single Element Icons</h1>
<p> Designed by: <a href="http://dribbble.com/shots/691652-Personal-website?list=tags&tag=css3" target="_blank">Claudio Gomboli</a> <br> Coded by: <a href="http://twitter.com/monstasaurous" target="_blank">Albert Filice</a>
</p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Single Element Icons - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Anonymous+Pro);
*, *:before, *:after { box-sizing: border-box;
}
body { background-color: #89d9cc; overflow: hidden; }
a { color: #f008f0; text-decoration: none; }
a:hover { color: #f008f0; }
h1 { margin: 20px; text-align: center; font-family: 'Anonymous Pro'; font-size: 3em; text-shadow: 2px 2px 1px rgba(255,255,255,.8);
}
p { margin: 0px auto; width: 240px;
}
.container { width: 284px; margin: 50px auto 0px auto;
}
.icon { position: relative; display: inline-block; width: 32px; height: 32px; border: 1px solid black; background-color: #fff;
}
.icon:hover { border: 1px solid rgba(0,0,0,.3);
}
.reload:before,
.reload:after { content: ''; position: absolute;
}
.reload:before { top: 9px; left: 9px; width: 12px; height: 12px; border: 2px solid rgba(0,0,0,.8); border-top-color: transparent; border-radius: 100%; transform: rotate(35deg);
}
.reload:after { top: 6px; left: 14px; width: 4px; height: 4px; border: 4px solid transparent; border-left: 4px solid rgba(0,0,0,.8);
}
.add:before,
.add:after { content: ''; position: absolute; background-color: rgba(0,0,0,.8);
}
.add:before { top: 14px; left: 9px; width: 12px; height: 2px;
}
.add:after { top: 9px; left: 14px; width: 2px; height: 12px;
}
.subtract:before { content: ''; position: absolute; top: 14px; left: 9px; width: 12px; height: 2px; background-color: rgba(0,0,0,.8);
}
.logo:before,
.logo:after { content: ''; position: absolute;
}
.logo:before { top: 5px; left: 13px; width: 12px; height: 12px; border-radius: 100%; border: 1px solid black;
}
.logo:after { top: 14px; left: 7px; width: 12px; height: 12px; border-radius: 100%; border: 1px solid black; border-right-color: transparent; box-shadow: -1px -2px #fff;
}
.eye:before,
.eye:after { content: ''; position: absolute;
}
.eye:before { top: 6px; left: 6px; width: 18px; height: 18px; border: 1px solid rgba(0,0,0,.8); border-radius: 80% 0%; box-shadow: 0px 0px 1px #000 inset; transform: rotate(45deg);
}
.eye:after { top: 10px; left: 10px; width: 10px; height: 10px; border-radius: 100%; background-color: rgba(0,0,0,.8);
}
.mail:before,
.mail:after { content: ''; position: absolute; width: 18px; height: 11px;
}
.mail:before { top: 10px; left: 6px; background-color: rgba(0,0,0,.8);
}
.mail:after { top: -2px; left:7px; width: 20px; height: 14px; transform: rotate(-45deg); box-shadow: -1px 1px #fff;
}
.close:before,
.close:after { content: ''; position: absolute; top: 15px; left: 5px; width: 20px; height: 1px; background-color: rgba(0,0,0,.8); transform: rotate(45deg);
}
.close:after { transform: rotate(-45deg);
}
.up:before { content: ''; position: absolute; top: 5px; left: 9px; height: 7px; width: 6px; border: 6px solid transparent; border-bottom: 7px solid rgba(0,0,0,.8);
}
Single Element Icons - Script Codes
Single Element Icons - Script Codes
Home Page Home
Developer Albert Filice
Username monstersaurous
Uploaded August 26, 2022
Rating 3.5
Size 3,423 Kb
Views 34,408
Do you need developer help for Single Element Icons?

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!

Albert Filice (monstersaurous) Script Codes
Create amazing sales emails 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!