Review of the Basic and Fusion CSS file structures

. Review of the Basic and Fusion CSS file structures

1. Let's go ahead and jump back to the theme directory and let's close up zen and take a look at basic. Basic is a natural follow up since it's a zen offshoot. And in basic we have a css folder. Let's go ahead and expand that.

2. Basic is interesting because it uses a css preprocessor called sass and we'll cover css preprocessors in a later video. But basically it allows you to perform some limited logic inside of your css file and you can do things like use variables. So for example, if you have a color that you want to reuse throughout your style sheet, you can define it as a variable and then reuse that variable, so you'll only have to change the color once if you want to change the color.

3. So basic comes with a css folder but it also comes with a sass folder and this is the unprocessed css files. And then the css folder contains the output. So you don't need the sass processor in order to run this theme.

4. So you can tell that we've simplified things a lot in moving from zen. We have just a few style sheets. We have default which is interesting.

5. We haven't seen that one before. We'll take a look at that. Ie6 and ie7.

6. We have layout, print and style which we've all seen before and we've seen the tabs as well which are specific to the tabs of the theme. Let's go ahead and open up default dot css since it's a little different than the others. So this says that default is meant to establish general rules, do a browser reset.

7. So it's the same as the reset dot css that we see in other places. So you can find more reset options here, but this is a sort of a simplified version. You see in this file there are a few common sense to the source of where particular styling strategies are coming from.

8. For example, this clearly floats without structural markup. It's coming from this url and then explains the following styles. Each style also has some comments above it that explain where the style comes from in the sass source code.

9. So if we take a look at the sass source code, let's go ahead and open it up. I'm going to jump back to the directory and open up the sass folder and then I'm going to open up default dot sass. I'm just going to drag it over to my editor.

10. You see here if I scroll up to the top that we have a connection between this Clear Floats Without Structural Markup here and then we have the actual styling that's occurring. And this is at line 16 and if we jump back to the default dot css folder or file, you'll see this clearfix right here and it's referenced at line 16 in sass slash default dot sass. So if you want to learn a little bit more about how sass structures css, you can flip back and forth and take a look.

11. Okay. I'm going to jump back to the file structure here. I'm going to go ahead and minimize basic here and let's go ahead and take a look at fusion.

12. I'm going to open up the fusion core directory which is the base theme for fusion. Fusion encourages sub-theming so you would normally use fusion core as the base theme and then extend it and there's an example starter kit or sub-theme that's included with this folder. So this style sheet structure is a little unique.

13. We see some grid12, grid 16's here and these line up with two types of grid systems. Now you'll see some themes that have good systems, and the general idea of them and we'll go into these in future videos, is that you can cut up a page into blocks. And if you do that and you're consistent about it, it makes it a lot easier for themers to decide where to put things because they have limited options and because everything fits together in a particular way.

14. There's two basic structures for a good system. One, is the 12 column and the other is the 16 column. And so you see here we've got a 12 column, 960 which means it's 960 pixels wide.

15. And then we have a 16 column which is also 960 pixels wide. So if we open these up, let's go ahead and open up grid 12. We see that there's a specific styling for each grid column and this content is all geared towards this specific grid system.

16. I'm going to jump back to the directory here. Let's go ahead and work down a little further. We have ie6 fixes right to left, ie6 fixes.

17. So this is a different sort of naming convention for ie we saw, fix dash ie and we saw just ie. And this is ie, the number of the version and fixes and it goes all the way up to 8 for fusion. We see style and style right to left.

18. We've seen those before. And then superfish which is a task oriented style sheet that has to do with dropdown menus. We see a few of these specific to different areas of the page.

19. And then finally we have typography which is the first time we've seen this style sheet. Let's go ahead and open it up and see what's inside. So you would assume that this has to do with the fonts, the font sizes, the font families that are inside of the theme.

20. And as we look through here. I'm going to scroll up to the top. It starts out with the body tag and it defines a font family, font size and line height.

21. So this should apply cascading all the way down through all of the elements, and then we're going specifically to form text as well. It defines sizes for the headings, various headings, as we scroll down, it separates this style sheet out in terms of what these font stylings apply to. This is the node section.

22. And we see a common section below that. And if you look the properties there, it's property narrow. The range that this particular style sheet covers.

23. We've seen font size, line height and font family. And as we scroll down we'll just see more of the same for various elements. I'm just going to keep scrolling.

24. And down at the bottom, we have some font sizes and then we have various definitions for font families that can used as different theme settings for fusion. So we can set it to Arial, Verdana, Garamond and so on.
Drupal 7 Theming Essentials

In this collection, we introduce you to the techniques you need to track down the source of any output in Drupal and adjust it in an organized, predictable way. We also really flex Drupal's theming system to do things like:

  • Build a theme from scratch, create a sub-theme and clone a theme
  • Add new theme settings (including color pickers)
  • Override page, block and node templates
