Hey coders! Today, I bring you a complete beginnerโs guide to Sass, one of the most popular and optimized CSS pre-processors available out there. ๐๐
โ๏ธ Sass stands for Syntactically Awesome Stylesheet. It is completely free and perfectly compatible with all versions of CSS. Being a pre-processor, Sass extends the default capabilities of CSS and enables us to use programming language features in our code. ๐ฆ
Some key features of Sass include:
๐ท Variables: Store reusable values like colors, fonts, or any CSS value to make your stylesheets more maintainable. Example: $primary-color: #333;
๐ช Nesting: Nest your CSS selectors in a way that follows the same visual hierarchy of your HTML, making your styles more readable.
๐งฉ Mixins: Create reusable blocks of styles that can be included in other selectors. They can accept arguments for dynamic behavior. Basically reusable CSS blocks, include with @include.
๐งฎ Functions: Define reusable functions that return a value, useful for calculations or value manipulations, normally being used within CSS properties. Sass also provides with some built-in functions, such as โdarken($color, $amount)โ which makes a color darker or โpercentage($number)โ which converts a number to a percentage.
๐ฆ Modules: Just like any other programming language, Sass lets you organize your code into separate files and use the @use rule to load them, helping to keep your styles maintainable.
๐ Inheritance: Share a set of CSS properties from one selector to another using the @extend directive, making your code DRY.
โโ Operators: Perform mathematical operations directly within your Sass code to dynamically calculate values without resorting to the calc() function.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
๐53โค19๐ฅ5๐
3
We might be in the middle of a CSS renaissance, but with low uptake of many modern features, Max questions if 'feature fatigue' is setting in. He also considers what we can do to ensure uptake of these nice new features and how to fit them into our thought processes.
๐ Link to the article
Please open Telegram to view this post
VIEW IN TELEGRAM
๐29โค7๐ฅ3
๐
Building Responsive Websites with Canva
๐ Author: Lachezar Arabadzhiev
๐ฐ Level: Beginner + Intermediate
โฐ Duration: 34m
๐ Topics: Canva, Responsive Web Design
๐ค Join Webdev Training for more courses
๐ Learn how to create a website that renders beautifully on a variety of devices and screen sizesโno coding experience required
Please open Telegram to view this post
VIEW IN TELEGRAM
๐20โค7๐ฅ4๐ฑ4โคโ๐ฅ3
Please open Telegram to view this post
VIEW IN TELEGRAM
๐18โค6
"cap" is a CSS unit which is equal to the "cap height", that is, the size of the capital letters in a font.
This helps us to easily size icons that lie next to a piece of text to perfectly match the height of the text - no more fiddling around with rem or px units ๐คฉ
โ Question: Do you feel this is a better approach or do you like to define a specific dimension for your items?
Please open Telegram to view this post
VIEW IN TELEGRAM
๐48โค14๐ฏ3๐2๐ฅ1
๐11โค1
๐ Build modern responsive websites with HTML and CSS - Learning modules, mini-projects and 3 full websites
Please open Telegram to view this post
VIEW IN TELEGRAM
1๐59โค41๐ฅ14โก9๐ฅฐ8
02 - HTML Basics - Part 01.zip
444.2 MB
02 - HTML Basics - Part 01
02 - HTML Basics - Part 02.zip
274.4 MB
02 - HTML Basics - Part 02
๐ฅ24โค23๐18๐3
03 - CSS Basics - Part 01.zip
343.5 MB
03 - CSS Basics - Part 01
03 - CSS Basics - Part 02.zip
472.6 MB
03 - CSS Basics - Part 02
03 - CSS Basics - Part 03.zip
280 MB
03 - CSS Basics - Part 03
๐19๐ฅ16โค14๐5๐4
04 - Hotel Website - Part 01.zip
365.7 MB
04 - Hotel Website - Part 01
04 - Hotel Website - Part 02.zip
419.7 MB
04 - Hotel Website - Part 02
04 - Hotel Website - Part 03.zip
457.1 MB
04 - Hotel Website - Part 03
๐ฅ19๐17โค14๐2