Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Less is more
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
110
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
FPC(フレキシブル)基板にZephyr実装してみた。
iotengineer22
0
180
AIをフル活用してオンコール機能のプロトタイプを2日で作った話 / Building an AI-Powered On-Call Prototype in Just Two Days
nari_ex
0
140
AWS Security Hub CSPMの成功・失敗体験
cmusudakeisuke
0
580
iOS アプリの「これって不具合ですか?」を AI に調べてもらう
miichan
0
150
コミットの「なぜ」を読む
ota1022
0
120
千葉での単身赴任からAWSをやり続け、千葉に戻ってきた話
yama3133
1
120
Flow 不死:AI 時代 DevOps 的不變本質
cheng_wei_chen
2
540
初めてのDatabricks勉強会
taka_aki
2
170
【Snowflake Summit 2026 Recap!!】Snowflake Summit Deep Dive: Security & Governance
civitaspo
1
320
徹底討論!ECS vs EKS!
daitak
3
1.8k
スタートアップにAmazon EKSは早すぎる? マルチプロダクト戦略を加速する Platform Engineeringの実践 / Is Amazon EKS Too Soon for Startups? Practical Platform Engineering to Accelerate a Multi-Product Strategy
elmodev09
1
1.9k
「勝手に広まる」人気 AI エージェントを爆速で作ろう!(AWS Summit Japan 2026講演資料)
minorun365
PRO
10
2.6k
Featured
See All Featured
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
430
Utilizing Notion as your number one productivity tool
mfonobong
4
330
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
620
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
We Are The Robots
honzajavorek
0
260
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.1k
The Curse of the Amulet
leimatthew05
2
13k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
340
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Embracing the Ebb and Flow
colly
88
5.1k
Building Adaptive Systems
keathley
44
3.1k
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