From 9983410594039e253a80a54a0401226bd04f2135 Mon Sep 17 00:00:00 2001 From: Jonathon Wilson Date: Thu, 22 Nov 2012 12:36:43 -0700 Subject: [PATCH] Start reorg of stylesheets in anticipation of visual changes. --- app/assets/images/logo.png | Bin 0 -> 6047 bytes app/assets/javascripts/layout.js | 6 +- app/assets/stylesheets/client/common.css.scss | 8 + app/assets/stylesheets/client/dialog.css.scss | 25 ++ app/assets/stylesheets/client/footer.css.scss | 24 ++ app/assets/stylesheets/client/header.css.scss | 51 ++++ app/assets/stylesheets/client/home.css.scss | 23 ++ .../stylesheets/client/jamkazam.css.scss | 251 +----------------- app/assets/stylesheets/client/notify.css.scss | 11 + .../stylesheets/client/session.css.scss | 49 ++++ .../stylesheets/client/sidebar.css.scss | 67 +++++ app/views/clients/index.html.erb | 15 +- app/views/layouts/client.html.erb | 8 + app/views/layouts/hold | 0 spec/javascripts/layout.spec.js | 4 +- 15 files changed, 294 insertions(+), 248 deletions(-) create mode 100644 app/assets/images/logo.png create mode 100644 app/assets/stylesheets/client/dialog.css.scss create mode 100644 app/assets/stylesheets/client/footer.css.scss create mode 100644 app/assets/stylesheets/client/header.css.scss create mode 100644 app/assets/stylesheets/client/home.css.scss create mode 100644 app/assets/stylesheets/client/notify.css.scss create mode 100644 app/assets/stylesheets/client/session.css.scss create mode 100644 app/assets/stylesheets/client/sidebar.css.scss create mode 100644 app/views/layouts/hold diff --git a/app/assets/images/logo.png b/app/assets/images/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..8192e9d510b2f020f2205dc089c8ab1dcdcc66a7 GIT binary patch literal 6047 zcmW+)1yoc|7pEka5NYXLkd_k3r8@;gq`N^%Vrc;Z7exL@gRq2@fOLyUhjh2pf`sG( z0^j(}Id9+Y+jr*7%)R#)H&$0$g&0B$!N9;ER#R2f2lv0=62Qj-pQ<*3)!>Hdt*;`F z@nwV_1%42Cs=n~Xz#t_5cVS{=WYK_!cs^=cN_dNeR1Y{vnmB?mF)*kft0~GE_|NZ~ z1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R?F zSSup<0kBE@{QOHxOFYlNl$VudQl7GtIoaCc{5C!WVt|1mJ157e3`pwwni_Jg_aR23 z_lb$^Y;8}^&!HR~!x?4<&z?p866ZG2{6X}JW}%gaG+a1^1b&l)BKJOixPwH{-09usZ-tPh@0dxVZY@)7^wz&~z~~BmT<`4u5ZN zaMSA*eX%Z=PL7mbi9yvJFbe=V#1m|2j9$KU@oI$FzSh+xH73HXc8OkX+y_%836ZXENL)O_wL{!w!&=45C z)uAe5UQjHci`3IzRD=sHt2X8(4bBuL#_bZUFnVcjF7phhXJUfrznuj{KTBHS)u)t^0^0C)}zjGf))lG21?$O{%$MN19Ynf2L@_Q+%z-@M^(iWuq(Gpn%wpu zFoWjK4v970oTHI`+0-_5KKO@@>Q}@Y4wQyvkZlgV4>r4Fmc4GwZ1WYtpwQq?wtSYzyk_?vn)|S$zAZmKF{6 z52K^HTuZ&Zy_M!|&UCVL(uC<*1W!3(p*y220Q&NDhxpR7vH<_kE>z7qhLBQv(eqq?Eu3A6l#<_u-u?d*1BRq uOR47eEDGUzy7*x3ihSD57I`UmhrO0oE{Huoh7J1Z7-~w|ieKa{BmM^%rPwF{ literal 0 HcmV?d00001 diff --git a/app/assets/javascripts/layout.js b/app/assets/javascripts/layout.js index d1f403fed..715e0955b 100644 --- a/app/assets/javascripts/layout.js +++ b/app/assets/javascripts/layout.js @@ -33,10 +33,10 @@ notifyGutter: 10, collapsedSidebar: 30, panelHeaderHeight: 48, - gutter: 20, // Margin around the whole UI - screenMargin: 20, // Margin around screens (not headers/sidebar) + gutter: 60, // Margin around the whole UI + screenMargin: 0, // Margin around screens (not headers/sidebar) gridOuterMargin: 6, // Outer margin on Grids (added to screenMargin if screen) - gridPadding: 4, // Padding around grid cells. Added to outer margin. + gridPadding: 8, // Padding around grid cells. Added to outer margin. animationDuration: 400 }; diff --git a/app/assets/stylesheets/client/common.css.scss b/app/assets/stylesheets/client/common.css.scss index 6b9f53dad..5060b5793 100644 --- a/app/assets/stylesheets/client/common.css.scss +++ b/app/assets/stylesheets/client/common.css.scss @@ -2,6 +2,14 @@ * Variables used across files */ +$ColorUIBackground: #323232; /* Dark Grey */ +$ColorScreenPrimary: #f34e1d; /* Orange */ +$ColorElementPrimary: #007985; /* Teal */ +$ColorText: #ffffff; /* White */ +$ColorLink: #9ec030; /* Lime */ +$ColorScreenBackground: lighten($ColorUIBackground, 10%); + + $color1: #006AB6; /* mid blue */ $color2: #9A9084; /* warm gray */ $color3: #B11254; /* magenta */ diff --git a/app/assets/stylesheets/client/dialog.css.scss b/app/assets/stylesheets/client/dialog.css.scss new file mode 100644 index 000000000..e396b6af3 --- /dev/null +++ b/app/assets/stylesheets/client/dialog.css.scss @@ -0,0 +1,25 @@ +@import "client/common.css.scss"; + +.dialog { + display:none; + background-color:$ColorElementPrimary; + border: #666; + color:#000; + min-width: 400px; + min-height: 350px; +} + +.dialog a { + color: $color1; +} + +.dialog h1 { + font-weight: bold; + font-size: 150%; + margin: 12px; +} +.dialog .panel { + background-color: shade($ColorElementPrimary, 6%); + margin:12px; + padding: 12px; +} diff --git a/app/assets/stylesheets/client/footer.css.scss b/app/assets/stylesheets/client/footer.css.scss new file mode 100644 index 000000000..bce0eb0c1 --- /dev/null +++ b/app/assets/stylesheets/client/footer.css.scss @@ -0,0 +1,24 @@ +@import "client/common.css.scss"; + +.footer { + position: absolute; + bottom:10px; + left: 0px; + width: 100%; + color:$ColorText; + margin: 0px 0px 30px 60px; +} + +.footer p { + font-size: 80%; + margin:3px; +} + +.footer p.left { + float:left; +} + +.footer p.right { + float:right; + margin-right: 120px; +} diff --git a/app/assets/stylesheets/client/header.css.scss b/app/assets/stylesheets/client/header.css.scss new file mode 100644 index 000000000..d365ff5bf --- /dev/null +++ b/app/assets/stylesheets/client/header.css.scss @@ -0,0 +1,51 @@ +@import "compass/utilities/text/replacement"; +@import "client/common.css.scss"; + +div[layout="header"] h1 { + width: 252px; + height:47px; + @include replace-text(image-url("logo.png")); +} + +/*.header h1 {*/ + /*margin:22px;*/ + /*font-size:300%;*/ + /*font-family: 'LatoLight', Arial, sans-serif;*/ +/*}*/ + +.userinfo { + position:absolute; + right:0px; + top:0px; + width: 266px; + z-index:5; +} +.userinfo img.avatar { + float:left; +} +.userinfo .username { + float:left; + margin-top: 18px; + cursor: pointer; +} +.userinfo h2 { + font-size:120%; + font-weight: bold; + float:left; + margin-right:4px; +} +.userinfo .profile-toggle { + display:inline-block; +} +.userinfo ul { + clear:both; + background: $color7; + display:none; +} +.userinfo li { + display:block; + margin: 2px; + padding: 2px; + background: scale-lightness($color7, 10%); +} + diff --git a/app/assets/stylesheets/client/home.css.scss b/app/assets/stylesheets/client/home.css.scss new file mode 100644 index 000000000..dde79855f --- /dev/null +++ b/app/assets/stylesheets/client/home.css.scss @@ -0,0 +1,23 @@ +@import "compass/css3/images"; +@import "compass/css3/background-size"; +@import "client/common.css.scss"; + +.homecard { + cursor:pointer; + background-color: shade($ColorScreenPrimary, 10%); + border: 1px solid $translucent1; +} +.homecard h2 { + background-color: $ColorScreenPrimary; + margin: 0px; + padding: 3px; + text-align:right; + font-size:150%; + font-weight: 300; + font-family: 'LatoLight', Arial, sans-serif; +} + +.homecard.hover { + border: 1px solid $translucent2 !important; +} + diff --git a/app/assets/stylesheets/client/jamkazam.css.scss b/app/assets/stylesheets/client/jamkazam.css.scss index bdc1311ad..90d4e6fd2 100644 --- a/app/assets/stylesheets/client/jamkazam.css.scss +++ b/app/assets/stylesheets/client/jamkazam.css.scss @@ -11,21 +11,17 @@ @import "client/common.css.scss"; body { - color: $text; - /* - @include background-image( - linear-gradient(top, $color7, scale-lightness($color7, 30%))); - */ - background-color: shade($color7, 10%); + color: $ColorText; + background-color: $ColorUIBackground; width: 100%; - height: 1200px; + height: 100%; overflow: hidden; font-family: 'LatoRegular', Arial, sans-serif; } a { cursor:pointer; - color: $link; + color: $ColorLink; } a:hover { @@ -81,90 +77,13 @@ label { background-color: shade($color7, 10%); } -.notify { - display:none; - background-color: $color8; - color:#000; - overflow:auto; -} -.notify a { - color:#000; - font-weight:bold; -} - -.dialog { - display:none; - background-color:$color8; - border: #666; - color:#000; - min-width: 400px; - min-height: 350px; -} - -.dialog a { - color: $color1; -} - -.dialog h1 { - font-weight: bold; - font-size: 150%; - margin: 12px; -} -.dialog .panel { - background-color: shade($color8, 6%); - margin:12px; - padding: 12px; -} - - - -.header h1 { - margin:22px; - font-size:300%; - font-family: 'LatoLight', Arial, sans-serif; -} - -.userinfo { - position:absolute; - right:0px; - top:0px; - width: 266px; - z-index:5; -} -.userinfo img.avatar { - float:left; -} -.userinfo .username { - float:left; - margin-top: 18px; - cursor: pointer; -} -.userinfo h2 { - font-size:120%; - font-weight: bold; - float:left; - margin-right:4px; -} -.userinfo .profile-toggle { - display:inline-block; -} -.userinfo ul { - clear:both; - background: $color7; - display:none; -} -.userinfo li { - display:block; - margin: 2px; - padding: 2px; - background: scale-lightness($color7, 10%); -} - .screen { display:none; } .screen.secondary { + border: 1px solid $ColorScreenPrimary; + background-color:$ColorScreenBackground; } .buttonrow, .screen.secondary .footer { position: absolute; @@ -196,109 +115,6 @@ label { font-weight: bold; } -.homecard { - cursor:pointer; - border: 1px solid $translucent1; -} -.homecard h2 { - position:absolute; - bottom:0px; - margin: 18px; - font-size:240%; - font-weight: 300; - font-family: 'LatoLight', Arial, sans-serif; -} - -.homecard.hover { - border: 1px solid $translucent2 !important; -} - -.homecard.createsession { - background-color: $color10; - @include background-image( - linear-gradient(bottom left, $color10, scale-lightness($color10, $gradient-diff))); -} -.homecard.findsession { - background-color: $color6; - @include background-image( - linear-gradient(bottom left, $color6, scale-lightness($color6, $gradient-diff))); -} -.homecard.practice { - background-color: $color9; - @include background-image( - linear-gradient(bottom left, $color9, scale-lightness($color9, $gradient-diff))); -} -.homecard.bands { - background-color: $color1; - @include background-image( - linear-gradient(bottom left, $color1, scale-lightness($color1, $gradient-diff))); -} -.homecard.recordings { - background-color: $color5; - @include background-image( - linear-gradient(bottom left, shade($color5, $gradient-diff), $color5)); -} - -.sidebar { - background-color: rgba($color8, 0.1); -} -.sidebar .panel-header { - background-color: rgba(#fff, 0.2); -} -.sidebar h2 { - padding: 12px; - font-size: 180%; - font-family: LatoLight, Arial, sans-serif; -} -.sidebar .expander { - cursor:pointer; - background-color: $color8; - color: $color12; -} -.sidebar .expander p { - font-size: 100%; - font-weight: bold; - font-family: LatoBold, Arial, sans-serif; - padding: 8px; -} -.sidebar li { - position: relative; - height: 48px; - line-height:48px; - background-color: rgba($color8, 0.1); - margin: 4px 0px 4px 24px; -} -.sidebar li.offline { - color: shade($text, 40%); -} -.sidebar li img { - margin: 8px; - float:left; -} -.sidebar .name { - display:block; - position:absolute; - line-height: 18px; - height: 18px; - left: 48px; - top: 10px; - font-weight: bold; - font-family: LatoBold, Arial, sans-serif; - font-size:110%; -} - -.sidebar .status { - display:block; - position:absolute; - line-height:12px; - height: 12px; - left: 48px; - top: 26px; - font-style: italic; - font-family: LatoItalic, Arial, sans-serif; - font-size: 100%; -} - .avatar { display: block; float:left; @@ -322,8 +138,8 @@ label { /* TODO - generalize */ .instrument, .invitation { margin: 1px; - background: $color8; - color:#000; + background: $ColorElementPrimary; + color:$ColorText; padding: 3px; width:auto; float:left; @@ -342,8 +158,8 @@ label { /* Autocomplete */ .autocomplete { border:1px solid #999; - background:$color8; - color:#000; + background:$ColorElementPrimary; + color:$ColorText; cursor:default; text-align:left; max-height:350px; @@ -360,51 +176,4 @@ label { .autocomplete strong { font-weight:normal; color:#3399FF; } -/* Session Tracks */ -.session-track { - width: 125px; - height: 300px; - border: 1px solid #fff; - position:relative; - float:left; -} -.session-track [track-role] { margin:4px; } -.session-track .latency { text-align:center; } -.session-track .latency.good { color:#00ff00; } -.session-track .latency.medium { color:#ffff00; } -.session-track .latency.bad { color:#ff0000; } - -.session-track .mute { - background-color:#bbb; color:#000; - position: absolute; - bottom: 80px; - width: 117px; - text-align: center; -} - -.session-track .name { - background-color:#ddd; color:#000; - position: absolute; - bottom: 60px; - width: 117px; - text-align: center; -} -.session-track .part { - background-color:#fff; color:#000; - position: absolute; - bottom: 40px; - width: 117px; - text-align: center; -} - -.session-track .avatar { - position:absolute; - width: 32px; - height: 32px; - bottom:4px; - left: 46px; -} -.session-track .avatar img { - width: 32px; height: 32px; -} diff --git a/app/assets/stylesheets/client/notify.css.scss b/app/assets/stylesheets/client/notify.css.scss new file mode 100644 index 000000000..6feaebd7c --- /dev/null +++ b/app/assets/stylesheets/client/notify.css.scss @@ -0,0 +1,11 @@ +@import "client/common.css.scss"; + +.notify { + display:none; + background-color: $ColorElementPrimary; + color:$ColorText; + overflow:auto; +} +.notify a { + font-weight:bold; +} diff --git a/app/assets/stylesheets/client/session.css.scss b/app/assets/stylesheets/client/session.css.scss new file mode 100644 index 000000000..ca24110a9 --- /dev/null +++ b/app/assets/stylesheets/client/session.css.scss @@ -0,0 +1,49 @@ +@import "client/common.css.scss"; + +/* Session Tracks */ +.session-track { + width: 125px; + height: 300px; + border: 1px solid #fff; + position:relative; + float:left; +} +.session-track [track-role] { margin:4px; } +.session-track .latency { text-align:center; } +.session-track .latency.good { color:#00ff00; } +.session-track .latency.medium { color:#ffff00; } +.session-track .latency.bad { color:#ff0000; } + +.session-track .mute { + background-color:#bbb; color:#000; + position: absolute; + bottom: 80px; + width: 117px; + text-align: center; +} + +.session-track .name { + background-color:#ddd; color:#000; + position: absolute; + bottom: 60px; + width: 117px; + text-align: center; +} +.session-track .part { + background-color:#fff; color:#000; + position: absolute; + bottom: 40px; + width: 117px; + text-align: center; +} + +.session-track .avatar { + position:absolute; + width: 32px; + height: 32px; + bottom:4px; + left: 46px; +} +.session-track .avatar img { + width: 32px; height: 32px; +} diff --git a/app/assets/stylesheets/client/sidebar.css.scss b/app/assets/stylesheets/client/sidebar.css.scss new file mode 100644 index 000000000..9d4c76b00 --- /dev/null +++ b/app/assets/stylesheets/client/sidebar.css.scss @@ -0,0 +1,67 @@ +@import "client/common.css.scss"; + +.sidebar { + background-color: $ColorElementPrimary; +} +.sidebar .panel-header { + background-color: shade($ColorElementPrimary, 10); +} +.sidebar h2 { + padding: 12px; + font-size: 180%; + font-family: LatoLight, Arial, sans-serif; +} +.sidebar .expander { + cursor:pointer; + background-color:$ColorUIBackground; + color: $ColorElementPrimary; +} +.sidebar .expander p { + text-align:right; + font-size: 100%; + font-weight: bold; + font-family: LatoBold, Arial, sans-serif; + padding: 8px; +} +.sidebar .expander p span { + padding: 0px 4px; + margin: 0px 2px; + background-color: $ColorElementPrimary; + color: lighten($ColorElementPrimary, 15); +} +.sidebar li { + position: relative; + height: 48px; + line-height:48px; + margin: 4px 0px 4px 24px; +} +.sidebar li.offline { + color: shade($text, 40%); +} +.sidebar li img { + margin: 8px; + float:left; +} +.sidebar .name { + display:block; + position:absolute; + line-height: 18px; + height: 18px; + left: 48px; + top: 10px; + font-weight: bold; + font-family: LatoBold, Arial, sans-serif; + font-size:110%; +} + +.sidebar .status { + display:block; + position:absolute; + line-height:12px; + height: 12px; + left: 48px; + top: 26px; + font-style: italic; + font-family: LatoItalic, Arial, sans-serif; + font-size: 100%; +} diff --git a/app/views/clients/index.html.erb b/app/views/clients/index.html.erb index 55f293a7b..a97287a30 100644 --- a/app/views/clients/index.html.erb +++ b/app/views/clients/index.html.erb @@ -8,6 +8,17 @@

or Sign In

+ +