mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Messing with bars
This commit is contained in:
16
dist/ionic.css
vendored
16
dist/ionic.css
vendored
@ -6,7 +6,11 @@
|
|||||||
|
|
||||||
html {
|
html {
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
-ms-text-size-adjust: 100%; }
|
-ms-text-size-adjust: 100%;
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: -moz-none;
|
||||||
|
user-select: none; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -81,6 +85,10 @@ ul {
|
|||||||
margin-top: 5px; }
|
margin-top: 5px; }
|
||||||
|
|
||||||
.bar {
|
.bar {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: -moz-none;
|
||||||
|
user-select: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -138,6 +146,12 @@ ul {
|
|||||||
.bar-tabs {
|
.bar-tabs {
|
||||||
padding: 0; }
|
padding: 0; }
|
||||||
|
|
||||||
|
.bar-header-secondary {
|
||||||
|
top: 44px; }
|
||||||
|
|
||||||
|
.bar-footer-secondary {
|
||||||
|
bottom: 44px; }
|
||||||
|
|
||||||
/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
|
/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
|
||||||
Note: For these to work, content must come after both bars in the markup */
|
Note: For these to work, content must come after both bars in the markup */
|
||||||
.has-header {
|
.has-header {
|
||||||
|
|||||||
@ -23,6 +23,14 @@
|
|||||||
<a class="button button-success">Forward</a>
|
<a class="button button-success">Forward</a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
<div class="bar bar-header-secondary bar-dark">
|
||||||
|
<div class="button-group">
|
||||||
|
<a class="button button-primary">Success</a>
|
||||||
|
<a class="button button-primary">Warning</a>
|
||||||
|
<a class="button button-primary">Danger</a>
|
||||||
|
<a class="button button-primary">Dark</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<main class="content content-padded has-header">
|
<main class="content content-padded has-header">
|
||||||
<p>Content element must have "has-header" as a classname.</p>
|
<p>Content element must have "has-header" as a classname.</p>
|
||||||
|
|||||||
@ -45,7 +45,8 @@
|
|||||||
<ul id="tasks" class="list">
|
<ul id="tasks" class="list">
|
||||||
<li class="list-divider">Tasks</li>
|
<li class="list-divider">Tasks</li>
|
||||||
<li class="list-item" ng-repeat="task in tasks">
|
<li class="list-item" ng-repeat="task in tasks">
|
||||||
<a href="#">{{task.text}}</a>
|
{{task.text}}
|
||||||
|
<a href="#" class="pull-right"><i class="icon-plus"></i></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -377,6 +377,13 @@
|
|||||||
user-select: $select;
|
user-select: $select;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin disable-user-select() {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: -moz-none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
// Resize anything
|
// Resize anything
|
||||||
@mixin resizable($direction) {
|
@mixin resizable($direction) {
|
||||||
resize: $direction; // Options: horizontal, vertical, both
|
resize: $direction; // Options: horizontal, vertical, both
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
// Use Flexbox for our header and footer bars
|
// Use Flexbox for our header and footer bars
|
||||||
.bar {
|
.bar {
|
||||||
|
@include disable-user-select();
|
||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -89,6 +91,13 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bar-header-secondary {
|
||||||
|
top: $barHeight;
|
||||||
|
}
|
||||||
|
.bar-footer-secondary {
|
||||||
|
bottom: $barHeight;
|
||||||
|
}
|
||||||
|
|
||||||
/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
|
/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
|
||||||
Note: For these to work, content must come after both bars in the markup */
|
Note: For these to work, content must come after both bars in the markup */
|
||||||
.has-header {
|
.has-header {
|
||||||
|
|||||||
@ -10,6 +10,8 @@
|
|||||||
html {
|
html {
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
-ms-text-size-adjust: 100%;
|
-ms-text-size-adjust: 100%;
|
||||||
|
|
||||||
|
@include disable-user-select();
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
Reference in New Issue
Block a user