update search css loading
This commit is contained in:
parent
96eb9ea63a
commit
3118991c21
15 changed files with 161 additions and 190 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-checkbox",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"description": "A material design checkbox",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
@ -29,18 +29,19 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"web-component-tester": "*",
|
||||
"web-component-tester": "polymer/web-component-tester#^3.4.0",
|
||||
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
|
||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
|
||||
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||
},
|
||||
"main": "paper-checkbox.html",
|
||||
"_release": "1.0.15",
|
||||
"_release": "1.0.16",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.15",
|
||||
"commit": "fe884a3da56b03998731d5ae299dd2fe893b3b8a"
|
||||
"tag": "v1.0.16",
|
||||
"commit": "5bfe12e9a096664c3f199d654c890d2a8d2def31"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-checkbox.git",
|
||||
"_target": "~1.0.5",
|
||||
|
|
|
@ -5,13 +5,15 @@ before_script:
|
|||
- npm install bower
|
||||
- 'export PATH=$PWD/node_modules/.bin:$PATH'
|
||||
- bower install
|
||||
- npm install polylint
|
||||
- polylint
|
||||
env:
|
||||
global:
|
||||
- secure: PkxMaBcKe8HD1Jv8O6qiyQ4Nux6DfaVyN/ss9opajX9Oqa2ECJRI/OCsjDSrgXKhuAc2dw0L/KwSb/j4hg3/9BzHlJYQmeR9b9+MsO377TseNw5aKlywgVRu2bj8ODv2naQ4pB4B/Us/n9K7J0vlHIwM8UAJJwGjYm2oYTQxCAw=
|
||||
- secure: WQNRMEQEm6k5e+rzN08Lg0IBC83AZLz1QLP89z59JHLrAOeBu7CBh/LFG0OkhUnTC+dG2JdfIZbdQVCEciDyONjSIKzmM4ze9/LrGzFpROE8bU0ylYSLqX+3CK/6i7VMR3pJo79e1KOeprppHiJSRLVBJfhG+5uNgwAXws/sLQ4=
|
||||
node_js: 4
|
||||
addons:
|
||||
firefox: '42.0'
|
||||
firefox: latest
|
||||
apt:
|
||||
sources:
|
||||
- google-chrome
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-checkbox",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"description": "A material design checkbox",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
@ -29,9 +29,10 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"web-component-tester": "*",
|
||||
"web-component-tester": "polymer/web-component-tester#^3.4.0",
|
||||
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
|
||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
|
||||
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||
},
|
||||
|
|
|
@ -17,86 +17,66 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
|
||||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<link rel="import" href="../../paper-styles/demo-pages.html">
|
||||
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
|
||||
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
|
||||
<link rel="import" href="../paper-checkbox.html">
|
||||
|
||||
<style is="custom-style">
|
||||
<style is="custom-style" include="demo-pages-shared-styles">
|
||||
paper-checkbox {
|
||||
display: block;
|
||||
margin-right: 24px;
|
||||
}
|
||||
|
||||
demo-snippet {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
paper-checkbox.blue {
|
||||
--paper-checkbox-checked-color: var(--paper-light-blue-500);
|
||||
--paper-checkbox-checked-ink-color: var(--paper-light-blue-500);
|
||||
--paper-checkbox-unchecked-color: var(--paper-light-blue-900);
|
||||
--paper-checkbox-unchecked-ink-color: var(--paper-light-blue-900);
|
||||
}
|
||||
|
||||
paper-checkbox.red {
|
||||
--paper-checkbox-checked-color: var(--paper-red-500);
|
||||
--paper-checkbox-checked-ink-color: var(--paper-red-500);
|
||||
--paper-checkbox-unchecked-color: var(--paper-red-900);
|
||||
--paper-checkbox-unchecked-ink-color: var(--paper-red-900);
|
||||
}
|
||||
|
||||
paper-checkbox.green {
|
||||
--paper-checkbox-checked-color: var(--paper-green-500);
|
||||
--paper-checkbox-checked-ink-color: var(--paper-green-500);
|
||||
--paper-checkbox-unchecked-color: var(--paper-green-900);
|
||||
--paper-checkbox-unchecked-ink-color: var(--paper-green-900);
|
||||
}
|
||||
|
||||
paper-checkbox.orange {
|
||||
--paper-checkbox-checked-color: var(--paper-orange-500);
|
||||
--paper-checkbox-checked-ink-color: var(--paper-orange-500);
|
||||
--paper-checkbox-unchecked-color: var(--paper-orange-900);
|
||||
--paper-checkbox-unchecked-ink-color: var(--paper-orange-900);
|
||||
.vertical-section-container {
|
||||
max-width: 550px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body unresolved>
|
||||
<div class="horizontal-section-container">
|
||||
<div>
|
||||
<h4>Enabled</h4>
|
||||
<div class="horizontal-section">
|
||||
<paper-checkbox>Oxygen</paper-checkbox>
|
||||
<paper-checkbox>Carbon</paper-checkbox>
|
||||
<paper-checkbox checked>Hydrogen</paper-checkbox>
|
||||
<paper-checkbox checked>Nitrogen</paper-checkbox>
|
||||
<paper-checkbox checked>Calcium</paper-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Disabled</h4>
|
||||
<div class="horizontal-section">
|
||||
<paper-checkbox disabled>Oxygen</paper-checkbox>
|
||||
<paper-checkbox disabled>Carbon</paper-checkbox>
|
||||
<paper-checkbox checked disabled>Hydrogen</paper-checkbox>
|
||||
<paper-checkbox checked disabled>Nitrogen</paper-checkbox>
|
||||
<paper-checkbox checked disabled>Calcium</paper-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Color</h4>
|
||||
<div class="horizontal-section">
|
||||
<paper-checkbox class="blue" checked aria-label="Hurray for oxygen">Oxygen</paper-checkbox>
|
||||
<paper-checkbox class="red" checked>Carbon</paper-checkbox>
|
||||
<paper-checkbox class="orange" checked>Hydrogen</paper-checkbox>
|
||||
<paper-checkbox class="green" checked>Nitrogen</paper-checkbox>
|
||||
<paper-checkbox class="blue" checked>Calcium</paper-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Noink</h4>
|
||||
<div class="horizontal-section">
|
||||
<paper-checkbox noink>Oxygen</paper-checkbox>
|
||||
<paper-checkbox noink>Carbon</paper-checkbox>
|
||||
<paper-checkbox checked noink>Hydrogen</paper-checkbox>
|
||||
<paper-checkbox checked noink>Nitrogen</paper-checkbox>
|
||||
<paper-checkbox checked noink>Calcium</paper-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vertical-section-container centered">
|
||||
<h3>Checkboxes can be checked or unchecked, or disabled entirely</h3>
|
||||
<demo-snippet class="centered-demo">
|
||||
<template>
|
||||
<paper-checkbox>Checkbox</paper-checkbox>
|
||||
<paper-checkbox checked>Checkbox</paper-checkbox>
|
||||
<paper-checkbox disabled>Disabled</paper-checkbox>
|
||||
</template>
|
||||
</demo-snippet>
|
||||
|
||||
<h3>Checkboxes can hide the ripple effect using the <i>noink</i> attribute</h3>
|
||||
<demo-snippet class="centered-demo">
|
||||
<template>
|
||||
<paper-checkbox noink>Checkbox</paper-checkbox>
|
||||
</template>
|
||||
</demo-snippet>
|
||||
|
||||
<h3>Checkboxes can be styled using custom properties</h3>
|
||||
<demo-snippet class="centered-demo small-text">
|
||||
<template>
|
||||
<style is="custom-style">
|
||||
paper-checkbox.red {
|
||||
--paper-checkbox-checked-color: var(--paper-red-500);
|
||||
--paper-checkbox-checked-ink-color: var(--paper-red-500);
|
||||
--paper-checkbox-unchecked-color: var(--paper-red-900);
|
||||
--paper-checkbox-unchecked-ink-color: var(--paper-red-900);
|
||||
--paper-checkbox-label-color: var(--paper-red-500);
|
||||
}
|
||||
paper-checkbox.green {
|
||||
--paper-checkbox-checked-color: var(--paper-green-500);
|
||||
--paper-checkbox-checked-ink-color: var(--paper-green-500);
|
||||
--paper-checkbox-unchecked-color: var(--paper-green-900);
|
||||
--paper-checkbox-unchecked-ink-color: var(--paper-green-900);
|
||||
--paper-checkbox-label-color: var(--paper-green-500);
|
||||
}
|
||||
</style>
|
||||
|
||||
<paper-checkbox class="red">Checkbox</paper-checkbox>
|
||||
<paper-checkbox checked class="green">Checkbox</paper-checkbox>
|
||||
</template>
|
||||
</demo-snippet>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -15,12 +15,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../../web-component-tester/browser.js"></script>
|
||||
<script src="../../test-fixture/test-fixture-mocha.js"></script>
|
||||
<script src="../../iron-test-helpers/mock-interactions.js"></script>
|
||||
|
||||
<link rel="import" href="../../test-fixture/test-fixture.html">
|
||||
<link rel="import" href="../paper-checkbox.html">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
<!doctype html>
|
||||
<!--
|
||||
<!DOCTYPE html><!--
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
Code distributed by Google as part of the polymer project is also
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
--><html><head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
|
||||
<title>paper-checkbox tests</title>
|
||||
|
@ -17,8 +14,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<body>
|
||||
<script>
|
||||
WCT.loadSuites([
|
||||
'basic.html'
|
||||
'basic.html',
|
||||
'basic.html?dom=shadow'
|
||||
]);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
</body></html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue