6. Defining Media Queries
Jun 10 2018- POSTED BY projecth
There are many benefits to using Sass when building or refactoring responsive layouts. In this video, we’ll cover some the […]
Read MoreThere are many benefits to using Sass when building or refactoring responsive layouts. In this video, we’ll cover some the […]
Read MoreMixins are a smart way of reusing our code. One of the last steps in refactoring is replacing common patterns […]
Read MoreStyles File Structures The _extends.scss file contains all the placeholders that you’ll @extend in your partials. scss |__ style.scss |__ base | _index.scss | […]
Read MoreDon’t over-nest code! Refer to the following page for more details on Nested Selectors Ampersand (&)
Read MoreCommon Sass Structures The _extends.scss file contains all the placeholders that you’ll @extend in your partials. scss |__ style.scss |__ base | _index.scss | […]
Read MoreCommon Sass Structures An example would be scss |__ style.scss |__ base | _index.scss | _base.scss |__components | _index.scss | […]
Read MoreBreak related sections into partials Extract repeating patterns into extends Nest where it makes sense Create variables for repetitive values […]
Read MoreSass lets you reference the parent selector of a nested rule using the ampersand (&) symbol. The & becomes the parent […]
Read MoreNested selectors make writing descendant and complex selectors fast and simple. .card { display: flex; h1 { color: $color-primary; } […]
Read MoreCompile Sass sass input.scss ouput.css Watch Changes If you run the following command, you wont have to compile sass every […]
Read MoreWhat is Sass? A CSS preprocessor. A program that takes source code written in one type of language as input, […]
Read MoreThis is the final version of the tests.py script that we have reached so far for Python Testing lessons to […]
Read MoreCoverage’s reports are great but sometimes you want something more visual or a page you can share with other people. […]
Read MoreIf your code raises exceptions it’s a good idea to test them to make sure they get raised properly. Luckily unittest provides […]
Read MoreThe unittest library has many different assertions but some are more commonly used than others. Let’s look at how to […]
Read MoreAssertions test a condition in your code that must be met. A lot of the assertions you’ll write in your […]
Read MoreMost of the power of testing in Python comes from the unittestframework and it’s TestCase class. Technically, unittest is Python’s library for writing tests. […]
Read More