SlideShare a Scribd company logo
1 of 31
Коротко про SASS та
Drupal теми
600 Days with Drupal and SASS
What is SASS?
Syntactically
Awesome
Style
Sheets
Syntax of SASS
Review problems of CSS
1. Number of rows
with code
Big Project
~30 000
rows
Use @extend .base-class
as solution. #1 Example
2 31
Like
Use @extend .base-class
#2 Example
2. Slow workflow
#1 Example. Use @mixins
#2 Example. Use Compass
Use LiveReload with Compass
3. Missing architecture
#1 Example. Only one big CSS file
style.css
NO!!!
#1 Example. Use @import
A few features with SASS
Use $variables
Use @function
SASS used in a few frameworks
For example Rebar.io
Desktop
Mobile
Tablet
Drupal Themes
Popular Drupal Themes
Architecture of Drupal Theme
Engine Base theme Sub-theme
Important files
*.info template.php *.tpl.php
Create own Theme
*.info file
*.info
*.tpl.php file
*.tpl.php
Use Drush for creating
Omega sub-theme
drush omega-wizard
OR
drush omega-subtheme "My Theme"
Enjoy your day!

More Related Content

Similar to DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDevels)

Elegant CSS Design In Drupal: LESS vs Sass
Elegant CSS Design In Drupal: LESS vs SassElegant CSS Design In Drupal: LESS vs Sass
Elegant CSS Design In Drupal: LESS vs Sass
Mediacurrent
 

Similar to DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDevels) (20)

Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017
Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017
Efficiently theming a multi-site Drupal 8 portal - Drupal Dev Days Seville 2017
 
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 ThemeMinimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
Minimalist Theming: How to Build a Lean, Mean Drupal 8 Theme
 
Joes sass presentation
Joes sass presentationJoes sass presentation
Joes sass presentation
 
Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8
 
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS OrganizationApril 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
April 2016 - MiniCamp Atlanta - SMACSS - Preparing Drupal 8 CSS Organization
 
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
 
Sass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by ShafeeqSass:-Syntactically Awesome Stylesheet by Shafeeq
Sass:-Syntactically Awesome Stylesheet by Shafeeq
 
Intro to Sass for WordPress Developers
Intro to Sass for WordPress DevelopersIntro to Sass for WordPress Developers
Intro to Sass for WordPress Developers
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS Implementation
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
 
How to Create a Drupal 8 Theme Using Bootstrap
How to Create a Drupal 8 Theme Using Bootstrap How to Create a Drupal 8 Theme Using Bootstrap
How to Create a Drupal 8 Theme Using Bootstrap
 
Sass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LASass Essentials at Mobile Camp LA
Sass Essentials at Mobile Camp LA
 
Css week10 2019 2020 for g10 by eng.osama ghandour
Css week10 2019 2020 for g10 by eng.osama ghandourCss week10 2019 2020 for g10 by eng.osama ghandour
Css week10 2019 2020 for g10 by eng.osama ghandour
 
CSS: a rapidly changing world
CSS: a rapidly changing worldCSS: a rapidly changing world
CSS: a rapidly changing world
 
Elegant CSS Design In Drupal: LESS vs Sass
Elegant CSS Design In Drupal: LESS vs SassElegant CSS Design In Drupal: LESS vs Sass
Elegant CSS Design In Drupal: LESS vs Sass
 
Less(CSS Pre Processor) Introduction
Less(CSS Pre Processor) IntroductionLess(CSS Pre Processor) Introduction
Less(CSS Pre Processor) Introduction
 
LESS(CSS Pre Processor) introduction
LESS(CSS Pre Processor) introductionLESS(CSS Pre Processor) introduction
LESS(CSS Pre Processor) introduction
 
Drupal: Content Management and Community for your Library
Drupal: Content Management and Community for your LibraryDrupal: Content Management and Community for your Library
Drupal: Content Management and Community for your Library
 
Intermediate Web Design
Intermediate Web DesignIntermediate Web Design
Intermediate Web Design
 
Sass - basic to advance
Sass  - basic to advanceSass  - basic to advance
Sass - basic to advance
 

More from Drupaltour

