tmatt_cms 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9a86d2330affaca86073d5f7fa720a06c4e7332
4
- data.tar.gz: ea334e07541506fe44d825e52ad75cf2e70462cb
3
+ metadata.gz: 07f504b4e24b7606d32152bc9fc78f10dc9f8c0d
4
+ data.tar.gz: 5ee1622aa689a5a780b6d94899645bf5e4763b06
5
5
  SHA512:
6
- metadata.gz: 1c9d65e9d2ba8d4b9b3c76e7ff97667829ccbd5d44450a7494f941114773114920c82905ed319ba09faeb72c24cffc316212fd5c46383255ca49b824b642efdb
7
- data.tar.gz: bdd50bb31a73f0d1bdbf4700bccc899a1952959a8fbe4a458436c6002ef4326e165c338d9b7753211263be659661a507903f57215804213144595f9b10d06763
6
+ metadata.gz: 5da7e66548d29ff65a11ffd630a84290f9358ed74eede4741bfa44b25f8a78e88c794cdee0bc05f9936cccb8f0d0361b735bffb5508e7c870211629b52779e0e
7
+ data.tar.gz: d100307ad8e57bec3575543aff1c85d05e59d3d692676cc6d777416f8c8ddac3309f0984b47e6bd35f333982716df86b13a18f64ae7a2bc9292b2031822c706d
@@ -141,11 +141,16 @@ module TmattCms
141
141
  remove_file 'app/assets/stylesheets/style.css.scss'
142
142
  copy_file 'css/style.css.scss', 'app/assets/stylesheets/style.css.scss'
143
143
 
144
+ remove_file 'app/assets/stylesheets/style.responsive.css.scss'
145
+ copy_file 'css/style.responsive.css.scss', 'app/assets/stylesheets/style.responsive.css.scss'
146
+
144
147
  copy_file 'css/layouts/header.css.scss', 'app/assets/stylesheets/layouts/header.css.scss'
145
148
  copy_file 'css/layouts/footer.css.scss', 'app/assets/stylesheets/layouts/footer.css.scss'
146
149
  end
147
150
 
148
151
  def copy_javascript_files
152
+ copy_file 'js/utils/body_util.js', 'app/assets/javascripts/utils/body_util.js'
153
+
149
154
  remove_file 'app/assets/javascripts/application.js'
150
155
  copy_file 'js/application.js', 'app/assets/javascripts/application.js'
151
156
  end
@@ -42,3 +42,18 @@
42
42
  background: -moz-linear-gradient($color_from, $color_from, $color_from, $color_to);
43
43
  background: linear-gradient($color_from, $color_from, $color_from, $color_to);
44
44
  }
45
+
46
+ @mixin rotate($degree) {
47
+ -webkit-transform: rotate($degree);
48
+ -moz-transform: rotate($degree);
49
+ -o-transform: rotate($degree);
50
+ -ms-transform: rotate(45deg);
51
+ transform: rotate($degree);
52
+ }
53
+
54
+ @mixin transition_delay($time) {
55
+ -webkit-transition-delay: 0.10s;
56
+ -moz-transition-delay: 0.10s;
57
+ -o-transition-delay: 0.10s;
58
+ transition-delay: 0.10s;
59
+ }
@@ -86,6 +86,8 @@ abbr[title] { border: 0; }
86
86
 
87
87
  .overflow-h { overflow: hidden }
88
88
 
89
+ .no-scroll { position: fixed; overflow-y:scroll }
90
+
89
91
  .m-c { margin:0 !important; }
90
92
 
91
93
  .m-a { margin:0 auto !important; }
@@ -142,7 +144,7 @@ abbr[title] { border: 0; }
142
144
  .padd-side-1_3 { padding: 0 $gutter/3; }
143
145
  .padd-side-1_4 { padding: 0 $gutter/4; }
144
146
  .padd-side-3_4 { padding: 0 $gutter*3/4; }
145
- .padd-side-c { padding-left: 0; padding-right: 0; }
147
+ .padd-side-c { padding-left: 0 !important; padding-right: 0 !important; }
146
148
 
147
149
  .padd-l { padding-left: $gutter; }
