tida_template 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module TidaTemplate
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,21 @@
1
+ //= require bootstrap
2
+ //= require jquery.NobleCount.min
3
+ //= require bootstrap-datetimepicker
4
+ //= require bootstrap-editable
5
+
6
+ $(document).ready(function() {
7
+ $("a[rel=popover]").popover();
8
+ $(".tooltip").tooltip();
9
+ $("a[rel=tooltip]").tooltip();
10
+
11
+ $('.dropdown-toggle').dropdown();
12
+
13
+ $('.date-time-picker').datetimepicker({
14
+ format: 'yyyy-MM-dd hh:mm:ss'
15
+ });
16
+
17
+ $('.date-picker').datetimepicker({
18
+ format: 'yyyy-MM-dd',
19
+ pickTime: false
20
+ });
21
+ });
@@ -0,0 +1,3 @@
1
+ /* jQuery.NobleCount v 1.0 http://tpgblog.com/noblecount/
2
+ compiled by http://yui.2clics.net/ */
3
+ (function(c){c.fn.NobleCount=function(i,h){var j;var g=false;if(typeof i=="string"){j=c.extend({},c.fn.NobleCount.settings,h);if(typeof h!="undefined"){g=((typeof h.max_chars=="number")?true:false)}return this.each(function(){var k=c(this);f(k,i,j,g)})}return this};c.fn.NobleCount.settings={on_negative:null,on_positive:null,on_update:null,max_chars:140,block_negative:false,cloak:false,in_dom:false};function f(g,m,n,h){var l=n.max_chars;var j=c(m);if(!h){var k=j.text();var i=(/^[1-9]\d*$/).test(k);if(i){l=k}}b(g,j,n,l,true);c(g).keydown(function(o){b(g,j,n,l,false);if(a(o,g,n,l)==false){return false}});c(g).keyup(function(o){b(g,j,n,l,false);if(a(o,g,n,l)==false){return false}})}function a(k,g,l,j){if(l.block_negative){var h=k.which;var i;if(typeof document.selection!="undefined"){i=(document.selection.createRange().text.length>0)}else{i=(g[0].selectionStart!=g[0].selectionEnd)}if((!((e(g,j)<1)&&(h>47||h==32||h==0||h==13)&&!k.ctrlKey&&!k.altKey&&!i))==false){return false}}return true}function e(g,h){return h-(c(g).val()).length}function b(g,i,l,j,h){var k=e(g,j);if(k<0){d(l.on_negative,l.on_positive,g,i,l,k)}else{d(l.on_positive,l.on_negative,g,i,l,k)}if(l.cloak){if(l.in_dom){i.attr("data-noblecount",k)}}else{i.text(k)}if(!h&&jQuery.isFunction(l.on_update)){l.on_update(g,i,l,k)}}function d(i,g,h,j,l,k){if(i!=null){if(typeof i=="string"){j.addClass(i)}else{if(jQuery.isFunction(i)){i(h,j,l,k)}}}if(g!=null){if(typeof g=="string"){j.removeClass(g)}}}})(jQuery);
@@ -0,0 +1,3 @@
1
+ // retina.js, a high-resolution image swapper (http://retinajs.com), v0.0.2
2
+
3
+ (function(){function t(e){this.path=e;var t=this.path.split("."),n=t.slice(0,t.length-1).join("."),r=t[t.length-1];this.at_2x_path=n+"@2x."+r}function n(e){this.el=e,this.path=new t(this.el.getAttribute("src"));var n=this;this.path.check_2x_variant(function(e){e&&n.swap()})}var e=typeof exports=="undefined"?window:exports;e.RetinaImagePath=t,t.confirmed_paths=[],t.prototype.is_external=function(){return!!this.path.match(/^https?\:/i)&&!this.path.match("//"+document.domain)},t.prototype.check_2x_variant=function(e){var n,r=this;if(this.is_external())return e(!1);if(this.at_2x_path in t.confirmed_paths)return e(!0);n=new XMLHttpRequest,n.open("HEAD",this.at_2x_path),n.onreadystatechange=function(){return n.readyState!=4?e(!1):n.status>=200&&n.status<=399?(t.confirmed_paths.push(r.at_2x_path),e(!0)):e(!1)},n.send()},e.RetinaImage=n,n.prototype.swap=function(e){function n(){t.el.complete?(t.el.setAttribute("width",t.el.offsetWidth),t.el.setAttribute("height",t.el.offsetHeight),t.el.setAttribute("src",e)):setTimeout(n,5)}typeof e=="undefined"&&(e=this.path.at_2x_path);var t=this;n()},e.devicePixelRatio>1&&(window.onload=function(){var e=document.getElementsByTagName("img"),t=[],r,i;for(r=0;r<e.length;r++)i=e[r],t.push(new n(i))})})();
@@ -0,0 +1,40 @@
1
+ @import "variables";
2
+ @import 'bootstrap';
3
+ @import 'font-awesome';
4
+ @import 'bootstrap/reset';
5
+ @import 'bootstrap/responsive';
6
+ @import 'bootstrap/mixins';
7
+ @import 'bootstrap-datetimepicker';
8
+ @import 'bootstrap-editable';
9
+ @import 'retina';
10
+
11
+ html, body {
12
+ width: 100%; height: 100%;
13
+ padding: 0px; margin: 0px;
14
+ position: absolute;
15
+ font: {
16
+ size: 12px;
17
+ family: "Hiragino Sans GB", "Lucida Grande", arial, sans-serif;
18
+ }
19
+ }
20
+
21
+ a {
22
+ text-decoration: none !important;
23
+
24
+ &:hover {
25
+ text-decoration: none !important;
26
+ }
27
+ }
28
+
29
+ .dropdown-menu {
30
+ @include border-radius(0);
31
+ border: $borderColor solid 1px;
32
+
33
+ li:hover > a {
34
+ text-shadow: none;
35
+ }
36
+
37
+ .active > a, .active > a:hover {
38
+ color: white;
39
+ }
40
+ }
@@ -0,0 +1,36 @@
1
+ .brands-list {
2
+ padding: 0px; margin: $largePadding $largePadding;
3
+ [class*="cell"] {
4
+ padding-bottom: 50px;
5
+ }
6
+ .avatar {
7
+ background: image-url('default_brand.png') no-repeat center center;
8
+ padding: 0px;
9
+ width: 100px;
10
+ height: 100px;
11
+ margin: auto; clear: both;
12
+ @include border-radius(60px);
13
+ // border: 4px solid white;
14
+ // @include box-shadow(rgba(0, 0, 0, 0.7) 0px 3px 6px, rgba(0, 0, 0, 0.5) 0px -5px 25px inset);
15
+ @include box-shadow(rgba(0, 0, 0, 0.3) 0px -5px 25px inset);
16
+
17
+ &:hover {
18
+ @include box-shadow(rgba(0, 0, 0, 0.3) 0px -5px 15px inset);
19
+ }
20
+
21
+ a {
22
+ display: block;
23
+ margin: auto;
24
+ padding-top: 115px;
25
+ text-align: center;
26
+
27
+ &:hover {
28
+ span {
29
+ padding: $smallPadding;
30
+ @include border-radius(4px);
31
+ background: #eee;
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,73 @@
1
+ .button {
2
+ @extend .btn;
3
+ font-size: 12px !important;
4
+ height: 32px;
5
+ line-height: 32px;
6
+ padding: 0px 15px;
7
+ text-shadow: none;
8
+ background: $btnBackground;
9
+ @include box-shadow(none);
10
+ border: none;
11
+ border-bottom: 2px solid darken($btnBackground, 10%);
12
+ outline: none !important;
13
+
14
+ &.disabled,
15
+ &[disabled] {
16
+ &:hover {
17
+ background: $btnBackground;
18
+ color: $grayDark;
19
+ @include opacity(75%);
20
+ }
21
+ }
22
+
23
+ &.strong {
24
+ font-weight: bold;
25
+ }
26
+
27
+ .button:hover, .button:active {
28
+ background: darken($btnBackground, 10%);
29
+ @include box-shadow(none);
30
+ // color: white;
31
+ border: none;
32
+ }
33
+ }
34
+
35
+ @mixin extend-button($backgroundColor, $foreColor: white) {
36
+ @content;
37
+ @include box-shadow(none);
38
+ background: $backgroundColor;
39
+ color: $foreColor;
40
+ border-bottom-color: darken($backgroundColor, 10%);
41
+ &:hover, &:active {
42
+ background: darken($backgroundColor, 10%);
43
+ }
44
+ }
45
+
46
+ .button-logo {
47
+ @include extend-button($logoColor) { @extend .btn-primary; }
48
+ }
49
+
50
+ .button-primary {
51
+ @include extend-button($btnPrimaryBackground) { @extend .btn-primary; }
52
+ }
53
+
54
+ .button-success {
55
+ @include extend-button($btnSuccessBackground) { @extend .btn-success; }
56
+ }
57
+
58
+ .button-warning {
59
+ @include extend-button($btnWarningBackground) { @extend .btn-warning; }
60
+ }
61
+
62
+ .button-danger {
63
+ @include extend-button($btnDangerBackground) { @extend .btn-danger; }
64
+ }
65
+
66
+ .button-info {
67
+ @include extend-button($btnInfoBackground) { @extend .btn-info; }
68
+ }
69
+
70
+ .button-inverse {
71
+ @include extend-button($btnInverseBackground) { @extend .btn-inverse; }
72
+ }
73
+
@@ -0,0 +1,56 @@
1
+ //
2
+ // Forms
3
+ // --------------------------------------------------
4
+
5
+ form {
6
+ margin: 0px $bigPadding;
7
+ padding: $bigPadding 0;
8
+ border-top: 2px solid $formBorderColor;
9
+ .form-actions {
10
+ margin: 0px;
11
+ padding: 0px;
12
+ background: white;
13
+ border: none;
14
+ }
15
+
16
+ .form-inputs {
17
+ label {
18
+ font-size: 12px;
19
+ font-weight: bold;
20
+ color: $gray;
21
+ }
22
+ }
23
+ }
24
+
25
+ select,
26
+ textarea,
27
+ input[type="text"],
28
+ input[type="password"],
29
+ input[type="datetime"],
30
+ input[type="datetime-local"],
31
+ input[type="date"],
32
+ input[type="month"],
33
+ input[type="time"],
34
+ input[type="week"],
35
+ input[type="number"],
36
+ input[type="email"],
37
+ input[type="url"],
38
+ input[type="search"],
39
+ input[type="tel"],
40
+ input[type="color"],
41
+ .uneditable-input {
42
+ border: $borderColor solid 2px;
43
+ @include box-shadow(none);
44
+ }
45
+
46
+ .input-append .add-on, .input-prepend .add-on {
47
+ border: 2px solid $borderColor;
48
+ }
49
+
50
+ .input-append .add-on {
51
+ border-left: none;
52
+ }
53
+
54
+ .input-prepend .add-on {
55
+ border-right: none;
56
+ }
@@ -0,0 +1,24 @@
1
+ .grid {
2
+ @extend .container-fluid;
3
+ padding: 0px;
4
+
5
+ > .grid-row {
6
+ @extend .row-fluid;
7
+
8
+ > [class*="cell"] {
9
+ @extend [class*="span"];
10
+ }
11
+
12
+ > .cell6 {
13
+ @extend .span6;
14
+ }
15
+
16
+ > .cell3 {
17
+ @extend .span3;
18
+ }
19
+
20
+ > .cell2 {
21
+ @extend .span2;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,7 @@
1
+ .icon {
2
+ display: inline-block;
3
+ &.sina {
4
+ width: 16px; height: 16px;
5
+ background: image-url('sina_logo_16x16.png') no-repeat top left;
6
+ }
7
+ }
@@ -0,0 +1,5 @@
1
+ .label {
2
+ // @include border-radius(0px);
3
+ text-shadow: none;
4
+ font-size: 9px !important;
5
+ }
@@ -0,0 +1,210 @@
1
+ $caret-size: 4px;
2
+
3
+ @mixin global-menu-item-icon($index) {
4
+ background-position: -($index * 24px) 0px;
5
+ &:hover {
6
+ @include global-menu-item-icon-hover($index);
7
+ }
8
+ }
9
+
10
+ @mixin global-menu-item-icon-hover($index) {
11
+ background-position: -($index * 24px) -24px;
12
+ }
13
+
14
+ #user-menu-panel {
15
+ display: block;
16
+ width: auto; height: 50px;
17
+ margin: 0px 20px;
18
+ list-style: none;
19
+ > li {
20
+ line-height: 50px;
21
+ > a {
22
+ font-size: 11px;
23
+ color: white;
24
+ .caret {
25
+ position: relative;
26
+ top: 15px;
27
+ @include caret-down(white);
28
+ }
29
+ }
30
+
31
+ &.open {
32
+ .caret {
33
+ @include caret-up(white);
34
+ }
35
+ }
36
+
37
+ .dropdown-menu {
38
+ padding: 0px;
39
+ > li {
40
+ @include no-space;
41
+
42
+ a {
43
+ margin: 0px; padding: 5px 20px;
44
+ // @include block-link;
45
+
46
+ &:hover {
47
+ // @include hover-block-link;
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ #top-navigation-bar {
56
+ display: block;
57
+ position: absolute;
58
+ top: 0px; bottom: 0px;
59
+ left: 0px; right: 0px;
60
+ width: 70px;
61
+ background: $topNavigationBackgroundColor;
62
+ padding: 0px;
63
+
64
+ ul {
65
+ list-style: none;
66
+ @include no-space;
67
+ top: 0px;
68
+
69
+ li {
70
+
71
+ a {
72
+ display: block;
73
+ width: 50px; height: 40px;
74
+ color: $topNavigationForeColor;
75
+ font-size: 12px;
76
+ text-align: center;
77
+ padding: $bigPadding $normalPadding;
78
+
79
+ &.active {
80
+ background: darken($topNavigationBackgroundColor, 10%);
81
+ color: lighten($topNavigationForeColor, 40%);
82
+ }
83
+
84
+ &:hover {
85
+ color: lighten($topNavigationForeColor, 40%);
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+
92
+ @mixin sub-navigation-active-state {
93
+ background: $pageMenuActiveBackgroundColor;
94
+ color: $pageMenuActiveForeColor;
95
+ font-weight: bold;
96
+ }
97
+
98
+ @mixin sub-navigation-hover-state {
99
+ background: $pageMenuHoverBackgroundColor;
100
+ color: $pageMenuHoverForeColor;
101
+ }
102
+
103
+ #sub-navigation-bar {
104
+ position: absolute;
105
+ top: 0px; bottom: 0px;
106
+ left: 0px; width: 199px;
107
+ @include no-space;
108
+ background: $pageMenuBackgroundColor;
109
+ border-right: 1px solid $pageMenuBorderColor;
110
+ z-index: 90;
111
+
112
+ [class*="accordion"] {
113
+ @include no-space;
114
+ border: none;
115
+ list-style: none;
116
+ }
117
+
118
+ .accordion {
119
+ ul {
120
+ list-style: none;
121
+ @include no-space;
122
+ }
123
+
124
+ a {
125
+ display: block;
126
+ line-height: 30px;
127
+ height: 30px;
128
+ border-bottom: 1px solid $pageMenuBorderColor;
129
+ padding: $smallPadding $bigPadding;
130
+ font: {
131
+ size: 12px;
132
+ }
133
+ color: $pageMenuForeColor;
134
+
135
+ &:hover {
136
+ @include sub-navigation-hover-state;
137
+
138
+ .caret {
139
+ @include caret-down($pageMenuHoverForeColor, $caret-size);
140
+ }
141
+
142
+ &.accordion-toggle.collapsed {
143
+ .caret {
144
+ @include caret-up($pageMenuHoverForeColor, $caret-size);
145
+ }
146
+ }
147
+ }
148
+
149
+ &.active {
150
+ @include sub-navigation-active-state;
151
+
152
+ &.in {
153
+ background: $pageMenuBackgroundColor;
154
+ color: $pageMenuForeColor;
155
+
156
+ &:hover {
157
+ background: $pageMenuHoverBackgroundColor;
158
+ color: $pageMenuHoverForeColor;
159
+
160
+ .caret {
161
+ @include caret-down($pageMenuHoverForeColor, $caret-size);
162
+ }
163
+
164
+ &.accordion-toggle.collapsed {
165
+ .caret {
166
+ @include caret-up($pageMenuHoverForeColor, $caret-size);
167
+ }
168
+ }
169
+ }
170
+ }
171
+
172
+ .caret {
173
+ @include caret-down;
174
+ }
175
+
176
+ &.accordion-toggle.collapsed {
177
+ .caret {
178
+ @include caret-up;
179
+ }
180
+ }
181
+ }
182
+
183
+ .caret {
184
+ position: relative;
185
+ top: $normalPadding;
186
+ @include caret-down;
187
+ }
188
+
189
+ &.accordion-toggle.collapsed {
190
+ .caret {
191
+ @include caret-up;
192
+ }
193
+ }
194
+ }
195
+ }
196
+
197
+ .accordion-body {
198
+ a {
199
+ padding: 0px $bigPadding * 2;
200
+ height: 35px;
201
+ line-height: 35px;
202
+
203
+ &.active {
204
+ background: $pageMenuActiveBackgroundColor;
205
+ color: $pageMenuActiveForeColor;
206
+ font-weight: bold;
207
+ }
208
+ }
209
+ }
210
+ }
@@ -0,0 +1,21 @@
1
+ @mixin no-space {
2
+ padding: 0px; margin: 0px;
3
+ }
4
+
5
+ @mixin shadow-box-wrap($backgroundColor) {
6
+ background: $backgroundColor;
7
+ padding: 20px;
8
+ @include border-radius(3px);
9
+ border: none;
10
+ border-bottom: 2px solid darken($backgroundColor, 10%);
11
+ }
12
+
13
+ @mixin caret-up($color: $pageMenuForeColor, $size: 4px) {
14
+ border-top: none;
15
+ border-bottom: $size solid $color;
16
+ }
17
+
18
+ @mixin caret-down($color: $pageMenuForeColor, $size: 4px) {
19
+ border-bottom: none;
20
+ border-top: $size solid $color;
21
+ }
@@ -0,0 +1,31 @@
1
+ $modalHeaderBackgroundColor: #eee;
2
+ $modalHeaderFontColor: $pageTitleFontColor;
3
+
4
+ .modal {
5
+ @include border-radius(0px);
6
+ border: none;
7
+ .modal-header {
8
+ border: none;
9
+ color: $modalHeaderFontColor;
10
+ padding: 0px $bigPadding;
11
+ border-top: 5px solid #ccc;
12
+ h4 {
13
+ font-weight: normal;
14
+ line-height: 40px;
15
+ }
16
+ }
17
+
18
+ .modal-footer {
19
+ background: none;
20
+ border: none;
21
+ padding: $normalPadding $normalPadding;
22
+ }
23
+
24
+ form {
25
+ border: none;
26
+ }
27
+ }
28
+
29
+ .modal-backdrop {
30
+
31
+ }
@@ -0,0 +1,38 @@
1
+ .nav-tabs {
2
+ background: $navTabBackgroundColor;
3
+ border: none;
4
+ border-bottom: 2px solid darken($navTabBackgroundColor, 10%);
5
+ padding-top: $smallPadding;
6
+ padding-left: $normalPadding;
7
+
8
+ > li {
9
+ margin-bottom: -2px;
10
+ padding: 0px;
11
+
12
+ &:hover {
13
+ background: darken($navTabBackgroundColor, 10%);
14
+ }
15
+
16
+ > a {
17
+ @include border-radius(0);
18
+ margin: 0px;
19
+ border: none;
20
+ color: $navTabForeColor !important;
21
+ border-bottom: 2px solid darken($navTabBackgroundColor, 10%);
22
+ }
23
+
24
+ > a:hover, > a:focus {
25
+ background: darken($navTabBackgroundColor, 10%);
26
+ border: none;
27
+ border-bottom: 2px solid $logoColor;
28
+ }
29
+
30
+ &.active, &.active:hover, &.active:focus {
31
+ > a {
32
+ border: none;
33
+ border-bottom: 2px solid white;
34
+ font-weight: bold;
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,3 @@
1
+ .notification {
2
+ margin: $normalPadding $bigPadding;
3
+ }
@@ -0,0 +1,80 @@
1
+ // Override some wice-grid class
2
+
3
+ .wice-grid-container {
4
+ padding: $normalPadding $bigPadding;
5
+ }
6
+
7
+ .table-bordered {
8
+ border-color: $borderColor !important;
9
+ }
10
+
11
+ .table {
12
+ border: none;
13
+ border-top: 2px solid $tableHeaderBorderColor;
14
+ border-bottom: 1px solid $tableHeaderBorderColor;
15
+
16
+ th, td {
17
+ line-height: 30px;
18
+ border: none;
19
+ }
20
+
21
+
22
+ th, tfoot td {
23
+ background: $tableHeaderBackgroundColor;
24
+ color: $tableHeaderFontColor;
25
+ font: {
26
+ size: 12px;
27
+ weight: normal;
28
+ }
29
+ padding: 0px $normalPadding;
30
+ }
31
+
32
+ td {
33
+ vertical-align: middle;
34
+ font: {
35
+ size: 12px;
36
+ }
37
+ padding: 0px $normalPadding;
38
+
39
+ &.buttons {
40
+ width: 29px; height: 28px;
41
+ padding: 0px;
42
+ > .button {
43
+ width: 31px; height: 31px;
44
+ padding: 0px;
45
+ }
46
+ }
47
+
48
+ &.auto {
49
+ width: auto;
50
+ }
51
+
52
+ &.narrow {
53
+ width: 1px;
54
+ white-space: nowrap;
55
+ }
56
+
57
+ &.datetime {
58
+ width: 1px;
59
+ white-space: nowrap;
60
+ }
61
+
62
+ .progress {
63
+ margin: 0px;
64
+ line-height: 20px;
65
+ .bar {
66
+ padding: 0px $smallPadding;
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ .table-bordered {
73
+ @include border-radius(0);
74
+ border-color: $tableBorder;
75
+ }
76
+
77
+ .table-bordered thead:first-child tr:first-child > th:first-child,
78
+ .table-bordered tbody:first-child tr:first-child > td:first-child {
79
+ @include border-radius(0);
80
+ }
@@ -0,0 +1,61 @@
1
+ .page-title {
2
+ padding: 0px $bigPadding;
3
+ h3 {
4
+ font: {
5
+ size: 21px;
6
+ weight: normal;
7
+ }
8
+ line-height: 60px;
9
+ height: 60px;
10
+ color: $pageTitleFontColor;
11
+ @include no-space;
12
+ }
13
+
14
+ .toolbar {
15
+ @extend .pull-right;
16
+ padding: $bigPadding 0px;
17
+ .button {
18
+ height: 30px;
19
+ line-height: 30px;
20
+ }
21
+ }
22
+ }
23
+
24
+ .article-title {
25
+ margin-top: $normalPadding;
26
+ margin: 0px $bigPadding !important;
27
+ padding: 0px 0px;
28
+ padding-left: $normalPadding;
29
+ background: $smokeGray;
30
+ h4 {
31
+ font: {
32
+ size: 16px;
33
+ weight: normal;
34
+ }
35
+ color: $articleTitleFontColor;
36
+ line-height: 30px;
37
+ height: 30px;
38
+ @include no-space;
39
+
40
+ &.icon {
41
+ padding-left: 30px;
42
+ }
43
+
44
+ &.sina {
45
+ background: image-url('sina_logo_16x16.png') no-repeat 5px 5px;
46
+ }
47
+ }
48
+
49
+ .toolbar {
50
+ @extend .pull-right;
51
+ padding: 0px;
52
+ .button {
53
+ height: 30px;
54
+ line-height: 30px;
55
+ }
56
+ }
57
+ }
58
+
59
+ .toolbar {
60
+ @extend .btn-group;
61
+ }
@@ -0,0 +1,77 @@
1
+ $linkColor: #666;
2
+ $logoColor: #0268b2;
3
+ $blue: #179ac8;
4
+ $green: #7ab400;
5
+ $lightBlue: #a1d3e5;
6
+ $orange: #ff9a38;
7
+ $red: #da3610;
8
+ $smokeGray: #eee;
9
+ $lightGray: #ccc;
10
+ $gray: #999;
11
+ $darkGray: #666;
12
+ $borderColor: darken(#f5f5f5, 10%);
13
+
14
+ // Text
15
+
16
+
17
+ // Labels
18
+
19
+ $successText: $green;
20
+ $errorText: $red;
21
+ $infoText: $lightBlue;
22
+
23
+ // Table
24
+
25
+ $tableBorderColor: $borderColor;
26
+ $tableHeaderBorderColor: $borderColor;
27
+ $tableHeaderBackgroundColor: transparent;
28
+ $tableHeaderFontColor: $gray;
29
+ $tableBackgroundAccent: #f5f5f5;
30
+ $tableBackgroundHover: darken($tableBackgroundAccent, 5%);
31
+
32
+ // Typography
33
+ $extremeBigFontSize: 30px;
34
+ $bigFontSize: 24px;
35
+ $middleFontSize: 20px;
36
+ $normalFontSize: 14px;
37
+ $smallFontSize: 12px;
38
+
39
+ // Buttons
40
+ $baseBorderRadius: 2px;
41
+ $btnBackground: #f5f5f5;
42
+ $btnPrimaryBackground: #179ac8;
43
+ $btnSuccessBackground: #7ab400;
44
+ $btnWarningBackground: #ff9a38;
45
+ $btnDangerBackground: #da3610;
46
+ $btnInfoBackground: #a1d3e5;
47
+ $btnInverseBackground: #4c575b;
48
+
49
+ // Menus
50
+ $topNavigationBackgroundColor: #2b343d;
51
+ $topNavigationForeColor: #5c6a73;
52
+ $pageMenuBackgroundColor: #f5f5f5;
53
+ $pageMenuForeColor: #7a7977;
54
+ $pageMenuHoverBackgroundColor: darken($pageMenuBackgroundColor, 10%);
55
+ $pageMenuHoverForeColor: #7a7977;
56
+ $pageMenuActiveBackgroundColor: darken($pageMenuBackgroundColor, 30%);
57
+ $pageMenuActiveForeColor: #fff;
58
+ $pageMenuBorderColor: darken($pageMenuBackgroundColor, 10%);
59
+
60
+ // Titles
61
+ $pageTitleBackgroundColor: white;
62
+ $pageTitleFontColor: $darkGray;
63
+ $articleTitleFontColor: $darkGray;
64
+
65
+ // Navs
66
+ $navTabBackgroundColor: #f5f5f5;
67
+ $navTabForeColor: $darkGray;
68
+
69
+ // Forms
70
+ $formActionsBackgroundColor: #f2f2f2;
71
+ $formBorderColor: $borderColor;
72
+
73
+ // Paddings
74
+ $smallPadding: 5px;
75
+ $normalPadding: 10px;
76
+ $bigPadding: 15px;
77
+ $largePadding: 20px;
@@ -0,0 +1,15 @@
1
+ // retina.scss
2
+ // Defaults to png but can be overwritten to jpg or gif
3
+ //$image name is equal to the image name with out it's extention - 'example.png' would be defined as 'example'
4
+ // A helper mixin for applying high-resolution background images (http://www.retinajs.com)
5
+
6
+ @mixin at2x($image_name, $w: auto, $h: auto, $extention: '.png') {
7
+ background-image: image_url($image_name + $extention);
8
+ $x2img : $image_name + '@2x' + $extention;
9
+
10
+ @media all and (-webkit-min-device-pixel-ratio : 1.5) {
11
+ background-image: image_url($x2img);
12
+ background-size: $w $h;
13
+ }
14
+ }
15
+
@@ -0,0 +1,134 @@
1
+ // @import 'components';
2
+ // @import 'menus';
3
+ // @import 'titles';
4
+ // @import 'breadcrumbs';
5
+ // @import 'icons';
6
+ // @import 'brands_list';
7
+
8
+ @import 'base';
9
+ @import 'mixins';
10
+
11
+ html, body {
12
+ color: #383839;
13
+ }
14
+
15
+ #main-container {
16
+ > header {
17
+ display: block; position: absolute;
18
+ top: 0; left: 0px;
19
+ height: 50px; width: 100%;
20
+ background: $logoColor;
21
+ z-index: 1000;
22
+ color: white;
23
+ #logo {
24
+ width: 120px; height: 50px;
25
+ background: image-url('logo.png') no-repeat left top;
26
+ }
27
+ }
28
+
29
+ > #main-content {
30
+ display: block; position: absolute;
31
+ top: 50px; bottom: 0px;
32
+ left: 0px; right: 0px;
33
+ z-index: 1;
34
+
35
+ #main {
36
+ position: absolute;
37
+ top: 0px; bottom: 0px;
38
+ left: 70px; right: 0px;
39
+
40
+ > .content {
41
+ position: absolute;
42
+ top: 0px; bottom: 0px;
43
+ left: 200px; right: 0px;
44
+ z-index: 2;
45
+ overflow: auto;
46
+ }
47
+ }
48
+ }
49
+
50
+ > footer {
51
+ display: block;
52
+ position: absolute;
53
+ left: 270px; bottom: 0;
54
+ width: 100%; height: 30px;
55
+ line-height: 30px;
56
+ border-top: 1px solid $pageMenuBorderColor;
57
+ color: $gray;
58
+ padding: 0px $normalPadding;
59
+
60
+ .copyright {
61
+ font-size: 11px;
62
+ font-weight: normal;
63
+ }
64
+ }
65
+ }
66
+
67
+ @import 'grids';
68
+ @import 'menus';
69
+ @import 'titles';
70
+ @import 'tables';
71
+ @import 'buttons';
72
+ @import 'navs';
73
+ @import 'labels';
74
+ @import 'forms';
75
+ @import 'modals';
76
+ @import 'notifications';
77
+
78
+ article .padding {
79
+ padding: $normalPadding $bigPadding;
80
+ padding-bottom: 0px;
81
+ }
82
+
83
+ // .group.cell {
84
+ // background: $borderColor !important;
85
+ // font-weight: bold;
86
+ // font-size: 14px !important;
87
+ // padding: 7px;
88
+ // text-align: center;
89
+ // }
90
+
91
+ .bootstrap-datetimepicker-widget {
92
+ z-index: 1060;
93
+ }
94
+
95
+ .modal {
96
+ form {
97
+ margin: 0px;
98
+ .control-group:last-child {
99
+ margin-bottom: 0px;
100
+ }
101
+ }
102
+ }
103
+
104
+ .char_count_alert {
105
+ margin-left: 20px;
106
+
107
+ }
108
+
109
+ .navigative_calendar {
110
+ ul {
111
+ list-style: none;
112
+ padding: 0; margin: 0px;
113
+ margin-left: 15px;
114
+
115
+ li {
116
+ display: inline-block;
117
+ a {
118
+ display: block;
119
+ width: 30px; height: 30px;
120
+ background: $smokeGray;
121
+ line-height: 30px;
122
+ text-align: center;
123
+
124
+ &.fat {
125
+ background: darken($borderColor, 20%);
126
+ font-weight: bold;
127
+ color: white;
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ @import 'brands_list';
@@ -0,0 +1,110 @@
1
+ @import 'base';
2
+ @import 'buttons';
3
+ @import 'mixins';
4
+
5
+ body {
6
+ background: #383839;
7
+ color: white;
8
+ }
9
+
10
+ #main-container {
11
+ width: 250px;
12
+ margin: auto; clear: both;
13
+
14
+ header {
15
+ padding-top: 150px;
16
+
17
+ #logo {
18
+ width: 200px; height: 200px;
19
+ margin: auto; clear: both;
20
+ margin-bottom: 15px;
21
+ background: image-url('logo_200.png') no-repeat;
22
+ }
23
+ }
24
+
25
+ footer {
26
+ position: absolute;
27
+ padding-top: 100px;
28
+ bottom: 50px;
29
+ text-align: center;
30
+ font-size: 9px;
31
+ color: #78787a;
32
+ width: 250px;
33
+
34
+ a {
35
+ color: white;
36
+ }
37
+ }
38
+
39
+ #main-content {
40
+ .content {
41
+ input[type="email"], input[type="password"] {
42
+ @include border-radius(0);
43
+ @include box-shadow(none);
44
+ border: none !important;
45
+ outline: none !important;
46
+ width: 230px; height: 30px;
47
+ padding: 5px 10px;
48
+ margin: auto; clear: both;
49
+ margin-bottom: 5px;
50
+ background: #505052;
51
+ border: none;
52
+ outline: none;
53
+ font: {
54
+ size: 16px;
55
+ weight: bold;
56
+ }
57
+ color: white;
58
+
59
+ &:active, &:focus {
60
+ background: #78787a;
61
+ }
62
+
63
+ &::-webkit-input-placeholder { /* WebKit browsers */
64
+ color: #383839;
65
+ }
66
+ &:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
67
+ color: #383839;
68
+ }
69
+ &::-moz-placeholder { /* Mozilla Firefox 19+ */
70
+ color: #383839;
71
+ }
72
+ &:-ms-input-placeholder { /* Internet Explorer 10+ */
73
+ color: #383839;
74
+ }
75
+ }
76
+
77
+ input[type="submit"] {
78
+ width: 70px; height: 40px;
79
+ margin: auto; clear: both;
80
+ margin-bottom: 5px;
81
+ font-size: 16px !important;
82
+ font: {
83
+ size: 16px;
84
+ weight: bold;
85
+ }
86
+ color: white;
87
+ float: right;
88
+ }
89
+
90
+ #alert-box {
91
+ width: 200px; height: 30px;
92
+ line-height: 30px;
93
+ padding: 5px 10px;
94
+ background: black;
95
+ margin: auto; clear: both;
96
+ margin-bottom: 10px;
97
+
98
+ .caret {
99
+ display: block;
100
+ width: 0px;
101
+ border: 5px solid transparent;
102
+ border-top: 5px solid black;
103
+ border-bottom: none;
104
+ position: relative;
105
+ bottom: -5px;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tida_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -305,6 +305,33 @@ files:
305
305
  - lib/tida_template/engine.rb
306
306
  - lib/tida_template/version.rb
307
307
  - lib/tida_template.rb
308
+ - vendor/assets/images/default_brand.png
309
+ - vendor/assets/images/favicon.ico
310
+ - vendor/assets/images/logo.png
311
+ - vendor/assets/images/logo@2x.png
312
+ - vendor/assets/images/logo_200.png
313
+ - vendor/assets/images/sina_logo_16x16.png
314
+ - vendor/assets/javascripts/blue.js
315
+ - vendor/assets/javascripts/jquery.NobleCount.min.js
316
+ - vendor/assets/javascripts/retina.js
317
+ - vendor/assets/stylesheets/_base.scss
318
+ - vendor/assets/stylesheets/_brands_list.scss
319
+ - vendor/assets/stylesheets/_buttons.scss
320
+ - vendor/assets/stylesheets/_forms.scss
321
+ - vendor/assets/stylesheets/_grids.scss
322
+ - vendor/assets/stylesheets/_icons.scss
323
+ - vendor/assets/stylesheets/_labels.scss
324
+ - vendor/assets/stylesheets/_menus.scss
325
+ - vendor/assets/stylesheets/_mixins.scss
326
+ - vendor/assets/stylesheets/_modals.scss
327
+ - vendor/assets/stylesheets/_navs.scss
328
+ - vendor/assets/stylesheets/_notifications.scss
329
+ - vendor/assets/stylesheets/_tables.scss
330
+ - vendor/assets/stylesheets/_titles.scss
331
+ - vendor/assets/stylesheets/_variables.scss
332
+ - vendor/assets/stylesheets/retina.scss
333
+ - vendor/assets/stylesheets/tida_template.css.scss
334
+ - vendor/assets/stylesheets/tida_template_single.css.scss
308
335
  - MIT-LICENSE
309
336
  - Rakefile
310
337
  - README.rdoc
@@ -352,7 +379,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
352
379
  version: '0'
353
380
  segments:
354
381
  - 0
355
- hash: 1259449233101700201
382
+ hash: 3492363582562434731
356
383
  required_rubygems_version: !ruby/object:Gem::Requirement
357
384
  none: false
358
385
  requirements:
@@ -361,7 +388,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
361
388
  version: '0'
362
389
  segments:
363
390
  - 0
364
- hash: 1259449233101700201
391
+ hash: 3492363582562434731
365
392
  requirements: []
366
393
  rubyforge_project:
367
394
  rubygems_version: 1.8.24