fae-rails 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -2
  3. data/app/assets/config/fae/manifest.js +2 -0
  4. data/app/assets/javascripts/fae/_contrast.js +50 -0
  5. data/app/assets/javascripts/fae/_deploy.js +198 -0
  6. data/app/assets/javascripts/fae/_modals.js +94 -0
  7. data/app/assets/javascripts/fae/application.js +7 -1
  8. data/app/assets/javascripts/fae/form/_ajax.js +17 -5
  9. data/app/assets/javascripts/fae/form/_filtering.js +34 -0
  10. data/app/assets/javascripts/fae/form/_form.js +5 -2
  11. data/app/assets/javascripts/fae/form/_form_manager.js +295 -0
  12. data/app/assets/javascripts/fae/form/_slugger.js.erb +2 -2
  13. data/app/assets/javascripts/fae/form/_validator.js +224 -55
  14. data/app/assets/javascripts/fae/form/drag_drop.js +109 -0
  15. data/app/assets/javascripts/fae/form/inputs/_select.js +10 -4
  16. data/app/assets/javascripts/fae/form/inputs/_text.js +23 -9
  17. data/app/assets/javascripts/fae/vendor/simplemde/codemirror-4.inline-attachment.js +95 -0
  18. data/app/assets/javascripts/fae/vendor/simplemde/inline-attachment.js +405 -0
  19. data/app/assets/stylesheets/fae/application.css +1 -0
  20. data/app/assets/stylesheets/fae/base.scss +7 -3
  21. data/app/assets/stylesheets/fae/globals/_tags.scss +1 -1
  22. data/app/assets/stylesheets/fae/globals/imports/_variables.scss +1 -0
  23. data/app/assets/stylesheets/fae/globals/layout/_base.scss +9 -4
  24. data/app/assets/stylesheets/fae/globals/layout/_content-header.scss +14 -4
  25. data/app/assets/stylesheets/fae/globals/legacy/_pre-1.3.scss +1 -1
  26. data/app/assets/stylesheets/fae/globals/navigation/_footer.scss +1 -1
  27. data/app/assets/stylesheets/fae/globals/navigation/_header.scss +3 -3
  28. data/app/assets/stylesheets/fae/globals/navigation/_multi-col-subnav.scss +50 -0
  29. data/app/assets/stylesheets/fae/globals/navigation/_sidenav.scss +2 -2
  30. data/app/assets/stylesheets/fae/globals/navigation/_utility.scss +1 -1
  31. data/app/assets/stylesheets/fae/modules/_buttons.scss +11 -0
  32. data/app/assets/stylesheets/fae/modules/_deploy.scss +25 -0
  33. data/app/assets/stylesheets/fae/modules/_errors-bar.scss +19 -0
  34. data/app/assets/stylesheets/fae/modules/_modal.scss +25 -0
  35. data/app/assets/stylesheets/fae/modules/_toggles.scss +39 -23
  36. data/app/assets/stylesheets/fae/modules/forms/_asset-actions.scss +1 -1
  37. data/app/assets/stylesheets/fae/modules/forms/_base.scss +14 -1
  38. data/app/assets/stylesheets/fae/modules/forms/_checkbox.scss +1 -1
  39. data/app/assets/stylesheets/fae/modules/forms/_date.scss +20 -4
  40. data/app/assets/stylesheets/fae/modules/forms/_form-manager.scss +82 -0
  41. data/app/assets/stylesheets/fae/modules/forms/_hints.scss +1 -1
  42. data/app/assets/stylesheets/fae/modules/forms/_label.scss +1 -1
  43. data/app/assets/stylesheets/fae/modules/forms/_radio.scss +1 -1
  44. data/app/assets/stylesheets/fae/modules/forms/_select.scss +9 -8
  45. data/app/assets/stylesheets/fae/modules/forms/_simple-mde.scss +72 -1
  46. data/app/assets/stylesheets/fae/modules/forms/_textarea.scss +1 -1
  47. data/app/assets/stylesheets/fae/modules/tables/_base.scss +1 -1
  48. data/app/assets/stylesheets/fae/modules/tables/_filters.scss +4 -0
  49. data/app/assets/stylesheets/fae/modules/tables/_pagination.scss +2 -2
  50. data/app/assets/stylesheets/fae/pages/_error.scss +1 -1
  51. data/app/assets/stylesheets/fae/pages/_login.scss +5 -1
  52. data/app/assets/stylesheets/fae/simplemde_override.scss +32 -0
  53. data/app/controllers/fae/application_controller.rb +9 -2
  54. data/app/controllers/fae/base_controller.rb +6 -2
  55. data/app/controllers/fae/deploy_controller.rb +24 -0
  56. data/app/controllers/fae/deploy_hooks_controller.rb +71 -0
  57. data/app/controllers/fae/form_managers_controller.rb +19 -0
  58. data/app/controllers/fae/options_controller.rb +1 -0
  59. data/app/controllers/fae/setup_controller.rb +2 -2
  60. data/app/controllers/fae/static_pages_controller.rb +6 -1
  61. data/app/controllers/fae/users_controller.rb +11 -1
  62. data/app/controllers/fae/utilities_controller.rb +18 -6
  63. data/app/helpers/fae/application_helper.rb +36 -2
  64. data/app/helpers/fae/form_helper.rb +26 -2
  65. data/app/helpers/fae/view_helper.rb +26 -9
  66. data/app/models/concerns/fae/base_model_concern.rb +17 -0
  67. data/app/models/concerns/fae/seo_set_concern.rb +1 -0
  68. data/app/models/fae/change.rb +20 -6
  69. data/app/models/fae/deploy_hook.rb +12 -0
  70. data/app/models/fae/form_manager.rb +24 -0
  71. data/app/models/fae/option.rb +1 -0
  72. data/app/models/fae/seo_set.rb +14 -0
  73. data/app/models/fae/user.rb +2 -2
  74. data/app/services/fae/netlify_api.rb +213 -0
  75. data/app/uploaders/fae/file_uploader.rb +1 -1
  76. data/app/uploaders/fae/image_uploader.rb +2 -2
  77. data/app/views/devise/unlocks/new.html.slim +5 -9
  78. data/app/views/fae/application/_content_form.html.slim +16 -11
  79. data/app/views/fae/application/_file_uploader.html.slim +7 -2
  80. data/app/views/fae/application/_global_search_results.html.slim +1 -1
  81. data/app/views/fae/application/_header.slim +4 -1
  82. data/app/views/fae/application/_mobilenav.slim +3 -0
  83. data/app/views/fae/application/_seo_set_form.html.slim +12 -0
  84. data/app/views/fae/deploy/index.html.slim +40 -0
  85. data/app/views/fae/deploy_hooks/_form.html.slim +18 -0
  86. data/app/views/fae/deploy_hooks/_table.html.slim +28 -0
  87. data/app/views/fae/deploy_hooks/edit.html.slim +3 -0
  88. data/app/views/fae/deploy_hooks/new.html.slim +3 -0
  89. data/app/views/fae/images/_image_uploader.html.slim +12 -3
  90. data/app/views/fae/options/_form.html.slim +6 -2
  91. data/app/views/fae/pages/activity_log.html.slim +7 -3
  92. data/app/views/fae/pages/home.html.slim +3 -4
  93. data/app/views/fae/shared/_errors.slim +0 -3
  94. data/app/views/fae/shared/_form_header.html.slim +20 -12
  95. data/app/views/fae/shared/_nested_table.html.slim +5 -2
  96. data/app/views/fae/shared/_recent_changes.html.slim +1 -1
  97. data/app/views/fae/shared/_shared_nested_table.html.slim +9 -3
  98. data/app/views/layouts/fae/application.html.slim +2 -1
  99. data/config/deploy.rb +3 -1
  100. data/config/initializers/carrierwave.rb +41 -2
  101. data/config/initializers/devise.rb +6 -6
  102. data/config/initializers/fae_judge.rb +4 -2
  103. data/config/locales/fae.en.yml +49 -4
  104. data/config/locales/fae.zh-CN.yml +2 -2
  105. data/config/puma.rb +82 -0
  106. data/config/routes.rb +9 -1
  107. data/db/migrate/20140809222030_add_user_table.rb +1 -1
  108. data/db/migrate/20190925153222_create_fae_form_managers.rb +11 -0
  109. data/db/migrate/20220118192729_create_fae_publish_hooks.rb +10 -0
  110. data/db/migrate/20220128133730_rename_publish_hooks.rb +5 -0
  111. data/db/migrate/20220202153607_add_position_to_deploy_hooks.rb +6 -0
  112. data/db/migrate/20221118161833_create_fae_seo_sets.rb +13 -0
  113. data/lib/fae/concerns/models/base.rb +2 -0
  114. data/lib/fae/engine.rb +3 -3
  115. data/lib/fae/options.rb +18 -18
  116. data/lib/fae/version.rb +1 -1
  117. data/lib/generators/fae/base_generator.rb +28 -5
  118. data/lib/generators/fae/controller_generator.rb +0 -1
  119. data/lib/generators/fae/install_generator.rb +1 -1
  120. data/lib/generators/fae/model_generator.rb +1 -2
  121. data/lib/generators/fae/nested_index_scaffold_generator.rb +1 -2
  122. data/lib/generators/fae/nested_scaffold_generator.rb +23 -2
  123. data/lib/generators/fae/page_generator.rb +1 -2
  124. data/lib/generators/fae/scaffold_generator.rb +1 -1
  125. data/lib/generators/fae/templates/assets/fae.js +1 -1
  126. data/lib/generators/fae/templates/controllers/nested_scaffold_controller.rb +13 -1
  127. data/lib/generators/fae/templates/controllers/scaffold_controller.rb +7 -0
  128. data/lib/generators/fae/templates/initializers/fae.rb +16 -1
  129. data/lib/generators/fae/templates/views/_form.html.slim +12 -1
  130. data/lib/generators/fae/templates/views/_form_index_nested.html.slim +15 -1
  131. data/lib/generators/fae/templates/views/_form_nested.html.slim +22 -2
  132. data/lib/generators/fae/templates/views/static_page_form.html.slim +13 -1
  133. metadata +53 -24
  134. data/config/deploy/dev.rb +0 -19
  135. data/config/deploy/prod.rb +0 -19
  136. data/config/deploy/stage.rb +0 -19
  137. /data/app/assets/javascripts/fae/vendor/{simplemde.min.js → simplemde/simplemde.min.js} +0 -0
@@ -10,7 +10,7 @@ $content-header-padding: 16px;
10
10
  position: absolute;
11
11
  left: 0;
12
12
  top: 0;
13
- box-shadow: 0 0 10px $c-grey;
13
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
14
14
  display: flex;
15
15
  justify-content: space-between;
16
16
  align-items: center;
@@ -43,14 +43,14 @@ $content-header-padding: 16px;
43
43
  display: inline-block;
44
44
  vertical-align: top;
45
45
  padding: 6px 0;
46
- border-bottom: 4px solid transparent;
46
+ border-bottom: 2px solid transparent;
47
47
  margin: 0 12px;
48
48
  font-size: 13px;
49
49
  color: $c-darkest-grey;
50
50
 
51
51
  &:hover {
52
52
  color: $c-text-heavy;
53
- border-bottom-color: $c-custom-highlight;
53
+ border-bottom-color: var(--highlight-color);
54
54
  }
55
55
  }
56
56
 
@@ -67,13 +67,19 @@ $content-header-padding: 16px;
67
67
  &.-active {
68
68
  a {
69
69
  color: $c-text-heavy;
70
- border-bottom-color: $c-custom-highlight;
70
+ border-bottom-color: var(--highlight-color);
71
71
  }
72
72
  }
73
73
  }