DrupalTour Lviv — Theming in Drupal8 (Ivan Tibezh, InternetDevels)
DrupalTour Lviv — Theming in Drupal8 (Ivan Tibezh, InternetDevels)DrupalTour Lviv — Theming in Drupal8 (Ivan Tibezh, InternetDevels)
DrupalTour Lviv — Theming in Drupal8 (Ivan Tibezh, InternetDevels)
Drupaltour
 
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
Drupaltour
 

More from Drupaltour (19)

DrupalTour. Lviv — Bumpy road of Drupal7 (Pavel Shevchuk, EPAM)
DrupalTour. Lviv — Bumpy road of Drupal7 (Pavel Shevchuk, EPAM)DrupalTour. Lviv — Bumpy road of Drupal7 (Pavel Shevchuk, EPAM)
DrupalTour. Lviv — Bumpy road of Drupal7 (Pavel Shevchuk, EPAM)
 
DrupalTour Lviv — Theming in Drupal8 (Ivan Tibezh, InternetDevels)
DrupalTour Lviv — Theming in Drupal8 (Ivan Tibezh, InternetDevels)DrupalTour Lviv — Theming in Drupal8 (Ivan Tibezh, InternetDevels)
DrupalTour Lviv — Theming in Drupal8 (Ivan Tibezh, InternetDevels)
 
DrupalTour. Lviv — Apache solr. Advanced use cases (Artem Sylchuk, InternetDe...
DrupalTour. Lviv — Apache solr. Advanced use cases (Artem Sylchuk, InternetDe...DrupalTour. Lviv — Apache solr. Advanced use cases (Artem Sylchuk, InternetDe...
DrupalTour. Lviv — Apache solr. Advanced use cases (Artem Sylchuk, InternetDe...
 
DrupalTour. Rivne — SEO & Usability (Roman Demydyuk and Oleg Shykhalov, Inter...
DrupalTour. Rivne — SEO & Usability (Roman Demydyuk and Oleg Shykhalov, Inter...DrupalTour. Rivne — SEO & Usability (Roman Demydyuk and Oleg Shykhalov, Inter...
DrupalTour. Rivne — SEO & Usability (Roman Demydyuk and Oleg Shykhalov, Inter...
 
DrupalTour. Rivne — Drupal 8 (Ivan Tibezh, InternetDevels)
DrupalTour. Rivne — Drupal 8 (Ivan Tibezh, InternetDevels)DrupalTour. Rivne — Drupal 8 (Ivan Tibezh, InternetDevels)
DrupalTour. Rivne — Drupal 8 (Ivan Tibezh, InternetDevels)
 
DrupalTour. Zhytomyr — Entity API in Drupal 7 (Ivan Tibezh, InternetDevels)
DrupalTour. Zhytomyr — Entity API in Drupal 7 (Ivan Tibezh, InternetDevels)DrupalTour. Zhytomyr — Entity API in Drupal 7 (Ivan Tibezh, InternetDevels)
DrupalTour. Zhytomyr — Entity API in Drupal 7 (Ivan Tibezh, InternetDevels)
 
DrupalTour. Zhytomyr — Створення інтернет-магазину на базі Drupal (Sergiy Skr...
DrupalTour. Zhytomyr — Створення інтернет-магазину на базі Drupal (Sergiy Skr...DrupalTour. Zhytomyr — Створення інтернет-магазину на базі Drupal (Sergiy Skr...
DrupalTour. Zhytomyr — Створення інтернет-магазину на базі Drupal (Sergiy Skr...
 
DrupalTour. Zhytomyr — Drupal Optimization (Dmitry Kinakh, InternetDevels)
DrupalTour. Zhytomyr — Drupal Optimization (Dmitry Kinakh, InternetDevels)DrupalTour. Zhytomyr — Drupal Optimization (Dmitry Kinakh, InternetDevels)
DrupalTour. Zhytomyr — Drupal Optimization (Dmitry Kinakh, InternetDevels)
 
DrupalTour. Khmelnytskyi — Ember (Timur Bolotyuh, stfalcon.com)
DrupalTour. Khmelnytskyi — Ember (Timur Bolotyuh, stfalcon.com)DrupalTour. Khmelnytskyi — Ember (Timur Bolotyuh, stfalcon.com)
DrupalTour. Khmelnytskyi — Ember (Timur Bolotyuh, stfalcon.com)
 
DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...
DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...
DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...
 
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)
 
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)
 
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...
 
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
 
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)
 
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...
 
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
 
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...
 
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 

DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDevels)