Block, Element, Modifier in LESS
How do I make an block, element, modifier in less?
Simple demo showing that LESS allows for a really neat, consise BEM syntax. What is a block, element, modifier in less? How do you make a block, element, modifier in less? This script and codes were developed by Nick Williams on 27 August 2022, Saturday.
Block, Element, Modifier in LESS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Block, Element, Modifier in LESS</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="block"> <div class="block__element">Hello</div> <div class="block__element block__element--modifier">Goodbye</div>
</div>
</body>
</html>
Block, Element, Modifier in LESS - Script Codes CSS Codes
.block__element { padding: 1em; margin-bottom: 1em; background-color: tomato;
}
.block__element--modifier { background-color: skyblue;
}
Developer | Nick Williams |
Username | WickyNilliams |
Uploaded | August 27, 2022 |
Rating | 3 |
Size | 1,735 Kb |
Views | 50,600 |
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 |
A Pen by Nick Williams | 1,616 Kb |
Bokeh | 4,253 Kb |
And just like that... | 4,503 Kb |
JS module pattern demo | 4,111 Kb |
React starter template | 1,957 Kb |
Got your callback | 2,451 Kb |
Gridzzz | 3,199 Kb |
Conditional Lightbox for Responsive Design | 2,792 Kb |
Headroom.js demo | 3,982 Kb |
Pointed | 2,630 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 |
Simple animated hover effect | Pobee-norris | 3,044 Kb |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Border-radius animation | Yukulele | 2,480 Kb |
Blog | Rottingroom | 1,430 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
CSS3 Media Queries demo | Machal | 1,824 Kb |
A Pen by boilzzz | Boilzzz | 2,761 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
Flex layout example | Mofny | 1,663 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!