Skip to content

Commit

Permalink
Redesigned Color inputs
Browse files Browse the repository at this point in the history
Resolves craftcms#2059
Resolves craftcms#2061
  • Loading branch information
brandonkelly committed Nov 5, 2017
1 parent add0cbd commit c549843
Show file tree
Hide file tree
Showing 39 changed files with 208 additions and 756 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Craft CMS 3.0 Working Changelog
- Added `craft\services\Sites::deleteGroupById()`.
- Added `craft\services\Sites::deleteGroup()`.
- Added `craft\services\Sites::getSitesByGroupId()`.
- Added `Craft.ColorInput` (JS class).


### Changed
Expand All @@ -47,6 +48,8 @@ Craft CMS 3.0 Working Changelog
- Fields on multi-site installs can now be translated per site group.
- Resource file URLs now have a timestamp appended to them, preventing browsers from loading cached versions when the files change.
- `craft\web\AssetManager::getPublishedUrl()` now has a `$filePath` argument, which can be set to a file path relative to `$sourcePath`, which should be appended to the returned URL.
- Color inputs have been redesigned so they look the same regardless of whether the browser supports `<input type="color">`, and no longer use a JavaScript color-picker polyfill. ([#2059](https://github.com/craftcms/cms/issues/2059), [#2061](https://github.com/craftcms/cms/issues/2061))
- Color inputs can now be left blank.

### Removed
- Removed `craft\events\RegisterRedactorPluginEvent`.
Expand All @@ -56,7 +59,9 @@ Craft CMS 3.0 Working Changelog
- Removed `craft\fields\RichText`.
- Removed `craft\web\assets\redactor\RedactorAsset`.
- Removed `craft\web\assets\richtext\RichTextAsset`.
- Removed `lib/colorpicker/`.
- Removed `lib/redactor/`.
- Removed `Craft.ColorPicker` (JS class).
- Removed `Craft.RichTextInput` (JS class).

## Unreleased
Expand Down
4 changes: 0 additions & 4 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ module.exports = function(grunt) {
return dest + '/' + src;
},
ext: '.min.js'
},
colorpickerjs: {
src: 'lib/colorpicker/js/colorpicker.js',
dest: 'lib/colorpicker/js/colorpicker.min.js'
}
},
jshint: {
Expand Down
161 changes: 0 additions & 161 deletions lib/colorpicker/css/colorpicker.css

This file was deleted.

Binary file removed lib/colorpicker/images/blank.gif
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_background.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_hex.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_hsb_b.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_hsb_h.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_hsb_s.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_indic.gif
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_overlay.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_rgb_b.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_rgb_g.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_rgb_r.png
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_select.gif
Binary file not shown.
Binary file removed lib/colorpicker/images/colorpicker_submit.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_background.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_hex.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_hsb_b.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_hsb_h.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_hsb_s.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_indic.gif
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_rgb_b.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_rgb_g.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_rgb_r.png
Binary file not shown.
Binary file removed lib/colorpicker/images/custom_submit.png
Binary file not shown.
Binary file removed lib/colorpicker/images/select.png
Binary file not shown.
Binary file removed lib/colorpicker/images/select2.png
Binary file not shown.
Binary file removed lib/colorpicker/images/slider.png
Diff not rendered.
Loading

0 comments on commit c549843

Please sign in to comment.