21 Commits

Author SHA1 Message Date
3ca3027b51 fix(toolbar): add the mode to the inverse function for a toolbar
Use the mode instead of the sass variable to determine which color the
buttons in a toolbar should be based on the background color. Added
error messages when anything other than a color is passed and more
comments.

BREAKING CHANGES: ios mode `$toolbar-ios-button-color` now has a
default value of `color-contrast($colors-ios, $toolbar-ios-background,
ios)` which will evaluate to the primary color for light background
toolbars and white for dark background toolbars.

fixes #6364
2016-05-10 13:46:38 -04:00
74afc18f37 fix(toolbar): set the text color of the toolbar based on the contrast of the background
BREAKING CHANGES:

`$bar-button-ios-color` has been renamed to `$toolbar-ios-button-color`
`$bar-button-ios-border-radius` has been renamed to
`$toolbar-ios-button-border-radius`

added variables for the toolbar ios title for easier styling:

```
$toolbar-ios-title-font-weight
$toolbar-ios-title-text-align
$toolbar-ios-title-text-color
```

references #6364
2016-05-10 10:34:08 -04:00
fa13203201 style(sass): fix sass linter error 2016-04-11 18:01:43 -04:00
203b07809e Revert "fix(sass): remove global imports from components"
This reverts commit dad2155ecdf3f1b9864996c5a843f451ff4f0aef.
2016-04-11 13:24:58 -04:00
dad2155ecd fix(sass): remove global imports from components
globals.mode is already imported in the components.mode file, so it
doesn’t need to be imported per component

fixes #5931
2016-04-11 11:59:44 -04:00
29e624254f fix(toolbar): add border-top when toolbar is positioned to the bottom
fixes #5967
2016-04-11 10:51:46 -04:00
ff1a8ac6c7 feat(sass): add the ability to pass a contrast color in the colors map to iOS
this adds the functions necessary for the other modes as well

BREAKING CHANGE:

Can now pass contrast to the colors map:

```
$colors-ios: (

  primary: (
    base: #327eff,
    contrast: yellow
  ),
  secondary: (
    base: #32db64,
    contrast: hotpink
  ),
  danger: #d91e18,
  light: #f4f4f4,
  dark: #222
) !default;
```

references #5445
2016-03-22 17:14:39 -04:00
253cfc182b style(sass): fixing lint errors
references #5797
2016-03-14 16:44:08 -04:00
d3d689ae11 style(sass): remove all PropertySortOrder errors from linter
references #5797
2016-03-14 15:56:19 -04:00
f7b52eeee1 chore(sass): update sass to match linter config
references #5797
2016-03-10 22:42:38 -05:00
5fb1e08347 fix(toolbar): add a min-width to the toolbar content so that it won't overlap buttons
fixes #5657
2016-03-01 12:59:29 -05:00
892b0071cb fix(sass): rename brightness/inverse sass functions
Prefix custom sass color functions with color-
Closes #5542
2016-02-20 20:34:59 -06:00
2766f7fda8 fix(toolbar): fixes segment/title aligment when cordova iOS style is applied
closes #5208
2016-02-10 19:10:41 +01:00
38a3be438f fix(button): bar-button uses inner span as flexbox
- Fixed block/full buttons, now there are display: block
- Fixes <ion-segment-button> warnings
2016-02-10 15:49:19 +01:00
06b3a5b3bd feat: hairlines width can be configured with a sass variable 2016-02-07 15:00:34 +01:00
706832f031 fix(toolbar): make iOS toolbar closer to native
aligned title and back button, increased font size of back icon,
removed color shade from toolbar buttons, increased font weight of
title, changed primary color, reduced back button text letter spacing.

Fixes #5149
2016-01-22 14:14:33 -05:00
61a16b74bf fix(menu): fix menu toggle not showing right opacity
added important to ensure the menu toggle will get the right opacity but this will be removed later
on

fixes #5131
2016-01-22 11:11:26 -05:00
883e1b68b1 refactor(icon): rename icon to ion-icon
Closes #855
2016-01-05 22:27:07 -06:00
5d6d9b9610 chore(upgrad): ng alpha52 and case-sensitive templates 2015-12-10 22:52:55 -06:00
901508e035 fix(toolbar/tabs): change toolbar-background to use the background property
Renamed Sass variables for toolbar and tabbar to use just background,
not color. Closes #716
2015-12-10 11:10:53 -05:00
854d90f4c1 refactor(sass): moved all mode files to the top level component directory and renamed to include the directory name
references #689
2015-12-09 17:20:11 -05:00