diff --git a/.gitignore b/.gitignore index d72a48344..1e08bdffb 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,7 @@ uploads/**/* *.swp *.pid -*.lck \ No newline at end of file +*.lck + +.sass-cache/* +*.supported \ No newline at end of file diff --git a/app/assets/images/desktop/select2/select2.png b/app/assets/images/desktop/select2/select2.png index 1d804ffb9..7f3786272 100755 Binary files a/app/assets/images/desktop/select2/select2.png and b/app/assets/images/desktop/select2/select2.png differ diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 3b7abbcbd..aec324f2a 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -867,7 +867,7 @@ var orbitDesktop = function(dom){ if(tile.data_category == "app") $li = $('
  • '+tile.title+'

  • '); else - $li = $('
  • Loading

    '+tile.title+'

  • '); + $li = $('
  • Loading

    '+tile.title+'

  • '); @@ -1667,20 +1667,18 @@ var orbitDesktop = function(dom){ }; this.simple_drop_down = function(){ // simple dropdown menu - if( !$('.sdm').children('.sdm_o').length > 0 ){ - return; - } else { - $('.sdm').hover(function(){ - $(this).stop(1,1).toggleClass('thmc2 thmtxt'); - }, function(){ - $(this).stop(1,1).toggleClass('thmc2 thmtxt'); - }); - $('.sdm').find('a').hover(function(){ - $(this).stop(1,1).toggleClass('thmc2 thmtxt'); - }, function(){ - $(this).stop(1,1).toggleClass('thmc2 thmtxt'); + var $sdm = $('.sdm'); + if( $sdm.find('.sdm_o') ){ + $sdm.find('a').andSelf().on({ + mouseenter: function(){ + $(this).addClass('thmc2 thmtxt'); + }, + mouseleave: function(){ + $(this).removeClass('thmc2 thmtxt'); + } }); } + }; this.simple_tab = function(){ // tab diff --git a/app/assets/javascripts/orbitdesktopAPI.js b/app/assets/javascripts/orbitdesktopAPI.js index d5680af96..9e4700ea8 100644 --- a/app/assets/javascripts/orbitdesktopAPI.js +++ b/app/assets/javascripts/orbitdesktopAPI.js @@ -147,7 +147,7 @@ var orbitDesktopAPI = function(){ return; } } - var whtml =$('
    '); + var whtml =$('
    '); $(o.contentHolder).append(whtml); var parentwindow = $(o.contentHolder).find("div#app_frame_"+o.windowcounter); var app_holder_height = parentwindow.height() - 72; diff --git a/app/assets/stylesheets/desktop/desktop-component.css b/app/assets/stylesheets/desktop/desktop-component.css index 9a1615f82..682779b2d 100644 --- a/app/assets/stylesheets/desktop/desktop-component.css +++ b/app/assets/stylesheets/desktop/desktop-component.css @@ -92,20 +92,17 @@ z-index: 9; left: 0; top: 60px; - font-size: 15px; } - -.sdm_o li { - border-top: solid 1px #f2f2f2; } - -.sdm_o li:first-child { - border: none; } - -.sdm_o a { - display: block; } - -.sdm_o .admtxt { - display: block; - line-height: 36px; } + font-size: 15px; + width: 120px; } + .sdm_o li { + border-top: solid 1px #f2f2f2; } + .sdm_o li:first-child { + border: none; } + .sdm_o a { + display: block; } + .sdm_o .admtxt { + display: block; + line-height: 36px; } /* simple dropdown menu with indicator */ .sdm_mdr .sdm_t { @@ -119,15 +116,12 @@ .s_menu { font-size: 15px; line-height: 36px; } - -.s_menu li { - border-top: solid 1px #dddddd; } - -.s_menu li:first-child { - border: none; } - -.s_menu a { - display: block; } + .s_menu li { + border-top: solid 1px #dddddd; } + .s_menu li:first-child { + border: none; } + .s_menu a { + display: block; } /* simple tabs */ .s_tab { @@ -197,7 +191,8 @@ .s_form input[type=text]:focus, .s_form input[type=password]:focus, .s_form textarea:focus { - background-color: #f7f7f7; } + background-color: #f7f7f7; + border-color: #c4c4c4; } .s_form textarea { resize: none; } .s_form textarea.full_height { @@ -250,27 +245,23 @@ line-height: 36px; position: relative; z-index: 9; } - -.toolbar .sdm, .toolbar .fn_g { - display: inline-block; - vertical-align: top; } - -.toolbar .sdm_o { - top: 36px; - background-color: #f0f0f0; } - -.toolbar button { - border: none; - outline: none; - padding: 0 16px; - margin: 0; - font-family: inherit; - font-size: 15px; - vertical-align: top; } - -.toolbar .fn_btn { - display: inline-block; - vertical-align: top; } + .toolbar .sdm, .toolbar .fn_g { + display: inline-block; + vertical-align: top; } + .toolbar .sdm_o { + top: 36px; + background-color: #f0f0f0; } + .toolbar button { + border: none; + outline: none; + padding: 0 16px; + margin: 0; + font-family: inherit; + font-size: 15px; + vertical-align: top; } + .toolbar .fn_btn { + display: inline-block; + vertical-align: top; } /* tiny scrollbar */ .tinycanvas { @@ -368,10 +359,7 @@ .tinycanvas:hover .scrollbar { visibility: visible; opacity: 1; } - -.toolbar + .tinycanvas, -.s_tab + .tinycanvas { - height: 480px; } - -#panel_r .tinycanvas { - padding: 12px 0; } + .toolbar + .tinycanvas, .s_tab + .tinycanvas { + height: 480px; } + #panel_r .tinycanvas { + padding: 12px 0; } diff --git a/app/assets/stylesheets/desktop/desktop-component.scss b/app/assets/stylesheets/desktop/desktop-component.scss index 37b203db3..0344b52d1 100644 --- a/app/assets/stylesheets/desktop/desktop-component.scss +++ b/app/assets/stylesheets/desktop/desktop-component.scss @@ -58,19 +58,21 @@ left: 0; top: 60px; font-size: 15px; + width: 120px; + + li { + border-top: solid 1px #f2f2f2; + } + li:first-child { + border: none; + } + a { + display: block; + } + .admtxt { + display: block; + line-height: 36px; } -.sdm_o li { - border-top: solid 1px #f2f2f2; -} -.sdm_o li:first-child { - border: none; -} -.sdm_o a { - display: block; -} -.sdm_o .admtxt { - display: block; - line-height: 36px; } /* simple dropdown menu with indicator */ @@ -86,15 +88,16 @@ .s_menu { font-size: 15px; line-height: 36px; -} -.s_menu li { - border-top: solid 1px #ddd; -} -.s_menu li:first-child { - border: none; -} -.s_menu a { - display: block; + + li { + border-top: solid 1px #ddd; + } + li:first-child { + border: none; + } + a { + display: block; + } } /* simple tabs */ @@ -165,6 +168,7 @@ &:focus { background-color: lighten($gray, 10%); + border-color: darken($gray, 10%); } } textarea { @@ -228,27 +232,28 @@ line-height: 36px; position: relative; z-index: 9; -} -.toolbar .sdm, .toolbar .fn_g { - display: inline-block; - vertical-align: top; -} -.toolbar .sdm_o { - top: 36px; - background-color: #f0f0f0; -} -.toolbar button { - border: none; - outline: none; - padding: 0 16px; - margin: 0; - font-family: inherit; - font-size: 15px; - vertical-align: top; -} -.toolbar .fn_btn { - display: inline-block; - vertical-align: top; + + .sdm, .fn_g { + display: inline-block; + vertical-align: top; + } + .sdm_o { + top: 36px; + background-color: #f0f0f0; + } + button { + border: none; + outline: none; + padding: 0 16px; + margin: 0; + font-family: inherit; + font-size: 15px; + vertical-align: top; + } + .fn_btn { + display: inline-block; + vertical-align: top; + } } /* tiny scrollbar */ @@ -351,11 +356,11 @@ visibility: visible; opacity: 1; } -} -.toolbar + .tinycanvas, -.s_tab + .tinycanvas { - height: 480px; -} -#panel_r .tinycanvas { - padding: 12px 0; + .toolbar + &, + .s_tab + & { + height: 480px; + } + #panel_r & { + padding: 12px 0; + } } \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/desktop-main.css b/app/assets/stylesheets/desktop/desktop-main.css index 2894694ef..1e9a31e3b 100644 --- a/app/assets/stylesheets/desktop/desktop-main.css +++ b/app/assets/stylesheets/desktop/desktop-main.css @@ -70,11 +70,14 @@ a:focus { .clear:after { display: table; width: 100%; - content: ''; } + content: ''; + clear: both; } .o-loading { font-size: 13px; font-weight: normal; } + .fullsize .o-loading { + padding: 12px; } .o-loading i { font-size: 20px; } @@ -466,6 +469,8 @@ a:focus { margin: 0 12px 0 0; position: relative; z-index: 9; } + .dtitle .sdm_o { + width: auto; } .tile { display: block; @@ -507,7 +512,6 @@ a:focus { .theme_preview { width: 528px; - height: 150px; line-height: 36px; font-size: 15px; } @@ -518,6 +522,11 @@ a:focus { margin-right: 12px; } .theme_plate > div:first-child { margin-right: 48px; } + .theme_plate .g_sep { + margin-right: 0; } + +#color_input th { + vertical-align: bottom; } .stock_wallpaper .ssl_item { margin-bottom: 6px; } @@ -527,6 +536,11 @@ a:focus { font-weight: normal; line-height: 60px; text-align: left; } + .s_title.size_large { + font-size: 36px; } + .s_title.size_small { + font-size: 15px; + line-height: 2em; } .s_subtitle { font-size: 15px; @@ -560,8 +574,18 @@ a:focus { max-width: 340px; } .g_sep { - width: 11px; - border-left: solid 1px white; } + width: 12px; + border-left: solid 1px white; + -webkit-box-sizing: border-box; + /* webkit */ + -khtml-box-sizing: border-box; + /* konqueror */ + -moz-box-sizing: border-box; + /* firefox */ + -ms-box-sizing: border-box; + /* ie */ + box-sizing: border-box; + /* css3 */ } .grp { height: 528px; @@ -586,7 +610,6 @@ a:focus { /* list item */ .list_t_item { - /*padding: 2px;*/ overflow: hidden; } .list_t_title { @@ -607,118 +630,74 @@ a:focus { font-size: 11px; -webkit-text-size-adjust: none; } -/* Connection Page */ -#connection_setting { - height: 492px; } - -#connection_setting .s_form { - float: left; - margin: 0 12px 0 0; - padding-left: 24px; - height: 100%; - border-left: solid 1px #dddddd; } - -#connection_setting .s_form:first-child { - padding-left: 0; - border: none; } - -#connection_setting .s_form label { - line-height: 30px; } - -#connection_setting .s_form .c_icon, #connection_setting .s_form .c_name { - display: inline-block; - vertical-align: middle; } - -#connection_setting .s_form .c_name { - padding: 0 12px; - font-size: 18px; } - -#connection_setting .s_form input[type=text], #connection_setting .s_form input[type=password] { - width: 202px; } - -#connection_setting .setting_btn { - margin-left: 12px; } - -#connection_setting .setting_btn.disable { - background-color: #ddd; - cursor: default; } - -#connection_setting .c_status { - float: right; - padding: 6px; - background-color: #eee; - color: #ccc; - font-size: 9px; - font-weight: normal; - -webkit-text-size-adjust: none; - -webkit-transition: background-color 0.5s ease; - -moz-transition: background-color 0.5s ease; - transition: background-color 0.5s ease; } - -#connection_setting .c_status_on { - background-color: #51A351; - color: #fff; } - -#connection_setting .c_info { - padding: 7px 6px; - background-color: #fcfcfc; - cursor: default; - font-size: 18px; - font-weight: normal; } - /* Journal Papers */ [page-name="journal_p_list"] .list_t_item .inner { padding-left: 30px; } - [page-name="journal_p_list"] .list_item_action { font-size: 12px; float: left; margin-left: -30px; } - -[page-name="journal_p_list"] .list_item_action a { - display: block; - width: 20px; - height: 20px; - line-height: 20px; - margin: 1px 1px 6px 1px; } - -[page-name="journal_p_list"] .list_item_action .icon-star-empty { - color: #999; - font-size: 20px; } - -[page-name="journal_p_list"] .list_item_action .icon-star { - color: #faa732; - font-size: 20px; } - -[page-name="journal_p_list"] .list_item_action .icon-check-empty { - color: #999; - font-size: 20px; } - -[page-name="journal_p_list"] .list_item_action .icon-check { - color: #333; - font-size: 20px; } - -[page-name="journal_p_list"] .list_t_item.file_view { - height: 148px; } - + [page-name="journal_p_list"] .list_item_action a { + display: block; + width: 20px; + height: 20px; + line-height: 20px; + margin: 1px 1px 6px 1px; } + [page-name="journal_p_list"] .list_item_action .icon-star-empty { + color: #999; + font-size: 20px; } + [page-name="journal_p_list"] .list_item_action .icon-star { + color: #faa732; + font-size: 20px; } + [page-name="journal_p_list"] .list_item_action .icon-check-empty { + color: #999; + font-size: 20px; } + [page-name="journal_p_list"] .list_item_action .icon-check { + color: #333; + font-size: 20px; } +[page-name="journal_p_list"] .file_view .list_t_des { + overflow: hidden; } [page-name="journal_p_list"] .file_view .file { - display: inline-block; - width: 62px; + float: left; + width: 120px; height: 50px; - text-align: center; } - -[page-name="journal_p_list"] .file_view .file:hover { - background-color: #ddd; } - -[page-name="journal_p_list"] .file_view .file img { - width: 24px; - display: block; - margin: 0 auto; - margin-top: 4px; } - -[page-name="journal_p_list"] .file_view .filetitle { - font-size: 11px; - -webkit-text-size-adjust: none; } + padding: 6px; + margin: 1px; + position: relative; + -webkit-box-sizing: border-box; + /* webkit */ + -khtml-box-sizing: border-box; + /* konqueror */ + -moz-box-sizing: border-box; + /* firefox */ + -ms-box-sizing: border-box; + /* ie */ + box-sizing: border-box; + /* css3 */ } + [page-name="journal_p_list"] .file_view .file:hover { + background-color: #f7f7f7; } + [page-name="journal_p_list"] .file_view .file img { + width: 38px; + height: 38px; + position: absolute; + left: 6px; + top: 6px; } + [page-name="journal_p_list"] .file_view .file .filetitle { + display: block; + width: 100%; + height: 38px; + padding-left: 40px; + overflow: hidden; + -webkit-box-sizing: border-box; + /* webkit */ + -khtml-box-sizing: border-box; + /* konqueror */ + -moz-box-sizing: border-box; + /* firefox */ + -ms-box-sizing: border-box; + /* ie */ + box-sizing: border-box; + /* css3 */ } /* Journal Paper Add */ #paper_add .s_grid_con { @@ -727,27 +706,22 @@ a:focus { margin-left: 12px; padding-left: 12px; border-left: solid 1px #eeeeee; } - -#paper_add .s_grid_con:first-child { - margin-left: 0; - padding-left: 0; - border: none; } - + #paper_add .s_grid_con:first-child { + margin-left: 0; + padding-left: 0; + border: none; } #paper_add .f_w { width: 336px; } - #paper_add label { margin-right: 0; } /* Journal Journal list */ [page-name="journal_p_journal"] .datalist_item .inner { padding-left: 30px; } - [page-name="journal_p_journal"] .list_item_action { font-size: 12px; float: left; margin-left: -30px; } - [page-name="journal_p_journal"] .list_item_action i { color: #999; font-size: 20px; @@ -756,7 +730,6 @@ a:focus { height: 20px; line-height: 20px; margin: 1px 1px 6px 1px; } - [page-name="journal_p_journal"] .list_t_desc { font-family: Arial, sans-serif; font-size: 12px; @@ -765,21 +738,17 @@ a:focus { /* Journal Co-Author */ [page-name="journal_p_coauthor"] .list_t_item { height: 110px; } - [page-name="journal_p_coauthor"] .list_item_function a { display: inline-block; padding: 4px; font-family: Arial, sans-serif; font-size: 11px; -webkit-text-size-adjust: none; } - [page-name="journal_p_coauthor"] .info { font-family: Arial, sans-serif; } - [page-name="journal_p_coauthor"] .info li { margin-bottom: 8px; color: #999; } - [page-name="journal_p_coauthor"] .info .name { font-size: 18px; line-height: 24px; @@ -788,7 +757,6 @@ a:focus { /* Journal Co-Author Relationship*/ [page-name="journal_p_coauthor_relation"] .edit_co_author_relation { /*margin-left: -10px;*/ } - [page-name="journal_p_coauthor_relation"] .form_space { margin-bottom: 10px; font-size: 18px; @@ -809,18 +777,16 @@ a:focus { right: 0; bottom: 0; z-index: 12; } - -.app_frame .app_holder { - background-color: #fff; - position: absolute; - width: 100%; } - -.app_frame #header .icon-remove { - display: block; - float: right; - line-height: 60px; - font-size: 20px; - cursor: pointer; } + .app_frame .app_holder { + background-color: #fff; + position: absolute; + width: 100%; } + .app_frame #header .icon-remove { + display: block; + float: right; + line-height: 60px; + font-size: 20px; + cursor: pointer; } /*Tooltip popup */ .desktop_toolpopup { diff --git a/app/assets/stylesheets/desktop/desktop-main.scss b/app/assets/stylesheets/desktop/desktop-main.scss index 6e8890fb0..a727963f3 100644 --- a/app/assets/stylesheets/desktop/desktop-main.scss +++ b/app/assets/stylesheets/desktop/desktop-main.scss @@ -66,11 +66,15 @@ a:focus { outline: none; } display: table; width: 100%; content: ''; + clear: both; } .o-loading { font-size: 13px; font-weight: normal; + .fullsize & { + padding: 12px; + } i { font-size: 20px; } @@ -442,7 +446,11 @@ a:focus { outline: none; } margin: 0 12px 0 0; position: relative; z-index: 9; + + .sdm_o { + width: auto; } +} .tile { display: block; width: 100%; @@ -450,7 +458,7 @@ a:focus { outline: none; } position: absolute; left: 0; top: 0; - } +} .widget.gs_w { cursor: move; } @@ -484,7 +492,6 @@ a:focus { outline: none; } } .theme_preview { width: 528px; - height: 150px; line-height: 36px; font-size: 15px; } @@ -498,6 +505,12 @@ a:focus { outline: none; } > div:first-child { margin-right: 48px; } + .g_sep { + margin-right: 0; + } +} +#color_input th { + vertical-align: bottom } .stock_wallpaper { .ssl_item { @@ -510,6 +523,14 @@ a:focus { outline: none; } font-weight: normal; line-height: 60px; text-align: left; + + &.size_large { + font-size: 36px; + } + &.size_small { + font-size: 15px; + line-height: 2em; + } } .s_subtitle { font-size: 15px; @@ -546,9 +567,9 @@ a:focus { outline: none; } max-width: 340px; } .g_sep { - width: 11px; - border-left: - solid 1px #fff; + width: 12px; + border-left: solid 1px #fff; + @include box-sizing; } @@ -572,7 +593,7 @@ a:focus { outline: none; } } /* list item */ -.list_t_item { /*padding: 2px;*/ overflow: hidden; } +.list_t_item { overflow: hidden; } .list_t_title { margin-bottom: 6px; color: #333; @@ -592,155 +613,145 @@ a:focus { outline: none; } -webkit-text-size-adjust: none; } -/* Connection Page */ -#connection_setting { height: 492px; } -#connection_setting .s_form { - float: left; - margin: 0 12px 0 0; - padding-left: 24px; - height: 100%; - border-left: solid 1px #ddd; -} -#connection_setting .s_form:first-child { padding-left: 0; border: none; } -#connection_setting .s_form label { line-height: 30px; } -#connection_setting .s_form .c_icon, #connection_setting .s_form .c_name { - display: inline-block; - vertical-align: middle; -} -#connection_setting .s_form .c_name { padding: 0 12px; font-size: 18px; } -#connection_setting .s_form input[type=text], #connection_setting .s_form input[type=password] { width: 202px; } -#connection_setting .setting_btn { margin-left: 12px; } -#connection_setting .setting_btn.disable { background-color: #ddd; cursor: default; } -#connection_setting .c_status { - float: right; - padding: 6px; - background-color: #eee; - color: #ccc; - font-size: 9px; - font-weight: normal; - -webkit-text-size-adjust: none; - @include transition-type("background-color",0.5); -} -#connection_setting .c_status_on { background-color: #51A351; color: #fff; } -#connection_setting .c_info { - padding: 7px 6px; - background-color: #fcfcfc; - cursor: default; - font-size: 18px; - font-weight: normal; -} - /* Journal Papers */ -[page-name="journal_p_list"] .list_t_item .inner { padding-left: 30px; } -[page-name="journal_p_list"] .list_item_action { - font-size: 12px; - float: left; - margin-left: -30px; -} -[page-name="journal_p_list"] .list_item_action a { - display: block; - width: 20px; - height: 20px; - line-height: 20px; - margin: 1px 1px 6px 1px; -} -[page-name="journal_p_list"] .list_item_action .icon-star-empty { color: #999; font-size: 20px; } -[page-name="journal_p_list"] .list_item_action .icon-star { color: #faa732; font-size: 20px; } -[page-name="journal_p_list"] .list_item_action .icon-check-empty { color: #999; font-size: 20px; } -[page-name="journal_p_list"] .list_item_action .icon-check { color: #333; font-size: 20px; } +[page-name="journal_p_list"] { + .list_t_item .inner { padding-left: 30px; } + .list_item_action { + font-size: 12px; + float: left; + margin-left: -30px; + + a { + display: block; + width: 20px; + height: 20px; + line-height: 20px; + margin: 1px 1px 6px 1px; + } + .icon-star-empty { color: #999; font-size: 20px; } + .icon-star { color: #faa732; font-size: 20px; } + .icon-check-empty { color: #999; font-size: 20px; } + .icon-check { color: #333; font-size: 20px; } + } + + .file_view { + .list_t_des { + overflow: hidden; + } + .file { + float: left; + width: 120px; + height: 50px; + padding: 6px; + margin: 1px; + position: relative; + @include box-sizing; -[page-name="journal_p_list"] .list_t_item.file_view { - height: 148px; -} -[page-name="journal_p_list"] .file_view .file { - display: inline-block; - width: 62px; - height: 50px; - text-align: center; -} -[page-name="journal_p_list"] .file_view .file:hover { - background-color: #ddd; -} -[page-name="journal_p_list"] .file_view .file img { - width: 24px; - display: block; - margin: 0 auto; - margin-top: 4px; -} -[page-name="journal_p_list"] .file_view .filetitle { - font-size: 11px; - -webkit-text-size-adjust: none; + &:hover { + background-color: lighten($gray, 10%); + } + img { + width: 38px; + height: 38px; + position: absolute; + left: 6px; + top: 6px; + } + .filetitle { + display: block; + width: 100%; + height: 38px; + padding-left: 40px; + overflow: hidden; + @include box-sizing; + } + } + } } /* Journal Paper Add */ -#paper_add .s_grid_con { - float: left; - height: 456px; - margin-left: 12px; - padding-left: 12px; - border-left: solid 1px #eee; +#paper_add { + .s_grid_con { + float: left; + height: 456px; + margin-left: 12px; + padding-left: 12px; + border-left: solid 1px #eee; + + &:first-child { + margin-left: 0; + padding-left: 0; + border: none; + } + } + .f_w { width: 336px; } + label { margin-right: 0; } } -#paper_add .s_grid_con:first-child { margin-left: 0; padding-left: 0; border: none; } -#paper_add .f_w { width: 336px; } -#paper_add label { margin-right: 0; } /* Journal Journal list */ -[page-name="journal_p_journal"] .datalist_item .inner { - padding-left: 30px; -} -[page-name="journal_p_journal"] .list_item_action { - font-size: 12px; - float: left; - margin-left: -30px; -} -[page-name="journal_p_journal"] .list_item_action i { - color: #999; - font-size: 20px; - display: block; - width: 20px; - height: 20px; - line-height: 20px; - margin: 1px 1px 6px 1px; -} -[page-name="journal_p_journal"] .list_t_desc { - font-family: Arial, sans-serif; - font-size: 12px; - color: #999; +[page-name="journal_p_journal"] { + + .datalist_item .inner { + padding-left: 30px; + } + .list_item_action { + font-size: 12px; + float: left; + margin-left: -30px; + } + .list_item_action i { + color: #999; + font-size: 20px; + display: block; + width: 20px; + height: 20px; + line-height: 20px; + margin: 1px 1px 6px 1px; + } + .list_t_desc { + font-family: Arial, sans-serif; + font-size: 12px; + color: #999; + } } /* Journal Co-Author */ -[page-name="journal_p_coauthor"] {} -[page-name="journal_p_coauthor"] .list_t_item { - height: 110px; -} -[page-name="journal_p_coauthor"] .list_item_function {} -[page-name="journal_p_coauthor"] .list_item_function a { - display: inline-block; - padding: 4px; - font-family: Arial, sans-serif; - font-size: 11px; - -webkit-text-size-adjust: none; -} -[page-name="journal_p_coauthor"] .info { - font-family: Arial, sans-serif; -} -[page-name="journal_p_coauthor"] .info li { - margin-bottom: 8px; - color: #999; -} -[page-name="journal_p_coauthor"] .info .name { - font-size: 18px; - line-height: 24px; - color: #333; +[page-name="journal_p_coauthor"] { + .list_t_item { + height: 110px; + } + .list_item_function {} + .list_item_function a { + display: inline-block; + padding: 4px; + font-family: Arial, sans-serif; + font-size: 11px; + -webkit-text-size-adjust: none; + } + .info { + font-family: Arial, sans-serif; + } + .info li { + margin-bottom: 8px; + color: #999; + } + .info .name { + font-size: 18px; + line-height: 24px; + color: #333; + } } + /* Journal Co-Author Relationship*/ -[page-name="journal_p_coauthor_relation"] .edit_co_author_relation { - /*margin-left: -10px;*/ -} -[page-name="journal_p_coauthor_relation"] .form_space { - margin-bottom: 10px; - font-size: 18px; - font-family: Arial, sans-serif; +[page-name="journal_p_coauthor_relation"]{ + .edit_co_author_relation { + /*margin-left: -10px;*/ + } + .form_space { + margin-bottom: 10px; + font-size: 18px; + font-family: Arial, sans-serif; + } } /* Journal New Co-Author */ #new_co_author label { @@ -759,18 +770,19 @@ a:focus { outline: none; } right: 0; bottom: 0; z-index: 12; -} -.app_frame .app_holder { - background-color: #fff; - position: absolute; - width: 100%; -} -.app_frame #header .icon-remove { - display: block; - float: right; - line-height: 60px; - font-size: 20px; - cursor: pointer; + + .app_holder { + background-color: #fff; + position: absolute; + width: 100%; + } + #header .icon-remove { + display: block; + float: right; + line-height: 60px; + font-size: 20px; + cursor: pointer; + } } /*Tooltip popup */ diff --git a/app/assets/stylesheets/desktop/desktop-select2.css b/app/assets/stylesheets/desktop/desktop-select2.css index 10b475b93..7f3d39444 100644 --- a/app/assets/stylesheets/desktop/desktop-select2.css +++ b/app/assets/stylesheets/desktop/desktop-select2.css @@ -86,7 +86,7 @@ Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013 position: absolute; z-index: 9999; top: 100%; - background: #fff; + background-color: #dddddd; color: #000; border: 1px solid #dddddd; border-top: 0; } @@ -98,12 +98,12 @@ Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013 .select2-container .select2-choice div { display: block; - width: 20px; + width: 21px; height: 100%; position: absolute; right: 0; top: 0; - background: #ccc; + border-left: solid 1px #dddddd; -webkit-box-sizing: border-box; /* webkit */ -khtml-box-sizing: border-box; @@ -119,7 +119,7 @@ Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013 display: block; width: 100%; height: 100%; - background: url("select2/select2.png") no-repeat 0 1px; } + background: url("select2/select2.png") no-repeat 0 50%; } .select2-search { display: inline-block; @@ -159,16 +159,14 @@ Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013 outline: none; } .select2-dropdown-open .select2-choice { - border-bottom-color: transparent; - background-color: #eee; } + border-bottom-color: transparent; } .select2-dropdown-open .select2-choice div { - background: transparent; - border-left: none; + background-color: #dddddd; filter: none; } .select2-dropdown-open .select2-choice div b { - background-position: -18px 1px; } + background-position: -20px 50%; } /* results */ .select2-results { @@ -356,11 +354,11 @@ disabled look for disabled choices in the results dropdown .select2-search-choice-close { display: block; - width: 12px; - height: 13px; + width: 10px; + height: 10px; position: absolute; right: 3px; - top: 4px; + top: 5px; font-size: 1px; outline: none; background: url("select2/select2.png") right top no-repeat; } @@ -369,10 +367,10 @@ disabled look for disabled choices in the results dropdown left: 3px; } .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover { - background-position: right -11px; } + background-position: right -20px; } .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close { - background-position: right -11px; } + background-position: right -20px; } /* disabled styles */ .select2-container-multi.select2-container-disabled .select2-choices { @@ -397,7 +395,8 @@ disabled look for disabled choices in the results dropdown .select2-offscreen { position: absolute; - left: -10000px; } + left: -10000px; + top: 0; } /* Retina-ize icons */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { diff --git a/app/assets/stylesheets/desktop/desktop-select2.scss b/app/assets/stylesheets/desktop/desktop-select2.scss index 230f0d17e..17c90ef72 100644 --- a/app/assets/stylesheets/desktop/desktop-select2.scss +++ b/app/assets/stylesheets/desktop/desktop-select2.scss @@ -86,8 +86,7 @@ Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013 position: absolute; z-index: 9999; top: 100%; - - background: #fff; + background-color: $gray; color: #000; border: 1px solid $gray; border-top: 0; @@ -101,12 +100,12 @@ Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013 .select2-container .select2-choice div { display: block; - width: 20px; + width: 21px; height: 100%; position: absolute; right: 0; top: 0; - background: #ccc; + border-left: solid 1px $gray; @include box-sizing; } @@ -114,7 +113,7 @@ Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013 display: block; width: 100%; height: 100%; - background: url('select2/select2.png') no-repeat 0 1px; + background: url('select2/select2.png') no-repeat 0 50%; } .select2-search { @@ -167,16 +166,15 @@ Version: 3.3.1 Timestamp: Wed Feb 20 09:57:22 PST 2013 .select2-dropdown-open .select2-choice { border-bottom-color: transparent; - background-color: #eee; } .select2-dropdown-open .select2-choice div { - background: transparent; - border-left: none; + background-color: $gray; + // border-left: none; filter: none; } .select2-dropdown-open .select2-choice div b { - background-position: -18px 1px; + background-position: -20px 50%; } /* results */ @@ -377,11 +375,11 @@ disabled look for disabled choices in the results dropdown .select2-search-choice-close { display: block; - width: 12px; - height: 13px; + width: 10px; + height: 10px; position: absolute; right: 3px; - top: 4px; + top: 5px; font-size: 1px; outline: none; background: url('select2/select2.png') right top no-repeat; @@ -392,10 +390,10 @@ disabled look for disabled choices in the results dropdown } .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover { - background-position: right -11px; + background-position: right -20px; } .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close { - background-position: right -11px; + background-position: right -20px; } /* disabled styles */ @@ -427,6 +425,7 @@ disabled look for disabled choices in the results dropdown .select2-offscreen { position: absolute; left: -10000px; + top: 0; } /* Retina-ize icons */ diff --git a/app/views/desktop/settings/sections.html.erb b/app/views/desktop/settings/sections.html.erb index f568336ad..cfaa1ed75 100644 --- a/app/views/desktop/settings/sections.html.erb +++ b/app/views/desktop/settings/sections.html.erb @@ -2,10 +2,10 @@
    Section Names
    sample desciption
    diff --git a/app/views/desktop/settings/themes.html.erb b/app/views/desktop/settings/themes.html.erb index e4a1b853f..f3fe933a7 100644 --- a/app/views/desktop/settings/themes.html.erb +++ b/app/views/desktop/settings/themes.html.erb @@ -21,7 +21,7 @@
    Theme Text1
    -
    +
    Theme Text2
    Theme Text
    @@ -30,10 +30,10 @@
    - - - - + + + +
    Theme ColorLine ColorText ColorBackground ColorTheme ColorLine ColorText ColorBackground Color
    diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index f370c8610..ea8966dd6 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -2,17 +2,22 @@
    Password Managment
    <%= form_for(resource, :as => resource_name, :url => users_passwd_path(resource_name), :html => { :method => :put, "form-type"=>"ajax_form" ,"callback-method"=>"passwordUpdate" }) do |f| %>
      -
    • <%= f.label :current_password %> - <%= f.password_field :current_password %>
    • +
    • + <%= f.label :current_password, :class => 's_grid s_grid_4' %> + <%= f.password_field :current_password, :class => 's_grid s_grid_8' %> +
    • -
    • <%= f.label :password %> - <%= f.password_field :password %>
    • +
    • + <%= f.label :password, :class => 's_grid s_grid_4' %> + <%= f.password_field :password, :class => 's_grid s_grid_8' %> +
    • -
    • <%= f.label :password_confirmation %> - <%= f.password_field :password_confirmation %>
    • +
    • + <%= f.label :password_confirmation, :class => 's_grid s_grid_4' %> + <%= f.password_field :password_confirmation, :class => 's_grid s_grid_8' %> +
    <%= f.submit "Update", :class => "setting_btn thmc1 thmtxt w1 hh1 hp" %>
    - <% end %> diff --git a/vendor/built_in_modules/personal_journal/app/assets/javascripts/personal_journal/desktop/journal_pages.js b/vendor/built_in_modules/personal_journal/app/assets/javascripts/personal_journal/desktop/journal_pages.js index fb378e35f..35e920592 100644 --- a/vendor/built_in_modules/personal_journal/app/assets/javascripts/personal_journal/desktop/journal_pages.js +++ b/vendor/built_in_modules/personal_journal/app/assets/javascripts/personal_journal/desktop/journal_pages.js @@ -13,6 +13,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ // var bindHandlers = function(){ // to bind handlers for list page o.simple_drop_down(); } + bindHandlers(); var bindSecondaryHandlers = function(){ $("#journal_p div#paper_list a.icon-check-empty").click(function(){ diff --git a/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_pages_controller.rb b/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_pages_controller.rb index a6009ea66..11b7f35dd 100644 --- a/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_pages_controller.rb +++ b/vendor/built_in_modules/personal_journal/app/controllers/panel/personal_journal/desktop/journal_pages_controller.rb @@ -7,7 +7,6 @@ class Panel::PersonalJournal::Desktop::JournalPagesController < ApplicationContr page ||= 1 @per_column = 5 - case @view_by when "abstract" @per_column = 1 diff --git a/vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb b/vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb index d70bbb490..7da71ad8c 100644 --- a/vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb +++ b/vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb @@ -2,7 +2,7 @@ module Panel::PersonalJournal::Desktop::JournalPagesHelper def publication_record publication, view content_tag :li, "item" => "true", - :class => "list_t_item" do + :class => "list_t_item #{view}_view" do marker + \ content(publication, view) + \ edit_or_delete(publication) @@ -69,14 +69,15 @@ module Panel::PersonalJournal::Desktop::JournalPagesHelper content_tag(:span, file.title, :class => "filetitle"), file.file.url, :class => "file", - "target" => "_blank") + "target" => "_blank", + "title" => file.title) }.inject(:+) end def check_file_type file if not file.nil? file_type = MIME::Types.type_for(file).first.to_s.split("/")[1] - file_type = "/assets/ft-icons/#{file_type}/#{file_type}-48_32.png" + file_type = "/assets/ft-icons/#{file_type}/#{file_type}-sm-32_32.png" else file_type = "" end diff --git a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/index.html.erb b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/index.html.erb index 7b43ae2b6..59b3b25a3 100644 --- a/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/index.html.erb +++ b/vendor/built_in_modules/personal_journal/app/views/panel/personal_journal/desktop/journal_pages/index.html.erb @@ -77,8 +77,8 @@
    -
    +
    <% @writing_journals.each do |w| %> <%= publication_record w, @view_by%> <% end %> -
    +
    \ No newline at end of file