SlideShare a Scribd company logo
1 of 32
SUPERCHARGED
HTML &
CSS
JAVA
PYTHON
RUBY
PHP
SCALA
…
REST API
JAVASCRIPT
HTML
CSS
HAML
HTML Abstraction Markup
Languaje
$ gem install haml
$ haml input.haml output.html
!!! 5
%html
%head
%title Homepage
%body#home
%h1 Bienvenidos
%p Esto es un párrafo de texto
%ul.menu
%li Primer elemento
%li Segundo elemento
<!DOCTYPE html>
<html>
<head>
<title>Homepage</title>
</head>
<body id=“home”>
<h1>Bienvenidos</h1>
<p>Esto es un párrafo de texto</p>
<ul class='menu'>
<li>Primer elemento</li>
<li>Segundo elemento</li>
</ul>
</body>
</html>
JADE
Node Template Engine
$ npm install jade
doctype
html
head
title Homepage
body#home
h1 Bienvenidos
p Esto es un párrafo de texto
ul.menu
li Primer elemento
li Segundo elemento
<!DOCTYPE html>
<html>
<head>
<title>Homepage</title>
</head>
<body id=“home”>
<h1>Bienvenidos</h1>
<p>Esto es un párrafo de texto</p>
<ul class='menu'>
<li>Primer elemento</li>
<li>Segundo elemento</li>
</ul>
</body>
</html>
header.jade
head
title My Site
script(src=js/app.js)
footer.jade index.jade
doctype
html
include head
body
h1 Bienvenidos
p Párrafo
ul
li Link 1
li Link 2
include footer
footer
p Copyright 2013
template inheritance
JADE
layout.jade
doctype
html
head
title My Site
block script
body
block content
block footer
index.jade about-me.jade
extends layout
block script
script(src=js/app.js)
block content
h1 Bienvenidos
p Este es mi sitio
block footer
footer
p Copyright 2013
block support with extends
JADE
extends layout
block content
h1 Sobre mi
p Mi nombre es Max
p Vivo en Buenos Aires
block footer
footer
p Copyright 2013
layout.jade
doctype
html
head
title My Site
block script
script(src=js/jquery.js)
body
block content
article
h1 My Site
block footer
footer
p Copyright 2013
block append / prepend
JADE
extends layout
block append script
script(src=js/app.js)
block prepend content
nav
ul
li.active home.html
li about-me.html
li archive.html
index.jade
LESS
The Dynamic Stylesheet
Language
$ npm install less
$ lessc style.less style.css
style.less
@color: #FC0;
@border-width: 2px;
@border-style: solid;
div {
border: @border-width @border-style
@color;
}
variables
LESS
div { border: 2px solid #FC0; }
style.css
style.less
header {
color: black;
h1 {
background-color: gray;
color: white;
}
nav {
background-color: blue;
color: white;
ul {
list-style-type: none;
}
}
}
nested rules
LESS
header { color: black; }
header h1 {
background-color: gray;
color: white;
}
header nav {
background-color: blue;
color: white;
}
header nav ul {
list-style-type: none;
}
style.css
style.less
.bordered {
border-top: 1px dotted black;
border-bottom: 2px solid black;
}
button {
background-color: red;
color: white;
.bordered;
}
mixins
LESS
button {
background-color: red;
color: white;
border-top: 1px dotted black;
border-bottom: 2px solid black;
}
style.css
style.less
.border-radius(@radius) {
border-radius: @radius;
-moz-border-radius: @radius;
-webkit-border-radius: @radius;
}
button {
background-color: red;
color: white;
.border-radius(4px);
}
label { .border-radius(6px); }
parametric mixins
LESS
button {
background-color: red;
color: white;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
label {
border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
}
style.css
style.less
@page-width: 960px;
@aside-width: 200px;
@gutter: 10px;
@margin: @gutter;
@content-width: @page-width – ( @aside-width + (2 * @margin + @gutter )); //630px
.wrapper {
width: @page-width;
margin: @margin;
article { width: @content-width; float:left;}
aside { width: @aside-width; margin-left:@gutter; float:right;}
footer { clear:both; margin-top: @gutter; }
}
math
LESS
style.less
@color: red;
button {
background-color: @color;
&:hover {background-color: darken(@color, 10%);
}
label {
color: @color;
border: 1px solid @color;
background-color: lighten(@color, 30%);
}
built-in functions
LESS
style.less
@import “reset.css”;
@import “grid.less”;
@import “colors.less”;
@import “icons.less”;
header { color: @color; }
article { width: @page-width; }
aside {width: @aside-width; }
i.new { background-image: @icon-new; }
imports
LESS
(content of reset.css)
(content of grid.less)
(content of colors.less)
(content of icons.less)
header { color: black; }
article { width: 960px; }
aside {width: 240px; }
i.new { background-image: new.png; }
style.css
SASS
Syntactically Awesome
Stylesheets
$ gem install sass
$ sass --watch style.scss style.css
style.scss
$color: red;
@mixin bordered {
border-top: 1px dotted black;
border-bottom: 2px solid black;
}
button {
color: $color;
@include bordered;
}
variables & mixins
SASS
button {
color: red;
border-top: 1px dotted black;
border-bottom: 2px solid black;
}
style.css
style.scss
@mixin font-color($bgc){
@if $bgc == white {
color: black;
} @else if $bgc == black {
color: white;
} @else {
color: blue;
}
}
$background: yellow;
button {
background-color: $background;
@include font-color($background);
}
LESS
conditional if/else
SASS
$ gem install compass
$ compass create /path/to/project
style.scss
@import “compass”;
button { @include border-radius(4px); }
label { @include box-shadow(red 2px 2px 10px); }
@include font-face(„Open Sans‟,
font-files(“fonts/opensans.ttf”, “fonts/opensans.otf”))
);
p { font-family: “Open Sans”, Helvetica}
LESS
COMPASS
SASS
style.scss
@import “bourbon”;
section { @include clearfix; }
div.logo { @include hide-text; background-image: url(logo.png); }
h1 { font-size: em(12); }
#{$all-text-inputs} { border: 1px solid green; }
LESS
BOURBON
SASS
TOOLS
devs just wanna have fun
Scout
http://mhs.github.io/scout-app/
Compass.app
http://compass.handlino.com/
Livereload
http://livereload.com/
Less.app
http://incident57.com/less
SimpLESS
http://wearekiss.com/simpless Codekit
http://incident57.com/codekit/
thanks ;)
max kraszewski
@minimalart

More Related Content

What's hot

IPW 3rd Course - CSS
IPW 3rd Course - CSSIPW 3rd Course - CSS
IPW 3rd Course - CSS
Vlad Posea
 

What's hot (20)

html-css
html-csshtml-css
html-css
 
Web Design Course: CSS lecture 4
Web Design Course: CSS  lecture 4Web Design Course: CSS  lecture 4
Web Design Course: CSS lecture 4
 
CSS for Beginners
CSS for BeginnersCSS for Beginners
CSS for Beginners
 
Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01Cascading Style Sheets - Part 01
Cascading Style Sheets - Part 01
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02Cascading Style Sheets - Part 02
Cascading Style Sheets - Part 02
 
Css
CssCss
Css
 
Css
CssCss
Css
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
IPW 3rd Course - CSS
IPW 3rd Course - CSSIPW 3rd Course - CSS
IPW 3rd Course - CSS
 
HTML 5 Simple Tutorial Part 1
HTML 5 Simple Tutorial Part 1HTML 5 Simple Tutorial Part 1
HTML 5 Simple Tutorial Part 1
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Styling with CSS
Styling with CSSStyling with CSS
Styling with CSS
 
Css.html
Css.htmlCss.html
Css.html
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Css notes
Css notesCss notes
Css notes
 

Viewers also liked

2 reglas de_inversion_alternativas
2 reglas de_inversion_alternativas2 reglas de_inversion_alternativas
2 reglas de_inversion_alternativas
Marcelo Delpino
 
Analisis De Inversiones
Analisis De InversionesAnalisis De Inversiones
Analisis De Inversiones
nitro1100
 
7 Ross7 Valor Presente Neto Y Presupuesto De Capital
7 Ross7   Valor Presente Neto Y Presupuesto De Capital7 Ross7   Valor Presente Neto Y Presupuesto De Capital
7 Ross7 Valor Presente Neto Y Presupuesto De Capital
carloscatacora
 
tecnicas de evaluacion del capital
tecnicas de evaluacion del capitaltecnicas de evaluacion del capital
tecnicas de evaluacion del capital
manchasek
 
1.finanzas gerenciales
1.finanzas gerenciales1.finanzas gerenciales
1.finanzas gerenciales
vlady2511
 
Evaluacion de Inversiones - Cuarta Sesion
Evaluacion de Inversiones - Cuarta SesionEvaluacion de Inversiones - Cuarta Sesion
Evaluacion de Inversiones - Cuarta Sesion
Hector Javier
 

Viewers also liked (20)

Основы CSS препроцессоров и их использование в WordPress
Основы CSS препроцессоров и их использование в WordPressОсновы CSS препроцессоров и их использование в WordPress
Основы CSS препроцессоров и их использование в WordPress
 
Introducción al elemento canvas de HTML5
Introducción al elemento canvas de HTML5Introducción al elemento canvas de HTML5
Introducción al elemento canvas de HTML5
 
2 reglas de_inversion_alternativas
2 reglas de_inversion_alternativas2 reglas de_inversion_alternativas
2 reglas de_inversion_alternativas
 
Taller 1 p1 grupo3 deily lopez 11 a
Taller 1 p1 grupo3  deily lopez 11 aTaller 1 p1 grupo3  deily lopez 11 a
Taller 1 p1 grupo3 deily lopez 11 a
 
Api
ApiApi
Api
 
01 presentacion fep etapas
01 presentacion fep etapas01 presentacion fep etapas
01 presentacion fep etapas
 
Steve Job
Steve JobSteve Job
Steve Job
 
Analisis De Inversiones
Analisis De InversionesAnalisis De Inversiones
Analisis De Inversiones
 
7 Ross7 Valor Presente Neto Y Presupuesto De Capital
7 Ross7   Valor Presente Neto Y Presupuesto De Capital7 Ross7   Valor Presente Neto Y Presupuesto De Capital
7 Ross7 Valor Presente Neto Y Presupuesto De Capital
 
tecnicas de evaluacion del capital
tecnicas de evaluacion del capitaltecnicas de evaluacion del capital
tecnicas de evaluacion del capital
 
Contabilidad Avanzada
Contabilidad AvanzadaContabilidad Avanzada
Contabilidad Avanzada
 
1.finanzas gerenciales
1.finanzas gerenciales1.finanzas gerenciales
1.finanzas gerenciales
 
HTML5 Enfoque Semantico
HTML5 Enfoque SemanticoHTML5 Enfoque Semantico
HTML5 Enfoque Semantico
 
Gerencia financiera costo de capital
Gerencia financiera costo de capitalGerencia financiera costo de capital
Gerencia financiera costo de capital
 
Análisis y selección de inversiones, por Òscar Elvira
Análisis y selección de inversiones, por Òscar ElviraAnálisis y selección de inversiones, por Òscar Elvira
Análisis y selección de inversiones, por Òscar Elvira
 
Evaluacion de Inversiones - Cuarta Sesion
Evaluacion de Inversiones - Cuarta SesionEvaluacion de Inversiones - Cuarta Sesion
Evaluacion de Inversiones - Cuarta Sesion
 
Tema 5
Tema 5Tema 5
Tema 5
 
Introducción al desarrollo web frontend
Introducción al desarrollo web frontendIntroducción al desarrollo web frontend
Introducción al desarrollo web frontend
 
Evaluacion de Proyectos. Análisis Económico Financiero
Evaluacion de Proyectos. Análisis Económico FinancieroEvaluacion de Proyectos. Análisis Económico Financiero
Evaluacion de Proyectos. Análisis Económico Financiero
 
Presupuesto de capital
Presupuesto de capitalPresupuesto de capital
Presupuesto de capital
 

Similar to Supercharged HTML & CSS

Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本
a5494535
 
Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)
gng542
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
Rafaela Souza
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
Rafaela Souza
 

