1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Merge remote-tracking branch 'origin/AD-456-ikonotv-branded-page-for-registra' into AD-943-add-custom-additional-fields

This commit is contained in:
Tim Daubenschütz 2015-09-22 13:38:31 +02:00
commit bd5aa266b1
4 changed files with 114 additions and 23 deletions

View File

@ -71,6 +71,9 @@ class AppGateway {
type = settings.type;
subdomain = settings.subdomain;
}
window.document.body.classList.add('client--' + subdomain);
EventActions.applicationWillBoot(settings);
window.appRouter = Router.run(getRoutes(type, subdomain), Router.HistoryLocation, (App) => {
React.render(

View File

@ -37,11 +37,17 @@ let IkonotvPieceList = React.createClass({
accordionListItemType={IkonotvAccordionListItem}
filterParams={[{
label: getLangText('Show works I have'),
items: [{
key: 'acl_loaned',
label: getLangText('loaned to IkonoTV')
}]
}]}/>
items: [
{
key: 'submitted',
label: getLangText('submitted')
},
{
key: 'accepted',
label: getLangText('loaned')
}
]
}]}/>
</div>
);
}

View File

@ -32,7 +32,7 @@ let WalletApp = React.createClass({
}
return (
<div className={classNames('ascribe-wallet-app', 'client--' + subdomain, activeRoutes)}>
<div className={classNames('ascribe-wallet-app', activeRoutes)}>
<div className='container'>
{header}
<RouteHandler />

View File

@ -1,5 +1,6 @@
$ikono--bg-color: #0066cc;
$ikono--button-color: #993399;
$ikono--landing-bg-color: #06c;
$ikono--bg-color: #939;
$ikono--button-color: $ikono--bg-color;
$ikono--logo: 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/ikonotv/ikono_tv.png';
@ -81,27 +82,17 @@ $ikono--logo: 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/ikonotv/ik
}
.client--ikonotv.route--landing .btn-default,
.client--ikonotv.route--signup .ascribe-btn-login,
.client--ikonotv.route--login .ascribe-btn-login {
background-color: $ikono--button-color;
border: none;
}
.client--ikonotv.route--landing {
background-color: $ikono--bg-color;
.client--ikonotv .route--landing {
background-color: $ikono--landing-bg-color;
margin: 0;
width: 100%;
padding: 5em 1em;
}
.client--ikonotv.route--login,
.client--ikonotv.route--signup {
background-color: $ikono--bg-color;
.client--ikonotv .route--login,
.client--ikonotv .route--signup {
background-color: $ikono--landing-bg-color;
.ascribe-btn-login {
display: block;
@ -298,3 +289,94 @@ $ikono--logo: 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/ikonotv/ik
}
}
}
// buttons!
// thought of the day:
// "every great atrocity is the result of people just following orders"
.client--ikonotv {
.ascribe-piece-list-toolbar-filter-widget button {
background-color: transparent;
border: 1px solid transparent;
color: $ikono--button-color;
&:hover,
&:active {
background-color: $ikono--button-color !important;
border-color: $ikono--button-color !important;
color: white;
}
}
.ascribe-btn-login,
.btn-default {
background-color: $ikono--button-color;
border-color: $ikono--button-color;
&:active:hover,
&:active:focus,
&:active.focus,
&.active:hover,
&.active:focus,
&.active.focus {
background-color: darken($ikono--button-color, 20%);
border-color: darken($ikono--button-color, 20%);
}
}
.open > .btn-default.dropdown-toggle:hover,
.open > .btn-default.dropdown-toggle:focus,
.open > .btn-default.dropdown-toggle.focus {
background-color: darken($ikono--button-color, 20%);
border-color: darken($ikono--button-color, 20%);
}
.pager li > a, .pager li > span {
background-color: $ikono--button-color;
border-color: $ikono--button-color;
}
}
// inputs!
.client--ikonotv {
.ascribe-input-glyph > .form-group > .input-group > .input-group-addon > .filter-glyph {
color: $ikono--button-color;
}
.ascribe-input-glyph > .form-group > .input-group > .input-group-addon,
.ascribe-input-glyph > .form-group > .input-group input {
border-color: $ikono--button-color;
}
.ascribe-settings-property-collapsible-toggle [type=checkbox]:checked + .checkbox:before,
.ascribe-checkbox-wrapper [type=checkbox]:checked + .checkbox:before {
color: $ikono--button-color;
}
}
// properties!
.client--ikonotv {
.is-focused {
border-left-color: $ikono--button-color !important;
background-color: rgba($ikono--button-color, .05);
}
.ascribe-settings-wrapper:hover {
border-left-color: rgba($ikono--button-color, .5);
}
}
.client--ikonotv {
.ascribe-accordion-list-item .wrapper:hover {
background-color: rgba($ikono--button-color, .05);
}
}
// intercom stuff
.client--ikonotv {
#intercom-container .intercom-launcher-button {
background-color: $ikono--button-color;
border-color: $ikono--button-color;
}
}