Skip to content

Commit

Permalink
Merge branch 'master' of http://github.com/telerikacademy/css
Browse files Browse the repository at this point in the history
  • Loading branch information
Minkov committed May 27, 2016
2 parents 776e920 + bf1e157 commit 1d031af
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions Topics/03. CSS-Layout/slides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@
## Questions? -->


<!-- attr: { showInPresentation:true, hasScriptWrapper:true, style:'font-size: 0.9em' } -->
<!-- attr: { showInPresentation:true, hasScriptWrapper:true } -->
# Free Trainings @ Telerik Academy
- "Web Design with HTML 5, CSS 3 and JavaScript" course @ Telerik Academy
- [css course](http://academy.telerik.com/student-courses/web-design-and-ui/css-styling/about)
Expand All @@ -592,4 +592,4 @@
- Telerik Software Academy Forums
- [forums.academy.telerik.com](http://telerikacademy.com/Forum/Home)

<!-- <img class="slide-image" showInPresentation="true" src="imgs/pic35.png" style="top:34.35%; left:68.14%; width:36.30%; z-index:-1" /> -->
<!-- <img class="slide-image" showInPresentation="true" src="imgs/pic35.png" style="top:40%; left:68.14%; width:30%; z-index:-1" /> -->
24 changes: 12 additions & 12 deletions Topics/04. LESS/slides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- [Variables and Interpolation](#variables-and-interpolation)
- [Mixins and Functions](#mixins-and-functions)
- [Loops](#loops)

<!-- <img class="slide-image" src="imgs/pic03.png" showInPresentation="true" style="top:29.78%; left:64.70%; width:38.94%; z-index:-1" /> -->


Expand All @@ -33,7 +33,7 @@
<!-- section start -->
<!-- attr: { id:'overview', class:'slide-section', showInPresentation:true } -->
<!-- # <a id="overview"></a>LESS Overview
## What is LESS? -->
## What is LESS? -->

<!-- attr: { showInPresentation:true, hasScriptWrapper:true } -->
# LESS Overview
Expand All @@ -46,7 +46,7 @@
- Mixins
- Color editing functions
- Selector nesting and more

<!-- <img class="slide-image" src="imgs/pic05.png" showInPresentation="true" style="top:47%; left:73%; width:30%; z-index:-1" /> -->


Expand Down Expand Up @@ -84,7 +84,7 @@
- **Using client-side LESS is slow**
- All the parsing is done by the client
- i.e. spend some of the browser resources for pointless parsing - Imagine a 2000-lines-long LESS file…




Expand Down Expand Up @@ -233,7 +233,7 @@ body a:visited {
@border-width: 15px;

border-@{border-side} :
$border-width $border-style $border-color;
@border-width @border-style @border-color;
```

```css
Expand Down Expand Up @@ -378,14 +378,14 @@ div.box-div {
- Mixins can define different behavior, depending on its parameters

```less
.color(dark, @color){
.color(dark; @color){
color: @darken(@color);
}
.color(light, @color){
.color(light; @color){
color: @lighten(@color);
}
//called no matter which of the above is called
@color(@_, @color){
@color(@_; @color){
border: 1px solid @color;
}
```
Expand Down Expand Up @@ -508,12 +508,12 @@ div {
- "Web Design with HTML 5, CSS 3 and JavaScript" course @ Telerik Academy
- [css course](http://academy.telerik.com/student-courses/web-design-and-ui/css-styling/about)
- Telerik Software Academy
- [academy.telerik.com](academy.telerik.com)
- [telerikacademy.com](https://telerikacademy.com)
- Telerik Academy @ Facebook
- [facebook.com/TelerikAcademy](facebook.com/TelerikAcademy)
- [facebook.com/TelerikAcademy](http://facebook.com/TelerikAcademy)
- Telerik Software Academy Forums
- forums.academy.telerik.com
- [forums.academy.telerik.com](http://forums.academy.telerik.com)

<!-- <img class="slide-image" src="imgs/pic19.png" showInPresentation="true" style="top:58.18%; left:90.52%; width:16.97%; z-index:-1" /> -->
<!-- <img class="slide-image" src="imgs/pic20.png" showInPresentation="true" style="top:34.35%; left:68.14%; width:36.30%; z-index:-1" /> -->
<!-- <img class="slide-image" src="imgs/pic21.png" showInPresentation="true" style="top:48.92%; left:75.91%; width:10.85%; z-index:-1" /> -->
48 changes: 24 additions & 24 deletions Topics/04. SASS/slides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@
```bash
npm install -g node-sass
```

- Compile `scss` files on changes:

```bash
node-sass --watch source.sccs dest.css
node-sass --watch source.sccs dest.css
```

- You get the translated CSS

<!-- attr: { class:'slide-section demo', showInPresentation:true } -->
<!-- # Compiling SASS with Node.js
<!-- # Compiling SASS with Node.js
## Demo -->


Expand Down Expand Up @@ -118,7 +118,7 @@ body {
font: normal 16px arial;
color: #fff;
background-color: #011b63;
h1 {
font-size: 2.3em;
font-weight: bold;
Expand Down Expand Up @@ -177,7 +177,7 @@ body h1{
```sass
a {
color: black;
&:hover {
color: lightblue;
}
Expand All @@ -189,7 +189,7 @@ a {
a {
color: black;
}
a:hover {
color: lightblue;
}
Expand Down Expand Up @@ -273,8 +273,8 @@ border-top : 15px ridge blue
- How to **define mixins**?
- Use the following syntax:
```sass
@mixin <mixin-name> {
/* SASS styles go here */
@mixin <mixin-name> {
/* SASS styles go here */
}
```
- Then the styles are normal SASS
Expand All @@ -284,7 +284,7 @@ border-top : 15px ridge blue
```sass
@mixin clearfix{
zoom:1;
&:after{ display:block; content:""; height:0; clear:both; }
&:after{ display:block; content:""; height:0; clear:both; }
}
```
Expand Down Expand Up @@ -351,13 +351,13 @@ div{
```sass
.clearfix, body div {
zoom: 1;
zoom: 1;
}
.clearfix:after, body div:after {
display: block;
height: 0;
content: "";
clear: both;
clear: both;
}
```
Expand Down Expand Up @@ -387,7 +387,7 @@ div{
## [Demo](https://github.com/TelerikAcademy/CSS/blob/master/Topics/04.%20SASS/demos/09.%20operators-and-conditional-statements.html) -->
<!-- attr: { class:'slide-section', showInPresentation:true } -->
<!-- # Conditional statements
<!-- # Conditional statements
## Generate style rules depending on conditions -->
<!-- attr: { id:'conditionals', showInPresentation:true, style:'font-size: 0.9em' } -->
Expand All @@ -396,9 +396,9 @@ div{
```sass
@mixin opacity($value) {
opacity: $value;
@if(0.75 < $value and $value <= 1) {
color: blue;
} @else if(0.25 < $value and $value <= 0.75) {
Expand All @@ -411,7 +411,7 @@ div{
<!-- attr: { class:'slide-section demo', showInPresentation:true, hasScriptWrapper:true } -->
<!-- # Conditional statements
<!-- # Conditional statements
## [Demo](https://github.com/TelerikAcademy/CSS/blob/master/Topics/04.%20SASS/demos/09.%20operators-and-conditional-statements.html) -->
<!-- attr: { class:'slide-section', showInPresentation:true, hasScriptWrapper:true } -->
Expand All @@ -426,17 +426,17 @@ div{
- `@each` loop
- Similar to loops in C#, JS, C++ and so on
- Can be used to repeat actions and/or generate css rules
<!-- attr: { showInPresentation:true, hasScriptWrapper:true, style:'font-size: 0.8em' } -->
# `@for` loop
- Syntax:
- Syntax:
```
@for <index-name> <start> through <end> { <loop-body> }
```
- Repeats `<loop-body>` for each value from `start` to `end`
- The index is accessible through the variable with `<index-name>`
```sass
@for $index from 1 through 3 {
.margin-left-#{$index} {
Expand All @@ -457,7 +457,7 @@ div{
<!-- attr: { showInPresentation:true, hasScriptWrapper:true, style:'font-size: 0.75em' } -->
# `@while` loop
- Syntax:
- Syntax:
```
@while <condition> { <loop-body> }
```
Expand Down Expand Up @@ -570,10 +570,10 @@ $selectors: div p section article;
- "Web Design with HTML 5, CSS 3 and JavaScript" course @ Telerik Academy
- [css course](http://academy.telerik.com/student-courses/web-design-and-ui/css-styling/about)
- Telerik Software Academy
- [academy.telerik.com](academy.telerik.com)
- [telerikacademy.com](https://telerikacademy.com)
- Telerik Academy @ Facebook
- [facebook.com/TelerikAcademy](facebook.com/TelerikAcademy)
- [facebook.com/TelerikAcademy](http://facebook.com/TelerikAcademy)
- Telerik Software Academy Forums
- forums.academy.telerik.com
- [forums.academy.telerik.com](http://forums.academy.telerik.com)
<!-- <img class="slide-image" showInPresentation="true" src="imgs/pic35.png" style="top:34.35%; left:68.14%; width:36.30%; z-index:-1" /> -->

0 comments on commit 1d031af

Please sign in to comment.