_openassessment.scss 4.42 KB
Newer Older
Brian Talbot committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
// xblock: openassessment - main style compile
// ====================

// NOTES:
// * this Sass compiles into the static CSS needed for the openassessment xblock
// * Sass partials that can be re-used are organized in the "xb/" directory and listed in "general xblock" segments
// * theme-based Sass partials are noted by "theme - [theme name]" in the import order to override defaults
// * openassessment-specific styles are collected within the "oa/" directory and listed in "app -" segment

// * openassessment-based layouts are sized like media-query breakpoints, but will be applied by specific classes/variables
// * the system/app digesting this xblock will control general page layout and overall screensize-based breakpoints

// --------------------

// KNOWN ISSUES/CONCERNS:
// * manual syncing of a view's breakpoints/layout with openassessment's sizes is needed on a system/app basis
// * the system/app ingesting this xblock may have conflicts/redundancies/versioning issues with the utilities used

// --------------------
// general - xblocks:
// shared utilities, assets and set up
// --------------------
// xblocks: libraries and resets
@import 'xb/libs/bourbon/bourbon';             // general sass utility (http://bourbon.io)
@import 'xb/libs/neat/neat';                   // responsive grid utility (http://neat.bourbon.io)

// xblocks: utilities
@import 'xb/utilities/reset';                  // xblocks-based reset
@import 'xb/utilities/variables';              // default settings and values
@import 'xb/utilities/mixins';                 // mixins and functions
@import 'xb/utilities/extends';                // re-usable extends, placeholders, archetypes
32
@import 'xb/utilities/animations';             // re-usable CSS-based animations
Brian Talbot committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

// general xblocks: assets
@import 'xb/assets/fonts';                     // imported/used fonts
@import 'xb/assets/graphics';                  // sprites, basic img/figure/svg styling


// --------------------
// theme - edx:
// utilities and assets (needed in this order to override xb variables)
// --------------------
@import 'themes/edx/utilities';                // theme-based utilities (variables, mixins, extends)


// --------------------
// general - xblock:
// shared base type, controls, and UI elements
// --------------------
// xblock: elements
@import 'xb/elements/base';                    // basic styles
@import 'xb/elements/typography';              // font sizes/scale and applied/canned definitions
@import 'xb/elements/controls';                // buttons, link styles, sliders, etc.
@import 'xb/elements/forms';                   // form elements
55
@import 'xb/elements/system-feedback';         // system messages, feedback, transitions
56
@import 'xb/elements/layout';                  // applied layouts and deliberate class-based breakpoints
Brian Talbot committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73

// xblock: contextual
@import 'xb/contexts/ie';                      // Internet Explorer-specific styling


// --------------------
// theme - edx:
// elements, views, and contexts (needed in this order to override xb)
// --------------------
@import 'themes/edx/base';
@import 'themes/edx/elements';


// --------------------
// app - openassessment:
// specific UI for this application
// --------------------
74
@import 'vendor/hint';                         // vendor - hint/tooltip UI
75
@import 'oa/utilities/mixins';                 // open assessment mixins
Brian Talbot committed
76
@import 'oa/utilities/variables';              // specific variables and overrides
77
@import 'oa/utilities/extends';                // open assessment extends
Brian Talbot committed
78 79 80 81
@import 'oa/elements/header';                  // view/app headers
@import 'oa/elements/footer';                  // view/app footers
@import 'oa/elements/navigation';              // navigation sets
@import 'oa/elements/layout';                  // applied layouts and deliberate class-based breakpoints
Will Daly committed
82
@import 'oa/elements/staff';                   // open assessment staff-centric UI
Brian Talbot committed
83 84 85 86
@import 'oa/views/oa-base';                    // open assessment base view

// openassessment: contextual
@import 'oa/contexts/ie';                      // open assessment-specific Internet Explorer-specific styling
87
@import 'oa/contexts/responsive';              // open assessment-specific UI sizes (faking responsive brakpoints)
Brian Talbot committed
88 89 90 91

// openassessment: misc.
@import 'oa/utilities/developer';              // developer-friendly file: add rough/WIP styling that needs UI triage
@import 'oa/utilities/shame';                  // used for any bad-form/orphaned css/clean up code needed