74
74
  }
75
75
 
76
76
  .content-header-buttons {
77
+ position: absolute;
78
+ height: 100%;
79
+ top: 0;
80
+ display: flex;
81
+ align-items: center;
82
+ right: 30px;
77
83
  a {
78
84
  margin-right: 5px;
79
85
 
@@ -81,6 +87,10 @@ $content-header-padding: 16px;
81
87
  margin-right: 0;
82
88
  }
83
89
  }
90
+
91
+ input[type=submit].saving {
92
+ color: darkgray;
93
+ }
84
94
  }
85
95
 
86
96
  .content-header-select {
@@ -80,7 +80,7 @@
80
80
  .main_content-section-title {
81
81
  padding: 17px 40px;
82
82
  color: pickForegroundColor($c-custom-highlight, $c-white, $c-black);
83
- background: $c-custom-highlight;;
83
+ background: $c-custom-highlight;
84
84
  border-top: 1px solid $c-border;
85
85
  text-transform: uppercase;
86
86
  font-size: 14px;
@@ -32,7 +32,7 @@
32
32
 
33
33
  &:hover {
34
34
  path {
35
- fill: $c-custom-highlight;
35
+ fill: var(--highlight-color);
36
36
  }
37
37
  }
38
38
  }
@@ -6,7 +6,7 @@
6
6
  left: 0;
7
7
  width: 100%;
8
8
  background: $c-header-bg;
9
- border-bottom: $header-border-width solid $c-custom-highlight;
9
+ border-top: $header-border-width solid var(--highlight-color);
10
10
 
11
11
  @include bp(large) {
12
12
  padding: 0 $content-buffer;
@@ -87,7 +87,7 @@
87
87
  }
88
88
  }