148
150
  .padd-l-2 { padding-left: $gutter*2; }
@@ -274,6 +276,9 @@ abbr[title] { border: 0; }
274
276
  .media > .pull-left { margin-right: $gutter*2; }
275
277
  .media > .pull-right { margin-left: $gutter*2; }
276
278
 
279
+ .float_l { float: left; }
280
+ .float_r { float: right; }
281
+
277
282
  .btn {
278
283
  border-radius: .4rem;
279
284
  border: .1rem solid $black;
@@ -0,0 +1,30 @@
1
+ @media (min-width: 99.2rem) {
2
+ }
3
+
4
+ @media (min-width: 76.8rem) {
5
+ }
6
+
7
+ @media (max-width: 99.1rem) {
8
+ .font-2xlarge { font-size:2.6rem !important; }
9
+ .font-3xlarge { font-size:3.0rem !important; }
10
+ .font-4xlarge { font-size:3.4rem !important; }
11
+ .font-5xlarge { font-size:3.8rem !important; }
12
+ .font-6xlarge { font-size:4.6rem !important; }
13
+ }
14
+ @media (max-width: 76.7rem) {
15
+ #main { padding-bottom: 0; }
16
+ .container { padding: 0; }
17
+ .font-medium { font-size:1.5rem !important; }
18
+ .font-large { font-size:1.7rem !important; }
19
+ .font-xlarge { font-size:2.0rem !important; }
20
+ .font-2xlarge { font-size:2.4rem !important; }
21
+ .font-3xlarge { font-size:2.8rem !important; }
22
+ .font-4xlarge { font-size:3.0rem !important; }
23
+ .font-5xlarge { font-size:3.2rem !important; }
24
+ .font-6xlarge { font-size:3.8rem !important; }
25
+ .row {
26
+ margin-bottom: 0;
27
+ overflow-x: hidden;
28
+ & > div[class*="col-"] { margin-bottom: $gutter; }
29
+ }
30
+ }
@@ -20,6 +20,7 @@
20
20
  //= require layout
21
21
  //= require owl.carousel
22
22
  //= require magnific-popup
23
+ //= require utils/body_util
23
24
  //= require utils/action_alert
24
25
  //= require utils/froala_editor
25
26
  //= require froala_editor.min.js
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Created by Charlie on 17/05/2017.
3
+ */
4
+ function lockScrollAndGetScrollTop() {
5
+ $('body').css('top', -(document.documentElement.scrollTop) + 'px')
6
+ .addClass('no-scroll');
7
+ }
8
+
9
+
10
+ function unlockScroll() {
11
+ $('body').css('top', -(document.documentElement.scrollTop) + 'px')
12
+ .removeClass('no-scroll');
13
+ }
@@ -1,3 +1,3 @@
1
1
  module TmattCms
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmatt_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xingyu Ye
@@ -91,6 +91,7 @@ files:
91
91
  - lib/generators/tmatt_cms/templates/css/layouts/form.css.scss
92
92
  - lib/generators/tmatt_cms/templates/css/layouts/header.css.scss
93
93
  - lib/generators/tmatt_cms/templates/css/style.css.scss
94
+ - lib/generators/tmatt_cms/templates/css/style.responsive.css.scss
94
95
  - lib/generators/tmatt_cms/templates/css/utils/action_alert.css.scss
95
96
  - lib/generators/tmatt_cms/templates/css/utils/froala/froala_editor.min.css.scss
96
97
  - lib/generators/tmatt_cms/templates/css/utils/froala/froala_style.min.css.scss
@@ -111,6 +112,7 @@ files:
111
112
  - lib/generators/tmatt_cms/templates/inputs/translation_input.rb
112
113
  - lib/generators/tmatt_cms/templates/js/application.js
113
114
  - lib/generators/tmatt_cms/templates/js/utils/action_alert.js
115
+ - lib/generators/tmatt_cms/templates/js/utils/body_util.js
114
116
  - lib/generators/tmatt_cms/templates/js/utils/froala_editor.js
115
117
  - lib/generators/tmatt_cms/templates/js/utils/jasny-bootstrap.min.js
116
118
  - lib/generators/tmatt_cms/templates/js/utils/magnificPopup.js