Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Less is more
Search
Sven Dahlstrand
May 16, 2012
Technology
360
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Less is more
Sven Dahlstrand
May 16, 2012
More Decks by Sven Dahlstrand
See All by Sven Dahlstrand
Ett smörgåsbord av smarta verktyg
svendahlstrand
0
910
Smarta lösningar i SiteVision
svendahlstrand
0
71
46elks
svendahlstrand
0
170
Internet of Things
svendahlstrand
2
120
Responsiv webbdesign
svendahlstrand
1
58
Internet of Things
svendahlstrand
1
190
Att testa dina SiteVision-portlets
svendahlstrand
1
150
Other Decks in Technology
See All in Technology
FactoryBotアンチパターン / factory_bot anti-patterns
toshimaru
0
150
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
220
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
690
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
0
210
More Freedom on the Same Shared GPU Cluster: A Small Team’s Experience with vCluster
nttcom
0
150
DGX Spark でどこまでハッキングができるのか?
kash1064
0
500
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
380
Execution in the Kingdom of Agents: Reflections on Abstraction and Complexity
bcantrill
0
940
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
870
AI 時代の Azure エンジニアリング ~ 私たちは何を磨き、何を任せるのか ~
chack411
1
590
FOSS4Gを活用した自治体業務DXの試み
470715
0
150
使いこなすために知っておきたい Azure SRE Agent アンチパターン
torumakabe
2
480
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Product Roadmaps are Hard
iamctodd
55
13k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
270
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Raft: Consensus for Rubyists
vanstee
142
7.7k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
Designing for Timeless Needs
cassininazir
1
520
Exploring anti-patterns in Rails
aemeredith
4
530
Transcript
is more
CSS Jag
body { background: #5b83ad url("http://assets.example.com/images/background.png"); } .email-icon { background-image: url("http://assets.example.com/images/email.png");
border-color: #5b83ad; } Repetition - jobbigt att ändra Variabler @base-url: "http://assets.example.com/images"; @blue: #5b83ad; body { background: @blue url("@{base-url}/background.png"); } .email-icon { background-image: url("@{base-url}/email.png"); border-color: @blue; }
#information { background-color: #eeeeee; background-image: -webkit-linear-gradient(top, #eeeeee, #ffffff); background-image: -moz-linear-gradient(top,
#eeeeee, #ffffff); background-image: -ms-linear-gradient(top, #eeeeee, #ffffff); background-image: -o-linear-gradient(top, #eeeeee, #ffffff); } Mer repetition - svårt att återanvända .gradient (@from: #eee, @to: #fff) { background-color: @from; background-image: -webkit-linear-gradient(top, @from, @to); background-image: -moz-linear-gradient(top, @from, @to); background-image: -ms-linear-gradient(top, @from, @to); background-image: -o-linear-gradient(top, @from, @to); } #information { .gradient(#5b83ad, #fffff); } Mixins
.tweets { border-left: 2px solid blue; } .tweets ul {
list-style: none; margin: 0; padding: 0; } .tweets a { color: gray; display: block; } .tweets a:hover { color: blue; } Kan bli tydligare .tweets { border-left: 2px solid blue; ul { list-style: none; margin: 0; padding: 0; } a { color: gray; display: block; &:hover { color: blue; } } } Nästling
Allt det här och mer!
㟬Մ爱 WTF?!
i webbläsaren eller på servern LESS måste översättas
Ladda hem från lesscss.org less i stället för css Kom
igång! <link rel="stylesheet/less" type="text/css" href="styles.less"> <script src="less.js" type="text/javascript"></script>
Demo
Mindre repetition Enklare underhåll och återanvändning Inkludera less.js och kör
Sven Dahlstrand @svendahlstrand http://svendahlstrand.se