SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
skeleton x codekit x
        magento
...and the case for separate css/js files

           @ldn_tech_exec
            #magentoLDN
             4 july 2012
skeleton
● base.css
● layout.css
● skeleton.css
skeleton x magento
● base.css
● skeleton.css
● layout.css

●   no-frame.phtml
●   app/code/local/Mage/Page/etc/config.xml
●   app/etc/modules/Mage_All.xml
●   local.xml - add no-frame.phtml to any page
no-frame.phtml
● removed all columns
● viewport
  <meta name="viewport" content="
  width=device-width, initial-
  scale=1.0">
● facebook compatibility
● html IE classes
html IE classes
● the old way (slooow)
  <link href="style.css" rel="stylesheet"
  />
  <!--[if lte IE7]><link href="style.ie7.
  css" rel="stylesheet" /><![endif]-->
● hacks (dangerous and not valid)
  #content { margin: 10px; _margin:20px; }
● the correct way (html5 bp)
  <!--[if lt IE 7]>      <html class="ie ie6
  lte9 lte8 lte7">
allows you to do this
.gte9 .gradient {
   filter: none;
}
divs
<div class="container">
  <div class="one-third column">
    some text
  </div>
  <div class="two-thirds column">
    some two column text
  </div>
</div>
images
<img class="scale-with-grid"
src="..." alt="..." title="..." />
media queries
● always at the bottom
● always in descending order
extreme CSS & JS
   fast landing pages
the case for separate CSS/JS files
● traditional thinking, vs
● fast landing pages

problem: how to manage this? modpagespeed? magento?
locally?
combine CSS files & long expires
gotcha's
● modpagespeed => 4095. what a cunt.
● magento breaks base64

solution
● combine css
  ○ combine locally with CodeKit & BLESS, or
  ○ if you're not scared of 4095, use magento and
    base64.phtml hack
● Aoe JsCssTstamp for long expires
bypass magento base64 bug with base64.
phtml
● layout.xml
<reference name="head">
   <block type="page/html"
   name="bg_css"
   template="page/base64.phtml"/>
</reference>
====
● base64.phtml
<link rel="stylesheet" type="text/css"
href="<?php echo $this->getSkinUrl(); ?
>css/base64.css" media="all">

(better to just combine locally with codekit)
codekit x magento
ever wondered why your scripts get
so damn big?
● old unused CSS and JS generally never get
  deleted, and is hard to manage without
  separating them into files

● use codekit

● e.g. @import "testing-this-layout.css";
codekit, compass & scss
● compass gives you access to a bunch of
  frameworks
● @import
  ○ combine css locally
  ○ anywhere you have reuseable stuff, but want to keep
    files organised (e.g. skeleton, fonts, typography,
    buttons, )
● @include
  ○ where you have @import'd a scss/sass file where
    you have declared a @mixin
  ○ you use @include to call that @mixin
compass example
scss




compiles to
setting up codekit for magento
● create theme "yourtheme-ck"
● mirror magento path names, e.g. "css" and
  "js" etc...
● ...so assets become:
  ○   JS - skin/frontend/default/yourtheme/js
  ○   CSS - skin/frontend/default/yourtheme/css
  ○   IMAGES - skin/frontend/default/yourtheme/images
  ○   SASS - skin/frontend/default/yourtheme/css
● magento structure remains the same
  ○ these compile to "yourtheme/css", "yourtheme/js"
    etc...
  ○ choose "default" as codekit compass project
codekit settings for magento
examples
● landing.css
   ○ @import buttons.scss
   ○ @import typography.scss
   ○ @import forms.scss
   ○ @import header.scss
   ○ @import footer.scss
● styles.css
   ○ @import checkout.scss
   ○ @import cart.scss
   ○ @import widget1.scss
   ○ @import module1.scss
   ○ @import test-module.scss
● change your xml files to reflect landing.css and styles.
  css
resources
@ldn_tech_exec

● github.com/arush
● adding SASS to Sublime Text 2
    ○ http://www.adampatterson.ca/blog/2011/05/adding-
      sass-scss-support-sublime-edit-2/
●   http://incident57.com/codekit/
●   http://www.getskeleton.com/
●   4095 - http://blesscss.com/
●   http://compass-style.org/

Weitere ähnliche Inhalte

Was ist angesagt?