89
89
 
90
- .main-header-nav {
90
+ .main-header-nav, .utility-nav {
91
91
  @include transition(opacity .2s ease-in-out);
92
92
 
93
93
  a {
@@ -107,7 +107,7 @@
107
107
 
108
108
  &.-parent-current {
109
109
  > a {
110
- background: $c-custom-highlight;
110
+ background: var(--highlight-color);
111
111
  }
112
112
  }
113
113
 
@@ -0,0 +1,50 @@
1
+ $col_width: 176px;
2
+ $col_width_padding: 36px;
3
+
4
+ header.main-header ul ul.multicol-nav {
5
+ min-height: auto;
6
+ max-height: 1024px!important;
7
+ left: -($col_width * .5);
8
+ }
9
+ .main-header-nav li:nth-of-type(n+5) ul.multicol-nav.three,
10
+ .main-header-nav li ul.multicol-nav.four,
11
+ .main-header-nav li:nth-of-type(n+7) ul.multicol-nav {
12
+ left: -($col_width * 0.75);
13
+ }
14
+ .main-header-nav li:nth-of-type(n+6) ul.multicol-nav.three,
15
+ .main-header-nav li:nth-of-type(n+2) ul.multicol-nav.four,
16
+ .main-header-nav li:nth-of-type(n+8) ul.multicol-nav {
17
+ left: -($col_width * 1);
18
+ }
19
+
20
+ .main-header-nav li:nth-of-type(n+7) ul.multicol-nav.three,
21
+ .main-header-nav li:nth-of-type(n+3) ul.multicol-nav.four {
22
+ left: -($col_width * 1.25);
23
+ }
24
+
25
+ .main-header-nav li:nth-of-type(n+8) ul.multicol-nav.three,
26
+ .main-header-nav li:nth-of-type(n+4) ul.multicol-nav.four {
27
+ left: -($col_width * 1.75);
28
+ }
29
+
30
+ .main-header-nav li:nth-of-type(n+5) ul.multicol-nav.four {
31
+ left: -($col_width * 2.25);
32
+ }
33
+ .main-header-nav li:nth-of-type(n+6) ul.multicol-nav.four {
34
+ left: -($col_width * 2.5);
35
+ }
36
+ .main-header-nav li:nth-of-type(n+7) ul.multicol-nav.four {
37
+ left: -($col_width * 3);
38
+ }
39
+
40
+
41
+ .multicol-nav {
42
+ display: grid;
43
+ grid-template-columns: $col_width $col_width;
44
+ &.three {
45
+ grid-template-columns: $col_width $col_width $col_width;
46
+ }
47
+ &.four {
48
+ grid-template-columns: $col_width $col_width $col_width $col_width;
49
+ }
50
+ }
@@ -25,7 +25,7 @@
25
25
  &.-parent-current {
26
26
  > a {
27
27
  color: $c-white;
28
- background-color: $c-custom-highlight;
28
+ background-color: var(--highlight-color);
29
29
  }
30
30
 
31
31
  > ul {
@@ -95,7 +95,7 @@
95
95
  margin-top: 7px;
96
96
 
97
97
  &.-current {
98
- border-left: 5px solid $c-custom-highlight;
98
+ border-left: 5px solid var(--highlight-color);
99
99
  padding-left: 25px;
100
100
  }
101
101
  }
@@ -73,7 +73,7 @@
73
73
  height: 40px;
74
74
  display: inline-block;
75
75
  vertical-align: middle;
76
- background: $c-custom-highlight;
76
+ background: var(--highlight-color);
77
77
  }
78
78
 
79
79
  .grabatar-link {
@@ -13,6 +13,10 @@ button[type=button],
13
13
  line-height: 1;
14
14
  }
15
15
 
16
+ .deploy .button {
17
+ margin-right: 10px;
18
+ }
19
+
16
20
  // Dark buttons
17
21
 
18
22
  input[type=submit],
@@ -47,6 +51,13 @@ button[type=button],
47
51
  &:hover {
48
52
  background: $c-light-button-gradient-end;
49
53
  }
54
+
55
+ &:disabled {
56
+ background: $c-light-button-gradient-end;
57
+ color: $c-mid-grey;
58
+ border-color: $c-grey;
59
+ cursor: wait;
60
+ }
50
61
  }
51
62
 
52
63
  .button {
@@ -0,0 +1,25 @@
1
+ .deploying-heading.running:after {
2
+ overflow: hidden;
3
+ display: inline-block;
4
+ vertical-align: bottom;
5
+ -webkit-animation: ellipsis steps(4,end) 900ms infinite;
6
+ animation: ellipsis steps(4,end) 900ms infinite;
7
+ content: "\2026"; /* ascii code for the ellipsis character */
8
+ width: 0px;
9
+ }
10
+
11
+ @keyframes ellipsis {
12
+ to {
13
+ width: 20px;
14
+ }
15
+ }
16
+
17
+ @-webkit-keyframes ellipsis {
18
+ to {
19
+ width: 20px;
20
+ }
21
+ }
22
+
23
+ .hidden {
24
+ display: none;
25
+ }
@@ -0,0 +1,19 @@
1
+ .errors-bar-wrapper {
2
+ border-color: $c-error-content;
3
+ background: $c-error-bg;
4
+ color: $c-error-content;
5
+ width: 100%;
6
+ padding: 20px;
7
+ display: none;
8
+
9
+ .errors-bar {
10
+ display: flex;
11
+ margin-top: 20px;
12
+ flex-direction: column;
13
+ }
14
+
15
+ .error-jump-link {
16
+ margin-right: 20px;
17
+ font-size: 14px;
18
+ }
19
+ }
@@ -76,3 +76,28 @@
76
76
  font-size: 12px;
77
77
  }
78
78
  }
79
+
80
+ #fae-modal {
81
+ padding: 0;
82
+ box-shadow: none;
83
+
84
+ .simplemodal-data {
85
+ min-height: 100%;
86
+ }
87
+
88
+ .simplemodal-close {
89
+ position: absolute;
90
+ top: 5px;
91
+ right: 5px;
92
+ height: 20px;
93
+ width: 20px;
94
+
95
+ &:before {
96
+ position: relative;
97
+ padding: 4px;
98
+ top: auto;
99
+ right: auto;
100
+ color: #3b3b3b;
101
+ }
102
+ }
103
+ }
@@ -2,47 +2,63 @@
2
2
  .slider-wrapper {
3
3
  display: block;
4
4
  position: relative;
5
- width: 60px;
6
- border: 1px solid $c-mid-grey;
7
- border-radius: 2px;
5
+ width: 50px;
6
+ border-radius: 15px;
7
+ height: 25px;
8
8
  font-size: 12px;
9
- overflow: hidden;
10
9
  cursor: pointer;
11
10
  text-decoration: none;
12
- background: $c-white;
11
+ background: $c-light-grey;
12
+ transition: background-color 0.24s;
13
+ &:hover, &:focus {
14
+ background-color: $c-mid-grey;
15
+ }
16
+ &.slider-yes-selected {
17
+ background: var(--highlight-color);
18
+ }
13
19
  }
