Commit Graph

64 Commits

Author SHA1 Message Date
Adam Bradley
f6566726a5 feat(header): remove bottom border when tabs top 2015-03-04 14:33:32 -06:00
mhartington
eef1d32b04 fix(navButtons): fixed case where buttons would display under each other in 4.4 2015-02-11 13:08:34 -05:00
Adam Bradley
9bf2dab540 refactor(bar): android backbutton/title sizes 2015-01-15 15:58:01 -06:00
perry
bf40b222be fix(tabs): correct border visibility with android style tabs 2015-01-15 12:25:03 -06:00
Adam Bradley
5392dbac13 refactor(transition): update android transitions 2014-12-10 17:41:25 -06:00
Perry Govier
b830c89975 amend(buttons): only adjust back button font weight 2014-12-10 17:08:14 -06:00
Perry Govier
11b774da05 fix(buttons): update clear button text weight to match native styles 2014-12-10 17:02:55 -06:00
Perry Govier
49c861df5b Merge branch 'master' of github.com:driftyco/ionic 2014-12-08 19:39:36 -06:00
Perry Govier
b75708ad5c fix(tabs): corrected default tabs-striped colors 2014-12-08 19:36:36 -06:00
Adam Bradley
5c1d0fa2b7 fix(bar): do not disable pointer-events in nav-bar 2014-12-08 15:52:36 -06:00
Adam Bradley
871f79541c Merge branch 'variable-subheader-height' of https://github.com/arturokunder/ionic into arturokunder-variable-subheader-height 2014-12-06 21:09:40 -06:00
Adam Bradley
4fc92c6ef5 refactor(backButton): update activated state 2014-12-05 14:28:46 -06:00
Max Lynch
86ea0473ef fix(bar): move font weight to variable 2014-12-03 17:38:45 -06:00
Max Lynch
48087e4ebf fix(bar): fix title font weight 2014-12-03 17:37:14 -06:00
Arturo
ffd6ed6376 Adding sass variables for footer, subfooter and subheader heights
Allowing to footers and subheader with diferent height.

FIX #2334
2014-11-28 16:00:57 -03:00
Adam Bradley
05fb7a09ea refactor(backButton): separate show/hide logic 2014-11-26 12:46:15 -06:00
Adam Bradley
57bf4f1683 fix(backButton): add .header-item class
Add the .header-item class to each of the root child items of a nav
header bar. This gives CSS more power to state what should and should
not be shown during the different states of a transition, specifically
for iOS nav bar transitions.
2014-11-19 12:44:15 -06:00
Adam Bradley
39951ca99a refactor(): navigation improvements, Angular 1.3
#### Refactor:

* **Navigation:** Refactored navigation for improved performance,
reduce DOM manipulations, increase transition FPS, cached views,
smoother transitions, platform specific transitions with added
configurable controls for transition animation and direction.
* **Cached Views:** Previously as a user navigated an app, each leaving
view’s element and scope would be destroyed. If the same view was
accessed again then the app would have to recreate the element. Views
can now be cached to improve performance. When a view is navigated away
from, its element is left in the DOM, and its scope is disconnected
from the cycle. When navigating to a view which is already cached, its
scope is reconnected, and the existing element which was left in the
DOM becomes the active view. This also allows for scroll position of
previous views to be maintained (without skippy jumps). Config
variables can be used to disable view caching (set to 0), or change the
maximum number of views to cache.
* **Angular v1.3:** Upgraded Ionic’s to work with Angular v1.3. In
general Ionic just works with the upgrade, but the required change was
that animations in v1.3 uses promise, whereas in v1.2 animations used
callbacks.

#### Features:

