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; }
|
||||
|
||||
.button {
|
||||
color: #333333;
|
||||
border-radius: 2px; }
|
||||
color: #222222;
|
||||
border-radius: 2px;
|
||||
padding: 10px 10px; }
|
||||
|
||||
.button-default {
|
||||
background-color: #fff;
|
||||
background-color: white;
|
||||
border: 1px solid #dddddd; }
|
||||
.button-default:active {
|
||||
background-color: #eeeeee; }
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="bower_components/normalize-css/normalize.css">
|
||||
<link rel="stylesheet" href="../dist/framework-structure.css">
|
||||
<link rel="stylesheet" href="../dist/framework-theme.css">
|
||||
<link rel="stylesheet" href="../dist/framework-with-theme.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="bar-header">
|
||||
|
||||
@ -1,9 +1,15 @@
|
||||
|
||||
.button {
|
||||
color: #333333;
|
||||
border-radius: 2px;
|
||||
color: $buttonColor;
|
||||
border-radius: $buttonBorderRadius;
|
||||
padding: $buttonPadding;
|
||||
}
|
||||
|
||||
.button-default {
|
||||
background-color: #fff;
|
||||
border: 1px solid #ddd;
|
||||
background-color: $buttonDefaultBackground;
|
||||
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