14
20
 
15
21
  .slider-options {
16
- @include transition(left .2s);
17
- position: relative;
18
- left: -35px;
22
+ @include transition(left .24s);
19
23
  white-space: nowrap;
20
-
21
- .slider-yes-selected & {
22
- left: 0;
23
- }
24
24
  }
25
25
 
26
26
  .slider-option-selector {
27
- display: inline-block;
28
- width: 18px;
27
+ display: block;
28
+ position: absolute;
29
+ width: 50%;
30
+ left: 0;
31
+ top: 0;
32
+ bottom: 0;
33
+ border-radius: 50%;
34
+ box-sizing: border-box;
35
+ height: 100%;
36
+ border: 1px solid $c-mid-grey;
37
+ transition: left 0.24s;
38
+ .slider-yes-selected & {
39
+ left: 50%;
40
+ }
41
+ background: $c-white;
29
42
  }
30
43
 
31
44
  .slider-option-no,
32
45
  .slider-option-yes {
33
- @include user-select(none);
34
- display: inline-block;
35
- width: 35px;
36
- padding: 3px 4px;
37
- text-align: center;
46
+ position: absolute;
47
+ height: 0;
48
+ width: 0;
49
+ left: -200vw;
38
50
  }
39
51
 
40
52
  .slider-option-no {
41
- color: $c-slider-no-color;
42
- background: $c-slider-no-bg;
53
+ display:block;
54
+ .slider-yes-selected & {
55
+ display: none;
56
+ }
43
57
  }
