Coder Social home page Coder Social logo

byu-responsive's Introduction

byu-responsive

Note: This is an early test for the responsive byu.edu web site

Current development at github.com/byuweb/HTML-Templates

==============

Dependencies

I'm using CodeKit to compile my SASS and to concatenate and minify my Javascript. Details on the configuration below:

  1. PHP
  • The main file is index.php, with _header.php and _footer.php imported
  • Some of the other files are imported via AJAX depending on screen width. Many of these are included in the /inc folder
  1. Compass/Sass/CSS
  • config.rb included for Compass
  • Using SCSS flavor of Sass
  • style.scss is the main file, which imports everything else. The included files are broken up by content type, with mixins defined for each screen width. Imported files:
    • _colors.scss - Standard colors
    • _mixins.scss - SASS mixins
    • _type.scss - Typography
    • _header.scss - Logo and search
    • _nav.scss - Primary and secondary navigation
    • _slider.scss - The main image slider
    • _content.scss - Calendar and news sections
    • _footer.scss - Footer
    • _feedback.scss - Styles for the feedback page (not included in the GIT Repo)
  • _mobile.scss is loaded for every browser. It's got the very basic styles that should work for almost any browser, even when media queries or javascript are not supported. It includes the above files, and:
    • _normalize.scss - Normalize styles from HTML5 Boilerplate
    • _basics.scss - Basic styles only - For old browsers and devices that can't do media queries or js
  1. JS Concat/Minify: Three files are actually loaded into the delivered site: init.min.js, script.min.js, and fonts.min.js.
  • init.min.js is concatenated from /js/libs/modernizr-custom.min.js, /js/lab.min.js, and /js/init.js
  • script.min.js is concatenated from /js/libs/jquery.min.js, /js/plugins.js, and a minified /js/script.js. It's loaded through init.js only if media queries are supported.
  • fonts.min.js is minified from fonts.js. It's loaded through init.js only if web fonts are supported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.