c80_estate 0.1.0.12 → 0.1.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/admin/c80_estate/areas.rb +5 -0
  3. data/app/admin/c80_estate/dashboard.rb +1 -1
  4. data/app/admin/c80_estate/sevents.rb +2 -2
  5. data/app/assets/images/no_thumb.png +0 -0
  6. data/app/assets/images/w227x182px.gif +0 -0
  7. data/app/assets/images/w621x377.gif +0 -0
  8. data/app/assets/javascript/c80_estate/backend/admin/shared/areas/_area_show_common.js +21 -0
  9. data/app/assets/javascript/c80_estate/backend/admin/shared/areas/area_show.js +352 -0
  10. data/app/assets/javascript/c80_estate/backend/admin/shared/areas/gallery3.js +42 -0
  11. data/app/assets/javascript/c80_estate/backend/admin/{areas.js → src/areas.js} +2 -1
  12. data/app/assets/javascript/c80_estate/backend/admin/{pstats.js → src/pstats.js} +0 -0
  13. data/app/assets/javascript/c80_estate/backend/admin/{sevents.js → src/sevents.js} +1 -1
  14. data/app/assets/javascript/c80_estate/lib/jquery.magnific-popup.js +2060 -0
  15. data/app/assets/javascript/c80_estate_active_admin.js.coffee +2 -1
  16. data/app/assets/stylesheets/c80_estate/backend/admin_areas.scss +11 -0
  17. data/app/assets/stylesheets/c80_estate/backend/admin_sevents.scss +0 -68
  18. data/app/assets/stylesheets/c80_estate/backend/common/minor_fix.scss +3 -0
  19. data/app/assets/stylesheets/c80_estate/backend/common/panel.scss +42 -0
  20. data/app/assets/stylesheets/c80_estate/backend/dashboard/atype_in_list.scss +7 -0
  21. data/app/assets/stylesheets/c80_estate/backend/dashboard/common.scss +2 -28
  22. data/app/assets/stylesheets/c80_estate/backend/dashboard/prop_in_list.scss +3 -3
  23. data/app/assets/stylesheets/c80_estate/backend/shared/areas/gallery3.scss +107 -0
  24. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item.scss +1 -0
  25. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_button_order.scss +8 -0
  26. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_comments.scss +8 -0
  27. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_common_props.scss +51 -0
  28. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_desc.scss +10 -0
  29. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_main.scss +151 -0
  30. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_price_info.scss +68 -0
  31. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_related_items.scss +12 -0
  32. data/app/assets/stylesheets/c80_estate/backend/shared/areas/stroitelnye_materialy_item/div_vendor_logo.scss +18 -0
  33. data/app/assets/stylesheets/c80_estate/backend/shared/index_adds_like_sevents.scss +68 -0
  34. data/app/assets/stylesheets/c80_estate/lib/magnific-popup-custom.scss +41 -0
  35. data/app/assets/stylesheets/c80_estate/lib/magnific-popup.scss +369 -0
  36. data/app/assets/stylesheets/c80_estate/lib/slick-carousel-custom.scss +174 -0
  37. data/app/assets/stylesheets/c80_estate/lib/slick-theme.scss +202 -0
  38. data/app/assets/stylesheets/c80_estate/lib/slick.scss +116 -0
  39. data/app/helpers/c80_estate/app_helper.rb +39 -0
  40. data/app/helpers/c80_estate/areas_helper.rb +109 -0
  41. data/app/models/c80_estate/area.rb +12 -0
  42. data/app/uploaders/c80_estate/aphoto_uploader.rb +2 -2
  43. data/app/views/admin/areas/_show_area.html.erb +1 -0
  44. data/app/views/c80_estate/shared/areas/_gallery4.html.erb +52 -0
  45. data/app/views/c80_estate/shared/areas/_single_area_on_page.html.erb +53 -0
  46. data/lib/c80_estate/version.rb +1 -1
  47. metadata +34 -5
@@ -1,4 +1,5 @@
1
1
  #= require_tree ./c80_estate/lib
2
2
  #= require ./c80_estate/backend/init