44
58
 
45
59
  .slider-option-yes {
46
- color: $c-white;
47
- background: $c-custom-highlight;
60
+ display: none;
61
+ .slider-yes-selected & {
62
+ display:block;
63
+ }
48
64
  }
@@ -45,7 +45,7 @@
45
45
  margin-right: 10px;
46
46
 
47
47
  &:focus {
48
- border-color: $c-notice-content;
48
+ border-color: $c-focus-border;
49
49
  outline: 0;
50
50
  }
51
51
 
@@ -14,7 +14,7 @@ input[type=email] {
14
14
  max-width: 100%;
15
15
 
16
16
  &:focus {
17
- border-color: $c-notice-content;
17
+ border-color: $c-focus-border;
18
18
  }
19
19
  }
20
20
 
@@ -39,6 +39,11 @@ input[type=email] {
39
39
  margin-top: 10px;
40
40
  margin-bottom: 10px;
41
41
  }
42
+
43
+ .addedit-form-thumb {
44
+ max-width: 150px;
45
+ max-height: 100px;
46
+ }
42
47
  }
43
48
 
44
49
  .js-addedit-form-wrapper {
@@ -98,3 +103,11 @@ input[type=email] {
98
103
  margin-bottom: 10px;
99
104
  }
100
105
  }
106
+
107
+ .input.field {
108
+
109
+ &.highlight {
110
+ outline: 2px dashed green;
111
+ outline-offset: 1px;
112
+ }
113
+ }
@@ -56,7 +56,7 @@ label.checkbox,
56
56
 
57
57
  label.checkbox.focused:before,
58
58
  .checkbox.focused label:before {
59
- border-color: $c-notice-content;
59
+ border-color: $c-focus-border;
60
60
  }
61
61
 
62
62
  .checkbox-wrapper {
@@ -149,11 +149,11 @@
149
149
 
150
150
  .ui-datepicker-calendar {
151
151
  .ui-state-hover {
152
- color: $c-custom-highlight;
152
+ color: var(--highlight-color);
153
153
  }
154
154
 
155
155
  .ui-state-active {
156
- background: $c-custom-highlight;
156
+ background: var(--highlight-color);
157
157
  color: $c-white;
158
158
  position: relative;
159
159
  }
@@ -207,6 +207,22 @@
207
207
  padding: 12px;
208
208
  font-size: 19px;
209
209
  color: $c-darker-grey;
210
+
211
+ }
212
+
213
+ &.table-filter-group {
214
+ width: 130px;
215
+
216
+ input[type=text] {
217
+ border-radius: 0;
218
+ }
219
+
220
+ label:before {
221
+ right: -5px;
222
+ bottom: -6px;
223
+
224
+ font-size: 15px;
225
+ }
210
226
  }
211
227
  }
212
228
 
@@ -307,12 +323,12 @@
307
323
 
308
324
  &.checked,
309
325
  &.toMonth.valid.checked {
310
- background: $c-custom-highlight;
326
+ background: var(--highlight-color);
311
327
  color: $c-white;
312
328
  }
313
329
 
314
330
  &.real-today.checked {
315
- background: $c-custom-highlight;
331
+ background: var(--highlight-color);
316
332
  }
317
333
  }
318
334
 
