Commit Graph

31 Commits

Author SHA1 Message Date
Brandy Carney
cabbeb2c2f fix(display): update to correct css classes 2019-03-07 11:26:17 -05:00
Kyle J. Kemp
6bea9d3248 feat(css): add CSS display utilities (#17359)
Adds classes to set display none on any element.

* add `.ion-hide` selector to hide content
* add `.ion-hide-{breakpoint}-{up|down}]` to selectively hide content

closes #10904
2019-02-22 13:39:18 -05:00
Brandy Carney
c49276c477 fix(css): add the missing css classes to flex and float utils (#17570)
fixes #17569
2019-02-22 11:54:46 -05:00
Manu MA
8b140306ef refactor(animation): remove ion-animation-controller (#16842) 2018-12-21 13:17:42 +01:00
Manu Mtz.-Almeida
0699884d10 fix(body): body background matches ion-content 2018-12-16 20:44:10 +01:00
Manu Mtz.-Almeida
4c4bdf256d fix(pwa): use 100% of the viewport
Fixes issue in Iphone X white bottom padding
2018-12-16 18:22:33 +01:00
Manu MA
2933f61e8d fix(react): add class based APIs (#16665)
fixes #16583
2018-12-11 01:08:00 +01:00
Manu MA
6776e65c9c fix(select): selection-option is hidden in edge (#16607)
fixes #16580
2018-12-06 01:52:50 +01:00
Brandy Carney
8029df344a fix(segment): set colors in the parent segment and remove the unused color property (#16590)
* style(theming): clean up sass TODOs

* fix(item): use proper padding on small buttons in an item

* refactor(components): remove color from unused components

* chore(components): update build files to remove color

* fix(tab-bar): remove unused layout prop

* test(segment): add custom test and update standalone

* docs(segment): update usage examples to remove layout

* test(segment): update tests to remove layout

* test(tab-bar): update tests to remove layout

* fix(segment): set the colors in the parent segment

but use them in the child segment button

This allows the user to customize all of the segment buttons from segment, while still allowing the `color` property to take precedence, and they can also edit the segment button colors directly if desired.

This actually fixes some bugs surrounding colors and allows customization for a segment inside of a toolbar.

references #14853

* style(sass): fix lint errors

* chore(build): build files

* fix(segment-button): use transparent background

* docs(segment-button): add color activated back

* why does the build hate me

* fix(segment): set initial css variables to avoid inheriting

* fix(segment): set initial color activated

also add new line to the nav readme because reasons

* test(segment): parent mode should match children
2018-12-06 00:12:14 +01:00
Brandy Carney
b2021fd9c4 fix(theming): update global css variable naming and default values (#16003)
Updates all of the global variables to make sure their naming is consistent, their default values are correct, they are used properly by the related components, and remove any that are not used.

- removes some of the non mode-specific global Sass variables
- updates the md and ios values so that the default is the css variable
with different fallbacks
- removes non-color related css variables from the global file
- fixes item so it uses the background color that is set by the global
file

# Breaking Changes

## Removed Global CSS Variables

The following global CSS variables have been removed for the reasons listed.

| Variable Name                     | Reason                                          |
| ----------------------------------| ------------------------------------------------|
| `--ion-toolbar-color-inactive`    | Unused                                          |
| `--ion-ripple-background-color`   | Unused / Ripple color is based on component     |
| `--ion-header-size`               | Removed in favor of using CSS for h1-h6         |
| `--ion-header-step`               | Removed in favor of using CSS for h1-h6         |

## Renamed Global CSS Variables

The following global CSS variables have been renamed for the reasons listed.

| Old Variable Name                        | New Variable Name                  | Reason                                                                        |
| -----------------------------------------| -----------------------------------| ------------------------------------------------------------------------------|
| `--ion-toolbar-text-color`               | `--ion-toolbar-color`              | Variable is not limited to text color                                         |
| `--ion-toolbar-color-active`             | `--ion-toolbar-color-activated`    | Consistency with our component variables                                      |
| `--ion-tabbar-text-color`                | `--ion-tab-bar-color`              | Variable is not limited to text color                                         |
| `--ion-tabbar-text-color-active`         | `--ion-tab-bar-color-activated`    | Consistency with our component variables                                      |
| `--ion-tabbar-background-color`          | `--ion-tab-bar-background`         | Applies to the background property                                            |
| `--ion-tabbar-background-color-focused`  | `--ion-tab-bar-background-focused` | Applies to the background property                                            |
| `--ion-item-background-color`            | `--ion-item-background`            | Applies to the background property                                            |
| `--ion-item-background-color-active`     | `--ion-item-background-activated`  | Applies to the background property / Consistency with our component variables |
| `--ion-item-text-color`                  | `--ion-item-color`                 | Variable is not limited to text color                                         |
| `--ion-placeholder-text-color`           | `--ion-placeholder-color`          | Consistency with other variables                                              |

Fixes #15989 
Fixes #15559
2018-10-23 12:37:04 -04:00
Manu Mtz.-Almeida
f87d4bf385 fix(css): avoid cleancss bug
fixes #15807
2018-10-08 15:46:34 -05:00
Manu Mtz.-Almeida
6b0d812d37 fix(css): remove selection color 2018-09-29 16:14:15 +02:00
Mike Hartington
a3c85ae301 fix(): add safe area cutouts (#15750)
* fix(): add safe area cutouts

* fix(): adjust safe-area padding

* fix(): safe area improvments

* fix(): safe-area-improvments for padding

* fix(): safe-area improvements for items

* fix(): safe-area fix for core css

* fix(): safe-area fix for list header

* fix(): safe-area fix for popover

* fix(): safe-area validates

* chore(): ci updates

* fix(): safe-area revert padding changes for now

* padding is being applied twice

* safe-area-left is applied to item
2018-09-26 13:01:54 -05:00
Manu Mtz.-Almeida
9badb085d8 revert(content): block scrolling in ion-content 2018-09-25 21:02:40 +02:00
Manu Mtz.-Almeida
633360fcba fix(all): gesture controller can block scrolling
fixes #15725
2018-09-25 17:46:58 +02:00
Brandy Carney
fcb45d12e2 style(components): don't self close tags 2018-09-12 11:38:20 -04:00
Manu Mtz.-Almeida
ba2230510e refactor(all): strict boolean conditions 2018-09-01 17:23:03 +02:00
Manu MA
096d9a76f3 fix(css): add core.css (#15220)
fixes #15170
2018-08-29 18:05:20 +02:00
Manu Mtz.-Almeida
3ffa3cd7db fix(platform): better detect platforms + css API
fixes #15165
fixes #15116
2018-08-25 16:53:31 +02:00
Manu Mtz.-Almeida
617347950d fix(content): overflow-behavior: contain
https://developers.google.com/web/updates/2017/11/overscroll-behavior
2018-08-13 00:40:42 +02:00
Manu Mtz.-Almeida
2d70ee4ca9 fix(all): user-select for desktop 2018-08-12 01:19:00 +02:00
Manu Mtz.-Almeida
a71f382795 perf(app): move app css to global css 2018-08-08 12:07:57 +02:00
Manu Mtz.-Almeida
0cdb500a44 fix(color): make desktop selection beautiful 2018-07-29 14:59:35 +02:00
Manu Mtz.-Almeida
8a1ad1da2c fix(app): user-select on desktop 2018-07-29 14:48:05 +02:00
Brandy Carney
7c12e1bc8d fix(flex-utils): add missing flex attributes 2018-07-26 16:41:41 -04:00
Manu Mtz.-Almeida
7d3d98d6f2 fix(css): revert hidden css 2018-07-24 17:32:54 +02:00
Manu Mtz.-Almeida
f6c8f3f993 fix(margin): adds css variables
fixes #14798
fixes #14826
2018-07-24 00:48:03 +02:00
Manu Mtz.-Almeida
4b844ef1c3 fix(all): accesibility and global styles for hidden nodes 2018-07-24 00:02:13 +02:00
Brandy Carney
7a8d5f68d2 chore(stylelint): remove sass-lint/scss-lint in favor of stylelint
- remove scss-lint and sass-lint
- add stylelint and stylelint-order packages and configuration
- update all *.scss files to new syntax

fixes #14805
2018-07-19 15:10:30 -05:00
Brandy Carney
7d030ce27c style(css): fix sass linter errors and add descriptions to css files 2018-07-18 11:34:49 -04:00
Brandy Carney
a7f1f4daa7 refactor(components): update to use shadow DOM and work with css variables
- updates components to use shadow DOM or scoped if they require css variables
- moves global styles to an external stylesheet that needs to be imported
- adds support for additional colors and removes the Sass loops to generate colors for each component
- several property renames, bug fixes, and test updates

Co-authored-by: Manu Mtz.-Almeida <manu.mtza@gmail.com>
Co-authored-by: Adam Bradley <adambradley25@gmail.com>
Co-authored-by: Cam Wiegert <cam@camwiegert.com>
2018-07-09 12:57:21 -04:00