* **Platform Specific Transitions:** Transitions between views now
default to the transition style appropriate for each platform. For
example, iOS will move forward by transitioning the entering view from
right to center, and the leaving view from center to left. However,
Android will transition with the entering view going from bottom to
center, covering the previous view, which remains stationary. Platform
transitions are automatically applied by default, but config variables
and custom CSS allows these defaults to be easily overridden.
* **Override Transition Type and Direction:** As a user navigates the
app, Ionic automatically applies the appropriate transition type for
the platform, and the direction the user is navigating. However, both
can be overridden in numerous ways: config variable, view attribute,
stateProvider property, or attribute on the button/link that initiated
the transition.
* **enable-menu-with-back-views:** The `enable-menu-with-back-views`
attribute determines if the side menu is enabled when the back button
is showing. When set to `false`, any buttons/links with the
`menuToggle` directive will be hidden, and the user cannot swipe to
open the menu. When going back to the root page of the side menu (the
page without a back button visible), then any menuToggle buttons will
show again, and menus will be enabled again.
* **menuClose:** Closes a side menu which is currently opened.
Additionally, the menuClose directive will now cause transitions to not
animate between views while the menu is being closed.
* **ionNavBackButton:** The back button icon and text will
automatically update to platform config defaults, such as adjusting to
the platform back icon. To take advantage of this, the
`ionNavBackButton` directive now should be empty, such as
`<ion-nav-back-button></ion-nav-back-button>`. The back button can
still be fully customized like it could before, but without any inner
content it knows to style using platform configs.
* **navBar button primary/secondary sides:** Primary and secondary
sides are now the recommended values for the `side` attribute, such as
`<ion-nav-buttons side="primary">`. Primary buttons generally map to
the left side of the header, and secondary buttons are generally on the
right side. However, their exact locations are platform specific. For
example, in iOS the primary buttons are on the far left of the header,
and secondary buttons are on the far right, with the header title
centered between them. For Android however, both groups of buttons are
on the far right of the header, with the header title aligned left.
Recommendation is to always use `primary` and `secondary` so buttons
correctly map to the side familiar to users of a platform. However, in
cases where buttons should always be on an exact side, both `left` and
`right` sides are still available.
* **navDirection:** An attribute directive that sets the direction
which the nav view transition should animate.
* **navTransition:** An attribute directive that sets the transition
type which the nav view transition should use when it animates. Using
`none` will disable an animation.

#### Breaking Changes:

* **Animation CSS:** The CSS for view transitions have changed. This is
a breaking change only if Ionic apps had customized Ionic’s animation
CSS.
* **$ionicPlatformDefaults:** Platform config variables are no longer
in the $ionicPlatformDefaults constant, but within `$ionicConfig`.
* **$ionicViewService:** In the navigation refactoring,
$ionicViewService was split up into two factories, `$ionicViewSwitcher`
and `$ionicHistory`. The `$ionicHistory` is largely what
`$ionicViewService`, but between the two factories there is a better
separation of concerns for improved testing.
* **navClear:** The navClear directive was created to do what the new
side menu `enable-menu-with-back-views` attribute accomplishes.
Additionally, the new `navTransition` and `navDirection` directives are
more useful and granular than the navClear directive.
* **scrollView.rememberScrollPosition:** This method has been removed
since it is no longer needed with cached views.

#### Deprecated:

* **ionView.title:** The `ionView` directive used the `title`
attribute, but this can cause the tooltip to show up on desktop
browsers. The `title` attribute will still work for backwards
compatibility, but we now recommend using `view-title`, such as
`<ion-view view-title=”My Title”>`.
* **ionNavView animation attribute removed:** The animation attribute
is no longer used for nav views. Instead use `$ionicConfig`.
* **ionNavBar animation attribute removed:** The animation attribute is
no longer used for nav bars. Instead use `$ionicConfig`.
2014-11-11 14:43:10 -06:00
Adam Bradley
06086ee9ae fix(header): buttons do not align in Android 4.4
Closes #1614
2014-08-05 10:23:23 -05:00
Perry Govier
ddda809b57 feat(tabs): Expand striped android style tab functionality. Closes 1694 2014-07-30 15:52:53 -05:00
Perry Govier
f4043e673c fix(footerBar): fixed top border position on retina displays. Closes #1661 2014-06-25 14:47:02 -05:00
Max Lynch
c30be67f65 feat(platforms): Android and iOS Specific Styles and Transitions 2014-06-11 16:48:53 -05:00
Adam Bradley
eaee564de1 fix(footer): Fix placement of .bar-footer.item-input-inset
Closes #1325
2014-05-13 21:10:23 -05:00
Adam Bradley
0c960b5450 fix(header): Set a height for .bar .title
WP8 does not obey the ellipsis or nowrap and allows text to go below
the header. Setting a height forces the title from getting too tall.
2014-05-13 11:52:38 -05:00
Mike Hartington
95de4d332a Update _bar.scss 2014-05-10 17:38:25 -04:00
Mike Hartington
54f2b662ef Aligns multiple header buttons correctly (4.4) 2014-05-10 17:32:28 -04:00
Max Lynch
8847774f2a fix(bar): Increased button icon font size 2014-04-28 13:25:30 -05:00
Adam Bradley
b654e02e0a fix(header): Header input too long on Android 4.2, closes #1081 2014-04-08 15:22:54 -05:00
Adam Bradley
870dcd6f99 fix(active): Taps/clicks now use .activated instead of .active, closes #913
Both .active and .activated classes exist within the css now. When a
button/link/item is “active”, the .activated class gets added and
removed. This is so Ionic is not removing any user defined .active
classes, but also so users can use Ionic’s active classes (but not have
to worry about them being removed automatically by Ionic). Styled the
same by default, but easily overridden.
2014-03-27 21:26:59 -05:00
Andy Joslin
e9f38108af style(buttons): add .buttons.pull-right rule
Addresses #859
2014-03-21 11:33:22 -05:00
Adam Bradley
baa04cde4d feat(active): Removing use of :active in favor of .active for more control of active state
Using the :active pseudo works fine for desktop, but mobile is a
completely different beast, especially with the quirks of each
platform. By intentionally not using any :active selectors and manually
adding/removing a .active class, it gives us a precise control on how
the active state works for ALL platforms. Additionally, this places
less selectors in the css, and reduces the possibility of unnecessary
repaints. Currently this method of using .active instead of :active is
being applied to .button and .item elements.
2014-03-15 01:12:56 -05:00
Adam Bradley
438f5fba58 fix(button): Correct vertical alignment of header right buttons, closes #704 2014-03-10 22:33:47 -05:00
Adam Bradley
7890057ca9 do not change opacity on active back button, causes flicker when fading out 2014-02-25 13:03:51 -06:00
Adam Bradley
72209f9e6e translate3d updates for .view, .bar, .tabs 2014-02-19 10:09:23 -06:00
Adam Bradley
801d2d7b77 fix(header): Header icon button css fix for Safari, closes #576 2014-02-11 12:34:28 -06:00
Adam Bradley
2236cf1d3a set .button-icon:before so .icon is not required, closes #475 2014-02-09 22:22:03 -06:00
Adam Bradley
7bd6363ea7 tweak header/button sizes, and ionicons update 2014-01-20 20:47:22 -06:00
Adam Bradley
8332a3d61b change .bar .title to 44px line-height 2014-01-17 10:32:21 -06:00
Adam Bradley
fd331d9413 closes #339 2014-01-04 23:22:46 -06:00
Adam Bradley
aae39e64f5 z-index variables 2013-12-12 11:35:31 -06:00
Max Lynch
a705940581 Fixed #273 - android specific title sizes 2013-12-06 10:34:40 -06:00
Adam Bradley
5d85d922b9 .item-input-inset updates 2013-12-02 14:51:46 -06:00
Adam Bradley
db61d965c2 fix .bar .button-clear font-size 2013-12-02 14:38:04 -06:00
Adam Bradley
acc95033c9 .item-input-inset updates 2013-12-02 12:19:55 -06:00
Adam Bradley
7ad48c7d3e header bar item-input-inset, closes #226 2013-11-30 22:44:57 -06:00
Adam Bradley
77e7ae7384 .bar line-height updates 2013-11-29 22:25:51 -06:00
Adam Bradley
67bb666e91 .bar.button-icon alignment updates 2013-11-29 22:00:11 -06:00
Adam Bradley
fc909e1612 reduce header title DOM read/writes 2013-11-27 11:49:19 -06:00
Adam Bradley
c38de498e9 use display-flex() mixin 2013-11-26 23:55:30 -06:00
Adam Bradley
9ca770c931 border: none for .bar in hi-res 2013-11-25 10:49:35 -06:00