Video Library
21m 46sIntroduction
21m1. Welcome to BuildAModule
10h 36mBuild Your First Drupal 7 Web Site
36m1. Introduction to Our Project and Reviewing Mockups
35m2. How to Create and Edit Content
38m3. How to Work With Menus, Modules and Webform
41m4. How to Work With Content Types and Fields
37m5. How to Work With Pathauto and Introduction to Views
32m6. How to Add Fields to a View and Work With the Date Module
36m7. How to Fix Broken Views and Work With Taxonomy
35m8. How to use Term and Node Reference Fields
31m9. How to Work With Blocks and Permissions
31m10. Overview of Permissions and Text Formats
34m11. Configuring Text Formats and Setting Up a Wysiwyg
33m12. Working With Custom Blocks and Image Styles
34m13. How to Work With CSS
34m14. Troubleshooting Module Installation and Configuration
33m15. Updating Modules and Manipulating CSS
32m16. More CSS Updates and Troubleshooting Text Formats
31m17. How to Evaluate Modules and Install IMCE
44m18. How to configure IMCE and Wrap Up Our Project
6h 18mAdvanced Site Building in Drupal 7
23m1. Welcome to Advanced Site Building
30m2. How to Set Up Administration Tools to Speed Up Productivity
36m3. How to Configure Content Type Settings and Splitting Fields Between Types
41m4. How to Use Display Suite for Grouping Fields and Positioning Content
14m5. How to Use the Context Module for Positioning Content
42m6. How to Use Panels for Positioning Content
48m7. How to Import Content With Feeds
48m8. Advanced Views
30m9. Where Display Modules Overlap and URL Strategy
28m10. How to Work With User Fields and Import Users
34m11. Formatting a Blog Entry Page
12h 48mPHP Programming Basics
25m1. Series Introduction and Your First PHP Script
45m2. Working With Strings and Variables in PHP
31m3. How to Work With Arrays in PHP
40m4. Logic, Control Structures and Looping
1h5. Creating Custom Functions and Working With External Data
22m6. Troubleshooting errors and using operators
1h7. Working With Forms in PHP
1h8. Working With Sessions in PHP
1h9. Working With the (MySQL) Database
1h10. Working with CRUD functionality and our database
2h11. How to Build Your Own Content Management System and Understand Drupal Better
1h12. Generalizing Functionality and Object Oriented Programming Primer
12h 23mDrupal 7 Development Core Concepts
22m1. Welcome to Module Building
35m2. How to Build Module Scaffolding
1h3. How Hooks Work and How to Use Them
26m4. Overview of Coding Standards
51m5. Development Tips and Tricks
1h6. How to Build and Manipulate Forms with the Form API
1h7. How to Add and Manipulate Pages With the Menu System
52m8. How to Add to and Manipulate the Theme Layer
1h9. How to Work With the Database
54m10. How to Work With Users
1h11. How to Work With Nodes
2h12. How to Work With JavaScript and jQuery
9h 25mChange Management and Version Control
49m1. Installing Git and Working on the Command Line
58m2. Staging, Committing and Undoing in Git
34m3. Branching, Merging and Tagging in Git
1h4. Working With Remote Git Repositories
38m5. Deploying Releases, Features, and Fixes With Git
24m6. How to Version Control the Database
1h7. How To Version Control Site Configuration With Features
25m8. How To Manage Non-Exportable Configuration Changes
57m9. How to Override Shared Features and Modify Text
33m10. How to Upgrade Drupal and Patch Contributed Modules
37m11. How to Install Drupal, Manage Features and Perform Common Tasks Using Drush
31m12. How to Configure Drush and use Drush Make
37m13. How to Extend Drush and Other Useful Drush Tools
8h 1mDrupal Theming Essentials
1h1. Important Drupal Theming Concepts
1h2. How to Build and Modify a Drupal Theme or Sub-Theme
1h3. How to Build and Modify a Drupal Theme or Sub-Theme, Part 2
54m4. Theme CSS File Structure and Extended Drupal Theme Building
1h5. Template Files, Theme Function Overrides and Preprocessing Functions
1h6. How to Work With Drupal Theme Settings
8h 55mDrupal 6 Development and Tools
3h1. Essential Concepts
27m2. Working with jQuery and Javascript
1h3. Securing a Module
58m4. Testing and Debugging a Module
1h5. PHP and MySQL Basics
1h6. Using Komodo Edit as an IDE
2h 17mWorking with Files and the File API
39m1. How to Work With Files and the File API
1h2. How to Work With Files and the File API, Part 2
22m 53sAppendix
22m1. Mentored Training Resources
Double-tap to return to library
854,881

Loading...