Similar to Supercharged HTML & CSS (20)

Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehrBeyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
Beyond HTML - Scriptsprachen, Frameworks, Templatesprachen und vieles mehr
 
Xlrays online web tutorials
Xlrays online web tutorialsXlrays online web tutorials
Xlrays online web tutorials
 
LessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG MeetingLessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG Meeting
 
Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本Simple Blue Blog Template XML 的副本
Simple Blue Blog Template XML 的副本
 
2. CSS Chapter Roadmap and Full Source Code.pdf
2. CSS Chapter Roadmap and Full Source Code.pdf2. CSS Chapter Roadmap and Full Source Code.pdf
2. CSS Chapter Roadmap and Full Source Code.pdf
 
Dfdf
DfdfDfdf
Dfdf
 
Dfdf
DfdfDfdf
Dfdf
 
McrFRED 39 | CSS Processors
McrFRED 39 | CSS ProcessorsMcrFRED 39 | CSS Processors
McrFRED 39 | CSS Processors
 
Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)Css 2c (2) (1) (1) (2)
Css 2c (2) (1) (1) (2)
 
CSS for Ebooks
CSS for EbooksCSS for Ebooks
CSS for Ebooks
 
Theme04
Theme04Theme04
Theme04
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
 
Work and play with SASS & Compass
Work and play with SASS & CompassWork and play with SASS & Compass
Work and play with SASS & Compass
 
Day of code
Day of codeDay of code
Day of code
 
Html advance
Html advanceHtml advance
Html advance
 
HTML-Advance.pptx
HTML-Advance.pptxHTML-Advance.pptx
HTML-Advance.pptx
 
CSS Extenders
CSS ExtendersCSS Extenders
CSS Extenders
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
 
Theme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copieTheme futura suicida não use como base e nem copie
Theme futura suicida não use como base e nem copie
 
Tmx9
Tmx9Tmx9
Tmx9
 

More from Max Kraszewski (6)

Gestión ágil de proyectos
Gestión ágil de proyectosGestión ágil de proyectos
Gestión ágil de proyectos
 
Desarrollo web inteligente
Desarrollo web inteligenteDesarrollo web inteligente
Desarrollo web inteligente
 
Educabot
EducabotEducabot
Educabot
 
PSICOFXP 2009
PSICOFXP 2009PSICOFXP 2009
PSICOFXP 2009
 
Sitios Web Rápidos y Furiosos
Sitios Web Rápidos y FuriososSitios Web Rápidos y Furiosos
Sitios Web Rápidos y Furiosos
 
Negocios 2.0
Negocios 2.0Negocios 2.0
Negocios 2.0
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Supercharged HTML & CSS