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
28
gaia/distros/spark/apps/directory/components/gaia-sub-header/bower.json
Executable file
28
gaia/distros/spark/apps/directory/components/gaia-sub-header/bower.json
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "gaia-sub-header",
|
||||
"version": "0.4.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",
|
||||
"index.html",
|
||||
"package.json",
|
||||
"README.md"
|
||||
],
|
||||
"devDependencies": {
|
||||
"base": "gaia-components/base",
|
||||
"gaia-theme": "gaia-components/gaia-theme",
|
||||
"gaia-fonts": "gaia-components/gaia-fonts"
|
||||
},
|
||||
"dependencies": {
|
||||
"gaia-component": "gaia-components/gaia-component#^0.3.8"
|
||||
}
|
||||
}
|
||||
103
gaia/distros/spark/apps/directory/components/gaia-sub-header/gaia-sub-header.js
Executable file
103
gaia/distros/spark/apps/directory/components/gaia-sub-header/gaia-sub-header.js
Executable file
|
|
@ -0,0 +1,103 @@
|
|||
(function(define){'use strict';define(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(--title-color);
|
||||
}
|
||||
|
||||
a,
|
||||
button {
|
||||
position: relative;
|
||||
display: block;
|
||||
-moz-padding-end: 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;
|
||||
-moz-border-end: 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));
|
||||
Loading…
Reference in a new issue