From 1aba0399e730c1251ffb3750b6aed29970a23444 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Thu, 24 Oct 2013 18:56:27 -0500 Subject: [PATCH] Don't even try to use the scroll shit, it's broken --- dist/css/ionic-ios7.css | 2357 ----------------------------------- dist/js/ionic.js | 198 +-- js/views/scrollView.js | 198 +-- starters/weather/index.html | 2 +- test/scroll.html | 2 +- test/scroll_horiz.html | 46 + 6 files changed, 300 insertions(+), 2503 deletions(-) create mode 100644 test/scroll_horiz.html diff --git a/dist/css/ionic-ios7.css b/dist/css/ionic-ios7.css index 9fda294c21..e69de29bb2 100644 --- a/dist/css/ionic-ios7.css +++ b/dist/css/ionic-ios7.css @@ -1,2357 +0,0 @@ -@charset "UTF-8"; -/** -* Adapted from normalize.css and some reset.css. We don't care even one -* bit about old IE, so we don't need any hacks for that in here. -* -* There are probably other things we could remove here, as well. -* -* normalize.css v2.1.2 | MIT License | git.io/normalize -*/ -/** - * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) - * http://cssreset.com - */ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, fieldset, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - vertical-align: baseline; - font: inherit; - font-size: 100%; } - -ol, ul { - list-style: none; } - -blockquote, q { - quotes: none; } - -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; } - -/** - * Prevent modern browsers from displaying `audio` without controls. - * Remove excess height in iOS 5 devices. - */ -audio:not([controls]) { - display: none; - height: 0; } - -/** - * Hide the `template` element in IE, Safari, and Firefox < 22. - */ -[hidden], -template { - display: none; } - -script { - display: none !important; } - -/* ========================================================================== - Base - ========================================================================== */ -/** - * 1. Set default font family to sans-serif. - * 2. Prevent iOS text size adjust after orientation change, without disabling - * user zoom. - */ -html { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - -o-user-select: none; - user-select: none; - font-family: sans-serif; - /* 1 */ - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - /* 2 */ - -webkit-text-size-adjust: 100%; - /* 2 */ } - -/** - * Remove default margin. - */ -body { - margin: 0; - line-height: 1; } - -/* * - * Remove tap highlight color on Safari - */ -a { - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } - -/** - * Address `outline` inconsistency between Chrome and other browsers. - */ -a:focus { - outline: thin dotted; } - -/** - * Improve readability when focused and also mouse hovered in all browsers. - */ -a:active, -a:hover { - outline: 0; } - -/* ========================================================================== - Typography - ========================================================================== */ -/** - * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. - */ -b, -strong { - font-weight: bold; } - -/** - * Address styling not present in Safari 5 and Chrome. - */ -dfn { - font-style: italic; } - -/** - * Address differences between Firefox and other browsers. - */ -hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; } - -/** - * Correct font family set oddly in Safari 5 and Chrome. - */ -code, -kbd, -pre, -samp { - font-size: 1em; - font-family: monospace, serif; } - -/** - * Improve readability of pre-formatted text in all browsers. - */ -pre { - white-space: pre-wrap; } - -/** - * Set consistent quote types. - */ -q { - quotes: "\201C" "\201D" "\2018" "\2019"; } - -/** - * Address inconsistent and variable font size in all browsers. - */ -small { - font-size: 80%; } - -/** - * Prevent `sub` and `sup` affecting `line-height` in all browsers. - */ -sub, -sup { - position: relative; - vertical-align: baseline; - font-size: 75%; - line-height: 0; } - -sup { - top: -0.5em; } - -sub { - bottom: -0.25em; } - -/** - * Define consistent border, margin, and padding. - */ -fieldset { - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; - border: 1px solid silver; } - -/** - * 1. Correct `color` not being inherited in IE 8/9. - * 2. Remove padding so people aren't caught out if they zero out fieldsets. - */ -legend { - padding: 0; - /* 2 */ - border: 0; - /* 1 */ } - -/** - * 1. Correct font family not being inherited in all browsers. - * 2. Correct font size not being inherited in all browsers. - * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. - * 4. Remove any default :focus styles - */ -button, -input, -select, -textarea { - margin: 0; - /* 3 */ - font-size: 100%; - /* 2 */ - font-family: inherit; - /* 1 */ - outline-offset: 0; - /* 4 */ - outline-style: none; - /* 4 */ - outline-width: 0; - /* 4 */ } - -/** - * Address Firefox 4+ setting `line-height` on `input` using `!important` in - * the UA stylesheet. - */ -button, -input { - line-height: normal; } - -/** - * Address inconsistent `text-transform` inheritance for `button` and `select`. - * All other form control elements do not inherit `text-transform` values. - * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+. - * Correct `select` style inheritance in Firefox 4+ and Opera. - */ -button, -select { - text-transform: none; } - -/** - * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` - * and `video` controls. - * 2. Correct inability to style clickable `input` types in iOS. - * 3. Improve usability and consistency of cursor style between image-type - * `input` and others. - */ -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - cursor: pointer; - /* 3 */ - -webkit-appearance: button; - /* 2 */ } - -/** - * Re-set default cursor for disabled elements. - */ -button[disabled], -html input[disabled] { - cursor: default; } - -/** - * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. - * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome - * (include `-moz` to future-proof). - */ -input[type="search"] { - -webkit-box-sizing: content-box; - /* 2 */ - -moz-box-sizing: content-box; - box-sizing: content-box; - -webkit-appearance: textfield; - /* 1 */ } - -/** - * Remove inner padding and search cancel button in Safari 5 and Chrome - * on OS X. - */ -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; } - -/** - * Remove inner padding and border in Firefox 4+. - */ -button::-moz-focus-inner, -input::-moz-focus-inner { - padding: 0; - border: 0; } - -/** - * 1. Remove default vertical scrollbar in IE 8/9. - * 2. Improve readability and alignment in all browsers. - */ -textarea { - overflow: auto; - /* 1 */ - vertical-align: top; - /* 2 */ } - -/* ========================================================================== - Tables - ========================================================================== */ -/** - * Remove most spacing between table cells. - */ -table { - border-spacing: 0; - border-collapse: collapse; } - -*, -*:before, -*:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; } - -a { - -webkit-user-drag: none; - -webkit-tap-highlight-color: transparent; } - -img { - -webkit-user-drag: none; } - -a:focus, button:focus { - outline: 0; } - -body, .ionic-body { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - overflow: hidden; - margin: 0; - padding: 0; - color: black; - word-wrap: break-word; - font-size: 14px; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - line-height: 20px; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -webkit-text-size-adjust: none; - text-size-adjust: none; - -webkit-tap-highlight-color: transparent; - -webkit-user-drag: none; - -webkit-user-select: none; } - -.view-full { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; } - -.content:before, -.content:after { - content: "\00a0"; - /* No-break space character */ - display: block; - overflow: hidden; - height: 0; } - -/* Hack to force all relatively and absolutely positioned elements still render while scrolling - Note: This is a bug for "-webkit-overflow-scrolling: touch" (via ratchet) */ -.content > * { - -webkit-transform: translateZ(0px); - transform: translateZ(0px); } - -.content { - position: absolute; - width: 100%; - height: 100%; - overflow: auto; - -webkit-overflow-scrolling: touch; } - -.has-header { - top: 44px; } - -.has-footer { - bottom: 44px; } - -.has-tabs { - bottom: 84px; } - -.page, .full-section { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1; - overflow: auto; - width: 100%; - height: 100%; - background-color: #fff; - -webkit-overflow-scrolling: touch; } - -p { - margin: 0 0 10px; } - -.lead { - margin-bottom: 20px; - font-weight: 200; - font-size: 16.1px; - line-height: 1.4; } - -small { - font-size: 85%; } - -cite { - font-style: normal; } - -.text-left { - text-align: left; } - -.text-right { - text-align: right; } - -.text-center { - text-align: center; } - -h1, h2, h3, h4, h5, h6, -.h1, .h2, .h3, .h4, .h5, .h6 { - color: black; - font-weight: 500; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - line-height: 1.1; } - h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, - .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small { - font-weight: normal; - line-height: 1; } - -h1, -h2, -h3 { - margin-top: 20px; - margin-bottom: 10px; } - -h4, -h5, -h6 { - margin-top: 10px; - margin-bottom: 10px; } - -h1, .h1 { - font-size: 36px; } - -h2, .h2 { - font-size: 30px; } - -h3, .h3 { - font-size: 24px; } - -h4, .h4 { - font-size: 18px; } - -h5, .h5 { - font-size: 14px; } - -h6, .h6 { - font-size: 12px; } - -h1 small, .h1 small { - font-size: 24px; } - -h2 small, .h2 small { - font-size: 18px; } - -h3 small, .h3 small, -h4 small, .h4 small { - font-size: 14px; } - -dl { - margin-bottom: 20px; } - -dt, -dd { - line-height: 1.42857; } - -dt { - font-weight: bold; } - -dd { - margin-left: 0; } - -blockquote { - margin: 0 0 20px; - padding: 10px 20px; - border-left: 5px solid gray; } - blockquote p { - font-weight: 300; - font-size: 17.5px; - line-height: 1.25; } - blockquote p:last-child { - margin-bottom: 0; } - blockquote small { - display: block; - line-height: 1.42857; } - blockquote small:before { - content: '\2014 \00A0'; } - blockquote.pull-right { - padding-right: 15px; - padding-left: 0; - border-right: 5px solid gray; - border-left: 0; } - blockquote.pull-right p, - blockquote.pull-right small { - text-align: right; } - blockquote.pull-right small:before { - content: ''; } - blockquote.pull-right small:after { - content: '\00A0 \2014'; } - -q:before, -q:after, -blockquote:before, -blockquote:after { - content: ""; } - -address { - display: block; - margin-bottom: 20px; - font-style: normal; - line-height: 1.42857; } - -.bar { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - -o-user-select: none; - user-select: none; - position: absolute; - right: 0; - left: 0; - z-index: 10; - display: -webkit-box; - display: box; - box-sizing: border-box; - padding: 5px; - width: 100%; - height: 44px; - border-width: 0; - border-style: solid; - background-color: white; } - .bar.bar-header { - border-bottom-width: 1px; } - .bar.bar-footer { - border-top-width: 1px; } - .bar.bar-clear { - background: none; - color: #fff; - border: none; } - .bar.bar-clear .button { - color: #fff; } - .bar.bar-clear .title { - color: #fff; } - .bar.bar-default { - background-color: rgba(255, 255, 255, 0.9); - border-color: #dddddd; - color: #333333; } - .bar.bar-default .title { - color: #333333; } - .bar.bar-secondary { - background-color: rgba(245, 245, 245, 0.9); - border-color: #bbbbbb; - color: #333333; } - .bar.bar-secondary .title { - color: #333333; } - .bar.bar-primary { - background-color: rgba(74, 135, 238, 0.9); - border-color: #3b6dc2; - color: white; } - .bar.bar-primary .title { - color: white; } - .bar.bar-info { - background-color: rgba(67, 206, 230, 0.9); - border-color: #3bb3c8; - color: white; } - .bar.bar-info .title { - color: white; } - .bar.bar-success { - background-color: rgba(102, 204, 51, 0.9); - border-color: #5bb22f; - color: white; } - .bar.bar-success .title { - color: white; } - .bar.bar-warning { - background-color: rgba(240, 184, 64, 0.9); - border-color: #d29f31; - color: white; } - .bar.bar-warning .title { - color: white; } - .bar.bar-danger { - background-color: rgba(239, 78, 58, 0.9); - border-color: #c73927; - color: white; } - .bar.bar-danger .title { - color: white; } - .bar.bar-dark { - background-color: rgba(68, 68, 68, 0.9); - border-color: #111111; - color: white; } - .bar.bar-dark .title { - color: white; } - .bar .title { - position: absolute; - top: 0; - right: 0; - left: 0; - z-index: 0; - margin: 0; - min-width: 30px; - text-align: center; - text-overflow: ellipsis; - white-space: nowrap; - font-size: 17px; - line-height: 44px; } - .bar .title a { - color: inherit; } - .bar .button { - box-flex: 1; - -webkit-box-flex: 0; - -moz-box-flex: 0; - z-index: 1; - margin: 0; - padding: 4px 12px; - background-color: transparent; - font-size: 12px; - line-height: 23px; } - .bar .button.button-clear { - padding: 0 5px; - line-height: 34px; } - .bar .button-bar { - line-height: 18px; } - .bar .button-bar + .button, .bar .button + .button-bar { - margin-left: 5px; } - .bar .title + .button:last-child, - .bar > .button + .button:last-child, - .bar > .button.pull-right, - .bar .title + .buttons { - position: absolute; - top: 5px; - right: 5px; - bottom: 5px; } - -.bar-default .button { - color: #333333; - background-color: white; - border-color: #dddddd; } - .bar-default .button:hover { - color: #333333; - text-decoration: none; } - .bar-default .button.active, .bar-default .button:active { - background-color: #fafafa; - box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15); - border-color: #bbbbbb; } - .bar-default .button.button-clear { - color: #333333; - background: none; - box-shadow: none; - font-size: 17px; } - -.bar-secondary .button { - color: #333333; - background-color: whitesmoke; - border-color: #bbbbbb; } - .bar-secondary .button:hover { - color: #333333; - text-decoration: none; } - .bar-secondary .button.active, .bar-secondary .button:active { - background-color: #e5e5e5; - box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15); - border-color: #999999; } - .bar-secondary .button.button-clear { - color: #333333; - background: none; - box-shadow: none; - font-size: 17px; } - -.bar-primary .button { - color: white; - background-color: #4a87ee; - border-color: #3b6dc2; } - .bar-primary .button:hover { - color: white; - text-decoration: none; } - .bar-primary .button.active, .bar-primary .button:active { - background-color: #4175ce; - box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15); - border-color: #32599c; } - .bar-primary .button.button-clear { - color: white; - background: none; - box-shadow: none; - font-size: 17px; } - -.bar-info .button { - color: white; - background-color: #43cee6; - border-color: #3bb3c8; } - .bar-info .button:hover { - color: white; - text-decoration: none; } - .bar-info .button.active, .bar-info .button:active { - background-color: #3db8cd; - box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15); - border-color: #3293a4; } - .bar-info .button.button-clear { - color: white; - background: none; - box-shadow: none; - font-size: 17px; } - -.bar-success .button { - color: white; - background-color: #66cc33; - border-color: #5bb22f; } - .bar-success .button:hover { - color: white; - text-decoration: none; } - .bar-success .button.active, .bar-success .button:active { - background-color: #55aa2b; - box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15); - border-color: #448922; } - .bar-success .button.button-clear { - color: white; - background: none; - box-shadow: none; - font-size: 17px; } - -.bar-warning .button { - color: white; - background-color: #f0b840; - border-color: #d29f31; } - .bar-warning .button:hover { - color: white; - text-decoration: none; } - .bar-warning .button.active, .bar-warning .button:active { - background-color: #e2a114; - box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15); - border-color: #b88517; } - .bar-warning .button.button-clear { - color: white; - background: none; - box-shadow: none; - font-size: 17px; } - -.bar-danger .button { - color: white; - background-color: #ef4e3a; - border-color: #c73927; } - .bar-danger .button:hover { - color: white; - text-decoration: none; } - .bar-danger .button.active, .bar-danger .button:active { - background-color: #ce4331; - box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15); - border-color: #9f3527; } - .bar-danger .button.button-clear { - color: white; - background: none; - box-shadow: none; - font-size: 17px; } - -.bar-dark .button { - color: white; - background-color: #444444; - border-color: #111111; } - .bar-dark .button:hover { - color: white; - text-decoration: none; } - .bar-dark .button.active, .bar-dark .button:active { - background-color: #222222; - box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.15); - border-color: black; } - .bar-dark .button.button-clear { - color: white; - background: none; - box-shadow: none; - font-size: 17px; } - -.bar [class^="icon-"], -.bar [class*=" icon-"] { - font-size: 24px; } - -.bar .button-icon { - border: 1px solid transparent; - background-color: transparent; } - -.bar-header { - top: 0; } - -.bar-footer { - bottom: 0; } - -.bar-tabs { - padding: 0; } - -.bar-subheader { - top: 44px; - display: block; } - -.bar-subfooter { - bottom: 44px; - display: block; } - -/** - * Tabs - * - * A navigation bar with any number of tab items supported. - */ -.tabs { - font-size: 16px; - position: fixed; - bottom: 0; - width: 100%; - height: 49px; - z-index: 5; - box-orient: horizontal; - -webkit-box-orient: horizontal; - -moz-box-orient: horizontal; - display: -webkit-box; - display: box; - border-top-width: 1px; - border-style: solid; - background-color: white; - border-color: #dddddd; - color: #333333; } - .tabs.tabs-default { - background-color: white; - border-color: #dddddd; - color: #333333; } - .tabs.tabs-secondary { - background-color: whitesmoke; - border-color: #bbbbbb; - color: #333333; } - .tabs.tabs-primary { - background-color: #4a87ee; - border-color: #3b6dc2; - color: white; } - .tabs.tabs-success { - background-color: #66cc33; - border-color: #5bb22f; - color: white; } - .tabs.tabs-info { - background-color: #43cee6; - border-color: #3bb3c8; - color: white; } - .tabs.tabs-warning { - background-color: #f0b840; - border-color: #d29f31; - color: white; } - .tabs.tabs-danger { - background-color: #ef4e3a; - border-color: #c73927; - color: white; } - .tabs.tabs-dark { - background-color: #ef4e3a; - border-color: #c73927; - color: white; } - -.tabs-top { - top: 44px; } - -.tab-item { - display: block; - width: 0; - height: 100%; - box-flex: 1; - -webkit-box-flex: 1; - -moz-box-flex: 1; - box-sizing: border-box; - text-align: center; - text-decoration: none; - font-weight: 400; - font-family: "Helvetica Neue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 10px; - color: inherit; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - opacity: 0.7; } - .tab-item i { - font-size: 32px; } - -/* Navigational tab */ -/* Active state for tab */ -.tab-item.active, .tab-item:active { - opacity: 1; } - .tab-item.active.tab-item-default, .tab-item:active.tab-item-default { - color: white; } - .tab-item.active.tab-item-secondary, .tab-item:active.tab-item-secondary { - color: whitesmoke; } - .tab-item.active.tab-item-primary, .tab-item:active.tab-item-primary { - color: #4a87ee; } - .tab-item.active.tab-item-success, .tab-item:active.tab-item-success { - color: #66cc33; } - .tab-item.active.tab-item-danger, .tab-item:active.tab-item-danger { - color: #ef4e3a; } - .tab-item.active.tab-item-warning, .tab-item:active.tab-item-warning { - color: #f0b840; } - .tab-item.active.tab-item-dark, .tab-item:active.tab-item-dark { - color: #444444; } - -/* Icon for tab */ -.tab-item i { - display: block; - margin: 1px auto -3px auto; } - -/* Label for tab */ -.tab-label { - margin-top: 1px; - color: #fff; - font-weight: bold; - font-size: 10px; } - -.menu { - position: absolute; - top: 0; - bottom: 0; - z-index: 0; - overflow-y: scroll; - min-height: 100%; - max-height: 100%; - width: 270px; - background-color: #fff; - -webkit-overflow-scrolling: touch; } - -.menu-left { - left: 0; } - -.menu-right { - right: 0; } - -.menu-animated { - -webkit-transition: -webkit-transform 200ms ease; - -moz-transition: -moz-transform 200ms ease; - transition: transform 200ms ease; } - -/** - * Modals are independent windows that slide in from off-screen. - */ -.modal { - position: fixed; - z-index: 10; - top: 0; - width: 100%; - min-height: 100%; - overflow: hidden; - background-color: white; } - .modal.active { - height: 100%; } - -.item { - position: relative; - z-index: 2; - display: block; - margin: -1px; - border: none; - background-color: white; - box-shadow: inset 0 0 1px #666666; } - .item .badge { - float: right; } - .item .badge + .badge { - margin-right: 5px; } - .item.active, .item.active:hover, .item.active:focus { - z-index: 2; } - .item.active .item-heading, .item.active:hover .item-heading, .item.active:focus .item-heading { - color: inherit; } - .item.item-default { - /* - color: $color; - background-color: $bgColor; - border-color: $borderColor; - */ } - .item.item-default.active, .item.item-default:active { - color: #333333; - background-color: white; - border-color: #333333; } - .item.item-default.active .list-item-content, .item.item-default:active .list-item-content { - background-color: white; - color: #333333; } - .item.item-secondary { - /* - color: $color; - background-color: $bgColor; - border-color: $borderColor; - */ } - .item.item-secondary.active, .item.item-secondary:active { - color: #333333; - background-color: white; - border-color: #333333; } - .item.item-secondary.active .list-item-content, .item.item-secondary:active .list-item-content { - background-color: white; - color: #333333; } - .item.item-primary { - /* - color: $color; - background-color: $bgColor; - border-color: $borderColor; - */ } - .item.item-primary.active, .item.item-primary:active { - color: white; - background-color: #4a87ee; - border-color: #333333; } - .item.item-primary.active .list-item-content, .item.item-primary:active .list-item-content { - background-color: #4a87ee; - color: white; } - .item.item-info { - /* - color: $color; - background-color: $bgColor; - border-color: $borderColor; - */ } - .item.item-info.active, .item.item-info:active { - color: white; - background-color: #43cee6; - border-color: #333333; } - .item.item-info.active .list-item-content, .item.item-info:active .list-item-content { - background-color: #43cee6; - color: white; } - .item.item-success { - /* - color: $color; - background-color: $bgColor; - border-color: $borderColor; - */ } - .item.item-success.active, .item.item-success:active { - color: white; - background-color: #66cc33; - border-color: #333333; } - .item.item-success.active .list-item-content, .item.item-success:active .list-item-content { - background-color: #66cc33; - color: white; } - .item.item-warning { - /* - color: $color; - background-color: $bgColor; - border-color: $borderColor; - */ } - .item.item-warning.active, .item.item-warning:active { - color: white; - background-color: #f0b840; - border-color: #333333; } - .item.item-warning.active .list-item-content, .item.item-warning:active .list-item-content { - background-color: #f0b840; - color: white; } - .item.item-danger { - /* - color: $color; - background-color: $bgColor; - border-color: $borderColor; - */ } - .item.item-danger.active, .item.item-danger:active { - color: white; - background-color: #ef4e3a; - border-color: #333333; } - .item.item-danger.active .list-item-content, .item.item-danger:active .list-item-content { - background-color: #ef4e3a; - color: white; } - .item.item-dark { - /* - color: $color; - background-color: $bgColor; - border-color: $borderColor; - */ } - .item.item-dark.active, .item.item-dark:active { - color: white; - background-color: #444444; - border-color: #333333; } - .item.item-dark.active .list-item-content, .item.item-dark:active .list-item-content { - background-color: #444444; - color: white; } - -a.item { - color: #333333; - text-decoration: none; } - a.item:hover, a.item:focus { - text-decoration: none; } - -.item-content { - /** - * The content area of a complex list item. This area can - * Slide left and right and be dragged to support different - * UI interactions. - */ - position: relative; - z-index: 2; - overflow: hidden; - padding: 15px 40px 15px 15px; - border: none; - background-color: #fff; - box-shadow: inset 0 0 1px #666666; - text-overflow: ellipsis; - white-space: nowrap; - font-size: 16px; - -webkit-transition: margin-left 0.2s ease-in-out, margin-right 0.2s ease-in-out, left 0.2s ease-in-out; } - .item-content h2 { - margin: 0 0 4px 0; - font-size: 16px; } - .item-content h3 { - margin: 0 0 4px 0; - font-size: 14px; } - .item-content h3 { - margin: 0 0 4px 0; - font-size: 12px; } - .item-content h4, .item-content h5, .item-content h6 { - margin: 0 0 3px 0; - font-size: 10px; } - .item-content p { - color: #666; - font-size: 14px; } - .item-content h1:last-child, - .item-content h2:last-child, - .item-content h3:last-child, - .item-content h4:last-child, - .item-content h5:last-child, - .item-content h6:last-child, - .item-content p:last-child { - margin-bottom: 0; } - -.item-text-wrap { - overflow: auto; - white-space: normal; } - -.item-content i { - display: -webkit-box; - display: -webkit-flex; - display: -moz-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - -webkit-align-items: center; - -moz-align-items: center; - align-items: center; - position: absolute; - top: 0; - height: 100%; - font-size: 28px; } - -.item-icon-left .item-content { - padding-left: 45px; } - .item-icon-left .item-content i { - left: 7.5px; } - -.item-icon-right .item-content i { - right: 7.5px; } - -.item-icon-left.item-icon-right .item-content i:last-child { - left: auto; } - -a .item-content:after, -button .item-content:after { - /* By default, both and