diff --git a/app/helpers/orbit_backend_helper.rb b/app/helpers/orbit_backend_helper.rb
index 7af6d98..f7bc45c 100644
--- a/app/helpers/orbit_backend_helper.rb
+++ b/app/helpers/orbit_backend_helper.rb
@@ -150,6 +150,10 @@ module OrbitBackendHelper
end
end
+ def is_user_sub_manager?
+ @current_user_is_sub_manager
+ end
+
def has_access? #@user_has_privileges comes from orbit_member_controller.. used just in members
@user_has_privileges
end
diff --git a/app/models/site.rb b/app/models/site.rb
index 139bd27..4640a20 100644
--- a/app/models/site.rb
+++ b/app/models/site.rb
@@ -9,6 +9,7 @@ class Site
field :address, type: String
field :footer, localize: true
field :sub_menu, localize: true
+ field :site_type
field :site_map_link, type: String, :default => "/sitemap"
field :terms_of_use_link, type: String
field :google_analytics, type: String
diff --git a/app/templates/orbit_bootstrap/assets/javascripts/app.js b/app/templates/orbit_bootstrap/assets/javascripts/app.js
index d8f443c..c275461 100644
--- a/app/templates/orbit_bootstrap/assets/javascripts/app.js
+++ b/app/templates/orbit_bootstrap/assets/javascripts/app.js
@@ -4,9 +4,28 @@
// Init functions
function init () {
+ // Announcement modules
+ var annc = {
+ truncation : function (el, maxLength) {
+ for( var i = 0; i < el.length; i ++ ) {
+ if ( el[i].firstChild !== null ) {
+ if( el[i].firstChild.length > maxLength ) {
+ var newTitle = el[i].firstChild.nodeValue;
+ var newTitle = newTitle.substring(0, maxLength) + '...'
+ el
+ .eq(i)
+ .text(newTitle);
+ }
+ }
+ }
+ }
+ }
- var utils = {
-
+ function anncFix() {
+ var w$ = $('.w-announcement-4');
+ if( w$.length ) {
+ annc.truncation(w$.find('.w-annc__subtitle'), 25);
+ }
}
// Necessary for Responsive images
@@ -54,7 +73,6 @@
.addClass('hide')
.removeClass('show');
-
$('.has-dropdown-menu').on('click', function () {
if( $(this).hasClass('has-dropdown-menu') ) {
if( $(this).next('.dropdown-menu').hasClass('show') ) {
diff --git a/app/templates/orbit_bootstrap/assets/javascripts/plugin/jquery.cycle2.video.min.js b/app/templates/orbit_bootstrap/assets/javascripts/plugin/jquery.cycle2.video.min.js
new file mode 100644
index 0000000..1c415dc
--- /dev/null
+++ b/app/templates/orbit_bootstrap/assets/javascripts/plugin/jquery.cycle2.video.min.js
@@ -0,0 +1,2 @@
+/* Plugin for Cycle2; Copyright (c) 2012 M. Alsup; v20141007 */
+!function(a){"use strict";function b(){try{this.playVideo()}catch(a){}}function c(){try{this.pauseVideo()}catch(a){}}var d='
';a.extend(a.fn.cycle.defaults,{youtubeAllowFullScreen:!0,youtubeAutostart:!1,youtubeAutostop:!0}),a(document).on("cycle-bootstrap",function(e,f){f.youtube&&(f.hideNonActive=!1,f.container.find(f.slides).each(function(b){if(void 0!==a(this).attr("href")){var c,e=a(this),g=e.attr("href"),h=f.youtubeAllowFullScreen?"true":"false";g+=(/\?/.test(g)?"&":"?")+"enablejsapi=1",f.youtubeAutostart&&f.startingSlide===b&&(g+="&autoplay=1"),c=f.API.tmpl(d,{url:g,allowFullScreen:h}),e.replaceWith(c)}}),f.slides=f.slides.replace(/(\b>?a\b)/,"div.cycle-youtube"),f.youtubeAutostart&&f.container.on("cycle-initialized cycle-after",function(c,d){var e="cycle-initialized"==c.type?d.currSlide:d.nextSlide;a(d.slides[e]).find("object,embed").each(b)}),f.youtubeAutostop&&f.container.on("cycle-before",function(b,d){a(d.slides[d.currSlide]).find("object,embed").each(c)}))})}(jQuery);
\ No newline at end of file
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_genernal.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_genernal.scss
new file mode 100644
index 0000000..d111388
--- /dev/null
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_genernal.scss
@@ -0,0 +1,8 @@
+.admin-edit {
+ clear: both;
+}
+
+img {
+ max-width: 100%;
+ height: auto;
+}
\ No newline at end of file
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_pagination.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_pagination.scss
index e69de29..b4660e4 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_pagination.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_pagination.scss
@@ -0,0 +1,8 @@
+.pagination {
+ li {
+ a {
+ font-size: 0.8125rem;
+ margin: 0 0.2em;
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_unity.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_unity.scss
index e69de29..2ee41c6 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_unity.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_unity.scss
@@ -0,0 +1,15 @@
+// Title
+.unity-title {
+ margin: 0.5em 0;
+ line-height: 1.5;
+ font-family: $main-font;
+ .layout-footer & {
+ margin-bottom: 10px;
+ border-bottom: none;
+ span {
+ display: inline;
+ margin-bottom: 0;
+ border-bottom: none;
+ }
+ }
+}
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_variables.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_variables.scss
index ee2c581..82e7939 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_variables.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/base/_variables.scss
@@ -6,17 +6,15 @@ $theme-gray-light: #cecece;
$theme-gray-lighter: #f3f3f3;
$theme-gray-dark: #363636;
$theme-gray-darker: #242424;
-
$theme-white: #fff;
+$theme-red: #d20001;
+$theme-blue: #003d7e;
$theme-color-main: #47bab5;
$theme-color-second: #5bc0de;
$theme-color-third: #ed4c43;
-$theme-red: #d20001;
-$theme-blue: #003d7e;
-
// Font stacks
$main-font: Arial, "微軟正黑體", "Helvetica Neue", Helvetica, sans-serif;
$sub-font: Arial, "新細明體", "Helvetica Neue", Helvetica, sans-serif;
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/layout/footer.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/layout/footer.scss
index 86a6a1c..193f7d4 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/layout/footer.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/layout/footer.scss
@@ -1,6 +1,7 @@
.layout-footer {
padding: 2em 0;
color: #999999;
+ font-size: 0.8125em;
background-color: $theme-gray-dark;
.container {
@extend .response-content;
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/layout/header.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/layout/header.scss
index ae716c3..7c70d3a 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/layout/header.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/layout/header.scss
@@ -9,7 +9,6 @@
@extend .response-content;
}
.header-nav {
- text-align: center;
padding-top: 0.5rem;
color: #FFF;
& > * {
@@ -41,13 +40,15 @@
padding-bottom: 0;
line-height: 34px;
color: #FFF;
- font-size: 1.5em;
+ font-size: 1em;
+ font-family: $main-font;
+
@media (min-width: $screen-sm) {
height: 60px;
margin: 0.5rem 0 0;
padding-left: 0;
line-height: 60px;
- font-size: 2em;
+ font-size: 1.5em;
}
.site-logo {
width: auto;
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/ad_banner.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/ad_banner.scss
index 70cd606..fdb0a60 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/ad_banner.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/ad_banner.scss
@@ -30,21 +30,17 @@
.w-ad-banner__caption {
background: $theme-color-main;
color: $theme-white;
- position: absolute;
- left: 2em;
- top: 5em;
- width: 300px;
z-index: 200;
- padding: 1.5em 2em;
-
+ padding: 0.5em 1em;
+
h2 {
font-family: $main-font;
font-size: $w-caption-font-size;
+ margin: 0.5em 0;
}
p {
font-family: $main-font;
- line-height: 1.6;
font-size: $w-caption-desc;
}
@@ -53,7 +49,7 @@
@include list-reset();
position: absolute;
right: 1em;
- bottom: 1em;
+ top: 1em;
z-index: 100;
li {
@@ -88,6 +84,16 @@
width: 100%;
height: auto;
}
+ .youtube {
+ }
+ .youtube, .cycle-youtube {
+ width: 100%;
+ height: 100%;
+ }
+ object, embed{
+ width: 100%;
+ height: 100%;
+ }
.w-ad-banner__pager {
@include list-reset();
position: absolute;
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/announcement.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/announcement.scss
index 7a6233e..36e6d9f 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/announcement.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/announcement.scss
@@ -1,341 +1,461 @@
@charset "utf-8";
-// Font sizes
-$w-title-font-size-large: 1.5rem;
-$w-title-font-size-small: 0.75rem;
-$w-subtitle-font-size: 0.75rem;
-$w-meta-font-size: 0.75rem;
+//
+// Widget
+//
-$w-table-th-font-size: 0.75em;
-$w-table-td-font-size: 0.75em;
-
-$i-title-font-size-large: 2em;
-
-// colors
-$white: white;
-$red: #d20001;
-$blue: #003d7e;
-$gray: #414141;
-
-$link-color: #366aa6;
-$link-hover-color: #608ec3;
-
-$table-th-bgcolor: $theme-color-main;
-
-// ****************** Widget ******************
-// Announcement widget 1
-.w-announcement {
- a {
- text-decoration: none;
+// Announcement widget
+// ## Gerneral styles for widgets
+.w-annc {
+ .w-annc__widget-title {
+ @extend .unity-title;
}
- .w-announcement__widget-title {
- font-family: $main-font;
- font-size: $w-title-font-size-large;
- color: $gray;
- margin: 0.5rem 0;
- }
- .w-announcement__list {
- @include list-reset;
- }
- .w-announcement__item {
- margin-bottom: 1em;
- padding-bottom: 1em;
- border-bottom: 1px dashed lighten($gray, 65%);
- }
- .w-announcement__pic-wrap {
- padding-bottom: 33.3%;
- margin-bottom: 1em;
- }
- .w-announcement__status-wrap {
- display: inline-block;
- }
- .w-announcement__status {
- font-size: $w-meta-font-size;
- color: $white;
- display: inline-block;
- border-radius: 2px;
- padding: 6px 10px;
- }
- .w-announcement__status.status-top {
- background-color: $blue;
- }
- .w-announcement__status.status-hot {
- background-color: $red;
- }
- .w-announcement__postdate {
- font-size: $w-meta-font-size;
- color: $gray;
- }
- .w-announcement__title {
- font-family: $main-font;
- margin: 15px 0 8px 0;
- line-height: 1.4;
- }
- .w-announcement__link {
- font-family: $main-font;
- color: $link-color;
- }
- .w-announcement__link:hover {
- color: $link-hover-color;
- }
- .w-announcement__subtitle {
- font-family: $sub-font;
- font-size: $w-subtitle-font-size;
- line-height: 1.6;
- }
- .w-announcement__more {
- color: $link-color;
- font-size: 0.875rem;
- }
- .w-announcement__more:hover {
- color: $link-hover-color;
- }
-}
-
-// Announcement widget 2
-.annc-widget-2 {}
-
-// Announcement widget 3
-.annc-widget-3 {}
-
-// Announcement widget 4
-.annc-widget-4 {
- .w-announcement__postdate {
- display: inline-block;
- margin-right: 0.5rem;
- }
- .w-announcement__title {
- font-size: $w-title-font-size-small;
- display: inline-block;
+ .w-annc__list {
margin: 0;
+ padding: 0;
+ list-style: none;
}
- .w-announcement__item {
- margin-bottom: 0.5rem;
- padding-bottom: 0.5rem;
+ .w-annc__item {
+ margin-bottom: 30px;
}
-}
-
-// Announcement widget 5
-.annc-widget-5 {
- .w-announcement__item {
- @include clearfix;
+ .label {
+ font-size: 0.75rem;
+ font-weight: normal;
}
- .w-announcement__pic-wrap {
- float: left;
- width: 32%;
- margin-right: 3%;
- }
- .w-announcement__content-wrap {
- float: left;
- width: 65%;
- }
-}
-
-// Announcement widget 6
-.annc-widget-6 {
- .w-announcement__title {
- font-size: $w-title-font-size-small;
- display: inline-block;
- margin: 0;
- }
- .w-announcement__postdate {
- display: inline-block;
- margin-right: 0.5rem;
- }
- .w-announcement__item {
- margin-bottom: 0.5rem;
- padding-bottom: 0.5rem;
- }
-}
-
-// Announcement widget 7
-.annc-widget-7 {
- .w-announcement__postdate {
- margin-bottom: 0.5rem;
- }
- .w-announcement__title {
- font-size: $w-title-font-size-small;
- margin: 0;
- }
-}
-
-// Announcement widget 8 -- table
-.w-announcement--table {
- .w-announcement__table {
- width: 100%;
- }
- .w-announcement__th {
- font-size: $w-table-th-font-size;
- color: $white;
- background: $table-th-bgcolor;
- white-space: nowrap;
- padding: 0.5rem 0.8rem;
- }
- td {
- font-size: $w-table-td-font-size;
- border-bottom: 1px solid lighten($gray, 70%);
- padding: 0.5rem;
- }
- .w-announcement__status {
- margin-bottom: 0.3rem;
- }
-}
-
-// Announcement widget 9 -- table
-
-.annc-widget-9 {}
-
-// Announcement widget 10 -- table
-
-.annc-widget-10 {}
-
-// Announcement widget 11 -- table
-.annc-widget-11 {}
-
-// Announcement widget 12 -- table
-.annc-widget-12 {}
-
-// Announcement widget 12 -- table
-.annc-widget-13 {}
-
-// ****************** index ******************
-
-// Announcement index 1 -- table
-.i-announcement--table {
- .i-announcement__table {
- width: 100%;
- }
- .i-announcement__th {
- font-size: $w-table-th-font-size;
- color: $white;
- background: $table-th-bgcolor;
- white-space: nowrap;
- padding: 0.5rem 0.8rem;
- }
- td {
- font-size: $w-table-td-font-size;
- border-bottom: 1px solid lighten($gray, 70%);
- padding: 0.5rem;
- }
- .i-announcement__status {
- margin-bottom: 0.3rem;
- }
-}
-
-// Announcement index 2
-.i-announcement {
- .i-announcement__title {
- font-size: $i-title-font-size-large;
- font-family: $main-font;
- }
- .i-announcement__list {
- @include list-reset;
- }
- .i-announcement__pic-wrap {
- margin-bottom: 1em;
- }
- .i-announcement__pic {
- }
- .i-announcement__status {
- font-size: $w-meta-font-size;
- color: $white;
- display: inline-block;
- border-radius: 2px;
- padding: 6px 10px;
- }
- .i-announcement__status.status-top {
- background-color: $blue;
- }
- .i-announcement__status.status-hot {
- background-color: $red;
- }
-}
-// Announcement SHOW
-.show-announcement {
- .show-title {
- @extend .unity-title;
- }
- .post-metadata {
- border-bottom: 1px solid $theme-gray-light;
- @include clearfix();
- li {
- margin-right: 1em;
- margin-bottom: 0.6em;
- float: left;
- &.metadata-tags {
- position: relative;
- margin-right: 0;
- padding-left: 1.6em;
- clear: both;
- float: none;
+ .w-annc__meta {
+ .w-annc__status-wrap,
+ .w-annc__postdate-wrap,
+ .w-annc__category-wrap {
+ display: inline-block;
+ margin-right: 0.2em;
+ font-size: 0.8125em;
+ color: $theme-gray;
+ font-weight: normal;
+ }
i {
- position: absolute;
- top: 7px;
- left: 0;
+ color: $theme-gray;
}
- }
- &.metadata-tags {
- .tag {
- display: inline-block;
- margin-bottom: 4px;
- padding: 5px 8px;
- font-size: 0.8em;
- color: $theme-gray;
- border: 1px solid $theme-gray-light;
- text-decoration: none;
- &:hover {
- color: $theme-color-main;
- border-color: $theme-color-main;
- background-color: $theme-gray-lighter;
- }
- }
- }
- i {
- color: darken($theme-gray-light, 10%);
- }
}
- }
- .post-section {
- @include clearfix();
- margin-bottom: 2em;
- .post-pic {
- img {
- @include size(100%, auto);
- }
+ .status-top {
+ background: $theme-color-second;
}
- }
- .post-related {
- padding-top: 1em;
- border-top: 1px solid $theme-gray-light;
- li {
- padding-bottom: 3px;
- padding-left: 1.6em;
- & + li {
- padding-top: 8px;
- border-top: 1px dotted $theme-gray-light;
- }
- i {
- margin: 8px 0 0 -1.6em;
- float: left;
- color: darken($theme-gray-light, 10%);
- }
- & > div {
- display: inline-block;
- }
- a {
- display: inline-block;
- margin-bottom: 4px;
- padding: 5px 8px;
- font-size: 0.8em;
+ .status-hot {
+ background: $theme-color-third;
+ }
+ .w-annc__subtitle {
+ font-size: 0.8125em;
color: $theme-gray;
- border: 1px solid $theme-gray-light;
- text-decoration: none;
- &:hover {
- color: $theme-color-main;
- border-color: $theme-color-main;
- background-color: $theme-gray-lighter;
- }
- }
}
- }
+ .w-annc__entry-title {
+ margin-bottom: 10px;
+ }
+ .w-annc__title {
+ font-family: $sub-font;
+ color: $theme-color-main;
+ text-decoration: none;
+ font-size: 0.8125rem;
+ &:hover {
+ color: darken($theme-color-main, 10%);
+ }
+ }
+}
+
+// Widget-1
+.w-announcement-1 {
+ .w-annc__img-wrap {
+ height: 200px;
+ margin: 0 0 1em 0;
+ }
+ .w-annc__title {
+ font-family: $main-font;
+ line-height: 1.3;
+ font-size: 1.2rem;
+ }
+}
+
+// Widget-2
+.w-announcement-2 {
+ .w-annc__img-wrap {
+ height: 200px;
+ margin: 0 0 1em 0;
+ }
+ .w-annc__title {
+ font-family: $main-font;
+ line-height: 1.3;
+ font-size: 1.2rem;
+ }
+}
+
+// Widget-3
+.w-announcement-3 {
+ .w-annc__img-wrap {
+ height: 200px;
+ margin: 0 0 1em 0;
+ }
+ .w-annc__title {
+ font-family: $main-font;
+ line-height: 1.3;
+ font-size: 1.2rem;
+ }
+}
+
+// Widget-4
+.w-announcement-4 {
+ .w-annc__title {
+ font-family: $main-font;
+ line-height: 1.3;
+ font-size: 1.2rem;
+ }
+ .w-annc__list > .w-annc__item:nth-child(3n+1) {
+ clear: both;
+ }
+ .w-annc__img-wrap {
+ height: 200px;
+ margin: 0 0 1em 0;
+ }
+}
+
+// Widget-5
+.w-announcement-5 {
+ .w-annc__title {
+ font-family: $main-font;
+ line-height: 1.3;
+ font-size: 1.2rem;
+ }
+ .w-annc__item {
+ border-bottom: 1px dashed lighten($theme-gray, 65%);
+ padding-bottom: 1em;
+ margin-bottom: 1em;
+ }
+}
+
+// Widget-6
+.w-announcement-6 {
+ .w-annc__item {
+ margin-bottom: 0.8em;
+ padding-bottom: 0.8em;
+ border-bottom: 1px dashed lighten($theme-gray, 65%);
+ }
+ .w-annc__entry-title {
+ margin: 0;
+ }
+ .w-annc__category-wrap,
+ .w-annc__status,
+ .w-annc__title,
+ .w-annc__postdate-wrap {
+ font-size: 0.8125rem;
+ }
+ .w-annc__status {
+ display: inline-block;
+ }
+}
+
+// Widget-7
+.w-announcement-7 {
+ .w-annc__item {
+ margin-bottom: 0.8em;
+ padding-bottom: 0.8em;
+ border-bottom: 1px dashed lighten($theme-gray, 65%);
+ }
+ .w-annc__entry-title {
+ margin: 0;
+ }
+ .w-annc__category-wrap,
+ .w-annc__status,
+ .w-annc__title,
+ .w-annc__postdate-wrap {
+ font-size: 0.75rem;
+ }
+ .w-annc__status {
+ display: inline-block;
+ }
+}
+
+// Widget-8
+// ## Table
+.w-announcement-8 {
+ .w-annc__th {
+ color: #fff;
+ background: $theme-color-main;
+ font-size: 0.8125em;
+ border: none;
+ }
+ .w-annc__status {
+ display: inline-block;
+ font-size: 0.75rem;
+ }
+ td {
+ font-size: 0.8125em;
+ }
+ a:hover {
+ text-decoration: none;
+ }
+}
+
+// Widget-9
+// ## Table
+.w-announcement-9 {
+ .w-annc__th {
+ color: #fff;
+ background: $theme-color-main;
+ font-size: 0.8125em;
+ border: none;
+ }
+ .w-annc__status {
+ display: inline-block;
+ font-size: 0.75rem;
+ }
+ td {
+ font-size: 0.8125em;
+ }
+ a:hover {
+ text-decoration: none;
+ }
+}
+
+// Widget-10
+.w-announcement-10 {
+ .w-annc__item {
+ margin-bottom: 0.8em;
+ padding-bottom: 0.8em;
+ border-bottom: 1px dashed lighten($theme-gray, 65%);
+ }
+ .w-annc__entry-title {
+ margin: 0;
+ }
+ .w-annc__postdate-wrap {
+ font-size: 0.8125em;
+ }
+ .w-annc__status {
+ display: inline-block;
+ font-size: 0.75rem;
+ }
+}
+
+// Widget-11
+// ## Table
+.w-announcement-11 {
+ .w-annc__th {
+ color: #fff;
+ background: $theme-color-main;
+ font-size: 0.8125em;
+ border: none;
+ }
+ .w-annc__status {
+ display: inline-block;
+ font-size: 0.75rem;
+ }
+ td {
+ font-size: 0.8125em;
+ }
+ a:hover {
+ text-decoration: none;
+ }
+}
+
+// Widget-12
+.w-announcement-12 {
+ .w-annc__list {
+ padding: 0 15px;
+ }
+ .w-annc__img-wrap {
+ height: 300px;
+ margin-bottom: 15px;
+ @media (min-width: $screen-md) {
+ height: 200px;
+ margin-bottom: 0;
+ }
+ }
+ .w-annc__item {
+ margin-bottom: 0.8em;
+ padding-bottom: 0.8em;
+ border-bottom: 1px dashed lighten($theme-gray, 65%);
+ }
+ .w-annc__entry-title {
+ margin: 0 0 10px 0;
+ @media (min-width: $screen-md) {
+ margin-bottom: 0;
+ }
+ }
+ .w-annc__postdate-wrap {
+ font-size: 0.8125em;
+ }
+ .w-annc__status {
+ display: inline-block;
+ }
+ .w-annc__postdate {
+ font-size: 0.8125rem;
+ }
+}
+
+// Announcement index
+// ## General style for index pages
+.i-annc {
+ .i-annc__page-title {
+ @extend .unity-title;
+ }
+ .i-annc__list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+ .status-top {
+ background: $theme-color-second;
+ }
+ .status-hot {
+ background: $theme-color-third;
+ }
+ .w-annc__widget-title {
+ @extend .unity-title;
+ }
+ .i-annc__item {
+ margin-bottom: 30px;
+ }
+ .label {
+ font-size: 0.75rem;
+ font-weight: normal;
+ }
+ .i-annc__meta {
+ .i-annc__status-wrap,
+ .i-annc__postdate-wrap,
+ .i-annc__category-wrap {
+ display: inline-block;
+ margin-right: 0.2em;
+ font-size: 0.8125em;
+ color: $theme-gray;
+ font-weight: normal;
+ }
+ i {
+ color: $theme-gray;
+ }
+ }
+ .i-annc__subtitle {
+ font-size: 0.8125em;
+ color: $theme-gray;
+ }
+ .i-annc__entry-title {
+ margin-bottom: 10px;
+ }
+ .i-annc__title {
+ font-family: $sub-font;
+ color: $theme-color-main;
+ text-decoration: none;
+ font-size: 0.8125rem;
+ &:hover {
+ color: darken($theme-color-main, 10%);
+ }
+ }
+}
+
+// Index-1
+.i-announcement-1 {
+ .i-annc__th {
+ color: #fff;
+ background: $theme-color-main;
+ font-size: 0.8125em;
+ border: none;
+ }
+ td {
+ font-size: 0.8125rem;
+ }
+ .i-annc__title:hover {
+ text-decoration: none;
+ }
+}
+
+// Index-2
+.i-announcement-2 {
+ .i-annc__img-wrap {
+ height: 200px;
+ margin: 0 0 1em 0;
+ }
+ .i-annc__title {
+ font-family: $main-font;
+ line-height: 1.3;
+ font-size: 1.2rem;
+ }
+}
+
+// Announcement show
+.s-annc {
+ .s-annc__show-title {
+ @extend .unity-title;
+ }
+ .s-annc__meta-wrap {
+ border-bottom: 1px solid $theme-gray-light;
+ @include clearfix;
+ .s-annc__meta--item {
+ font-size: 0.875rem;
+ margin-right: 1em;
+ margin-bottom: 0.6em;
+ float: left;
+ i {
+ color: darken($theme-gray-light, 10%);
+ }
+ }
+ .s-annc__tag-wrap {
+ position: relative;
+ margin-right: 0;
+ padding-left: 1.6em;
+ clear: both;
+ float: none;
+ i {
+ position: absolute;
+ top: 7px;
+ left: 0;
+ }
+ }
+ .s-annc__tag-wrap {
+ .s-annc__tag {
+ display: inline-block;
+ margin-bottom: 4px;
+ padding: 5px 8px;
+ font-size: 0.8em;
+ color: $theme-gray;
+ border: 1px solid $theme-gray-light;
+ text-decoration: none;
+ &:hover {
+ color: $theme-color-main;
+ border-color: $theme-color-main;
+ background-color: $theme-gray-lighter;
+ }
+ }
+ }
+ }
+ .s-annc__post-wrap {
+ @include clearfix;
+ margin-bottom: 2em;
+ }
+ .s-annc__related-wrap {
+ padding-top: 1em;
+ border-top: 1px dotted $theme-gray-light;
+ }
+ .s-annc__related-file,
+ .s-annc__related-link {
+ padding-bottom: 6px;
+ padding-left: 1.6em;
+ i {
+ margin: 8px 0 0 -1.6em;
+ float: left;
+ color: darken($theme-gray-light, 10%);
+ }
+ a {
+ display: inline-block;
+ margin-bottom: 4px;
+ padding: 5px 8px;
+ font-size: 0.8em;
+ color: $theme-gray;
+ border: 1px solid $theme-gray-light;
+ text-decoration: none;
+ &:hover {
+ color: $theme-color-main;
+ border-color: $theme-color-main;
+ background-color: $theme-gray-lighter;
+ }
+ }
+ }
+ .s-annc__related-link-list,
+ .s-annc__related-file-list {
+ display: inline-block;
+ }
}
\ No newline at end of file
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/archives.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/archives.scss
index bf1fbee..f4604d4 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/archives.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/archives.scss
@@ -2,7 +2,7 @@
//
// Widget
-// -------------------------------------------------
+//
// Widget
// ## gerenral styles
@@ -76,7 +76,6 @@
}
}
-// ****************** Index ******************
// Archive index 1
.i-archive {
font-family: $main-font;
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/member.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/member.scss
index acc8436..c826274 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/member.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/member.scss
@@ -13,37 +13,6 @@
.show-title {
@extend .unity-title;
}
- // .show-content {
- // padding-right: 0;
- // padding-left: 0;
- // .img {
- // display: inline-block;
- // width: 100%;
- // height: auto;
- // opacity: (0.8);
- // -webkit-filter: grayscale(100%) brightness(1.2);
- // -moz-filter: grayscale(100%) brightness(1.2);
- // filter: grayscale(100%) brightness(1.2);
- // @include transition(all 0.2s ease);
- // }
- // .show-content-inner {
- // position: relative;
- // padding: 2px;
- // z-index: 0;
- // @include scale(1);
- // @include transition(all 0.2s ease);
- // &:hover {
- // z-index: 1;
- // @include scale(1.1);
- // .img {
- // opacity: (1);
- // -webkit-filter: grayscale(0%) brightness(1);
- // -moz-filter: grayscale(0%) brightness(1);
- // filter: grayscale(0%) brightness(1);
- // }
- // }
- // }
- // }
.post-metadata {
border-bottom: 1px solid $theme-gray-light;
@include clearfix();
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/menu.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/menu.scss
index c5c977f..ecac8c3 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/menu.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/modules/menu.scss
@@ -1,4 +1,5 @@
.modules-menu {
+ font-family: $main-font;
max-height: none;
li {
white-space: nowrap;
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/template.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/template.scss
index cd6646b..320c950 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/template.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/template.scss
@@ -5,7 +5,9 @@
@import "base/mixins";
@import "base/variables";
@import "base/unity";
+@import "base/pagination";
@import "base/orbitbar-override";
+@import "base/genernal";
// Layout
@import "layout/header";
@@ -32,7 +34,6 @@ html {
font-size: 100%;
}
body {
- font-family: 'Droid Sans';
- margin-top: 40px;
+ margin-top: 40px; // needed for Orbit bar
font-size: inherit;
}
\ No newline at end of file
diff --git a/app/templates/orbit_bootstrap/assets/stylesheets/template/widget/sitemenu.scss b/app/templates/orbit_bootstrap/assets/stylesheets/template/widget/sitemenu.scss
index dc5577d..02b965d 100644
--- a/app/templates/orbit_bootstrap/assets/stylesheets/template/widget/sitemenu.scss
+++ b/app/templates/orbit_bootstrap/assets/stylesheets/template/widget/sitemenu.scss
@@ -1,81 +1,86 @@
.submenu-wrap {
- padding: 20px 1em;
-}
+ @include clearfix();
+ padding: 10px 0;
-.submenu__title {
- display: none;
-}
-
-.submenu__list {
- @include clearfix;
- list-style: none;
- padding: 0;
- margin: 0;
-}
-
-.submenu__item.level-1 {
- position: relative;
- float: left;
- margin-right: 1%;
- margin-bottom: 12px;
-}
-
-.submenu__link.level-1 {
- float: left;
- padding-bottom: 8px;
- font-size: 13px;
- font-size: 0.8125rem;
- background: #0062a7;
- color: #fff;
- padding: 8px 0.8em;
- border-radius: 0.2em;
-
- &:hover {
- background: #0f7fcc;
- }
-}
-
-.submenu__item:hover .dropdown {
- display: block;
-}
-
-// Submenu dropdown
-.submenu__list.dropdown {
- display: none;
- padding: 20px 0 0 0;
- position: absolute;
- left: 0;
- top: 80%;
- border-radius: 2px;
- z-index: 200;
-}
-
-.submenu__list .dropdown:before {
- content: "";
- border-style: solid;
- border-width: 0px 7px 7px 7px;
- border-color: transparent transparent #83cccb transparent;
- position: absolute;
- top: 15px;
- left: 15px;
-}
-
-.submenu__item.level-2 {
- display: block;
- padding: 4px 8px;
- background: #83cccb;
- font-size: 0.8125rem;
-}
-
-.submenu__link.level-2 {
- color: #fff;
- white-space: nowrap;
-}
-
-.submenu__list.hidden--item {
- display: none;
-
- &:before {
+ .submenu__title {
display: none;
}
-}
\ No newline at end of file
+
+ .submenu__list {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ }
+
+ .submenu__item.level-1 {
+ position: relative;
+ float: left;
+ margin-right: 1%;
+ margin-bottom: 12px;
+ }
+
+ .submenu__link.level-1 {
+ float: left;
+ padding-bottom: 8px;
+ font-size: 13px;
+ font-size: 0.8125rem;
+ background: $theme-color-second;
+ color: #fff;
+ padding: 8px 0.8em;
+ border-radius: 0.2em;
+
+ &:hover {
+ background: darken($theme-color-second, 10%);
+ }
+ }
+
+ .submenu__item:hover .dropdown {
+ display: block;
+ }
+
+ .touch .submenu__item .dropdown {
+ display: none !important;
+ }
+
+ // Submenu dropdown
+ .submenu__list.dropdown {
+ display: none;
+ padding: 20px 0 0 0;
+ position: absolute;
+ left: 0;
+ top: 80%;
+ border-radius: 2px;
+ z-index: 200;
+ }
+
+
+ .submenu__list .dropdown:before {
+ content: "";
+ border-style: solid;
+ border-width: 0px 7px 7px 7px;
+ border-color: transparent transparent $theme-color-main transparent;
+ position: absolute;
+ top: 15px;
+ left: 15px;
+ }
+
+ .submenu__item.level-2 {
+ display: block;
+ padding: 4px 8px;
+ background: $theme-color-main;
+ font-size: 0.8125rem;
+ }
+
+ .submenu__link.level-2 {
+ color: #fff;
+ white-space: nowrap;
+ }
+
+ .submenu__list.hidden--item {
+ display: none;
+
+ &:before {
+ display: none;
+ }
+ }
+}
diff --git a/app/templates/orbit_bootstrap/home/footer.html.erb b/app/templates/orbit_bootstrap/home/footer.html.erb
index 1a5bd40..76aa7cc 100644
--- a/app/templates/orbit_bootstrap/home/footer.html.erb
+++ b/app/templates/orbit_bootstrap/home/footer.html.erb
@@ -1,9 +1,5 @@
\ No newline at end of file
diff --git a/app/templates/orbit_bootstrap/modules/ad_banner/_ad_banner_widget1.html.erb b/app/templates/orbit_bootstrap/modules/ad_banner/_ad_banner_widget1.html.erb
index 2effac6..f1c354c 100644
--- a/app/templates/orbit_bootstrap/modules/ad_banner/_ad_banner_widget1.html.erb
+++ b/app/templates/orbit_bootstrap/modules/ad_banner/_ad_banner_widget1.html.erb
@@ -1,8 +1,4 @@
-
-