Submit Search
Upload
Stylus - css preprocessor
•
1 like
•
2,300 views
S
SUPERKODERS
Follow
1) Vyvrácení českých mýtů. 2) Proč stylus 3) Tipy & triky
Read less
Read more
Technology
Report
Share
Report
Share
1 of 34
Download now
Download to read offline
Recommended
Sass & compass
Sass & compass
Javier Arques Hernández
Proga 0511
Proga 0511
Atsushi Tadokoro
Optimalizace obrázků v (responsivních) šablonách
Optimalizace obrázků v (responsivních) šablonách
SUPERKODERS
Jak pracovat s fonty na front endu
Jak pracovat s fonty na front endu
SUPERKODERS
Jak funguje prohlížeč
Jak funguje prohlížeč
SUPERKODERS
Typické chyby responzivních podkladů
Typické chyby responzivních podkladů
SUPERKODERS
Prezentace jak zrychlit načítání webu
Prezentace jak zrychlit načítání webu
SUPERKODERS
Užitečné zdroje a nástroje pro tvorbu HTML e-mailů
Užitečné zdroje a nástroje pro tvorbu HTML e-mailů
SUPERKODERS
Recommended
Sass & compass
Sass & compass
Javier Arques Hernández
Proga 0511
Proga 0511
Atsushi Tadokoro
Optimalizace obrázků v (responsivních) šablonách
Optimalizace obrázků v (responsivních) šablonách
SUPERKODERS
Jak pracovat s fonty na front endu
Jak pracovat s fonty na front endu
SUPERKODERS
Jak funguje prohlížeč
Jak funguje prohlížeč
SUPERKODERS
Typické chyby responzivních podkladů
Typické chyby responzivních podkladů
SUPERKODERS
Prezentace jak zrychlit načítání webu
Prezentace jak zrychlit načítání webu
SUPERKODERS
Užitečné zdroje a nástroje pro tvorbu HTML e-mailů
Užitečné zdroje a nástroje pro tvorbu HTML e-mailů
SUPERKODERS
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Stylus - css preprocessor
1.
SUPERKODÉR sk. Michal Matuška @fireball_ www.superkoderi.cz
2.
CSS Preprocessor Stylus
3.
Mýty & fakta
4.
Malá a neaktivní
komunita Určen pro programátory Nepodporuje plug-iny Není podporován frameworky
5.
Bootstrap framework http://bit.ly/1d4OGXe Foundation framework http://bit.ly/1ffy6tv
6.
Proč Stylus?
7.
Nemá striktní pravidla
8.
a {
color: #333; &:hover { color: #000; } } ! a { color: #333; &:hover { color: #000; }} ! a color: #333; &:hover color: #000; Stylus
9.
Significant whitespace
10.
Stylus a
color #333 &:hover color #000
11.
Jednoduché volání mixin
12.
SASS vs Stylus @include
background-‐image(linear-‐ gradient(top, white, black)) ! vs ! background-‐image linear-‐gradient(top, white, black)
13.
@extend
14.
.message
padding 10px Stylus ! .warning @extend .message color red ! .message, .warning { padding: 10px; } .warning { color: red; } CSS
15.
Business logika
16.
Stylus $cols = 1
2 3 4 5 ! for $col in $cols $parts = 1..$col for $part in $parts if $col is 1 or $part is not $col .col-‐{$part}-‐{$col} width unit(100 / $col * $part, '%')
17.
Tipy & triky
18.
Stylus $absoluteFull
position absolute top 0 right 0 bottom 0 left 0 ! .overlay @extend $absoluteFull
19.
CSS .overlay {
position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
20.
Stylus .crossroad-‐articles
& + & margin-‐top 50px
21.
CSS .crossroad-‐articles + .crossroad-‐ articles
{ margin-‐top: 50px; }
22.
Stylus input
color #666 &:hover, /.is-‐hovered color #000
23.
CSS input {
color: #666; } ! input:hover, .is-‐hovered { color: #000; }
24.
Stylus icon()
if match(':(before|after)', selector()) content '' display inline-‐block ! .icon &:before icon()
25.
CSS .icon:before {
content: ''; display: inline-‐block; }
26.
Stylus no-‐wrap = nowrap
! .name white-‐space no-‐wrap
27.
CSS .name {
white-‐space: nowrap; }
28.
Stylus .btn
background rgba(black, .5)
29.
CSS .box {
background: rgba(0,0,0,0.5); }
30.
Stylus size()
if length(arguments) == 1 width arguments[0] height arguments[0] else width arguments[0] height arguments[1] ! .square size 30px ! .rectangle size 30px 15px
31.
CSS .square {
width: 30px; height: 30px; } ! .rectangle { width: 30px; height: 15px; }
32.
Stylus .icon-‐add
absolute top 50% left 0 size 16px margin-‐top (@height / -‐2)
33.
CSS .icon-‐add {
position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin-‐top: -‐8px; }
34.
Děkuji za pozornost twitter.com/fireball_ www.superkoderi.cz michal.matuska@superkoderi.cz
Download now