3
3
  #= require ./c80_estate/backend/init_selectpicker
4
- #= require_tree ./c80_estate/backend/admin
4
+ #= require_tree ./c80_estate/backend/admin/shared
5
+ #= require_tree ./c80_estate/backend/admin/src
@@ -193,6 +193,17 @@ body.admin_areas {
193
193
 
194
194
  &.show {
195
195
 
196
+ div#main_content {
197
+ opacity: 0;
198
+
199
+ -webkit-transition: opacity .2s ease-in;
200
+ -moz-transition: opacity .2s ease-in;
201
+ -ms-transition: opacity .2s ease-in;
202
+ -o-transition: opacity .2s ease-in;
203
+ transition: opacity .2s ease-in;
204
+
205
+ }
206
+
196
207
  }
197
208
 
198
209
  }
@@ -11,74 +11,6 @@ body.admin_sevents {
11
11
  -o-transition: opacity .2s ease-in;
12
12
  transition: opacity .2s ease-in;
13
13
 
14
- div#index_adds {
15
- height: calc(183px + 15px);
16
- min-height: calc(183px + 15px);
17
- margin-bottom: 0;
18
-
19
- > div {
20
- float: left;
21
- padding: 10px;
22
- border-radius: 2px;
23
- border: 2px solid #f1f1f1;
24
- height: 183px;
25
-
26
- &#ecoef {
27
- width: 200px;
28
- text-align: center;
29
-
30
- p {
31
- width: 100%;
32
-
33
- &.val {
34
- margin-top: 15px;
35
- margin-bottom: 0;
36
- font-size: 40px;
37
- }
38
-
39
- }
40
- }
41
-
42
- &#text_stats {
43
- width: 400px;
44
- margin-left: 30px;
45
-
46
- ul {
47
- padding: 0 5px;
48
- list-style: none;
49
- #title {
50
- font-weight: bold;
51
- }
52
- }
53
-
54
- }
55
-
56
- &#graph {
57
- /*width: calc(100% - 200px - 400px - 30px - 30px);*/
58
- width: 100%;
59
- height: 200px;
60
- margin-top: 15px;
61
-
62
- /*margin-left: 30px;*/
63
- padding: 0;
64
- display: none;
65
- opacity: 0;
66
-
67
- -webkit-transition: opacity .2s ease-in;
68
- -moz-transition: opacity .2s ease-in;
69
- -ms-transition: opacity .2s ease-in;
70
- -o-transition: opacity .2s ease-in;
71
- transition: opacity .2s ease-in;
72
-
73
- #graph_canvas {
74
- width: 100%;
75
- }
76
-
77
- }
78
-
79
- }
80
- }
81
-
82
14
  }
83
15
 
