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
70
46elks
svendahlstrand
0
170
Internet of Things
svendahlstrand
2
120
Responsiv webbdesign
svendahlstrand
1
57
Internet of Things
svendahlstrand
1
180
Att testa dina SiteVision-portlets
svendahlstrand
1
140
Other Decks in Technology
See All in Technology
AWS DevOps Agent スキルをつかいこなそう / Master AWS DevOps Agent Skills
kinunori
1
500
AI coding 整合正規方法
philipz
0
550
JSONataとAWS Step Functionsで目指すRuntimelessな世界
mu7889yoon
1
510
AI 時代のスタートアップエコシステ厶から考究する技術的負債との向き合い方
m3m0r7
PRO
3
2.7k
EventBridge に「合流」はない ― サーバーレスのワークフローを育てるということ / No Join in EventBridge
yusukeshimizu
2
560
C#未経験の僕がAIに読めるコードを書かせるまで
maguroalternative
0
310
AIは推し活である。
kurazuuuuuu
2
980
.NET WebAssemblyで実現するクライアントサイドAI推論:NuGetからViteまで、2つのエコシステムを繋ぐビルド戦略
yamachu
1
870
Why Agent Cost Needs Observability
nttcom
0
170
その Lambda、8分で 管理者権限まで奪われます
k1nakayama
7
3.7k
Azure Serverless 2026:Production-ready な AI エージェント基盤 / Azure Serverless 2026: Production-Ready AI Agent Platform
miyake
2
610
AIエージェントの権限管理 3: Agentic RAG の Fine grained access control 編
ren8k
1
270
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
55
13k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
540
Claude Code のすすめ
schroneko
67
230k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.9k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
How to Talk to Developers About Accessibility
jct
2
560
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
How to Ace a Technical Interview
jacobian
281
24k
Evolving SEO for Evolving Search Engines
ryanjones
0
300
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
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