trusty-cms 4.0.2 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/app/assets/images/admin/spinner.gif +0 -0
  4. data/app/assets/javascripts/admin.js +3 -0
  5. data/app/assets/javascripts/admin/more-or-less.js +2 -2
  6. data/app/assets/javascripts/admin/tabcontrol.js.erb +1 -2
  7. data/app/assets/stylesheets/admin/_base.scss +22 -6
  8. data/app/assets/stylesheets/admin/_multi_site_main.scss +28 -29
  9. data/app/assets/stylesheets/admin/_reset.scss +5 -4
  10. data/app/assets/stylesheets/admin/_site_chooser.scss +44 -69
  11. data/app/assets/stylesheets/admin/assets.scss +138 -141
  12. data/app/assets/stylesheets/admin/main.scss +10 -12
  13. data/app/assets/stylesheets/admin/modules/_boxes.scss +0 -3
  14. data/app/assets/stylesheets/admin/modules/_buttons.scss +30 -0
  15. data/app/assets/stylesheets/admin/modules/_links.scss +1 -1
  16. data/app/assets/stylesheets/admin/partials/_actions.scss +29 -46
  17. data/app/assets/stylesheets/admin/partials/_avatars.scss +3 -2
  18. data/app/assets/stylesheets/admin/partials/_content.scss +15 -38
  19. data/app/assets/stylesheets/admin/partials/_dateinput.scss +23 -14
  20. data/app/assets/stylesheets/admin/partials/_drawer.scss +78 -0
  21. data/app/assets/stylesheets/admin/partials/_dropdown.scss +9 -12
  22. data/app/assets/stylesheets/admin/partials/_footer.scss +4 -3
  23. data/app/assets/stylesheets/admin/partials/_forms.scss +64 -493
  24. data/app/assets/stylesheets/admin/partials/_header.scss +9 -118
  25. data/app/assets/stylesheets/admin/partials/_layout.scss +26 -2
  26. data/app/assets/stylesheets/admin/partials/_login_form.scss +28 -0
  27. data/app/assets/stylesheets/admin/partials/_messages.scss +5 -5
  28. data/app/assets/stylesheets/admin/partials/_popup.scss +62 -51
  29. data/app/assets/stylesheets/admin/partials/_preferences.scss +37 -0
  30. data/app/assets/stylesheets/admin/partials/_sidebar.scss +55 -0
  31. data/app/assets/stylesheets/admin/partials/_tabcontrol.scss +24 -36
  32. data/app/assets/stylesheets/admin/partials/{_index.scss → _table.scss} +53 -84
  33. data/app/assets/stylesheets/admin/partials/_toolbar.scss +11 -6
  34. data/app/assets/stylesheets/admin/partials/_treetable.scss +1 -71
  35. data/app/assets/stylesheets/admin/partials/_typography.scss +30 -55
  36. data/app/assets/stylesheets/admin/partials/_validations.scss +6 -5
  37. data/app/assets/stylesheets/rad_social/rad_screen.scss +65 -64
  38. data/app/controllers/admin/pages_controller.rb +2 -2
  39. data/app/helpers/application_helper.rb +2 -2
  40. data/app/models/menu_renderer.rb +3 -3
  41. data/app/users/_choose_site.html.haml +3 -7
  42. data/app/views/admin/assets/_form.html.haml +2 -1
  43. data/app/views/admin/assets/_search.html.haml +2 -1
  44. data/app/views/admin/assets/edit.html.haml +8 -7
  45. data/app/views/admin/assets/index.html.haml +4 -2
  46. data/app/views/admin/assets/new.html.haml +4 -5
  47. data/app/views/admin/assets/remove.html.haml +1 -0
  48. data/app/views/admin/configuration/edit.html.haml +7 -7
  49. data/app/views/admin/configuration/show.html.haml +6 -8
  50. data/app/views/admin/layouts/_choose_site.html.haml +2 -3
  51. data/app/views/admin/layouts/_form.html.haml +13 -12
  52. data/app/views/admin/layouts/_site_chooser.html.haml +2 -2
  53. data/app/views/admin/layouts/index.html.haml +11 -4
  54. data/app/views/admin/layouts/remove.html.haml +2 -2
  55. data/app/views/admin/page_attachments/_attachment.html.haml +2 -2
  56. data/app/views/admin/page_fields/_page_field.html.haml +3 -3
  57. data/app/views/admin/page_parts/_page_part.html.haml +4 -5
  58. data/app/views/admin/pages/_asset_popups.html.haml +15 -16
  59. data/app/views/admin/pages/_assets.html.haml +8 -7
  60. data/app/views/admin/pages/_fields.html.haml +16 -13
  61. data/app/views/admin/pages/_node.html.haml +3 -3
  62. data/app/views/admin/pages/_popups.html.haml +11 -11
  63. data/app/views/admin/pages/edit.html.haml +2 -2
  64. data/app/views/admin/pages/index.html.haml +5 -2
  65. data/app/views/admin/pages/new.html.haml +3 -3
  66. data/app/views/admin/pages/remove.html.haml +2 -2
  67. data/app/views/admin/preferences/edit.html.haml +5 -5
  68. data/app/views/admin/references/filters.haml +1 -1
  69. data/app/views/admin/references/tags.haml +3 -3
  70. data/app/views/admin/removed/_assets_bucket.html.haml +3 -3
  71. data/app/views/admin/removed/_assets_container.html.haml +18 -18
  72. data/app/views/admin/removed/_bucket.html.haml +1 -1
  73. data/app/views/admin/removed/_bucket_asset.html.haml +3 -3
  74. data/app/views/admin/removed/_show_bucket_link.html.haml +1 -1
  75. data/app/views/admin/removed/_upload_to_page.html.haml +5 -5
  76. data/app/views/admin/sites/_form.haml +18 -18
  77. data/app/views/admin/sites/edit.haml +1 -1
  78. data/app/views/admin/sites/index.haml +6 -4
  79. data/app/views/admin/sites/new.haml +1 -1
  80. data/app/views/admin/snippets/_choose_site.html.haml +4 -5
  81. data/app/views/admin/snippets/_form.html.haml +8 -9
  82. data/app/views/admin/snippets/edit.html.haml +1 -1
  83. data/app/views/admin/snippets/index.html.haml +11 -4
  84. data/app/views/admin/snippets/new.html.haml +1 -1
  85. data/app/views/admin/snippets/remove.html.haml +3 -3
  86. data/app/views/admin/users/_avatar.html.haml +2 -2
  87. data/app/views/admin/users/_choose_site.html.haml +3 -7
  88. data/app/views/admin/users/_form.html.haml +18 -21
  89. data/app/views/admin/users/_password_fields.html.haml +6 -6
  90. data/app/views/admin/users/index.html.haml +13 -6
  91. data/app/views/admin/users/remove.html.haml +2 -2
  92. data/app/views/admin/welcome/login.html.haml +8 -8
  93. data/app/views/devise/passwords/edit.html.haml +6 -6
  94. data/app/views/devise/passwords/new.html.haml +3 -3
  95. data/app/views/devise/sessions/new.html.haml +8 -8
  96. data/app/views/devise/shared/_links.html.haml +2 -2
  97. data/app/views/layouts/application.html.haml +24 -19
  98. data/app/views/rad_social_mailer/social_mail_form.html.haml +15 -15
  99. data/app/views/widget/_email_form.html.haml +14 -14
  100. data/app/views/widget/_horizontal_widget.html.haml +5 -5
  101. data/lib/trusty_cms.rb +1 -1
  102. data/package.json +9 -1
  103. data/yarn.lock +1988 -0
  104. metadata +8 -7
  105. data/app/assets/stylesheets/admin/partials/_deprecated.scss +0 -65
  106. data/app/assets/stylesheets/admin/partials/_jquery-ui-structure.scss +0 -258
  107. data/app/assets/stylesheets/admin/partials/_jquery-ui-theme.scss +0 -410
  108. data/app/assets/stylesheets/admin/partials/_jquery-ui.scss +0 -650