84
16
  .batch_actions_selector {
@@ -0,0 +1,3 @@
1
+ .batch_actions_selector {
2
+ margin-right: 20px !important;
3
+ }
@@ -0,0 +1,42 @@
1
+ .panel {
2
+ -webkit-box-shadow: none !important;
3
+ box-shadow: none !important;
4
+
5
+ > h3 {
6
+ background-color: #5e7188 !important;
7
+ background-image: none !important;
8
+ text-shadow: none !important;
9
+ border: none !important;
10
+ box-shadow: none !important;
11
+ line-height: 30px !important;;
12
+ margin-bottom: 0.5em;
13
+ color: #ffffff !important;
14
+ padding: 5px 10px 3px 10px;
15
+ }
16
+
17
+ .panel_contents {
18
+ padding: 10px 0 !important;
19
+ border-bottom: none !important;
20
+ }
21
+
22
+ table {
23
+ th {
24
+ background-color: #ffffff !important;
25
+ border-bottom: 1px solid #cecece !important;
26
+ line-height: 5px !important;
27
+ background-image: none !important;
28
+ color: #288feb !important;
29
+ }
30
+ }
31
+ }
32
+
33
+ div#sidebar {
34
+ div.sidebar_section.panel {
35
+ h3 {
36
+ color: #444444 !important;
37
+ }
38
+ .panel_contents {
39
+ padding: 3px 15px 15px 15px !important;
40
+ }
41
+ }
42
+ }
@@ -1,3 +1,10 @@
1
+ body.admin_dashboard {
2
+ table.index_table th {
3
+ background-color: transparent !important;
4
+ border-bottom: 2px solid #eaeaea !important;
5
+ }
6
+ }
7
+
1
8
  a.atype_in_list {
2
9
  display: block;
3
10
  float: left;
@@ -8,35 +8,9 @@ body.admin_dashboard {
8
8
  margin-bottom: 30px;
9
9
  }
10
10
 
11
- .panel {
12
- -webkit-box-shadow: none !important;
13
- box-shadow: none !important;
14
-
15
- > h3 {
16
- background-color: #5e7188 !important;
17
- background-image: none !important;
18
- text-shadow: none !important;
19
- border: none !important;
20
- box-shadow: none !important;
21
- line-height: 30px !important;;
22
- margin-bottom: 0.5em;
23
- color: #ffffff !important;
24
- padding: 5px 10px 3px 10px;
25
- }
26
-
11
+ .proplist {
27
12
  .panel_contents {
28
- padding: 10px 0 !important;
29
- border-bottom: none !important;
30
- }
31
-
32
- table {
33
- th {
34
- background-color: #ffffff !important;
35
- border-bottom: 1px solid #cecece !important;
36
- line-height: 5px !important;
37
- background-image: none !important;
38
- color: #288feb !important;
39
- }
13
+ margin-right: -15px;
40
14
  }
41
15
  }
42
16
 
@@ -1,8 +1,8 @@
1
1
  div.prop_in_list {
2
2
  float: left;
3
- width: 200px;
3
+ width: calc(25% - 15px);
4
4
  height: 214px;
5
- margin-right: 30px;
5
+ margin-right: 15px;
6
6
  margin-bottom: 15px;
7
7
  border: 2px solid #ededed;
8
8
  border-radius: 3px;
@@ -12,7 +12,7 @@ div.prop_in_list {
12
12
  height: 100px;
13
13
  display: block;
14
14
  position: relative;
15
- margin: 0 46px;
15
+ margin: 0 auto;
16
16
  top: 35px;
17
17
  text-align: center; /*!*/
18
18
  white-space: nowrap; /*!*/
@@ -0,0 +1,107 @@
1
+ #gallery3_wrapper {
2
+ padding: 0;
3
+ height: 672px;
4
+ margin: 0 0 30px 35px;
5
+
6
+ #gallery3 {
7
+
8
+ width: 841px;
9
+ font-family: "HelveticaRegular", Arial, Helvetica, sans-serif;
10
+
11
+ .img-holder {
12
+ width: 841px;
13
+ height: 672px;
14
+ padding: 0;
15
+ }
16
+
17
+ img {
18
+ display: block;
19
+ margin: 0 auto;
20
+ max-width: 100%;
21
+ }
22
+
23
+ button {
24
+
25
+ z-index: 999;
26
+ }
27
+
28
+ .frame {
29
+ padding: 0;
30
+ height: 672px;
31
+ .name {
32
+ padding-top: 15px !important;
33
+ padding-left: 15px !important;
34
+ }
35
+ }
36
+
37
+ .desc {
38
+ overflow: hidden;
39
+ padding: 0;
40
+ }
41
+
42
+ .slick-prev,
43
+ .slick-next{
44
+ top: 50%;
45
+ }
46
+ .slick-next{
47
+ right: -53px;
48
+ }
49
+
50
+
51
+ }
52
+
53
+ }
54
+
55
+ #gallery3_nav_wrapper {
56
+ width: 880px;
57
+ padding-left: 0;
58
+ margin-bottom: 40px;
59
+ margin-left: 35px;
60
+ #gallery3_nav {
61
+ img {
62
+ /*width: 100%;*/
63
+ border: 1px solid transparent;
64
+ }
65
+ }
66
+
67
+ }
68
+
69
+ // Общие свойства фреймов верхней части и нижней части компонента
70
+ #gallery3_wrapper,
71
+ #gallery3_nav_wrapper
72
+ {
73
+ .frame {
74
+ position: relative;
75
+ cursor: pointer;
76
+ .name {
77
+ background-color: rgba(103, 102, 102, 0.0);
78
+ width: 187px;
79
+ height: 50px;
80
+ position: absolute;
81
+ bottom: 0;
82
+ z-index: 1000;
83
+ font-size: 16px;
84
+ color: rgba(255, 255, 255, 0.0);
85
+ padding: 5px;
86
+ line-height: 18px;
87
+
88
+ -webkit-transition: all .2s ease-out;
89
+ -moz-transition: all .2s ease-out;
90
+ -ms-transition: all .2s ease-out;
91
+ -o-transition: all .2s ease-out;
92
+ transition: all .2s ease-out;
93
+
94
+ }
95
+ }
96
+ }
97
+
98
+ // Немного поправим свойства фрейма верхней части компонента
99
+ #gallery3_wrapper {
100
+ .frame {
101
+ .name {
102
+ width: 841px;
103
+ color: rgba(255, 255, 255, 1.0);
104
+ background-color: rgba(103, 102, 102, 1.0);
105
+ }
106
+ }
107
+ }
@@ -0,0 +1 @@
1
+ @import "stroitelnye_materialy_item/*";
@@ -0,0 +1,8 @@
1
+ div#div_button_order {
2
+ /*background-color: rgba(0, 255, 0, 0.08);*/
3
+ float: left;
4
+ width: 139px;
5
+ min-height: 61px;
6
+ border-right: 1px solid #cacaca;
7
+ padding-top: 10px; /*выравниваем по нижнему краю мелких картинок возможной галереи, той, что справа*/
8
+ }
@@ -0,0 +1,8 @@
1
+ div.comments.c80_estate_area {
2
+ clear: both;
3
+
4
+ form.active_admin_comment {
5
+ margin: 10px 0 0 0 !important;
6
+ }
7
+
8
+ }
@@ -0,0 +1,51 @@
1
+ div#div_common_props {
2
+ float: left;
3
+ width: 100%;
4
+ clear: both;
5
+
6
+ table {
7
+ margin: 0;
8
+ padding: 0;
9
+ list-style: none;
10
+ width: 621px;
11
+
12
+ tr {
13
+
14
+ td {
15
+ min-height: 39px;
16
+ margin: 0;
17
+ padding: 9px 7px 9px 7px;
18
+ font-size: 16px;
19
+ color: #767676;
20
+ }
21
+
22
+ span.ptitle {
23
+ display: inline-block;
24
+ max-width: 220px;
25
+ }
26
+
27
+ &.p0 {
28
+
29
+ td {
30
+ box-shadow: 0px -19px 17px -8px rgba(0, 0, 0, 0.12) inset,
31
+ 0 17px 17px -8px rgba(0, 0, 0, 0.12) inset;
32
+
33
+ -o-box-shadow: 0px -19px 17px -8px rgba(0, 0, 0, 0.12) inset,
34
+ 0 17px 17px -8px rgba(0, 0, 0, 0.12) inset;
35
+
36
+ -ms-box-shadow: 0px -19px 17px -8px rgba(0, 0, 0, 0.12) inset,
37
+ 0 17px 17px -8px rgba(0, 0, 0, 0.12) inset;
38
+
39
+ -moz-box-shadow: 0px -19px 17px -8px rgba(0, 0, 0, 0.12) inset,
40
+ 0 17px 17px -8px rgba(0, 0, 0, 0.12) inset;
41
+
42
+ -webkit-box-shadow: 0px -19px 17px -8px rgba(0, 0, 0, 0.12) inset,
43
+ 0 17px 17px -8px rgba(0, 0, 0, 0.12) inset;
44
+ }
45
+
46
+ }
47
+
48
+ }
49
+
50
+ }
51
+ }
@@ -0,0 +1,10 @@
1
+ div#div_desc {
2
+ width: 100%;
3
+ float: left;
4
+ margin-top: 20px;
5
+ font-size: 15px;
6
+ min-height: 20px;
7
+ margin-bottom: 10px;
8
+ padding-bottom: 10px;
9
+ overflow: hidden;
10
+ }
@@ -0,0 +1,151 @@
1
+ $gallery_block_width: 320px;
2
+ $gallery_wrapper_margin_left: 45px;
3
+ $gallery_frame_width: 310px;
4
+ $gallery_frame_height: 188px;
5
+
6
+ body.admin_areas.show {
7
+
8
+ h4 {
9
+ background-color: transparent !important;
10
+ background-image: none !important;
11
+ text-shadow: none !important;
12
+ border: none !important;
13
+ box-shadow: none !important;
14
+ line-height: 30px !important;
15
+ color: #484444 !important;
16
+ padding: 5px 10px 3px 0;
17
+ font-size: 24px;
18
+ clear: both;
19
+ }
20
+
21
+ }
22
+
23
+ div#div_main_show_area {
24
+ width: 1085px;
25
+ border-right: 1px solid #C2C2C2;
26
+ float: left;
27
+
28
+ a {
29
+ display: block;
30
+ float: left;
31
+ margin-right: 30px;
32
+ width: calc(621px * 0.7);
33
+ height: calc(377px * 0.7);
34
+ border: 3px solid #F2F2F2;
35
+
36
+ img {
37
+ /*background-color: #ffffff;*/
38
+ max-width: 100% !important;
39
+ display: block !important;
40
+ padding: 5px;
41
+ margin: 0 auto;
42
+ }
43
+ }
44
+
45
+ div#main_props {
46
+ float: left;
47
+ overflow: hidden;
48
+
49
+ ul {
50
+ list-style: none;
51
+ margin: 0;
52
+ padding: 0;
53
+
54
+ li {
55
+
56
+ abbr {
57
+ font-size: 16px;
58
+ }
59
+
60
+ span {
61
+ font-size: 16px;
62
+ line-height: 25px;
63
+
64
+ &.atype_badge {
65
+ /*white-space: nowrap;
66
+ border-radius: 3px;
67
+ background-color: #74b1b2;
68
+ color: white;
69
+ font-weight: bold;
70
+ padding: 5px;
71
+ display: inline-block;*/
72
+ }
73
+
74
+ &.ptitle {
75
+ color: #288feb;
76
+ }
77
+
78
+ &.puom {
79
+ color: #727272;
80
+ }
81
+
82
+ }
83
+ }
84
+ }
85
+ }
86
+
87
+ }
88
+
89
+ div#gallery_block {
90
+ float: left;
91
+ /*background-color: rgba(10, 110, 20, 0.08);*/
92
+ width: $gallery_block_width;
93
+ margin-bottom: -20px;
94
+
95
+ #gallery3_wrapper {
96
+ height: $gallery_frame_height;
97
+ margin: 0 0 10px $gallery_wrapper_margin_left;
98
+
99
+ #gallery3 {
100
+ width: $gallery_frame_width;
101
+
102
+ .frame {
103
+ height: $gallery_frame_height;
104
+ .img-holder {
105
+ width: $gallery_frame_width;
106
+ height: $gallery_frame_height;
107
+ }
108
+ .name {
109
+ display: none;
110
+ }
111
+ }
112
+
113
+ button {
114
+ opacity: 0;
115
+ visibility: hidden;
116
+ }
117
+
118
+ }
119
+
120
+ }
121
+
122
+ #gallery3_nav_wrapper {
123
+ width: 337px;
124
+ margin-left: $gallery_wrapper_margin_left;
125
+ margin-bottom: -100px;
126
+
127
+ #gallery3_nav {
128
+ margin-bottom: 10px !important;
129
+ .frame {
130
+ .img-holder {
131
+ width: 94px;
132
+ img {
133
+ width: 94px;
134
+ }
135
+ .name {
136
+ display: none;
137
+ }
138
+ }
139
+
140
+ }
141
+ }
142
+
143
+ a#goto_gallery {
144
+ float: right;
145
+ margin-right: 13px;
146
+ text-decoration: underline;
147
+ }
148
+ }
149
+
150
+ }
151
+