Skip to content

Commit 21e54be

Browse files
committed
feat(buttons): more v2 like buttons
1 parent e22c5ac commit 21e54be

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

scss/_mixins.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// --------------------------------------------------
44

55
@mixin button-style($bg-color, $border-color, $active-bg-color, $active-border-color, $color) {
6-
border-color: $border-color;
6+
border-color: transparent;//$border-color;
77
background-color: $bg-color;
88
color: $color;
99

@@ -14,9 +14,9 @@
1414
}
1515
&.active,
1616
&.activated {
17-
border-color: $active-border-color;
17+
//border-color: transparent;//$active-border-color;
1818
background-color: $active-bg-color;
19-
box-shadow: inset 0 1px 4px rgba(0,0,0,0.1);
19+
//box-shadow: inset 0 1px 4px rgba(0,0,0,0.1);
2020
}
2121
}
2222

scss/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ $scroll-refresh-icon-color: #666666 !default;
6969
$button-color: #222 !default;
7070
$button-block-margin: 10px !default;
7171
$button-clear-padding: 6px !default;
72-
$button-border-radius: 2px !default;
72+
$button-border-radius: 4px !default;
7373
$button-border-width: 1px !default;
7474

7575
$button-font-size: 16px !default;

test/css/buttons.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html ng-app="ionic">
3+
<head>
4+
<script src="../../dist/js/ionic.bundle.js"></script>
5+
<meta charset="utf-8">
6+
<title>Buttons</title>
7+
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
8+
<link href="../../dist/css/ionic.css" rel="stylesheet">
9+
<style>
10+
body {
11+
position: absolute;;
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
17+
<header class="bar bar-header bar-dark">
18+
<h1 class="title">Buttons: borderless</h1>
19+
</header>
20+
21+
<div class="content has-header">
22+
23+
<button class="button button-primary">Hello</button>
24+
<button class="button button-assertive">Hello</button>
25+
<button class="button button-stable">Hello</button>
26+
<button class="button button-calm">Hello</button>
27+
</div>
28+
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)