@@ -0,0 +1,37 @@
1
+ #preferences, #config {
2
+ padding-bottom: 1em;
3
+
4
+ h3, h4 {
5
+ border-bottom: 1px solid $gray;
6
+ padding-bottom: 0.25em;
7
+ }
8
+ }
9
+
10
+ .ruled {
11
+ border-bottom: 1px solid $light-gray;
12
+ margin-bottom: 0.5em;
13
+ padding: 0.5em;
14
+
15
+ span {
16
+ font-weight: bold;
17
+ }
18
+
19
+ label {
20
+ color: $dark-gray;
21
+ display: inline-block;
22
+ font-size: 1em;
23
+ margin-right: 0.5em;
24
+ }
25
+ }
26
+
27
+ #display_password {
28
+ .button {
29
+ display: block;
30
+ max-width: fit-content;
31
+ }
32
+ }
33
+
34
+ .checkbox {
35
+ display: inline-block;
36
+ margin-right: 0.5em;
37
+ }
@@ -0,0 +1,55 @@
1
+ nav {
2
+ background-color: $white;
3
+ border-right: 0.5px solid $dark-gray;
4
+ grid-area: nav;
5
+
6
+ ul.navigation {
7
+ border-right: 0.5px solid $dark-gray;
8
+
9
+ a {
10
+ color: mix($light-gray, white, 15%);
11
+ text-decoration: none;
12
+
13
+ li {
14
+ background-color: $dark-blue;
15
+ border-top: 1px solid $light-gray;
16
+ padding: 1em 7em 1em 1em;
17
+
18
+ &:hover {
19
+ background: darken($dark-blue, 15%);
20
+ cursor: pointer;
21
+ }
22
+
23
+ &.current {
24
+ background: darken($dark-blue, 15%);
25
+ color: $white;
26
+ font-weight: bold;
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+
33
+ .toolbar {
34
+ background-color: $white;
35
+ border-right: 0.5px solid $dark-gray;
36
+ grid-area: toolbar;
37
+
38
+ ul.secondary_navigation {
39
+ border-right: 0.5px solid $dark-gray;
40
+
41
+ a {
42
+ text-decoration: none;
43
+
44
+ li {
45
+ border-bottom: 0.5px solid $dark-gray;
46
+ padding: 1em 5em 1em 1em;
47
+ }
48
+
49
+ &.current {
50
+ font-style: italic;
51
+ font-weight: bold;
52
+ }
53
+ }
54
+ }
55
+ }
@@ -1,64 +1,58 @@
1
1
  #tab_control {
2
- color: #333333;
3
- margin-bottom: 1em;
4
2
  .tabs {
5
3
  float: left;
6
4
  width: 100%;
7
- margin-right: -4px;
5
+
8
6
  .tab {
9
- background-color: #e4e4e4;
10
- color: black;
7
+ background-color: darken($light-gray, 5%);
11
8
  display: inline-block;
12
- font-size: 90%;
13
- text-align: left;
9
+ font-size: 0.8em;
14
10
  margin-right: 5px;
15
- padding: 8px 15px 5px;
11
+ padding: 0.85em 0.5em;
16
12
  text-decoration: none;
17
- text-transform: titlecase;
18
- border-top-left-radius: 6px;
19
- border-top-right-radius: 6px;
13
+
20
14
  &.here {
21
- background-color: white;
22
- color: #737272;
15
+ background-color: $white;
16
+ color: $gray;
23
17
  font-weight: bold;
24
18
  }
19
+
25
20
  span:hover {
26
- color: #737272;
21
+ color: $gray;
27
22
  }
23
+
28
24
  .close {
29
- margin-top: -4px;
30
- margin-left: 5px;
31
- margin-right: -5px;
25
+ padding-left: .5em;
32
26
  }
33
27
  }
34
28
  }
29
+
35
30
  .pages {
36
- background: white;
37
- width: 100%;
31
+ background: $white;
38
32
  clear: both;
33
+ margin-right: 1em;
34
+
39
35
  .page {
40
36
  background: white;
41
- background-image: linear-gradient(to bottom, #ffffff, #f5f1e2 15%, #f5f1e2);
42
- box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
43
37
  padding: 12px 20px 20px;
38
+
44
39
  p {
45
40
  margin-top: 0;
46
41
  }
42
+
47
43
  label {
44
+ color: #000;
48
45
  display: inline;
49
- color: #333333;
50
- font-weight: normal;
51
46
  font-size: 80%;
47
+ font-weight: normal;
52
48
  text-shadow: none;
53
49
  }
54
50
  }
51
+
55
52
  .reference_links {
56
- font-size: 85%;
57
- margin-left: 1em;
58
53
  float: right;
59
- a {
60
- color: #0066cc;
61
- }
54
+ font-size: 85%;
55
+ margin-bottom: 0;
62
56
  }
63
57
  }
64
58
  }
@@ -67,19 +61,13 @@
67
61
  #tab_toolbar {
68
62
  float: right;
69
63
  overflow: hidden;
70
- margin-top: 0.2em;
71
- padding: 3px;
64
+ padding: 0 1em;
72
65
  }
73
66
  }
74
67
 
75
68
  .reference_links {
76
69
  font-size: 85%;
77
- span {
78
- padding: 0 0 0 4px;
79
- a {
80
- color: #4444ee;
81
- }
82
- }
70
+ margin-bottom: 1em;
83
71
  }
84
72
 
85
73
  #tag_reference_link {
@@ -1,113 +1,106 @@
1
1
  @mixin status-badge($background, $color: white, $width: 5em) {
2
- color: $color;
3
2
  background: $background;
3
+ color: $color;
4
4
  display: block;
5
5
  padding: 0 6px;
6
- width: $width;
7
6
  text-align: center;
8
- border-radius: 100px;
7
+ width: $width;
9
8
  }
10
9
 
11
- table.index {
12
- font-size: 90%;
13
- margin-bottom: 2em;
14
- width: 100%;
15
- border-bottom: 1px solid white;
10
+
11
+ table {
16
12
  th {
17
- text-align: left;
18
- background-color: #9e9e9e;
19
- color: white;
20
- font-size: 90%;
21
- font-weight: normal;
22
- padding: 2px 9px;
13
+ background-color: $light-gray;
14
+ color: $dark-gray;
15
+ padding: 0.75em;
16
+ white-space: nowrap;
17
+
23
18
  &.actions {
24
- padding-left: 15px;
25
- min-width: 18em;
19
+ padding: 0 17em 0 1em;
26
20
  }
21
+
27
22
  &.name {
28
23
  width: 100%;
29
24
  }
25
+
30
26
  &.status {
31
27
  min-width: 8em;
32
28
  }
33
29
  }
30
+
34
31
  td {
35
- text-align: left;
36
- padding: 4px 9px;
37
32
  border-top: 1px solid #f0f0f0;
33
+ font-size: 0.85em;
34
+ padding: 1em 0.25em;
35
+
38
36
  a.action,
39
37
  span.action.disabled {
40
- padding: 6px;
41
38
  margin: 0 25px 0 1px;
39
+ padding: 6px;
40
+
42
41
  img {
43
42
  vertical-align: -18%;
44
43
  }
45
44
  }
45
+
46
46
  a.action {
47
- color: black;
47
+ color: $dark-gray;
48
48
  text-decoration: none;
49
+
49
50
  &:hover {
50
- background: #d8d8d8;
51
- background-image: linear-gradient(to bottom, #ffffff, #cccccc);
52
- border: 1px solid #a5c9df;
51
+ background: $light-gray;
52
+ border: 1px solid darken($light-gray, 10%);
53
53
  margin: 0 24px 0 0;
54
- border-radius: 5px;
55
54
  }
55
+
56
56
  &.selected {
57
- background: #c5e0f5;
58
- background-image: linear-gradient(to bottom, #e5f5ff, #c5e0ff);
59
- border: 1px solid #a5c9df;
57
+ background: $light-gray;
58
+ border: 1px solid darken($light-gray, 10%);
60
59
  margin: 0 24px 0 0;
61
- border-top-left-radius: 5px;
62
- border-top-right-radius: 5px;
63
- border-bottom-left-radius: 0;
64
- border-bottom-right-radius: 0;
65
60
  }
66
61
  }
62
+
67
63
  span.action.disabled {
68
64
  color: #cccccc;
69
65
  }
66
+
70
67
  &.empty {
71
68
  color: silver;
72
- font-size: 85%;
73
69
  font-style: italic;
74
70
  padding: 3em;
75
71
  text-align: center;
76
72
  }
73
+
77
74
  &.name {
78
- font-size: 115%;
79
75
  font-weight: bold;
80
- img {
81
- vertical-align: center;
82
- }
76
+
83
77
  a {
84
- color: black;
78
+ color: $dark-gray;
85
79
  text-decoration: none;
86
- &:hover {
87
- color: #EC0673;
88
- text-decoration: underline;
89
- }
90
80
  }
91
81
  }
82
+
92
83
  &.actions {
93
84
  font-size: 85%;
94
85
  white-space: nowrap;
95
86
  }
96
87
  }
88
+
97
89
  tr {
98
90
  &:first-child {
99
91
  border-top: 1px solid white;
100
92
  }
93
+
101
94
  &.hover,
102
95
  &:hover {
103
96
  td {
104
- border-top: 1px solid #d5f0ff;
105
- border-bottom: 1px solid #c5dff5;
106
97
  background: #c5dff5;
107
- background-image: linear-gradient(to bottom, #e5f5ff, #c5dff5);
98
+ border-bottom: 1px solid #c5dff5;
99
+ border-top: 1px solid #d5f0ff;
108
100
  }
109
101
  }
110
102
  }
103
+
111
104
  thead {
112
105
  tr,
113
106
  tr:first-child {
@@ -117,57 +110,31 @@ table.index {
117
110
  }
118
111
 
119
112
  table.index#pages {
120
- tr.page {
121
- &.level_0 td.name {
122
- font-size: 120%;
123
- font-weight: bold;
124
- }
125
- &.level_1 td.name {
126
- font-size: 115%;
127
- font-weight: bold;
128
- }
129
- &.level_2 td.name {
130
- font-size: 115%;
131
- }
132
- &.level_3 td.name {
133
- font-size: 105%;
134
- }
135
- }
136
113
  td.name {
137
- font-size: 105%;
138
- a {
139
- text-decoration: none;
140
- .title {
141
- color: black;
142
- text-decoration: none;
143
- }
144
- &:hover .title {
145
- color: #EC0673;
146
- text-decoration: underline;
114
+ .w1 {
115
+ position: relative;
116
+
117
+ img.expander {
118
+ left: -25px;
119
+ padding: 6px 3px;
120
+ position: absolute;
147
121
  }
148
122
  }
123
+
149
124
  .info {
150
125
  color: #9eb3bf;
126
+ font-size: 0.90em;
151
127
  font-style: italic;
152
128
  font-weight: normal;
153
- font-size: 90%;
154
129
  }
155
130
  }
131
+
156
132
  tr.page.virtual td.name a .title {
157
133
  color: #9eb3bf;
158
134
  }
159
- td.name {
160
- .w1 {
161
- position: relative;
162
- img.expander {
163
- left: -25px;
164
- position: absolute;
165
- padding: 6px 3px;
166
- }
167
- }
168
- }
135
+
169
136
  td.status {
170
- font-size: 80%;
137
+ font-size: .80em;
171
138
  }
172
139
  }
173
140
 
@@ -178,7 +145,7 @@ table.index#pages {
178
145
  }
179
146
 
180
147
  .draft_status {
181
- @include status-badge(#cc494c);
148
+ @include status-badge($red);
182
149
  }
183
150
 
184
151
  .hidden_status {
@@ -187,12 +154,14 @@ table.index#pages {
187
154
 
188
155
  table.index#users {
189
156
  td.name {
190
- padding-top: 8px;
191
157
  padding-bottom: 8px;
158
+ padding-top: 8px;
159
+
192
160
  img.avatar {
193
161
  margin-right: 4px;
194
162
  vertical-align: center;
195
163
  }
164
+
196
165
  .login {
197
166
  color: #9eb3bf;
198
167
  font-size: 90%;
@@ -7,34 +7,39 @@
7
7
  div.textarea_toolbar {
8
8
  float: left;
9
9
  margin-bottom: 8px;
10
+
10
11
  span.separator {
11
- padding: 0;
12
- height: 6px;
13
- width: 2px;
14
- margin: 0 2px;
15
12
  border-left: solid 1px #d5d5d5;
16
13
  border-right: solid 1px whitesmoke;
14
+ height: 6px;
15
+ margin: 0 2px;
16
+ padding: 0;
17
+ width: 2px;
17
18
  }
19
+
18
20
  button,
19
21
  button.unselected {
20
- margin: 0;
21
22
  background: none;
22
23
  border: none;
24
+ margin: 0;
23
25
  padding: 2px 0;
24
26
  text-align: center;
25
27
  width: 24px;
28
+
26
29
  img {
27
30
  vertical-align: text-bottom;
28
31
  }
29
32
  }
33
+
30
34
  button:hover,
31
35
  button.unselected:hover {
32
36
  border: 1px solid #999999;
33
37
  padding: 1px 0;
34
38
  }
39
+
35
40
  button.selected {
36
- border: 1px solid #ce9100;
37
41
  background-color: white;
42
+ border: 1px solid #ce9100;
38
43
  padding: 1px 0;
39
44
  }
40
45
  }