Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial 2.0 #286

Merged
merged 99 commits into from
Oct 24, 2019
Merged

Initial 2.0 #286

merged 99 commits into from
Oct 24, 2019

Conversation

skoolbus39
Copy link
Member

@skoolbus39 skoolbus39 commented Sep 23, 2019

  • Rearchitect Sass partials
    • Move all variables to theme
    • Add mixins/utilities for dotted border-style, z-index
    • Delete unused z-index function
    • Add to-number Sass function
  • Add documentation and examples for inverse buttons
  • Rename 'all' Sass/CSS to 'main'
  • Rename 'assets' directory to 'core' and 'example' directory' to 'theme' and update Gulpfile and build-utils
  • Update code style: indentations, comments, line breaks
  • Update modal and lazy-load HTML/CSS/JavaScript
  • Move Flexbox fallback for CSS Grid to its own partial
  • Prefix js/no-js classes with dcf-
  • Add test for WebP browser support (will need to be moved to its own file in core when the JavaScript is rearchitected - Modularize Javascript #301)
  • Update Node modules

Closes #12, closes #137, closes #195, closes #287, closes #288, closes #302

Variables will move to theme.
- Add theme variables for anchors
- Update anchor color variable names
- Move anchor transitions to theme styles
- Add theme variables for backgrounds
- Update variable names for overlay background color
- Add theme variables for badges
- Replace (some) core badge style values with variables
- Add theme variables for blockquotes
- Replace (some) core blockquote style values with variables
- Add theme variables for body
- Update body background-color variable names
- Add theme variables for code
- Replace (some) code styles with variables
- Remove commented out code
- Add theme variables for cards
- Add core components for cards and move most card styles from theme
- Replace (some) card styles with variables
- Add theme variables for marks
- Remove core components for marks
- Replace mark styles with variables
- Add theme variables for breadcrumbs
- Move breadcrumbs components styles from theme to core
- Replace (some) card styles with variables
- Update border-color variable name for greater consistency with other variable names
- Add border-radius variables to theme
- Add theme variables for figures
- Replace figcaption styles with variables
- Remove commented out code
- Add theme variables for headings
- Move most subhead styles from theme to core
- Replace (some) heading styles with variables
- Remove `display: block` from subheads (should be marked up with a <p> which is already a block element)
- Add theme variables for tables
- Replace (some) table styles with variables
- Add theme variables for modals
- Move most modal styles from theme to core
- Replace (some) modals styles with variables
- Add theme variables for buttons
- Move some button styles from theme to core, keeping buttons states to be styled in theme
- Replace most button styles with variables
- Add theme variables for button groups
- Move button group styles from theme to core
- Replace some button group styles with variables
Restore `loading=“lazy”` for native lazy-loading.
- Update comments
- Add variables, mixins and functions to deprecated.scss
- Remove empty line
- Change double quotes to single quotes
- Do not automatically apply `opacity: 0` to lazy-loaded elements. Apply fade-in animation with `.dcf-fade-in` class instead
- Add `dcf-fade-in` class to images in documentation
- Remove `.dcf-fade-out` class until needed
- Add inline JavaScript to replace `.no-js` class with `.js`
- Use single quotes in inline JavaScript and update comments
- Lazy load example images in table documentation
- Update placeholder image URLs to https://
Remove until scroll-based animations are finalized in JavaScript and CSS.
- Remove `dcf-h-100% dcf-w-100%` from images using `dcf-obj-fit-cover`, `dcf-obj-fit-contain` or `dcf-obj-fit-none` which already set height and width.
- Add width attribute equal to the largest image size in a `srcset` to images
- Update image dimensions
- Use repsonsive images in `<noscript>` versions
`<noscript>` versions will be shown instead.
- Move configuration to lazy load constructor
- Remove configurable class names (e.g. `.dcf-fade-in`) to be added
- Add/edit comments
Apply @jsturek’s updates to use `sizes` instead of `data-sizes` and calculate value if `sizes` is `auto` or empty (`null`).
- Use `sizes` instead of `data-sizes`
- Change values in `<noscript>` sizes from `100vw` to `88vw` to account for the page wrapper. Images don’t fill the full width of the viewport.
# Conflicts:
#	assets/dist/js/app/common/dcf-modal.min.js.map
#	example/js/bundled/bundle.js.map
Prevent collapse of ratio elements when flexbox fallback is used for grid.
Prevent card content overflow when flexbox fallback is used for grid.
Use explicit closing tags instead of self-closing tags for SVG paths
@skoolbus39 skoolbus39 changed the base branch from master to 2.0 October 23, 2019 20:36
@macburgee1
Copy link
Contributor

In the interest of moving 2.0 work forward, let's go ahead and merge what's in the PR with the 2.0 branch. This code is still under active development and is not used in production anywhere. Any issues relating to code contained herein can be dealt with in follow-up issues/PRs.

Regarding conflicts, it is my understanding that they result from changes to master that do not affect 2.0 work. As such, we can safely resolve the conflicts by accepting the versions from this PR. @skoolbus39 - Can you confirm?

@skoolbus39
Copy link
Member Author

@macburgee1 Some are needed in 2.0; some aren't. I'll get them sorted and merged.

# Conflicts:
#	assets/dist/js/app/common/dcf-modal.min.js
#	assets/dist/js/app/common/dcf-modal.min.js.map
#	core/dist/scss/generic/_generic.reduced-motion.scss
#	core/src/scss/generic/_generic.reduced-motion.scss
#	example/css/all.min.css
#	example/css/all.min.css.map
#	example/js/bundled/bundle.js.map
@skoolbus39 skoolbus39 changed the title [Don't merge yet] 2.0 Initial 2.0 Oct 24, 2019
This will need to be moved to its own file when the JavaScript is rearchitected.
@macburgee1 macburgee1 merged commit c7fe5fc into digitalcampusframework:2.0 Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants