Sakai Meet MORPHEUS: Slides

1,775 views
1,610 views

Published on

MORPHEUS is the new optional responsive portal for Sakai 10 that's under active development. It's been rewritten from the ground up to take advantage of the new web technologies. Its goal is to create a better user experience no matter what device you use.

Morpheus is a new user interface born from extensive usability testing at NYU. It builds off the success and stability of Sakai as a platform with a new interface that's modern and future friendly. It's not just a face lift or a redesign but a foundational web system on which new tools, interactions, and designs can be built.

* Responsive design that works on a wide range of devices
* Uses Sass to create a system that's more organized, maintainable, and easy to contribute to
* Easier to customize for your institution
* New templates take advantage of HTML5 for cleaner markup with increased semantic meaning

A new style guide and design pattern library ? a mini 'bootstrap' for Sakai

Find out what the future of Sakai looks like!

Published in: Software
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,775
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
22
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Sakai Meet MORPHEUS: Slides

  1. 1. Sakai, Meet MORPHEUS Mobile Optimized Responsive Portal for Higher Education Using Sass
  2. 2. About This Presentation I am using reveal.jsfor my slides. They're on github https://github.com/alienresident/Sakai-Meet-Morpheus
  3. 3. Mark Reilly User Experience Designer New York University.
  4. 4. Sakai 10 /portal /reference /portal/trunk/portal-render-engine- impl/pack/src/webapp/vm/morpheus/ /reference/trunk/library/src/webapp/skin/morpheus
  5. 5. Now-ish Templates we're committed in February Sass is under active development
  6. 6. Why a new another new skin? Usability Testing Pilot Faculty Never used Sakai Remote Testing
  7. 7. Usability Issues Place Finding Navigation Messaging Hiding & Showing Items
  8. 8. Usability Issues Solutions Quick Fixes Long Term Fixes New Icons iframes: Fix Mental Model Group Navigation Items by Function Better Messaging
  9. 9. User Interface Organized Modular Reusable Need to use a CSS preprocessor Sass was my choice
  10. 10. Responsive Design Fluid Images Fluid Grids Media Queries
  11. 11. Responsive Design Issues Navigation HTML Source Order Div-itis: Convoluted Markup Lack of Classes Upgrading?
  12. 12. Digging into MORPHEUS
  13. 13. What it is! New VM Templates New CSS (compiled from Sass)
  14. 14. New VM Templates Apache Velocity templates Converted to HTML 5 Simplifed markup Added new Semantic tags
  15. 15. HTML 5 <!DOCTYPEhtml> <htmllang="en-US"> <head> <metacharset="utf-8"> <metaname="viewport"content="width=device-width,initial-scale=1">
  16. 16. HTML 5 contd IE 8 HTML 5 shiv <!--[ifltIE9]> <scriptsrc="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.min.js"></script> <![endif]-->
  17. 17. HTML 5 contd IE 8 CSS files <!--[if(ltIE9)]> <linkhref="/library/skin/morpheus-default/portal-ie.css"rel="stylesheet"> <![endif]--> <!--[if(gteIE9)|(IEMobile)|(!IE)]><!--> <linkhref="/library/skin/morpheus-default/portal.css"rel="stylesheet"> <!--<![endif]-->
  18. 18. HTML 5 contd Morpheus Script in skin <scriptsrc="${pageSkinRepo}/${pageSkin}/js/morpheus.scripts.js"></script> Add your own javascript to your skin! <script src="library/morpheus-default/js/morpheus.scripts.js"></script>
  19. 19. HTML 5 contd New Snippets folder Discrete snippets of markup that are conditionally called throughout the templates. header login form role switcher tool body etc
  20. 20. HTML 5 contd Adding Classes while leaving IDs adding mulitple classes reusable and modular single responsilbilty theory classes for layout, states, and js hooks Leave IDs for legacy javascript
  21. 21. SASS Syntactically Awesome StyleSheets Variables Mixins Extends Nesting @import & Partials learn more at sass-lang.com/guide
  22. 22. SASS contd Variables $instution-color: #fc3; a { color: $instution-color; } nav { background-color: $instution-color; }
  23. 23. SASS contd Mixins @mixin default-type-size { font-size: 16px; line-height: 1.5em; } p { @include default-type-size; } footer { @include default-type-size; } p { font-size: 16px; line-height: 1.5em; } footer { font-size: 16px; line-height: 1.5em; }
  24. 24. SASS contd Mixins (arguments) @mixin default-type-size($color) { font-size: 16px; color: $color; } p { @include default-type-size(#333); } footer { @include default-type-size(#eee); } p { font-size: 16px; color: #333333; } footer { font-size: 16px; color: #eeeeee; }
  25. 25. SASS contd Mixins (more arguments) @mixin type-size($size, $color) { font-size: $size; color: $color; } p { @include type-size(16px, #333); } footer { @include type-size(14px, #eee); } p { font-size: 16px; color: #333333; } footer { font-size: 14px; color: #eeeeee; }
  26. 26. SASS contd Extends %default-type-size { font-size: 16px; line-height: 1.5em; } p { @extend %default-type-size; } footer { @extend %default-type-size; } p, footer { font-size: 16px; line-height: 1.5em; }
  27. 27. SASS contd Extends contd %default-type-size { font-size: 16px; line-height: 1.5em; } p { @extend %default-type-size; } footer { @extend %default-type-size; color: #eeeeee; } p, footer { font-size: 16px; line-height: 1.5em; } footer { color: #eeeeee; }
  28. 28. SASS contd Nesting nav { ul { margin: 0; padding: 0; list-style: none; li { display: inline-block; } } } nav ul { margin: 0; padding: 0; list-style: none; } nav ul li { display: inline-block; }
  29. 29. SASS contd @import & Partials // _reset.scss html, body, ul, ol { margin: 0; padding: 0; } // base.scss @import 'reset'; body { font-size: 100% Helvetica, sans-serif; background-color: #efefef; } /* base.css */ html, body, ul, ol { margin: 0; padding: 0; } body { font-size: 100% Helvetica, sans-serif; background-color: #efefef; }
  30. 30. SASS contd Sass while powerful can be misused. You can create brittle, inflexible, and unmaintainable CSS with Sass as with vanilla CSS. What you need is an architecture that is modular and scalable.
  31. 31. SMACSS Scalable and Modular Architecture for CSS By Jonathan Snook a web developer and designer fornerly at Yahoo! He worked on the redesign of Yahoo! mail learn more at smacss.com
  32. 32. SMACSS At the very core of SMACSS is categorization There are five types of categories: 1. Base 2. Layout 3. Module 4. State 5. Theme
  33. 33. SMACSS Base Base rules are the defaults. html, body, form { margin: 0; padding: 0; } input[type="text"] { border: 1px solid #999; } a { color: #039; } a:hover { color: #03C; }
  34. 34. SMACSS Layout Layout rules divide the page into sections. Layouts hold one or more modules together. #article { width: 80%; float: left; } #sidebar { width: 20%; float: right; } .l-fixed #article { width: 600px; } .l-fixed #sidebar { width: 200px; }
  35. 35. SMACSS Module Modules are the reusable, modular parts of our design. They are the callouts, the sidebar sections, the product lists and so on. .pod { width: 100%; background: #ddd; } .pod input[type=text] { width: 50%; border: 1px solid #666; }
  36. 36. SMACSS Module contd .pod { width: 100%; background: #ddd; } .pod input[type=text] { width: 50%; border: 1px solid #666; } .pod-callout { width: 200px; } .pod-callout input[type=text] { width: 180px; } <div class="pod pod-callout"> ... </div>
  37. 37. SMACSS State State rules are ways to describe how our modules or layouts will look when in a particular state. Is it hidden or expanded? Is it active or inactive? .tab { background-color: purple; color: white; } .is-tab-active { background-color: white; color: black; }
  38. 38. SMACSS Theme Theme rules are similar to state rules in that they describe how modules or layouts might look. /* in module-name.css */ .mod { border: 1px solid; } /* in theme.css */ .mod { border-color: blue; }
  39. 39. SMACSS & SASS In MORPHEUS we are combining the best of SMACSS & SASS To get Scalable and Modular Architecture for SASS or SMASASS or SMACASS To get Scalable and Modular Architecture for SASS or SMASASS or SMACASS Let's just stick to MORPHEUS!
  40. 40. MORPHEUS Directory Structure /reference/trunk/library/src/webapp/skin/ morpheus-default/ morpheus-examp-u/ morpheus-master/ morpheus-rtl/ morpheus-default/ // generated css morpheus-examp-u/ // generated css morpheus-master/ // Sass files and compile script morpheus-rtl/ // generated css
  41. 41. MORPHEUS Modules @import "modules/MODULE_NAME/_MODULE_NAME"; morpheus-master/sass/modules/MODULE_NAME/_MODULE_NAME.scss A more realistic example: @import "modules/alerts/_alerts"; morpheus-master/sass/modules/alerts/_alerts.scss
  42. 42. MORPHEUS Modules Optionally there might import additional files more files @import "_MODULE_NAME_variables"; // default variables that can be overridden @import "_MODULE_NAME_mixins"; // mixins for that module only @import "_MODULE_NAME_extendables"; // extendables for that module only In our previous example it would pull in these files morpheus-master/sass/modules/alerts/_alerts_variables.scss morpheus-master/sass/modules/alerts/_alerts_mixins.scss morpheus-master/sass/modules/alerts/_alerts_extendables.scss
  43. 43. MORPHEUS Sakai Properties ## Sakai 10 sakai.properties portal.templates=morpheus portal.neoprefix= skin.default=morpheus-default
  44. 44. MORPHEUS Custom themes Morpheus will ship with 3 themes. 1. morpheus-default 2. morpheus-examp-u 3. morpheus-rtl morpheus-master/sass/themes/ _morpheus-default.scss _morpheus-examp-u.scss _morpheus-rtl.scss _morpheus-nyu.scss
  45. 45. MORPHEUS Custom themes Examples of Basic Customizations. 1. Institution Colors 2. Logos 3. Button Colors ../sass/themes/_morpheus-default.scss $primary-color: #009dce; $black-value: #333; $masthead-image: "my-U-logo.png"; $button-gradient-stop-1: $primary-color; $button-gradient-stop-2: shade($button-gradient-stop-1, 3%);
  46. 46. MORPHEUS Custom themes Example of More Advanced Customizations. 1. Webfonts 2. Icon Fonts $fontstack: 'Helvetica Neue', Helvetica, Arial, sans-serif; $webfont-name: 'Open Sans'; $icon-font-name: 'Sakai-Icon-Font'; $tool-icons: (sakai-motd 'f015') (sakai-schedule 'f073') ... ; Custom Icon font based off of using . All the portal assets icluding the font SVGs will be on github github.com/alienresident/sakai-portal-assets Font-Awesome icomoon
  47. 47. MORPHEUS Custom themes Example of More Advanced Customizations contd 3. Custom Modules @import "modules/CUSTOM_MODULE_NAME/_CUSTOM_MODULE_NAME"; ../sass/modules/CUSTOM_MODULE_NAME/_CUSTOM_MODULE_NAME.scss
  48. 48. MORPHEUS Styleguides Each skin comes with a flat HTML file that acts as a styleguide. This is also a design pattern for sakai elements. This is where you can see your stlyed elements on one page. Here's an example from . http://i5.nyu.edu/~mar22/nyuclasses/styleguide/ NYU Classes I'll be adding more Sakai components to these.
  49. 49. MORPHEUS Color Schemer One each styleguide comes with a generated color guide. These are created using one base color and uses color theory models to create a color model. Let's look at color scheme designer $primary-color: #009dce; $black-value: #333; $cs-primary: $primary-color; $cs-scheme: triad; // Options: mono, complement, triad, tetrad, analogic, accented-analogic $cs-hue-offset: 60; // $colour-stack-amounts: 25%, 50%, 75%, 85%, 90%; $black: tint-stack($black-value); $primary: tint-stack(cs-primary()); $secondary: tint-stack(cs-secondary()); $tertiary: tint-stack(cs-tertiary()); $quadrary: tint-stack(cs-quadrary());
  50. 50. Conclusion Road Map: What's next? 1. Finish adding modules from NYU Classes code base 2. Responsive menus for devices 3. Responsive typography 4. Flesh out examples skins 5. User Testing 6. Documentation Sakai 11 1. Tools... 2. Pattern Library a mini 'bootstrap' for Sakai
  51. 51. Conclusion Thanks to Gonzalo Silverio and the NYU Classes team at NYU Questions? Contributors?

×