Static Websites - The Final Frontier
Static Websites - The Final FrontierStatic Websites - The Final Frontier
Static Websites - The Final FrontierJuho Vepsäläinen
 
Bootstrap 3 + responsive
Bootstrap 3 + responsiveBootstrap 3 + responsive
Bootstrap 3 + responsivehatchpb
 
Fecrash10:3:17 sd
Fecrash10:3:17 sdFecrash10:3:17 sd
Fecrash10:3:17 sdThinkful
 
Movable Type 5 : テーマの作成方法
Movable Type 5 : テーマの作成方法Movable Type 5 : テーマの作成方法
Movable Type 5 : テーマの作成方法Jun Kaneko
 
Fecc 12517-sd
Fecc 12517-sdFecc 12517-sd
Fecc 12517-sdThinkful
 
Bootstrap Introduction
Bootstrap IntroductionBootstrap Introduction
Bootstrap IntroductionAndrea Tarr
 
A beginner's guide to twitter bootstrap
A beginner's guide to twitter bootstrapA beginner's guide to twitter bootstrap
A beginner's guide to twitter bootstrapSunanda Bansal
 
Drupal Camp Kiev 2012 - High Performance Drupal Web Sites
Drupal Camp Kiev 2012 - High Performance Drupal Web SitesDrupal Camp Kiev 2012 - High Performance Drupal Web Sites
Drupal Camp Kiev 2012 - High Performance Drupal Web SitesJean-Baptiste Guerraz
 
3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & itemsIn a Rocket
 
Steve Barman - CSS and WordPress
Steve Barman - CSS and WordPressSteve Barman - CSS and WordPress
Steve Barman - CSS and WordPressAnthony Montalbano
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to BootstrapRon Reiter
 
1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setupIn a Rocket
 
Fronted From Scratch - Supercharge Magento page speed
Fronted From Scratch - Supercharge Magento page speedFronted From Scratch - Supercharge Magento page speed
Fronted From Scratch - Supercharge Magento page speedYousef Cisco
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / ContextIn a Rocket
 
Bootstrap webtech presentation - new
Bootstrap   webtech presentation - newBootstrap   webtech presentation - new
Bootstrap webtech presentation - newWebtech Learning
 

Was ist angesagt? (20)

Static Websites - The Final Frontier
Static Websites - The Final FrontierStatic Websites - The Final Frontier
Static Websites - The Final Frontier
 
Bootstrap 3 + responsive
Bootstrap 3 + responsiveBootstrap 3 + responsive
Bootstrap 3 + responsive
 
Fecrash10:3:17 sd
Fecrash10:3:17 sdFecrash10:3:17 sd
Fecrash10:3:17 sd
 
Basics of VueJS
Basics of VueJSBasics of VueJS
Basics of VueJS
 
Movable Type 5 : テーマの作成方法
Movable Type 5 : テーマの作成方法Movable Type 5 : テーマの作成方法
Movable Type 5 : テーマの作成方法
 
Bootstrap vs. Skeleton
Bootstrap vs. SkeletonBootstrap vs. Skeleton
Bootstrap vs. Skeleton
 
Fecc 12517-sd
Fecc 12517-sdFecc 12517-sd
Fecc 12517-sd
 
Bootstrap Introduction
Bootstrap IntroductionBootstrap Introduction
Bootstrap Introduction
 
A beginner's guide to twitter bootstrap
A beginner's guide to twitter bootstrapA beginner's guide to twitter bootstrap
A beginner's guide to twitter bootstrap
 
Bootstrap 3.1.1
Bootstrap 3.1.1Bootstrap 3.1.1
Bootstrap 3.1.1
 
Drupal Camp Kiev 2012 - High Performance Drupal Web Sites
Drupal Camp Kiev 2012 - High Performance Drupal Web SitesDrupal Camp Kiev 2012 - High Performance Drupal Web Sites
Drupal Camp Kiev 2012 - High Performance Drupal Web Sites
 
3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items3- Learn Flexbox & CSS Grid / Container & items
3- Learn Flexbox & CSS Grid / Container & items
 
Steve Barman - CSS and WordPress
Steve Barman - CSS and WordPressSteve Barman - CSS and WordPress
Steve Barman - CSS and WordPress
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
Web design
Web designWeb design
Web design
 
