mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Button variables
This commit is contained in:
9
dist/framework-with-theme.css
vendored
9
dist/framework-with-theme.css
vendored
@ -23,9 +23,12 @@ a {
|
|||||||
margin: 0; }
|
margin: 0; }
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
color: #333333;
|
color: #222222;
|
||||||
border-radius: 2px; }
|
border-radius: 2px;
|
||||||
|
padding: 10px 10px; }
|
||||||
|
|
||||||
.button-default {
|
.button-default {
|
||||||
background-color: #fff;
|
background-color: white;
|
||||||
border: 1px solid #dddddd; }
|
border: 1px solid #dddddd; }
|
||||||
|
.button-default:active {
|
||||||
|
background-color: #eeeeee; }
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="bower_components/normalize-css/normalize.css">
|
<link rel="stylesheet" href="bower_components/normalize-css/normalize.css">
|
||||||
<link rel="stylesheet" href="../dist/framework-structure.css">
|
<link rel="stylesheet" href="../dist/framework-with-theme.css">
|
||||||
<link rel="stylesheet" href="../dist/framework-theme.css">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header class="bar-header">
|
<header class="bar-header">
|
||||||
|
|||||||
@ -1,9 +1,15 @@
|
|||||||
|
|
||||||
.button {
|
.button {
|
||||||
color: #333333;
|
color: $buttonColor;
|
||||||
border-radius: 2px;
|
border-radius: $buttonBorderRadius;
|
||||||
|
padding: $buttonPadding;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-default {
|
.button-default {
|
||||||
background-color: #fff;
|
background-color: $buttonDefaultBackground;
|
||||||
border: 1px solid #ddd;
|
border: $buttonBorderWidth solid $buttonDefaultBorder;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: $buttonDefaultBackgroundActive;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
// Buttons
|
||||||
|
$buttonColor: #222;
|
||||||
|
$buttonPadding: 10px 10px;
|
||||||
|
$buttonBorderRadius: 2px;
|
||||||
|
$buttonBorderWidth: 1px;
|
||||||
|
|
||||||
|
$buttonDefaultBackground: #fff;
|
||||||
|
$buttonDefaultBackgroundActive: #eee;
|
||||||
|
$buttonDefaultBorder: #ddd;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user