1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-26 03:02:25 -05:00

Merge branch 'redesign'

This commit is contained in:
Lance Stout 2013-09-25 09:52:55 -07:00
commit f95d6d0017
7 changed files with 37 additions and 16 deletions

View File

@ -131,7 +131,7 @@ exports.pages.groupchat = function anonymous(locals) {
exports.pages.main = function anonymous(locals) { exports.pages.main = function anonymous(locals) {
var buf = []; var buf = [];
with (locals || {}) { with (locals || {}) {
buf.push('<section class="page main"><div><h3>Current status<span contenteditable="true" class="status"></span></h3></div><div id="avatarChanger"><h3>Change Avatar</h3><div class="uploadRegion"><p>Drag and drop a new avatar here</p><img/><form><input id="uploader" type="file"/></form></div></div><div><h3>Alerts</h3><button class="enableAlerts">Enable alerts</button></div></section>'); buf.push('<section class="page main"><div><h3>Current status</h3><div contenteditable="true" class="status"></div></div><div id="avatarChanger"><h3>Change Avatar</h3><div class="uploadRegion"><p>Drag and drop a new avatar here</p><img/><form><input id="uploader" type="file"/></form></div></div><div><h3>Alerts</h3><button class="enableAlerts">Enable alerts</button></div></section>');
} }
return buf.join(""); return buf.join("");
}; };

View File

@ -2,7 +2,7 @@ section.page.main
div div
h3 Current status h3 Current status
span.status(contenteditable="true") .status(contenteditable="true")
div#avatarChanger div#avatarChanger
h3 Change Avatar h3 Change Avatar

View File

@ -109,7 +109,7 @@
content: 'edited ' content: 'edited '
&.pending &.pending
background-color: red color: lighten($baseText, 50%)
.body .body
display: inline display: inline

View File

@ -27,7 +27,8 @@ input[type=text]:focus,
input[type=email]:focus, input[type=email]:focus,
input[type=search]:focus, input[type=search]:focus,
input[type=password]:focus, input[type=password]:focus,
textarea:focus textarea:focus,
.main .status:focus
outline: none outline: none
border: 1px solid lighten($activeBlue, 50%) border: 1px solid lighten($activeBlue, 50%)

View File

@ -66,7 +66,7 @@
&:hover &:hover
background: $sidebarActive background: $sidebarActive
&.hasUnread .unread .unread:not(:empty)
display: block display: block
&.online, &.chat, &.dnd, &.away, &.xa &.online, &.chat, &.dnd, &.away, &.xa
@ -146,12 +146,13 @@
.status .status
color: $textSecondary color: $textSecondary
font-size: 10px font-size: 10px
font-weight: 400
line-height: 12px line-height: 12px
margin: 0 margin: 0
margin-left: 30px margin-left: 40px
&:not(:empty) &:not(:empty)
margin-top: -2px margin-top: -8px
.unread .unread
display: none display: none

View File

@ -1,14 +1,20 @@
@import '../_variables' @import '../_variables'
@import '../_mixins' @import '../_mixins'
.main div .main > div
padding: 20px padding: 20px
border-bottom: 1px solid $grayOutline border-bottom: 1px solid $grayOutline
&:last-of-type &:last-of-type
border: none border: none
.status
padding: 5px
background: $grayBackground
roundall(3px)
.uploadRegion .uploadRegion
padding: 15px
font-size: $fontSmall font-size: $fontSmall
roundall(3px) roundall(3px)
margin: 10px 0 margin: 10px 0

View File

@ -384,8 +384,8 @@ h3 {
#bookmarks li:hover { #bookmarks li:hover {
background: #1f2d49; background: #1f2d49;
} }
#roster li:hover.hasUnread .unread, #roster li:hover .unread:not(:empty),
#bookmarks li:hover.hasUnread .unread { #bookmarks li:hover .unread:not(:empty) {
display: block; display: block;
} }
#roster li.online:after, #roster li.online:after,
@ -503,13 +503,14 @@ h3 {
#bookmarks li .status { #bookmarks li .status {
color: #b7b7b7; color: #b7b7b7;
font-size: 10px; font-size: 10px;
font-weight: 400;
line-height: 12px; line-height: 12px;
margin: 0; margin: 0;
margin-left: 30px; margin-left: 40px;
} }
#roster li .status:not(:empty), #roster li .status:not(:empty),
#bookmarks li .status:not(:empty) { #bookmarks li .status:not(:empty) {
margin-top: -2px; margin-top: -8px;
} }
#roster li .unread, #roster li .unread,
#bookmarks li .unread { #bookmarks li .unread {
@ -727,7 +728,7 @@ h3 {
content: 'edited '; content: 'edited ';
} }
.messages .message.pending { .messages .message.pending {
background-color: #f00; color: #ababab;
} }
.messages .message .body { .messages .message .body {
display: inline; display: inline;
@ -781,14 +782,25 @@ h3 {
border: 1px solid #efe391; border: 1px solid #efe391;
color: #d2bd2d; color: #d2bd2d;
} }
.main div { .main > div {
padding: 20px; padding: 20px;
border-bottom: 1px solid #e4e4e4; border-bottom: 1px solid #e4e4e4;
} }
.main div:last-of-type { .main > div:last-of-type {
border: none; border: none;
} }
.main > div .status {
padding: 5px;
background: #f7f7f7;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
-o-border-radius: 3px;
-border-radius: 3px;
border-radius: 3px;
}
.uploadRegion { .uploadRegion {
padding: 15px;
font-size: 12px; font-size: 12px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
@ -905,7 +917,8 @@ input[type=text]:focus,
input[type=email]:focus, input[type=email]:focus,
input[type=search]:focus, input[type=search]:focus,
input[type=password]:focus, input[type=password]:focus,
textarea:focus { textarea:focus,
.main .status:focus {
outline: none; outline: none;
border: 1px solid #78daff; border: 1px solid #78daff;
} }