1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup1- Learn Flexbox & CSS Grid / Environment setup
1- Learn Flexbox & CSS Grid / Environment setup
 
Fronted From Scratch - Supercharge Magento page speed
Fronted From Scratch - Supercharge Magento page speedFronted From Scratch - Supercharge Magento page speed
Fronted From Scratch - Supercharge Magento page speed
 
2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context2- Learn Flexbox & CSS Grid / Context
2- Learn Flexbox & CSS Grid / Context
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
Bootstrap webtech presentation - new
Bootstrap   webtech presentation - newBootstrap   webtech presentation - new
Bootstrap webtech presentation - new
 

Andere mochten auch

14. Общая экономика 2017: Превращение товарного капитала в товарно-торговый к...
14. Общая экономика 2017: Превращение товарного капитала в товарно-торговый к...14. Общая экономика 2017: Превращение товарного капитала в товарно-торговый к...
14. Общая экономика 2017: Превращение товарного капитала в товарно-торговый к...Moscow State University
 
Questionnaire analysis stephen
Questionnaire analysis stephenQuestionnaire analysis stephen
Questionnaire analysis stephenSHubbard1
 
Partnering with Your Members to Strengthen Their Customer Relationships (and ...
Partnering with Your Members to Strengthen Their Customer Relationships (and ...Partnering with Your Members to Strengthen Their Customer Relationships (and ...
Partnering with Your Members to Strengthen Their Customer Relationships (and ...Council of Manufacturing Associations
 
59366618 caracterizacion-del-pueblo-awa (1)
59366618 caracterizacion-del-pueblo-awa (1)59366618 caracterizacion-del-pueblo-awa (1)
59366618 caracterizacion-del-pueblo-awa (1)Manuel Benavides
 
Nodejs Intro - Part2 Introduction to Web Applications
Nodejs Intro - Part2 Introduction to Web ApplicationsNodejs Intro - Part2 Introduction to Web Applications
Nodejs Intro - Part2 Introduction to Web ApplicationsBudh Ram Gurung
 
презентация фотоомоложения
презентация фотоомоложенияпрезентация фотоомоложения
презентация фотоомоложенияAndreykireenkov
 
PRESENTATION - Migrating AWS EBS backed AMI's between Regions
PRESENTATION - Migrating AWS EBS backed AMI's between RegionsPRESENTATION - Migrating AWS EBS backed AMI's between Regions
PRESENTATION - Migrating AWS EBS backed AMI's between RegionsRob Linton
 
Retail workshop germany sept 2011 final
Retail workshop germany sept 2011   finalRetail workshop germany sept 2011   final
Retail workshop germany sept 2011 finalAllystephen
 
My chosen photo
My chosen photoMy chosen photo
My chosen photoconnor109
 
2 класс. урок №4. привет. считаем до десяти
2 класс. урок №4. привет. считаем до десяти2 класс. урок №4. привет. считаем до десяти
2 класс. урок №4. привет. считаем до десятиshpinat
 
Research into the music video industry pp
Research into the music video industry ppResearch into the music video industry pp
Research into the music video industry ppLaura Wood
 
2 класс. урок № 3. привет. в зоопарке
2 класс. урок № 3. привет. в зоопарке2 класс. урок № 3. привет. в зоопарке
2 класс. урок № 3. привет. в зоопаркеshpinat
 
2 класс. обощающий урок по разделу привет. повторение
2 класс. обощающий урок по разделу привет. повторение2 класс. обощающий урок по разделу привет. повторение
2 класс. обощающий урок по разделу привет. повторениеshpinat
 
Resumo currier radioatidade c
Resumo currier radioatidade cResumo currier radioatidade c
Resumo currier radioatidade cadalberto miran
 
Dich de hoc v1.1 public
Dich de hoc v1.1 publicDich de hoc v1.1 public
Dich de hoc v1.1 publicBui Hang
 
The Verbs (simple)
The Verbs (simple)The Verbs (simple)
The Verbs (simple)shpinat
 

Andere mochten auch (20)

14. Общая экономика 2017: Превращение товарного капитала в товарно-торговый к...
14. Общая экономика 2017: Превращение товарного капитала в товарно-торговый к...14. Общая экономика 2017: Превращение товарного капитала в товарно-торговый к...
14. Общая экономика 2017: Превращение товарного капитала в товарно-торговый к...
 
Questionnaire analysis stephen
Questionnaire analysis stephenQuestionnaire analysis stephen
Questionnaire analysis stephen
 
Partnering with Your Members to Strengthen Their Customer Relationships (and ...
Partnering with Your Members to Strengthen Their Customer Relationships (and ...Partnering with Your Members to Strengthen Their Customer Relationships (and ...
Partnering with Your Members to Strengthen Their Customer Relationships (and ...
 
Okanagan college
Okanagan collegeOkanagan college
Okanagan college
 
59366618 caracterizacion-del-pueblo-awa (1)
59366618 caracterizacion-del-pueblo-awa (1)59366618 caracterizacion-del-pueblo-awa (1)
59366618 caracterizacion-del-pueblo-awa (1)
 
Nodejs Intro - Part2 Introduction to Web Applications
Nodejs Intro - Part2 Introduction to Web ApplicationsNodejs Intro - Part2 Introduction to Web Applications
Nodejs Intro - Part2 Introduction to Web Applications
 
презентация фотоомоложения
презентация фотоомоложенияпрезентация фотоомоложения
презентация фотоомоложения
 
PRESENTATION - Migrating AWS EBS backed AMI's between Regions
PRESENTATION - Migrating AWS EBS backed AMI's between RegionsPRESENTATION - Migrating AWS EBS backed AMI's between Regions
PRESENTATION - Migrating AWS EBS backed AMI's between Regions
 
Retail workshop germany sept 2011 final
Retail workshop germany sept 2011   finalRetail workshop germany sept 2011   final
Retail workshop germany sept 2011 final
 
My chosen photo
My chosen photoMy chosen photo
My chosen photo
 
2011asperger
2011asperger2011asperger
2011asperger
 
2 класс. урок №4. привет. считаем до десяти
2 класс. урок №4. привет. считаем до десяти2 класс. урок №4. привет. считаем до десяти
2 класс. урок №4. привет. считаем до десяти
 
Research into the music video industry pp
Research into the music video industry ppResearch into the music video industry pp
Research into the music video industry pp
 
Dakar2012
Dakar2012Dakar2012
Dakar2012
 
2013 CEO Compensation Study
2013 CEO Compensation Study2013 CEO Compensation Study
2013 CEO Compensation Study
 
2 класс. урок № 3. привет. в зоопарке
2 класс. урок № 3. привет. в зоопарке2 класс. урок № 3. привет. в зоопарке
2 класс. урок № 3. привет. в зоопарке
 
2 класс. обощающий урок по разделу привет. повторение
2 класс. обощающий урок по разделу привет. повторение2 класс. обощающий урок по разделу привет. повторение
2 класс. обощающий урок по разделу привет. повторение
 
Resumo currier radioatidade c
Resumo currier radioatidade cResumo currier radioatidade c
Resumo currier radioatidade c
 
Dich de hoc v1.1 public
Dich de hoc v1.1 publicDich de hoc v1.1 public
Dich de hoc v1.1 public
 
The Verbs (simple)
The Verbs (simple)The Verbs (simple)
The Verbs (simple)
 

Ähnlich wie Magento x codekit x sass x compass x skeleton responsive grid

Magento Performance Optimization 101
Magento Performance Optimization 101Magento Performance Optimization 101
Magento Performance Optimization 101Angus Li
 
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
10 Tips to make your Website lightning-fast - SMX Stockholm 201210 Tips to make your Website lightning-fast - SMX Stockholm 2012
10 Tips to make your Website lightning-fast - SMX Stockholm 2012Bastian Grimm
 
Building high performing web pages
Building high performing web pagesBuilding high performing web pages
Building high performing web pagesNilesh Bafna
 
HTML, CSS & Javascript Architecture (extended version) - Jan Kraus
HTML, CSS & Javascript Architecture (extended version) - Jan KrausHTML, CSS & Javascript Architecture (extended version) - Jan Kraus
HTML, CSS & Javascript Architecture (extended version) - Jan KrausWomen in Technology Poland
 
The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013Bastian Grimm
 
Developing Your Ultimate Package
Developing Your Ultimate PackageDeveloping Your Ultimate Package
Developing Your Ultimate PackageSimon Collison
 
A High-Performance Solution To Microservices UI Composition
A High-Performance Solution To Microservices UI CompositionA High-Performance Solution To Microservices UI Composition
A High-Performance Solution To Microservices UI CompositionAlexey Gravanov
 
Build Better Responsive websites. Hrvoje Jurišić
Build Better Responsive websites. Hrvoje JurišićBuild Better Responsive websites. Hrvoje Jurišić
Build Better Responsive websites. Hrvoje JurišićMeetMagentoNY2014
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim Wright
 
Architektura html, css i javascript - Jan Kraus
Architektura html, css i javascript - Jan KrausArchitektura html, css i javascript - Jan Kraus
Architektura html, css i javascript - Jan KrausWomen in Technology Poland
 
Website Performance Basics
Website Performance BasicsWebsite Performance Basics
Website Performance Basicsgeku
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSZoe Gillenwater
 
Front end performance optimization
Front end performance optimizationFront end performance optimization
Front end performance optimizationStevie T
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSSanjoy Kr. Paul
 
3 coding101 fewd_lesson3_your_first_website 20210105
3 coding101 fewd_lesson3_your_first_website 202101053 coding101 fewd_lesson3_your_first_website 20210105
3 coding101 fewd_lesson3_your_first_website 20210105John Picasso
 
Social Connections VI — IBM Connections Extensions and Themes Demystified
Social Connections VI — IBM Connections Extensions and Themes DemystifiedSocial Connections VI — IBM Connections Extensions and Themes Demystified
Social Connections VI — IBM Connections Extensions and Themes DemystifiedClaudio Procida
 
Compile your Style
Compile your StyleCompile your Style
Compile your StyleRagnar Kurm
 
An Unexpected Solution to Microservices UI Composition
An Unexpected Solution to Microservices UI CompositionAn Unexpected Solution to Microservices UI Composition
An Unexpected Solution to Microservices UI CompositionDr. Arif Wider
 

Ähnlich wie Magento x codekit x sass x compass x skeleton responsive grid (20)

Magento Performance Optimization 101
Magento Performance Optimization 101Magento Performance Optimization 101
Magento Performance Optimization 101
 
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
10 Tips to make your Website lightning-fast - SMX Stockholm 201210 Tips to make your Website lightning-fast - SMX Stockholm 2012
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
 
Building high performing web pages
Building high performing web pagesBuilding high performing web pages
Building high performing web pages
 
HTML, CSS & Javascript Architecture (extended version) - Jan Kraus
HTML, CSS & Javascript Architecture (extended version) - Jan KrausHTML, CSS & Javascript Architecture (extended version) - Jan Kraus
HTML, CSS & Javascript Architecture (extended version) - Jan Kraus
 
The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013The Need for Speed - SMX Sydney 2013
The Need for Speed - SMX Sydney 2013
 
Using a CSS Framework
Using a CSS FrameworkUsing a CSS Framework
Using a CSS Framework
 
Developing Your Ultimate Package
Developing Your Ultimate PackageDeveloping Your Ultimate Package
Developing Your Ultimate Package
 
A High-Performance Solution To Microservices UI Composition
A High-Performance Solution To Microservices UI CompositionA High-Performance Solution To Microservices UI Composition
A High-Performance Solution To Microservices UI Composition
 
Build Better Responsive websites. Hrvoje Jurišić
Build Better Responsive websites. Hrvoje JurišićBuild Better Responsive websites. Hrvoje Jurišić
Build Better Responsive websites. Hrvoje Jurišić
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
Architektura html, css i javascript - Jan Kraus
Architektura html, css i javascript - Jan KrausArchitektura html, css i javascript - Jan Kraus
Architektura html, css i javascript - Jan Kraus
 
Website Performance Basics
Website Performance BasicsWebsite Performance Basics
Website Performance Basics
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSS
 
Front end performance optimization
Front end performance optimizationFront end performance optimization
Front end performance optimization
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
Class15
Class15Class15
Class15
 
3 coding101 fewd_lesson3_your_first_website 20210105
3 coding101 fewd_lesson3_your_first_website 202101053 coding101 fewd_lesson3_your_first_website 20210105
3 coding101 fewd_lesson3_your_first_website 20210105
 
Social Connections VI — IBM Connections Extensions and Themes Demystified
Social Connections VI — IBM Connections Extensions and Themes DemystifiedSocial Connections VI — IBM Connections Extensions and Themes Demystified
Social Connections VI — IBM Connections Extensions and Themes Demystified
 
Compile your Style
Compile your StyleCompile your Style
Compile your Style
 
An Unexpected Solution to Microservices UI Composition
An Unexpected Solution to Microservices UI CompositionAn Unexpected Solution to Microservices UI Composition
An Unexpected Solution to Microservices UI Composition
 

Kürzlich hochgeladen

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
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 WorkerThousandEyes
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Magento x codekit x sass x compass x skeleton responsive grid

  • 1. skeleton x codekit x magento ...and the case for separate css/js files @ldn_tech_exec #magentoLDN 4 july 2012
  • 3. skeleton x magento ● base.css ● skeleton.css ● layout.css ● no-frame.phtml ● app/code/local/Mage/Page/etc/config.xml ● app/etc/modules/Mage_All.xml ● local.xml - add no-frame.phtml to any page
  • 4. no-frame.phtml ● removed all columns ● viewport <meta name="viewport" content=" width=device-width, initial- scale=1.0"> ● facebook compatibility ● html IE classes
  • 5. html IE classes ● the old way (slooow) <link href="style.css" rel="stylesheet" /> <!--[if lte IE7]><link href="style.ie7. css" rel="stylesheet" /><![endif]--> ● hacks (dangerous and not valid) #content { margin: 10px; _margin:20px; } ● the correct way (html5 bp) <!--[if lt IE 7]> <html class="ie ie6 lte9 lte8 lte7">
  • 6. allows you to do this .gte9 .gradient { filter: none; }
  • 7. divs <div class="container"> <div class="one-third column"> some text </div> <div class="two-thirds column"> some two column text </div> </div>
  • 9. media queries ● always at the bottom ● always in descending order
  • 10. extreme CSS & JS fast landing pages
  • 11. the case for separate CSS/JS files ● traditional thinking, vs ● fast landing pages problem: how to manage this? modpagespeed? magento? locally?
  • 12. combine CSS files & long expires gotcha's ● modpagespeed => 4095. what a cunt. ● magento breaks base64 solution ● combine css ○ combine locally with CodeKit & BLESS, or ○ if you're not scared of 4095, use magento and base64.phtml hack ● Aoe JsCssTstamp for long expires
  • 13. bypass magento base64 bug with base64. phtml ● layout.xml <reference name="head"> <block type="page/html" name="bg_css" template="page/base64.phtml"/> </reference> ==== ● base64.phtml <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl(); ? >css/base64.css" media="all"> (better to just combine locally with codekit)
  • 15. ever wondered why your scripts get so damn big? ● old unused CSS and JS generally never get deleted, and is hard to manage without separating them into files ● use codekit ● e.g. @import "testing-this-layout.css";
  • 16. codekit, compass & scss ● compass gives you access to a bunch of frameworks ● @import ○ combine css locally ○ anywhere you have reuseable stuff, but want to keep files organised (e.g. skeleton, fonts, typography, buttons, ) ● @include ○ where you have @import'd a scss/sass file where you have declared a @mixin ○ you use @include to call that @mixin
  • 18. setting up codekit for magento ● create theme "yourtheme-ck" ● mirror magento path names, e.g. "css" and "js" etc... ● ...so assets become: ○ JS - skin/frontend/default/yourtheme/js ○ CSS - skin/frontend/default/yourtheme/css ○ IMAGES - skin/frontend/default/yourtheme/images ○ SASS - skin/frontend/default/yourtheme/css ● magento structure remains the same ○ these compile to "yourtheme/css", "yourtheme/js" etc... ○ choose "default" as codekit compass project
  • 20. examples ● landing.css ○ @import buttons.scss ○ @import typography.scss ○ @import forms.scss ○ @import header.scss ○ @import footer.scss ● styles.css ○ @import checkout.scss ○ @import cart.scss ○ @import widget1.scss ○ @import module1.scss ○ @import test-module.scss ● change your xml files to reflect landing.css and styles. css
  • 21. resources @ldn_tech_exec ● github.com/arush ● adding SASS to Sublime Text 2 ○ http://www.adampatterson.ca/blog/2011/05/adding- sass-scss-support-sublime-edit-2/ ● http://incident57.com/codekit/ ● http://www.getskeleton.com/ ● 4095 - http://blesscss.com/ ● http://compass-style.org/