Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
24
gaia/distros/spark/apps/sharing/components/gaia-sub-header/bower.json
Executable file
24
gaia/distros/spark/apps/sharing/components/gaia-sub-header/bower.json
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "gaia-sub-header",
|
||||
"version": "0.3.1",
|
||||
"homepage": "https://github.com/gaia-components/gaia-subheader",
|
||||
"authors": [
|
||||
"rnowm <arnau@arnaumarch.com>"
|
||||
],
|
||||
"main": "gaia-sub-header.js",
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
],
|
||||
"devDependencies": {
|
||||
"gaia-theme": "gaia-components/gaia-theme#v1",
|
||||
"gaia-fonts": "gaia-components/gaia-fonts#~0.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"gaia-component": "gaia-components/gaia-component#~0.3.0"
|
||||
}
|
||||
}
|
||||
103
gaia/distros/spark/apps/sharing/components/gaia-sub-header/gaia-sub-header.js
Executable file
103
gaia/distros/spark/apps/sharing/components/gaia-sub-header/gaia-sub-header.js
Executable file
|
|
@ -0,0 +1,103 @@
|
|||
(function(define){'use strict';define(['require','exports','module','gaia-component'],function(require,exports,module){
|
||||
/*jshint esnext:true*/
|
||||
/*jshint node:true*/
|
||||
/*globals define*/
|
||||
|
||||
/**
|
||||
* Dependencies
|
||||
*/
|
||||
|
||||
var component = require('gaia-component');
|
||||
|
||||
/**
|
||||
* Exports
|
||||
*/
|
||||
|
||||
module.exports = component.register('gaia-sub-header', {
|
||||
created: function() {
|
||||
this.setupShadowRoot();
|
||||
},
|
||||
|
||||
template: `<div class="inner">
|
||||
<div class="line left"></div>
|
||||
<div class="middle"><content></content></div>
|
||||
<div class="line right"></div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.inner {
|
||||
display: flex;
|
||||
margin: 16px 16px 0 16px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.line {
|
||||
position: relative;
|
||||
height: 2px;
|
||||
flex: 1;
|
||||
|
||||
background:
|
||||
var(--border-color,
|
||||
var(--background-plus));
|
||||
}
|
||||
|
||||
.middle {
|
||||
margin: 0 14px 0 14px;
|
||||
padding: 0;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
|
||||
color:
|
||||
var(--color-epsilon);
|
||||
}
|
||||
|
||||
a,
|
||||
button {
|
||||
position: relative;
|
||||
display: block;
|
||||
padding-right: 16px;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
|
||||
color:
|
||||
var(--highlight-color);
|
||||
}
|
||||
|
||||
/**
|
||||
* .pressed
|
||||
*/
|
||||
|
||||
a:active,
|
||||
button:active {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
a:after,
|
||||
button:after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
top: 6px;
|
||||
right: 0px;
|
||||
border-bottom: 8px solid;
|
||||
border-left: 8px solid transparent;
|
||||
|
||||
border-bottom-color:
|
||||
var(--highlight-color,
|
||||
var(--color-zeta))
|
||||
}
|
||||
|
||||
</style>`
|
||||
});
|
||||
|
||||
});})((function(n,w){'use strict';return typeof define=='function'&&define.amd?
|
||||
define:typeof module=='object'?function(c){c(require,exports,module);}:
|
||||
function(c){var m={exports:{}},r=function(n){return w[n];};
|
||||
w[n]=c(r,m.exports,m)||m.exports;};})('gaia-sub-header',this));
|
||||
33
gaia/distros/spark/apps/sharing/components/gaia-sub-header/index.html
Executable file
33
gaia/distros/spark/apps/sharing/components/gaia-sub-header/index.html
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title><gaia-sub-header></title>
|
||||
<meta name="description" content="gaia-sub-header example" />
|
||||
<link rel="stylesheet" type="text/css" href="bower_components/gaia-theme/gaia-base.css">
|
||||
<link rel="stylesheet" type="text/css" href="bower_components/gaia-theme/gaia-theme.css">
|
||||
<link rel="stylesheet" type="text/css" href="bower_components/gaia-fonts/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="bower_components/gaia-icons/style.css">
|
||||
<script src="bower_components/gaia-theme/lib/gaia-theme-selector.js"></script>
|
||||
<script src="bower_components/pressed/pressed.js"></script>
|
||||
<script src="gaia-sub-header.js"></script>
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
padding: 16px;
|
||||
padding-top: 48px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body role="application">
|
||||
<gaia-theme-selector></gaia-theme-selector>
|
||||
<h1 class="large l-align-center l-mb-mega"><gaia-sub-header></h1>
|
||||
<section>
|
||||
<gaia-sub-header>Sub-Header</gaia-sub-header>
|
||||
</section>
|
||||
<section>
|
||||
<gaia-sub-header><a href="#">Gaia Sub-Header Link</a></gaia-sub-header>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue