Browse Source

popovers

pull/253/head
connors 11 years ago
parent
commit
3e4942936f
  1. 24
      dist/android-theme.css
  2. 16
      dist/ios-theme.css
  3. 4
      dist/ratchet.css
  4. 36
      docs-assets/css/docs.css
  5. 5
      lib/sass/popovers.scss
  6. 29
      lib/sass/theme-android.scss
  7. 24
      lib/sass/theme-ios.scss

24
dist/android-theme.css vendored

@ -56,15 +56,18 @@ body {
text-align: left; text-align: left;
} }
.popover .bar-nav {
border-bottom: 1px solid #b1b1b1;
}
.card { .card {
border-color: #d9d9d9; border-color: #d9d9d9;
border-radius: 2px; border-radius: 2px;
} }
.popover .bar {
border-radius: 0;
}
.popover .bar ~ .table-view {
padding-top: 50px;
}
.table-view .table-view-cell { .table-view .table-view-cell {
border-bottom: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9;
} }
@ -321,10 +324,15 @@ textarea,
} }
.popover { .popover {
border-radius: 12px; top: 100px;
} border: 1px solid #9b9b9b;
.popover:after { border-radius: 0;
border-bottom: 15px solid #dddddd; box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
-webkit-transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
.popover:before {
display: none;
} }
.toggle .toggle-handle { .toggle .toggle-handle {

16
dist/ios-theme.css vendored

@ -44,13 +44,6 @@ a {
color: #007aff; color: #007aff;
} }
.popover:before {
border-bottom: 15px solid rgba(247, 247, 247, 0.98);
}
.popover .bar {
-webkit-box-shadow: none;
box-shadow: none;
}
.popover .bar-nav { .popover .bar-nav {
border-bottom: 1px solid rgba(0, 0, 0, 0.15); border-bottom: 1px solid rgba(0, 0, 0, 0.15);
} }
@ -359,9 +352,16 @@ textarea,
-webkit-transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out; -webkit-transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out; transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
} }
.popover:after { .popover:before {
border-bottom: 15px solid rgba(247, 247, 247, 0.98); border-bottom: 15px solid rgba(247, 247, 247, 0.98);
} }
.popover .bar {
-webkit-box-shadow: none;
box-shadow: none;
}
.popover .bar-nav {
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.modal { .modal {
-webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1); -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);

4
dist/ratchet.css vendored

@ -963,7 +963,6 @@ input[type="button"] {
z-index: 20; z-index: 20;
display: none; display: none;
width: 280px; width: 280px;
padding-top: 44px;
margin-left: -140px; margin-left: -140px;
background-color: white; background-color: white;
border-radius: 6px; border-radius: 6px;
@ -989,6 +988,9 @@ input[type="button"] {
-webkit-transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.popover .bar ~ .table-view {
padding-top: 44px;
}
.backdrop { .backdrop {
position: fixed; position: fixed;

36
docs-assets/css/docs.css

@ -828,13 +828,6 @@ hr {
.platform-ios .tab-item:active .icon { .platform-ios .tab-item:active .icon {
color: #007aff; color: #007aff;
} }
.platform-ios .popover:before {
border-bottom: 15px solid rgba(247, 247, 247, 0.98);
}
.platform-ios .popover .bar {
-webkit-box-shadow: none;
box-shadow: none;
}
.platform-ios .popover .bar-nav { .platform-ios .popover .bar-nav {
border-bottom: 1px solid rgba(0, 0, 0, 0.15); border-bottom: 1px solid rgba(0, 0, 0, 0.15);
} }
@ -1114,9 +1107,16 @@ hr {
-webkit-transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out; -webkit-transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out; transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
} }
.platform-ios .popover:after { .platform-ios .popover:before {
border-bottom: 15px solid rgba(247, 247, 247, 0.98); border-bottom: 15px solid rgba(247, 247, 247, 0.98);
} }
.platform-ios .popover .bar {
-webkit-box-shadow: none;
box-shadow: none;
}
.platform-ios .popover .bar-nav {
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.platform-ios .modal { .platform-ios .modal {
-webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1); -webkit-transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1); transition-timing-function: cubic-bezier(0.1, 0.5, 0.1, 1);
@ -1237,13 +1237,16 @@ hr {
line-height: 50px; line-height: 50px;
text-align: left; text-align: left;
} }
.platform-android .popover .bar-nav {
border-bottom: 1px solid #b1b1b1;
}
.platform-android .card { .platform-android .card {
border-color: #d9d9d9; border-color: #d9d9d9;
border-radius: 2px; border-radius: 2px;
} }
.platform-android .popover .bar {
border-radius: 0;
}
.platform-android .popover .bar ~ .table-view {
padding-top: 50px;
}
.platform-android .table-view .table-view-cell { .platform-android .table-view .table-view-cell {
border-bottom: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9;
} }
@ -1476,10 +1479,15 @@ hr {
background-color: #33b5e5; background-color: #33b5e5;
} }
.platform-android .popover { .platform-android .popover {
border-radius: 12px; top: 100px;
border: 1px solid #9b9b9b;
border-radius: 0;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
-webkit-transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
transition: -webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
} }
.platform-android .popover:after { .platform-android .popover:before {
border-bottom: 15px solid #dddddd; display: none;
} }
.platform-android .toggle .toggle-handle { .platform-android .toggle .toggle-handle {
border: 1px solid #b1b1b1; border: 1px solid #b1b1b1;

5
lib/sass/popovers.scss

@ -9,7 +9,6 @@
z-index: 20; z-index: 20;
display: none; display: none;
width: 280px; width: 280px;
padding-top: $bar-base-height;
margin-left: -140px; margin-left: -140px;
background-color: $chrome-color; background-color: $chrome-color;
border-radius: $border-radius; border-radius: $border-radius;
@ -38,6 +37,10 @@
opacity: 1; opacity: 1;
@include transform(translate3d(0, 0, 0)); @include transform(translate3d(0, 0, 0));
} }
.bar ~ .table-view {
padding-top: $bar-base-height;
}
} }
// Backdrop (used as invisible touch escape) // Backdrop (used as invisible touch escape)

29
lib/sass/theme-android.scss

@ -94,13 +94,6 @@ body {
} }
// Nav bar in popovers
// --------------------------------------------------
.popover .bar-nav {
border-bottom: $border-default;
}
// //
// Cards // Cards
// -------------------------------------------------- // --------------------------------------------------
@ -110,6 +103,16 @@ body {
border-radius: $border-radius; border-radius: $border-radius;
} }
// `bar-nav` in popovers
.popover {
.bar {
border-radius: 0;
}
.bar ~ .table-view {
padding-top: $bar-base-height;
}
}
// Table views // Table views
// -------------------------------------------------- // --------------------------------------------------
@ -460,10 +463,14 @@ textarea,
// -------------------------------------------------- // --------------------------------------------------
.popover { .popover {
border-radius: 12px; top: 100px;
border: 1px solid #9b9b9b;
&:after { border-radius: 0;
border-bottom: 15px solid $chrome-color; box-shadow: 0 0 3px rgba(0,0,0,.2);
@include transition(-webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out);
&:before {
display: none;
} }
} }

24
lib/sass/theme-ios.scss

@ -77,19 +77,9 @@ a {
} }
} }
// `bar-nav` in popovers
// Nav bar in popovers .popover .bar-nav {
// -------------------------------------------------- border-bottom: 1px solid rgba(0,0,0,.15);
.popover {
&:before {
border-bottom: 15px solid $chrome-color;
}
.bar {
@include box-shadow(none);
}
.bar-nav {
border-bottom: 1px solid rgba(0,0,0,.15);
}
} }
@ -487,9 +477,15 @@ textarea,
border-radius: 12px; border-radius: 12px;
@include transition(-webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out); @include transition(-webkit-transform 0.2s ease-in-out, transform 0.2s ease-in-out, opacity 0.2s ease-in-out);
&:after { &:before {
border-bottom: 15px solid $chrome-color; border-bottom: 15px solid $chrome-color;
} }
.bar {
@include box-shadow(none);
}
.bar-nav {
border-bottom: 1px solid rgba(0,0,0,.15);
}
} }

Loading…
Cancel
Save