mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Bar styles and example
This commit is contained in:
30
dist/framework-with-theme.css
vendored
30
dist/framework-with-theme.css
vendored
@ -154,10 +154,36 @@ a.list-item:hover, a.list-item:focus {
|
|||||||
border-top-width: 1px; }
|
border-top-width: 1px; }
|
||||||
.bar.bar-default {
|
.bar.bar-default {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-color: #dddddd; }
|
border-color: #dddddd;
|
||||||
|
color: #333333; }
|
||||||
.bar.bar-secondary {
|
.bar.bar-secondary {
|
||||||
background-color: whitesmoke;
|
background-color: whitesmoke;
|
||||||
border-color: #cccccc; }
|
border-color: #cccccc;
|
||||||
|
color: #333333; }
|
||||||
|
.bar.bar-primary {
|
||||||
|
background-color: #6999e9;
|
||||||
|
border-color: #5981c5;
|
||||||
|
color: white; }
|
||||||
|
.bar.bar-info {
|
||||||
|
background-color: #60d2e6;
|
||||||
|
border-color: #51b3c4;
|
||||||
|
color: white; }
|
||||||
|
.bar.bar-success {
|
||||||
|
background-color: #89c163;
|
||||||
|
border-color: #71a052;
|
||||||
|
color: white; }
|
||||||
|
.bar.bar-warning {
|
||||||
|
background-color: #f0b840;
|
||||||
|
border-color: #cf9a29;
|
||||||
|
color: white; }
|
||||||
|
.bar.bar-danger {
|
||||||
|
background-color: #de5645;
|
||||||
|
border-color: #bc4435;
|
||||||
|
color: white; }
|
||||||
|
.bar.bar-dark {
|
||||||
|
background-color: #444444;
|
||||||
|
border-color: #111111;
|
||||||
|
color: white; }
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
color: #222222;
|
color: #222222;
|
||||||
|
|||||||
52
example/bar.html
Normal file
52
example/bar.html
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Example</title>
|
||||||
|
|
||||||
|
<!-- Sets initial viewport load and disables zooming -->
|
||||||
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
|
|
||||||
|
<!-- Makes your prototype chrome-less once bookmarked to your phone's home screen -->
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
|
|
||||||
|
<!-- Set a shorter title for iOS6 devices when saved to home screen -->
|
||||||
|
<meta name="apple-mobile-web-app-title" content="">
|
||||||
|
|
||||||
|
<!-- Set Apple icons for when prototype is saved to home screen -->
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="touch-icons/apple-touch-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="touch-icons/apple-touch-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="touch-icons/apple-touch-icon-57x57.png">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../dist/framework-with-theme.css">
|
||||||
|
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
|
||||||
|
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="app.css">
|
||||||
|
|
||||||
|
<script src="app.js"></script>
|
||||||
|
</head>
|
||||||
|
<body ontouchstart="">
|
||||||
|
<header class="bar bar-header bar-default">
|
||||||
|
<h1 class="title">Willkommen!</h1>
|
||||||
|
</header>
|
||||||
|
<header class="bar bar-header bar-secondary" style="top: 50px">
|
||||||
|
<h1 class="title">Willkommen!</h1>
|
||||||
|
</header>
|
||||||
|
<header class="bar bar-header bar-primary" style="top: 100px">
|
||||||
|
<h1 class="title">Willkommen!</h1>
|
||||||
|
</header>
|
||||||
|
<header class="bar bar-header bar-success" style="top: 150px">
|
||||||
|
<h1 class="title">Willkommen!</h1>
|
||||||
|
</header>
|
||||||
|
<header class="bar bar-header bar-warning" style="top: 200px">
|
||||||
|
<h1 class="title">Willkommen!</h1>
|
||||||
|
</header>
|
||||||
|
<header class="bar bar-header bar-danger" style="top: 250px">
|
||||||
|
<h1 class="title">Willkommen!</h1>
|
||||||
|
</header>
|
||||||
|
<header class="bar bar-header bar-dark" style="top: 300px">
|
||||||
|
<h1 class="title">Willkommen!</h1>
|
||||||
|
</header>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -15,10 +15,42 @@
|
|||||||
&.bar-default {
|
&.bar-default {
|
||||||
background-color: $barDefaultBackground;
|
background-color: $barDefaultBackground;
|
||||||
border-color: $barDefaultBorderColor;
|
border-color: $barDefaultBorderColor;
|
||||||
|
color: $darkColor;
|
||||||
}
|
}
|
||||||
&.bar-secondary {
|
&.bar-secondary {
|
||||||
background-color: $barSecondaryBackground;
|
background-color: $barSecondaryBackground;
|
||||||
border-color: $barSecondaryBorderColor;
|
border-color: $barSecondaryBorderColor;
|
||||||
|
color: $darkColor;
|
||||||
|
}
|
||||||
|
&.bar-primary {
|
||||||
|
background-color: $barPrimaryBackground;
|
||||||
|
border-color: $barPrimaryBorderColor;
|
||||||
|
color: $lightColor;
|
||||||
|
}
|
||||||
|
&.bar-info {
|
||||||
|
background-color: $barInfoBackground;
|
||||||
|
border-color: $barInfoBorderColor;
|
||||||
|
color: $lightColor;
|
||||||
|
}
|
||||||
|
&.bar-success {
|
||||||
|
background-color: $barSuccessBackground;
|
||||||
|
border-color: $barSuccessBorderColor;
|
||||||
|
color: $lightColor;
|
||||||
|
}
|
||||||
|
&.bar-warning {
|
||||||
|
background-color: $barWarningBackground;
|
||||||
|
border-color: $barWarningBorderColor;
|
||||||
|
color: $lightColor;
|
||||||
|
}
|
||||||
|
&.bar-danger {
|
||||||
|
background-color: $barDangerBackground;
|
||||||
|
border-color: $barDangerBorderColor;
|
||||||
|
color: $lightColor;
|
||||||
|
}
|
||||||
|
&.bar-dark {
|
||||||
|
background-color: $barDarkBackground;
|
||||||
|
border-color: $barDarkBorderColor;
|
||||||
|
color: $lightColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
// Typography
|
||||||
|
$lightColor: #fff;
|
||||||
|
$darkColor: #333;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Buttons
|
// Buttons
|
||||||
$buttonColor: #222;
|
$buttonColor: #222;
|
||||||
@ -24,6 +28,23 @@ $barDefaultBorderColor: #ddd;
|
|||||||
$barSecondaryBackground: #f5f5f5;
|
$barSecondaryBackground: #f5f5f5;
|
||||||
$barSecondaryBorderColor: #ccc;
|
$barSecondaryBorderColor: #ccc;
|
||||||
|
|
||||||
|
$barPrimaryBackground: #6999e9;
|
||||||
|
$barPrimaryBorderColor: #5981c5;
|
||||||
|
|
||||||
|
$barInfoBackground: #60d2e6;
|
||||||
|
$barInfoBorderColor: #51b3c4;
|
||||||
|
|
||||||
|
$barSuccessBackground: #89c163;
|
||||||
|
$barSuccessBorderColor: #71a052;
|
||||||
|
|
||||||
|
$barWarningBackground: #f0b840;
|
||||||
|
$barWarningBorderColor: #cf9a29;
|
||||||
|
|
||||||
|
$barDangerBackground: #de5645;
|
||||||
|
$barDangerBorderColor: #bc4435;
|
||||||
|
|
||||||
|
$barDarkBackground: #444;
|
||||||
|
$barDarkBorderColor: #111;
|
||||||
//
|
//
|
||||||
// Lists
|
// Lists
|
||||||
$listDividerBackground: #f5f5f5;
|
$listDividerBackground: #f5f5f5;
|
||||||
|
|||||||
Reference in New Issue
Block a user