This commit is contained in:
Peli de Halleux 2015-06-05 09:13:38 -07:00
Родитель 5c8cc5ab42
Коммит 8e6677394d
4 изменённых файлов: 46 добавлений и 7 удалений

Просмотреть файл

@ -22,11 +22,30 @@
if (siteHeader) { if (siteHeader) {
HTML.fixWp8Links(siteHeader) HTML.fixWp8Links(siteHeader)
var siteLogo = elt("siteLogo"); var siteLogo = elt("siteLogo");
if (siteLogo) siteLogo.withClick(() => window.location.pathname = "/"); if (siteLogo) siteLogo.withClick(() => window.location.href = "/");
if (Cloud.getUserId()) { if (Cloud.getUserId()) {
var siteNotifications = elt("siteNotifications"); var siteNotifications = elt("siteNotifications");
if (siteNotifications) this.addNotificationCounter(siteNotifications); if (siteNotifications) this.addNotificationCounter(siteNotifications);
} }
var siteMore = elt("siteMore");
if (siteMore) {
siteMore.withClick(() => {
var m = new ModalDialog();
var siteMenu = elt("siteMenu");
if (siteMenu) {
Util.toArray(siteMenu.getElementsByTagName("A")).forEach((a : HTMLAnchorElement) => {
m.add(div('siteMenuBtn', a.innerText).withClick(() => {
m.dismiss();
if (/^#/.test(a.href))
Util.setHash(a.href)
else window.location.href = a.href;
}))
})
}
m.fullBlack();
m.show();
})
}
} }
this.initSignin(); this.initSignin();
} }

Просмотреть файл

@ -393,6 +393,11 @@ module TDev
this.outerDialog.setChildren(this.dialog); this.outerDialog.setChildren(this.dialog);
} }
public fullBlack()
{
this.outerDialog.className += " modalFullBlack";
}
public fullWhite() public fullWhite()
{ {
this.outerDialog.className += " modalFullWhite"; this.outerDialog.className += " modalFullWhite";

Просмотреть файл

@ -185,7 +185,9 @@ input.logSearchInput {
.modalFullYellow a, .modalFullYellow a,
.modalFullYellow a:visited, .modalFullYellow a:visited,
.modalFullWhite a, .modalFullWhite a,
.modalFullWhite a:visited { .modalFullWhite a:visited,
.modalFullBlack a,
.modalFullBlack a:visited {
color: #008b00; color: #008b00;
} }
.modalDialogChooseItem { .modalDialogChooseItem {
@ -294,6 +296,10 @@ font-size:1.2em;
background: white; background: white;
} }
.modalFullBlack .modalDialogInner {
background: black;
}
.modalFullYellow .modalDialogInner { .modalFullYellow .modalDialogInner {
background: #ccc; background: #ccc;
} }
@ -302,6 +308,9 @@ font-size:1.2em;
.modalFullWhite .modalDialog { .modalFullWhite .modalDialog {
color: black; color: black;
} }
.modalFullBlack .modalDialog {
color:white;
}
.floatingFrown { .floatingFrown {
float: left; float: left;
@ -524,25 +533,30 @@ textarea
color: black; color: black;
border-color: black; border-color: black;
} }
.modalFullBlack .modalDialog .wall-button
{
color: white;
border-color: white;
}
.big-button { .big-button {
font-size:1.3em; font-size:1.3em;
} }
.modalFullWhite .wall-dialog-buttons { .modalFullWhite .wall-dialog-buttons, .modalFullBlack .wall-dialog-buttons {
margin-top: 1.5em; margin-top: 1.5em;
} }
.modalFullWhite h3 { .modalFullWhite h3, .modalFullBlack h3 {
font-size: 2em; font-size: 2em;
font-weight: 400; font-weight: 400;
} }
.modalFullWhite p { .modalFullWhite p, .modalFullBlack p {
font-size: 1.2em; font-size: 1.2em;
} }
.modalFullWhite p.agree { .modalFullWhite p.agree, .modalFullBlack p.agree {
color: #777; color: #777;
font-size:0.8em; font-size:0.8em;
} }

Просмотреть файл

@ -2426,7 +2426,8 @@ div.decl > div.stmt {
} }
.modalFullWhite .progressDot, .modalFullWhite .progressDot,
.modalFullYellow .progressDot .modalFullYellow .progressDot,
.modalFullBlack .progressDot
{ {
background: #008b00; background: #008b00;
} }