sdk update for groups and orbit_bootstrap by joshua

This commit is contained in:
rulingcom 2015-06-24 18:09:16 +08:00
parent 4068d8488a
commit dd3b4f0384
16 changed files with 420 additions and 305 deletions

View File

@ -43,15 +43,15 @@
} }
}, },
// Equal height for card // Equal height for card
equalHeight: function() { equalHeight: function(el) {
var bigbrother = -1, var bigbrother = -1,
$card = $('.group-card-inner'); $el = $(el);
$card.each(function() { $el.each(function() {
bigbrother = bigbrother > $(this).height() ? bigbrother : $(this).height(); bigbrother = bigbrother > $(this).height() ? bigbrother : $(this).height();
}); });
$card.each(function() { $el.each(function() {
$(this).height(bigbrother); $(this).height(bigbrother);
}); });
}, },
@ -131,7 +131,8 @@
} }
group.cycleFix(); group.cycleFix();
group.equalHeight(); group.equalHeight('.group-card-inner');
group.equalHeight('.group-admin-edit-image-item');
group.plugins(); group.plugins();
}); });

View File

@ -37,19 +37,23 @@ body {
.select2-container-multi { .select2-container-multi {
margin-right: 0.9375rem; margin-right: 0.9375rem;
min-width: 200px; min-width: 200px;
.select2-choices { .select2-choices {
padding: 0; padding: 0;
border-radius: $general; border-radius: $general;
.select2-search-field { .select2-search-field {
input { input {
padding: 10px 5px; padding: 10px 5px;
} }
} }
} }
.select2-search-choice { .select2-search-choice {
padding: 10px 1.75rem 10px 0.7rem; padding: 10px 1.75rem 10px 0.7rem;
border-color: lighten($light-gray, 5%); border-color: lighten($light-gray, 5%);
background: $white; background: $white;
> div { > div {
&:before { &:before {
content: "\F007"; content: "\F007";
@ -61,9 +65,11 @@ body {
} }
} }
} }
.select2-search-choice-close { .select2-search-choice-close {
right: 15px; right: 15px;
left: auto; left: auto;
&:before { &:before {
content: "\f057"; content: "\f057";
font-family: FontAwesome; font-family: FontAwesome;
@ -74,6 +80,7 @@ body {
font-size: 0.9375rem; font-size: 0.9375rem;
color: $dark-gray; color: $dark-gray;
} }
&:hover { &:hover {
&:before { &:before {
color: $red; color: $red;
@ -82,6 +89,7 @@ body {
} }
} }
} }
.select2-result-label { .select2-result-label {
> span { > span {
white-space: nowrap; white-space: nowrap;
@ -104,6 +112,7 @@ body {
z-index: 3000; z-index: 3000;
} }
} }
.fileupload { .fileupload {
.thumbnail { .thumbnail {
max-width: 60%; max-width: 60%;
@ -116,13 +125,12 @@ body {
height: 50px; height: 50px;
} }
// members page // members page
.existing-phone-avatar { .existing-phone-avatar {
vertical-align: top; vertical-align: top;
margin: 0 0.5rem 0.5rem 0; margin: 0 0.5rem 0.5rem 0;
} }
.existing-member-count { .existing-member-count {
width: 60px; width: 60px;
height: 60px; height: 60px;
@ -134,6 +142,7 @@ body {
padding: 8px 0.45rem; padding: 8px 0.45rem;
font-size: 0.8125rem; font-size: 0.8125rem;
} }
.group-edit-button { .group-edit-button {
box-sizing: border-box; box-sizing: border-box;
vertical-align: top; vertical-align: top;
@ -151,37 +160,42 @@ body {
.group-member-edit-table { .group-member-edit-table {
width: 100%; width: 100%;
tr { tr {
border-bottom: 1px solid $gray; border-bottom: 1px solid $gray;
} }
td { td {
padding: 8px 0.75rem; padding: 8px 0.75rem;
&:first-child { &:first-child {
width: 60px; width: 60px;
} }
} }
.make-admin-checkbox { .make-admin-checkbox {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
margin-right: 0.3125rem; margin-right: 0.3125rem;
} }
.group-member-permission { .group-member-permission {
display: inline-block; display: inline-block;
vertical-align: text-top; vertical-align: text-top;
} }
} }
.group-admin-edit-image-wrap { .group-admin-edit-image-wrap {
margin: 0 24px 1rem 0; margin: 0 24px 1rem 0;
} }
.group-admin-edit-image-item { .group-admin-edit-image-item {
margin-bottom: 16px; margin: 0 10px 16px 0;
padding: 16px 0.5rem; padding: 16px 0.5rem;
} }
.group-admin-edit-image-container { .group-admin-edit-image-container {
float: left; max-width: 100px;
width: 15%;
min-width: 150px;
margin: 0 1rem 16px 0; margin: 0 1rem 16px 0;
} }
@ -193,37 +207,64 @@ body {
border-radius: $general; border-radius: $general;
float: left; float: left;
} }
.group-admin-edit-image-checkbox { .group-admin-edit-image-checkbox {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
} }
.group-admin-edit-image-label { .group-admin-edit-image-label {
display: inline-block; display: inline-block;
vertical-align: text-top; vertical-align: text-top;
font-size: 0.75rem; font-size: 0.75rem;
} }
.group-admin-edit-image-item-inner { .group-admin-edit-image-item-inner {
padding: 16px 0.625rem; padding: 16px 0.625rem;
background: $white; background: $white;
border-radius: $general; border-radius: $general;
} }
.group-admin-edit-file-wrap { .group-admin-edit-file-wrap {
margin-bottom: 10px; margin-bottom: 10px;
} }
.group-admin-edit-file-item { .group-admin-edit-file-item {
padding: 10px 16px; padding: 10px 16px;
float: left; float: left;
margin: 0 8px 0.5rem 0; margin: 0 8px 0.5rem 0;
font-size: 0.8125rem; font-size: 0.8125rem;
.group-admin-edit-file-checkbox { .group-admin-edit-file-checkbox {
margin: 0; margin: 0;
} }
} }
.group-admin-edit-filename { .group-admin-edit-filename {
margin-right: 0.3125rem; margin-right: 0.3125rem;
} }
.group-admin-edit-file-delete { .group-admin-edit-file-delete {
padding-bottom: 4px; padding-bottom: 4px;
border-bottom: 1px dotted $red; border-bottom: 1px dotted $red;
vertical-align: top; vertical-align: top;
} }
@media screen and (min-width: 700px) {
.group-admin-edit-image-item {
float: left;
width: 45%;
}
}
@media screen and (min-width: 960px) {
.group-admin-edit-image-item {
width: 30%;
}
}
@media screen and (min-width: 1150px) {
.group-admin-edit-image-item {
width: 20%;
}
}

View File

@ -203,6 +203,7 @@ $orbit-bar-bgc-lighter: lighten($orbit-bar-bgc, 20%) !default;
border-color: #e6e6e6 #e6e6e6 #bfbfbf; border-color: #e6e6e6 #e6e6e6 #bfbfbf;
border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25); border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
color: #fff;
&:hover { &:hover {
color: #fff; color: #fff;
background-color: #d92b0e; background-color: #d92b0e;

View File

@ -60,7 +60,6 @@ a.btn-primary {
} }
} }
// Page heading // Page heading
.page-module-title { .page-module-title {
@extend .unity-title; @extend .unity-title;

View File

@ -1,4 +1,5 @@
@charset "utf-8"; @charset "utf-8";
@import "../initial"; @import "../initial";
// Faqs MODULES // Faqs MODULES
@ -6,9 +7,11 @@
&.widget1 { &.widget1 {
.widget-content { .widget-content {
padding-bottom: 10px; padding-bottom: 10px;
& + .widget-content { & + .widget-content {
border-top: 1px dotted $theme-gray-light; border-top: 1px dotted $theme-gray-light;
} }
.widget-content-title { .widget-content-title {
display: inline-block; display: inline-block;
padding: 5px 0; padding: 5px 0;
@ -37,10 +40,12 @@
.index-title { .index-title {
@extend .unity-title; @extend .unity-title;
} }
&.index1 { &.index1 {
.index-content { .index-content {
list-style-type: decimal-leading-zero; list-style-type: decimal-leading-zero;
list-style-position: inside; list-style-position: inside;
& + .index-content { & + .index-content {
border-top: 1px dotted $theme-gray-light; border-top: 1px dotted $theme-gray-light;
} }

View File

@ -1,6 +1,6 @@
@charset 'utf-8'; @charset "utf-8";
@import '../initial'; @import "../initial";
// Gallery MODULES // Gallery MODULES
.widget-gallery { .widget-gallery {

View File

@ -1,14 +1,18 @@
@charset "utf-8"; @charset "utf-8";
@import "../initial"; @import "../initial";
.modules-menu { .modules-menu {
font-family: $sub-font; font-family: $sub-font;
max-height: none; max-height: none;
li { li {
white-space: nowrap; white-space: nowrap;
& > a, & > .fa { & > a, & > .fa {
color: #ffffff; color: #ffffff;
} }
&:hover { &:hover {
& > a, & > .fa { & > a, & > .fa {
color: $brand-primary; color: $brand-primary;
@ -16,18 +20,22 @@
} }
} }
} }
.modules-menu-level-0 { .modules-menu-level-0 {
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
& > li { & > li {
margin: 0 -15px; margin: 0 -15px;
padding: 0 15px; padding: 0 15px;
border-bottom: 1px solid lighten($theme-gray, 5%); border-bottom: 1px solid lighten($theme-gray, 5%);
& > a { & > a {
display: inline-block; display: inline-block;
padding: 1rem 0; padding: 1rem 0;
} }
& > .fa { & > .fa {
position: absolute; position: absolute;
right: 10px; right: 10px;
@ -37,50 +45,62 @@
font-size: 1.5em; font-size: 1.5em;
text-align: center; text-align: center;
} }
&:hover { &:hover {
& > a { & > a {
background-color: transparent; background-color: transparent;
} }
} }
@media (min-width: $screen-sm) { @media (min-width: $screen-sm) {
position: relative; position: relative;
margin: 0 10px; margin: 0 10px;
padding: 0; padding: 0;
border-bottom: none; border-bottom: none;
&:first-child { &:first-child {
margin-left: 0; margin-left: 0;
} }
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
.modules-menu-level-1 { .modules-menu-level-1 {
right: 15px; right: 15px;
left: auto; left: auto;
&:before { &:before {
right: 10px; right: 10px;
left: auto; left: auto;
} }
& > li { & > li {
padding-right: 15px; padding-right: 15px;
padding-left: 15px; padding-left: 15px;
& > a { & > a {
padding-left: 0; padding-left: 0;
} }
} }
.modules-menu-level-2 { .modules-menu-level-2 {
right: 100%; right: 100%;
left: auto; left: auto;
&:before { &:before {
right: -6px; right: -6px;
left: auto; left: auto;
@include arrow('left', 6px, 6px, $theme-gray-darker); @include arrow("left", 6px, 6px, $theme-gray-darker);
} }
} }
} }
} }
& > a { & > a {
padding: 2rem 0; padding: 2rem 0;
border-bottom: 0.5rem solid transparent; border-bottom: 0.5rem solid transparent;
} }
& > .fa { & > .fa {
position: static; position: static;
@include size(auto, auto); @include size(auto, auto);
@ -89,11 +109,13 @@
font-size: 1em; font-size: 1em;
cursor: default; cursor: default;
} }
&:hover { &:hover {
& > a { & > a {
padding: 2rem 0; padding: 2rem 0;
border-bottom-color: $brand-primary; border-bottom-color: $brand-primary;
} }
.modules-menu-level-1 { .modules-menu-level-1 {
display: block; display: block;
} }
@ -101,6 +123,7 @@
} }
} }
} }
.modules-menu-level-1 { .modules-menu-level-1 {
display: none; display: none;
min-width: 100%; min-width: 100%;
@ -109,15 +132,19 @@
background-color: $theme-gray-dark; background-color: $theme-gray-dark;
list-style: none; list-style: none;
z-index: 1; z-index: 1;
& > li { & > li {
position: relative; position: relative;
& + li { & + li {
border-top: 1px solid lighten($theme-gray-dark, 5%); border-top: 1px solid lighten($theme-gray-dark, 5%);
} }
& > a { & > a {
display: inline-block; display: inline-block;
padding: 0.7em 0 0.7em 30px; padding: 0.7em 0 0.7em 30px;
} }
& > .fa { & > .fa {
position: absolute; position: absolute;
right: 15px; right: 15px;
@ -127,31 +154,38 @@
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
} }
&:hover { &:hover {
background-color: darken($brand-primary, 10%); background-color: darken($brand-primary, 10%);
& > a, & > .fa { & > a, & > .fa {
color: #FFF; color: #FFF;
} }
} }
} }
@media (min-width: $screen-sm) { @media (min-width: $screen-sm) {
position: absolute; position: absolute;
left: 15px; left: 15px;
margin-top: -0.5rem; margin-top: -0.5rem;
border-top: 0.5rem solid $brand-primary; border-top: 0.5rem solid $brand-primary;
&:before { &:before {
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
top: -16px; top: -16px;
left: 10px; left: 10px;
@include arrow('bottom', 10px, 8px, $brand-primary); @include arrow("bottom", 10px, 8px, $brand-primary);
} }
& > li { & > li {
padding-right: 30px; padding-right: 30px;
& > a { & > a {
padding-left: 15px; padding-left: 15px;
} }
& > .fa { & > .fa {
position: static; position: static;
@include size(auto, auto); @include size(auto, auto);
@ -162,12 +196,14 @@
font-size: 1em; font-size: 1em;
cursor: default; cursor: default;
} }
&:hover { &:hover {
.modules-menu-level-2 { .modules-menu-level-2 {
display: block; display: block;
} }
} }
} }
.fa { .fa {
&:before { &:before {
content: "\f105"; content: "\f105";
@ -175,46 +211,56 @@
} }
} }
} }
.modules-menu-level-2 { .modules-menu-level-2 {
display: none; display: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: $theme-gray-darker; background-color: $theme-gray-darker;
list-style: none; list-style: none;
& > li { & > li {
& + li { & + li {
border-top: 1px solid lighten($theme-gray-darker, 5%); border-top: 1px solid lighten($theme-gray-darker, 5%);
} }
& > a { & > a {
display: inline-block; display: inline-block;
padding: 0.5em 0 0.5em 45px; padding: 0.5em 0 0.5em 45px;
} }
&:hover { &:hover {
background-color: darken($brand-primary, 20%); background-color: darken($brand-primary, 20%);
& > a { & > a {
color: #FFF; color: #FFF;
} }
} }
} }
@media (min-width: $screen-sm) { @media (min-width: $screen-sm) {
position: absolute; position: absolute;
top: 0; top: 0;
left: 100%; left: 100%;
&:before { &:before {
content: ""; content: "";
display: block; display: block;
position: absolute; position: absolute;
top: 13px; top: 13px;
left: -6px; left: -6px;
@include arrow('right', 6px, 6px, $theme-gray-darker); @include arrow("right", 6px, 6px, $theme-gray-darker);
} }
& > li { & > li {
padding-right: 15px; padding-right: 15px;
& > a { & > a {
padding-left: 15px; padding-left: 15px;
padding: 0.7em 0 0.7em 15px; padding: 0.7em 0 0.7em 15px;
} }
} }
.fa { .fa {
&:before { &:before {
content: "\f105"; content: "\f105";

View File

@ -1,4 +1,5 @@
@charset "utf-8"; @charset "utf-8";
@import "../initial"; @import "../initial";
// Link MODULES // Link MODULES
@ -7,12 +8,15 @@
.widget-title { .widget-title {
@extend .unity-title; @extend .unity-title;
} }
&.widget1 { &.widget1 {
.widget-content { .widget-content {
line-height: 2.5em; line-height: 2.5em;
& + .widget-content { & + .widget-content {
border-top: 1px dotted $theme-gray-light; border-top: 1px dotted $theme-gray-light;
} }
.widget-content-title { .widget-content-title {
display: inline-block; display: inline-block;
} }
@ -33,13 +37,16 @@
.index-title { .index-title {
@extend .unity-title; @extend .unity-title;
} }
&.index1 { &.index1 {
.index-content { .index-content {
list-style-type: decimal-leading-zero; list-style-type: decimal-leading-zero;
list-style-position: inside; list-style-position: inside;
& + .index-content { & + .index-content {
border-top: 1px dotted $theme-gray-light; border-top: 1px dotted $theme-gray-light;
} }
.index-context { .index-context {
display: inline-block; display: inline-block;
margin: 0 0 10px 2em; margin: 0 0 10px 2em;

View File

@ -19,3 +19,7 @@
// Widget // Widget
@import "widget/breadcrumb"; @import "widget/breadcrumb";
@import "widget/sitemenu"; @import "widget/sitemenu";
.container {
width: 980px !important;
}

View File

@ -1,17 +1,21 @@
@charset "utf-8"; @charset "utf-8";
@import "../initial"; @import "../initial";
.sitemenu-wrap { .sitemenu-wrap {
padding: 10px 0; padding: 10px 0;
@include clearfix; @include clearfix;
.sitemenu-title { .sitemenu-title {
display: none; display: none;
} }
.sitemenu-list { .sitemenu-list {
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
} }
.sitemenu-item.level-1 { .sitemenu-item.level-1 {
font-size: 0.8125rem; font-size: 0.8125rem;
position: relative; position: relative;
@ -23,19 +27,23 @@
color: #fff; color: #fff;
border-radius: .2em; border-radius: .2em;
background: $theme-color-second; background: $theme-color-second;
&:hover { &:hover {
background: darken($theme-color-second, 10%); background: darken($theme-color-second, 10%);
} }
} }
.sitemenu-link.level-1 { .sitemenu-link.level-1 {
margin-right: .25rem; margin-right: .25rem;
color: #fff; color: #fff;
} }
.sitemenu-dropdown-toggle { .sitemenu-dropdown-toggle {
font-size: 0.75rem; font-size: 0.75rem;
padding: 2px .3125rem; padding: 2px .3125rem;
cursor: pointer; cursor: pointer;
} }
// sitemenu dropdown // sitemenu dropdown
.sitemenu-list.dropdown-menu { .sitemenu-list.dropdown-menu {
min-width: 100%; min-width: 100%;
@ -44,10 +52,12 @@
border-radius: .2em; border-radius: .2em;
background: $theme-color-main; background: $theme-color-main;
} }
.sitemenu-link.level-2 { .sitemenu-link.level-2 {
color: #fff; color: #fff;
font-size: 0.8125rem; font-size: 0.8125rem;
padding: 4px 0.625rem; padding: 4px 0.625rem;
&:hover { &:hover {
background: lighten($theme-color-second, 5%); background: lighten($theme-color-second, 5%);
} }

View File

@ -16,7 +16,7 @@
data-overlay-template="<h2>{{title}}</h2>{{desc}}" data-overlay-template="<h2>{{title}}</h2>{{desc}}"
data-target="{{target}}" data-target="{{target}}"
> >
<img class="w-ad-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}> <img class="w-ad-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}">
</div> </div>
</div> </div>
<ul class="w-ad-banner__pager-3 banner-pager"></ul> <ul class="w-ad-banner__pager-3 banner-pager"></ul>

View File

@ -10,7 +10,7 @@
data-link="{{link}}" data-link="{{link}}"
data-target="{{target}}" data-target="{{target}}"
> >
<img class="w-ad-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}> <img class="w-ad-banner__image banner-responsive" src="{{image_link}}" alt="{{alt_title}}">
</div> </div>
</div> </div>
</div> </div>

View File

@ -3,19 +3,19 @@
<span>{{widget-title}}</span> <span>{{widget-title}}</span>
</h3> </h3>
<div class="w-annc__inner row"> <div class="w-annc__inner row">
<div class="w-annc__img-wrap col-md-4 bullseye"> <div class="w-annc__img-wrap col-xs-4 bullseye">
<img class="w-annc__img" src="{{main_picture}}" alt="{{main_picture_description}}" title="{{main_picture_description}}"> <img class="w-annc__img" src="{{main_picture}}" alt="{{main_picture_description}}" title="{{main_picture_description}}">
</div> </div>
<ul class="w-annc__list col-md-8" data-level="0" data-list="announcements"> <ul class="w-annc__list col-xs-8" data-level="0" data-list="announcements">
<li class="w-annc__item"> <li class="w-annc__item">
<div class="w-annc__content row"> <div class="w-annc__content row">
<h4 class="w-annc__entry-title col-md-9"> <h4 class="w-annc__entry-title col-xs-9">
<span class="w-annc__status-wrap" data-list="statuses" data-level="1"> <span class="w-annc__status-wrap" data-list="statuses" data-level="1">
<span class="w-annc__status label {{status-class}}">{{status}}</span> <span class="w-annc__status label {{status-class}}">{{status}}</span>
</span> </span>
<a class="w-annc__title" href="{{link_to_show}}">{{title}}</a> <a class="w-annc__title" href="{{link_to_show}}">{{title}}</a>
</h4> </h4>
<span class="w-annc__postdate-wrap col-md-3" date-format="%Y-%m-%d"> <span class="w-annc__postdate-wrap col-xs-3" date-format="%Y-%m-%d">
<i class="fa fa-calendar-o"></i> <i class="fa fa-calendar-o"></i>
<span class="w-annc__postdate">{{postdate}}</span> <span class="w-annc__postdate">{{postdate}}</span>
</span> </span>

View File

@ -6,7 +6,7 @@
<table class="i-member__table table table-striped"> <table class="i-member__table table table-striped">
<thead data-level="2" data-list="members"> <thead data-level="2" data-list="members">
<tr class="i-member-tr-head" data-list="profile_data" data-level="3"> <tr class="i-member-tr-head" data-list="profile_data" data-level="3">
<th>{{key}}</th> <th>{{title}}</th>
</tr> </tr>
</thead> </thead>
<tbody data-level="2" data-list="members"> <tbody data-level="2" data-list="members">

View File

@ -13,6 +13,7 @@
<%= javascript_include_tag "lib/file-type" %> <%= javascript_include_tag "lib/file-type" %>
<%= javascript_include_tag "lib/module-area" %> <%= javascript_include_tag "lib/module-area" %>
<%= javascript_include_tag "lib/dropzone" %> <%= javascript_include_tag "lib/dropzone" %>
<%= javascript_include_tag "group" %>
<% end %> <% end %>
<div class="input-area"> <div class="input-area">
<div class="upload-status-notice hide"> <div class="upload-status-notice hide">