@@ -0,0 +1,82 @@
1
+ .form-manager-form {
2
+ z-index: 2;
3
+ background: gray(90);
4
+ display: none;
5
+ position: absolute;
6
+ width: 100%;
7
+ height: 100%;
8
+ overflow: scroll;
9
+ margin-top: 1px;
10
+ padding: 100px 40px 0px 30px;
11
+
12
+ .js-form-manager-submit {
13
+ background: gray(20);
14
+ color: white;
15
+ font-size: 13px;
16
+
17
+ &:hover {
18
+ background: gray(10);
19
+ }
20
+ }
21
+
22
+ .helper {
23
+ color: gray(40);
24
+ font-weight: normal;
25
+ }
26
+
27
+ .inner-content {
28
+ margin-top: 103px;
29
+ }
30
+
31
+ .field-input {
32
+ margin-bottom: 10px;
33
+ }
34
+
35
+ header {
36
+ height: 74px;
37
+
38
+ a {
39
+ margin-right: 5px;
40
+ float: right;
41
+ }
42
+ }
43
+
44
+ .form-section {
45
+ margin-bottom: 30px;
46
+ overflow: auto;
47
+ }
48
+
49
+ .single-field {
50
+ float: left;
51
+ width: 25%;
52
+ margin-right: 20px;
53
+
54
+ input {
55
+ width: 100%;
56
+ }
57
+
58
+ .field_title {
59
+ width: 100%;
60
+ display: inline-block;
61
+
62
+ label {
63
+ float: left;
64
+ margin-right: 10px;
65
+ }
66
+
67
+ input {
68
+ width: auto;
69
+ float: left;
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ .js-form-manager-container {
76
+ display: none;
77
+ z-index: 4;
78
+ }
79
+
80
+ .js-launch-form-manager {
81
+ margin-left: 10px;
82
+ }
@@ -3,7 +3,7 @@
3
3
  display: inline-block;
4
4
  padding-left: 7px;
5
5
  cursor: pointer;
6
- color: $c-custom-highlight;
6
+ color: var(--highlight-color);
7
7
 
8
8
  &:after {
9
9
  @include icon-stuff;
@@ -6,7 +6,7 @@ label {
6
6
  color: $c-text-heavy;
7
7
 
8
8
  abbr {
9
- color: $c-custom-highlight;
9
+ color: var(--highlight-color);
10
10
  }
11
11
 
12
12
  h6 {
@@ -64,6 +64,6 @@
64
64
 
65
65
  .radio_collection.focused {
66
66
  .radio_collection-bullet {
67
- border-color: $c-notice-content;
67
+ border-color: $c-focus-border;
68
68
  }
69
69
  }
@@ -32,7 +32,7 @@
32
32
  top: auto;
33
33
  bottom: 100%;
34
34
  margin-bottom: -1px;
35
- border-top: 1px solid $c-notice-content;
35
+ border-top: 1px solid $c-focus-border;
36
36
  border-bottom: none;
37
37
  box-shadow: none;
38
38
  border-radius: 0;
@@ -41,7 +41,7 @@
41
41
 
42
42
  .chosen-container-active {
43
43
  .chosen-single {
44
- border-color: $c-notice-content;
44
+ border-color: $c-focus-border;
45
45
  background: $c-chosen-gradient-end;
46
46
  }
47
47
  }
@@ -120,7 +120,7 @@
120
120
  .chosen-container-multi.chosen-container-active {
121
121
  .chosen-single,
122
122
  .chosen-choices {
123
- border-color: $c-notice-content;
123
+ border-color: $c-focus-border;
124
124
  }
125
125
  }
126
126
 
@@ -159,7 +159,8 @@
159
159
  }
160
160
 
161
161
  .chosen-search {
162
- display: none;
162
+ position: absolute;
163
+ left: -9999px;
163
164
  }
164
165
  }
165
166
 
@@ -185,7 +186,7 @@
185
186
 
186
187
  .chosen-container {
187
188
  .chosen-drop {
188
- border-color: $c-notice-content;
189
+ border-color: $c-focus-border;
189
190
  }
190
191
  }
191
192
 
@@ -227,7 +228,7 @@
227
228
  position: absolute;
228
229
  right: 15px;
229
230
  top: 9px;
230
- color: $c-custom-highlight;
231
+ color: var(--highlight-color);
231
232
  }
232
233
  }
233
234
 
@@ -288,7 +289,7 @@
288
289
  content: fae-icon(check);
289
290
  padding-right: 5px;
290
291
  margin-left: -19px;
291
- color: $c-custom-highlight;
292
+ color: var(--highlight-color);
292
293
  }
293
294
  }
294
295
 
@@ -307,7 +308,7 @@
307
308
 
308
309
  &.ms-focus {
309
310
  outline: 0;
310
- border-bottom: 4px solid $c-notice-content;
311
+ border-bottom: 4px solid $c-focus-border;
311
312
  }
312
313
  }
313
314