alchemy_cms 4.1.0.beta → 4.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/Bug_report.md +27 -0
  3. data/.github/ISSUE_TEMPLATE/Feature_request.md +17 -0
  4. data/CHANGELOG.md +228 -170
  5. data/PULL_REQUEST_TEMPLATE.md +14 -0
  6. data/README.md +10 -0
  7. data/alchemy_cms.gemspec +1 -1
  8. data/app/assets/images/alchemy/icon-white.svg +1 -0
  9. data/app/assets/javascripts/alchemy/admin.js +4 -4
  10. data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +5 -1
  11. data/app/assets/javascripts/alchemy/alchemy.dragndrop.js.coffee +2 -2
  12. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +0 -2
  13. data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +3 -2
  14. data/app/assets/stylesheets/alchemy/_extends.scss +3 -18
  15. data/app/assets/stylesheets/alchemy/_mixins.scss +32 -16
  16. data/app/assets/stylesheets/alchemy/_variables.scss +19 -14
  17. data/app/assets/stylesheets/alchemy/admin.scss +1 -0
  18. data/app/assets/stylesheets/alchemy/archive.scss +49 -162
  19. data/app/assets/stylesheets/alchemy/base.scss +4 -4
  20. data/app/assets/stylesheets/alchemy/buttons.scss +14 -40
  21. data/app/assets/stylesheets/alchemy/dialogs.scss +1 -2
  22. data/app/assets/stylesheets/alchemy/elements.scss +49 -33
  23. data/app/assets/stylesheets/alchemy/form_fields.scss +11 -2
  24. data/app/assets/stylesheets/alchemy/forms.scss +1 -1
  25. data/app/assets/stylesheets/alchemy/frame.scss +3 -2
  26. data/app/assets/stylesheets/alchemy/image_library.scss +19 -13
  27. data/app/assets/stylesheets/alchemy/jquery.datetimepicker.scss +10 -13
  28. data/app/assets/stylesheets/alchemy/menubar.scss +8 -6
  29. data/app/assets/stylesheets/alchemy/navigation.scss +18 -0
  30. data/app/assets/stylesheets/alchemy/preview_window.scss +1 -1
  31. data/app/assets/stylesheets/alchemy/search.scss +6 -57
  32. data/app/assets/stylesheets/alchemy/selects.scss +6 -20
  33. data/app/assets/stylesheets/alchemy/sitemap.scss +2 -2
  34. data/app/assets/stylesheets/alchemy/spinner.scss +1 -1
  35. data/app/assets/stylesheets/alchemy/tables.scss +19 -2
  36. data/app/assets/stylesheets/alchemy/tags.scss +183 -0
  37. data/app/assets/stylesheets/alchemy/toolbar.scss +0 -2
  38. data/app/assets/stylesheets/alchemy/upload.scss +1 -1
  39. data/app/assets/stylesheets/alchemy/welcome.sass +11 -11
  40. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +9 -3
  41. data/app/controllers/alchemy/admin/dashboard_controller.rb +1 -1
  42. data/app/controllers/alchemy/admin/elements_controller.rb +4 -1
  43. data/app/controllers/alchemy/admin/pictures_controller.rb +1 -1
  44. data/app/controllers/alchemy/pages_controller.rb +1 -1
  45. data/app/helpers/alchemy/admin/base_helper.rb +1 -1
  46. data/app/models/alchemy/cell.rb +1 -1
  47. data/app/models/alchemy/content.rb +2 -2
  48. data/app/models/alchemy/element.rb +3 -3
  49. data/app/models/alchemy/essence_file.rb +1 -1
  50. data/app/models/alchemy/essence_picture.rb +1 -1
  51. data/app/models/alchemy/folded_page.rb +2 -3
  52. data/app/models/alchemy/language.rb +1 -1
  53. data/app/models/alchemy/page.rb +1 -1
  54. data/app/models/alchemy/picture/transformations.rb +4 -1
  55. data/app/views/alchemy/admin/elements/index.html.erb +4 -2
  56. data/app/views/alchemy/admin/elements/new.html.erb +2 -1
  57. data/app/views/alchemy/admin/pictures/_infos.html.erb +17 -6
  58. data/app/views/alchemy/admin/uploader/_button.html.erb +2 -2
  59. data/app/views/alchemy/essences/shared/_essence_picture_tools.html.erb +12 -7
  60. data/app/views/alchemy/essences/shared/_linkable_essence_tools.html.erb +1 -0
  61. data/app/views/alchemy/welcome.html.erb +0 -2
  62. data/config/initializers/assets.rb +1 -0
  63. data/config/locales/alchemy.en.yml +1 -0
  64. data/lib/alchemy/tinymce.rb +1 -1
  65. data/lib/alchemy/version.rb +1 -1
  66. data/vendor/assets/stylesheets/{jquery.Jcrop.min.css → jquery.Jcrop.min.scss} +1 -1
  67. metadata +10 -5
data/alchemy_cms.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |gem|
28
28
  gem.add_runtime_dependency 'gutentag', ['~> 2.2', '>= 2.2.1']
29
29
  gem.add_runtime_dependency 'handlebars_assets', ['~> 0.23']
30
30
  gem.add_runtime_dependency 'jquery-rails', ['~> 4.0', '>= 4.0.4']
31
- gem.add_runtime_dependency 'jquery-ui-rails', ['~> 5.0.0']
31
+ gem.add_runtime_dependency 'jquery-ui-rails', ['~> 6.0']
32
32
  gem.add_runtime_dependency 'kaminari', ['~> 1.1']
33
33
  gem.add_runtime_dependency 'originator', ['~> 3.1']
34
34
  gem.add_runtime_dependency 'non-stupid-digest-assets', ['~> 1.0.8']
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#fff" d="M15.7 7.9L9.9 2.2 2.1 4.3 0 12.1l5.7 5.8 7.8-2.1 2.2-7.9zm-5.3 10.3l-1.2 4.4 3.2 3.2 4.4-1.2 1.2-4.4-3.2-3.2-4.4 1.2zM23.5 7.3L17.2 9l-1.7 6.2 4.5 4.6 6.2-1.7 1.7-6.2-4.4-4.6z"/></svg>
@@ -3,10 +3,10 @@
3
3
  //= require jquery2
4
4
  //= require jquery_ujs
5
5
  //= require turbolinks
6
- //= require jquery-ui/draggable
7
- //= require jquery-ui/effect-fade
8
- //= require jquery-ui/sortable
9
- //= require jquery-ui/tabs
6
+ //= require jquery-ui/effects/effect-fade
7
+ //= require jquery-ui/widgets/draggable
8
+ //= require jquery-ui/widgets/sortable
9
+ //= require jquery-ui/widgets/tabs
10
10
  //= require tinymce/tinymce.min
11
11
  //= require_tree ../../../../vendor/assets/javascripts/jquery_plugins/
12
12
  //= require clipboard.min
@@ -20,12 +20,14 @@ Alchemy.Buttons =
20
20
 
21
21
  disable: (button) ->
22
22
  $button = $(button)
23
- spinner = new Alchemy.Spinner('small', {fill: '#fff'})
23
+ spinner = new Alchemy.Spinner('small')
24
24
  $button.data('content', $button.html())
25
25
  $button.attr('disabled', true)
26
+ $button.attr('tabindex', '-1')
26
27
  $button.addClass('disabled')
27
28
  $button.css
28
29
  width: $button.outerWidth()
30
+ height: $button.outerHeight()
29
31
  $button.empty()
30
32
  spinner.spin($button)
31
33
  return true
@@ -36,6 +38,8 @@ Alchemy.Buttons =
36
38
  $button = $(this)
37
39
  $button.removeClass('disabled')
38
40
  $button.removeAttr('disabled')
41
+ $button.removeAttr('tabindex')
39
42
  $button.css("width", "")
43
+ $button.css("height", "")
40
44
  $button.html($button.data('content'))
41
45
  return true
@@ -1,5 +1,5 @@
1
- #= require jquery-ui/draggable
2
- #= require jquery-ui/sortable
1
+ #= require jquery-ui/widgets/draggable
2
+ #= require jquery-ui/widgets/sortable
3
3
  #
4
4
  window.Alchemy = {} if typeof (window.Alchemy) is "undefined"
5
5
 
@@ -191,8 +191,6 @@ Alchemy.ElementEditors =
191
191
  element_id = $element.attr("id").replace(/\D/g, "")
192
192
  @selectElement($element)
193
193
  @selectElementInPreview(element_id)
194
- # Element submit button needs to keep it's default event
195
- e.preventDefault() unless $target.is(':submit')
196
194
  return
197
195
 
198
196
  # Double click event handler for element head.
@@ -124,7 +124,7 @@ class window.Alchemy.LinkDialog extends Alchemy.Dialog
124
124
  $("#contents_#{content_id}_link_class_name").val(@link_type)
125
125
  $("#contents_#{content_id}_link_target").val(target)
126
126
  @$link_object.addClass('linked')
127
- @$link_object.next().addClass('linked').removeClass('disabled')
127
+ @$link_object.next().addClass('linked').removeClass('disabled').removeAttr('tabindex')
128
128
 
129
129
  # Selects the correct tab for link type and fills all fields.
130
130
  selectTab: ->
@@ -251,6 +251,7 @@ class window.Alchemy.LinkDialog extends Alchemy.Dialog
251
251
  $("#contents_#{content_id}_link_target").val('')
252
252
  if $link.hasClass('linked')
253
253
  Alchemy.setElementDirty $(link).closest('.element-editor')
254
- $link.removeClass('linked').addClass('disabled')
254
+ $link.removeClass('linked').addClass('disabled').attr('tabindex', '-1')
255
+ $link.blur()
255
256
  $('#edit_link_' + content_id).removeClass('linked')
256
257
  false
@@ -7,16 +7,6 @@
7
7
  -moz-text-overflow: ellipsis;
8
8
  }
9
9
 
10
- %thumbnail-background {
11
- position: relative;
12
- display: table-cell;
13
- background-color: $dark-gray;
14
- text-align: center;
15
- vertical-align: middle;
16
- padding: 0;
17
- line-height: 0;
18
- }
19
-
20
10
  %field-with-error {
21
11
  border-color: $error_border_color;
22
12
  color: $error_text_color;
@@ -24,10 +14,6 @@
24
14
  box-shadow: inset 1px 1px 4px rgba($error_border_color, 0.5);
25
15
  }
26
16
 
27
- %blue-focus-style {
28
- @include default-focus-style;
29
- }
30
-
31
17
  %default-input-style {
32
18
  border-radius: $default-border-radius;
33
19
  box-shadow: $form-field-box-shadow;
@@ -39,15 +25,14 @@
39
25
  border-width: $form-field-border-width;
40
26
  border-style: $form-field-border-style;
41
27
  border-color: $form-field-border-color;
28
+ height: $form-field-height;
42
29
  width: 100%;
43
30
  font-size: $form-field-font-size;
44
31
  line-height: $form-field-line-height;
45
- transition-property: box-shadow, background-color, border;
46
- transition-duration: 0.25s;
47
- transition-timing-function: ease-in-out;
32
+ transition: $transition-duration;
48
33
 
49
34
  &:focus {
50
- @extend %blue-focus-style;
35
+ @include default-focus-style($box-shadow: 0 0 0 1px $focus-color);
51
36
  }
52
37
 
53
38
  &[disabled], .disabled {
@@ -1,7 +1,10 @@
1
- @mixin default-focus-style {
2
- border-color: $focus-color;
3
- border-radius: $default-border-radius;
4
- box-shadow: 0 0 0 1px $focus-color;
1
+ @mixin default-focus-style(
2
+ $border-color: $focus-color,
3
+ $box-shadow: 0 0 0 2px $focus-color,
4
+ $border-radius: $default-border-radius) {
5
+ border-color: $border-color;
6
+ border-radius: $border-radius;
7
+ box-shadow: $box-shadow;
5
8
  outline: none;
6
9
 
7
10
  &::-moz-focus-inner {
@@ -15,15 +18,18 @@
15
18
  $hover-color: $button-hover-bg-color,
16
19
  $hover-border-color: $button-hover-border-color,
17
20
  $border-radius: $default-border-radius,
18
- $border: 1px solid $button-border-color,
21
+ $border: $button-border-width solid $button-border-color,
19
22
  $padding: $button-padding,
20
23
  $margin: $button-margin,
21
- $color: $button-text-color) {
24
+ $color: $button-text-color,
25
+ $line-height: $form-field-line-height,
26
+ $focus-border-color: $button-focus-border-color,
27
+ $focus-box-shadow: 0 0 2px $focus-border-color) {
22
28
  display: inline-block;
23
29
  font-family: $default-font-family;
24
30
  font-size: $default-font-size;
25
- font-weight: bold;
26
- line-height: $form-field-line-height;
31
+ font-weight: $button-font-weight;
32
+ line-height: $line-height;
27
33
  padding: $padding;
28
34
  cursor: pointer;
29
35
  border-radius: $border-radius;
@@ -33,7 +39,7 @@
33
39
  color: $color;
34
40
  margin: $margin;
35
41
  -webkit-appearance: none;
36
- transition: background-color 250ms;
42
+ transition: all $transition-duration;
37
43
  @include antialiased-font-smoothing;
38
44
 
39
45
  &:hover {
@@ -47,7 +53,10 @@
47
53
  }
48
54
 
49
55
  &:focus {
50
- @include default-focus-style;
56
+ @include default-focus-style(
57
+ $border-color: $focus-border-color,
58
+ $box-shadow: $focus-box-shadow
59
+ );
51
60
  }
52
61
 
53
62
  &.disabled, &[disabled],
@@ -66,11 +75,10 @@
66
75
 
67
76
  @mixin form-label {
68
77
  width: $form-left-width;
69
- padding-right: 2*$default-padding;
70
- padding-top: $default-padding + 1;
71
- margin-top: 4px;
78
+ padding-right: 2 * $default-padding;
79
+ padding-top: 0.6em;
80
+ margin-top: $default-margin;
72
81
  vertical-align: top;
73
- line-height: 19px;
74
82
  word-break: normal;
75
83
  float: left;
76
84
  text-align: right;
@@ -151,16 +159,24 @@
151
159
  font-size: 0.8em;
152
160
  padding-right: 2*$default-padding;
153
161
  }
162
+
163
+ &:focus {
164
+ @include default-focus-style($box-shadow: inset 0 0 0 2px $focus-color);
165
+ }
154
166
  }
155
167
 
156
- @mixin linked-button($border-radius: $default-border-radius) {
168
+ @mixin linked-button(
169
+ $border-radius: $default-border-radius,
170
+ $line-height: $form-field-line-height,
171
+ $padding: 3px) {
157
172
  @include button-defaults(
173
+ $line-height: $line-height,
158
174
  $background-color: $linked-button-color,
159
175
  $hover-color: darken($linked-button-color, 10%),
160
176
  $border: 1px solid $linked-border-color,
161
177
  $hover-border-color: darken($linked-border-color, 10%),
162
178
  $border-radius: $border-radius,
163
- $padding: 3px,
179
+ $padding: $padding,
164
180
  $margin: 0
165
181
  );
166
182
  }
@@ -27,7 +27,7 @@ $small-font-size: 0.9em !default;
27
27
  $default-font-style: $default-font-size $default-font-family !default;
28
28
 
29
29
  $dialog-header-height: 36px !default;
30
- $dialog-header-color: $dark-blue !default;
30
+ $dialog-header-color: $dark-gray-blue !default;
31
31
  $dialog-header-text-color: $white !default;
32
32
  $dialog-header-font-size: $default-font-size !default;
33
33
  $dialog-box-shadow: 0 8px 16px rgba(35, 35, 35, 0.5) !default;
@@ -46,33 +46,36 @@ $default-border: $default-border-width $default-border-style $default-border-col
46
46
  $default-border-radius: 3px !default;
47
47
 
48
48
  $form-field-margin: $default-margin 0 !default;
49
- $form-field-height: 29px !default;
49
+ $form-field-height: 31px !default;
50
50
  $form-field-background-color: $white !default;
51
51
  $form-field-border-width: $default-border-width !default;
52
52
  $form-field-border-style: $default-border-style !default;
53
53
  $form-field-border-color: $default-border-color $default-border-color $border-inset-color $border-inset-color !default;
54
54
  $form-field-box-shadow: inset 0px 0 1px $medium-gray !default;
55
- $form-field-padding: 0.5em 0.75em !default;
55
+ $form-field-padding: 0.6em 0.75em !default;
56
56
  $form-field-font-size: $default-font-size !default;
57
57
  $form-field-line-height: 1.25 !default;
58
58
  $form-field-text-color: $text-color !default;
59
59
  $form-field-disabled-text-color: #888 !default;
60
60
  $form-field-disabled-bg-color: rgba($white, 0.5) !default;
61
61
 
62
- $focus-color: rgba(#eca96e, 0.75) !default;
62
+ $focus-color: rgba($dark-orange, 0.75) !default;
63
63
 
64
- $button-bg-color: $dark-blue !default;
65
- $button-hover-bg-color: lighten($button-bg-color, 5%) !default;
66
- $button-border-color: darken($button-bg-color, 5%) !default;
67
- $button-hover-border-color: lighten($button-border-color, 5%) !default;
68
- $button-text-color: $white !default;
64
+ $button-bg-color: rgba($dark-orange, 0.75) !default;
65
+ $button-hover-bg-color: $dark-orange !default;
66
+ $button-border-color: transparent !default;
67
+ $button-border-width: 2px !default;
68
+ $button-text-color: $text-color !default;
69
+ $button-hover-border-color: transparent !default;
70
+ $button-focus-border-color: $button-text-color !default;
71
+ $button-font-weight: bold !default;
69
72
  $button-text-shadow: none !default;
70
73
  $button-box-shadow: none !default;
71
- $button-padding: 0.5em 1.5em !default;
74
+ $button-padding: 0.5em 2em !default;
72
75
  $button-margin: $form-field-margin !default;
73
76
 
74
77
  $secondary-button-bg-color: transparent !default;
75
- $secondary-button-text-color: $button-bg-color !default;
78
+ $secondary-button-text-color: $button-text-color !default;
76
79
  $secondary-button-border-color: $button-bg-color !default;
77
80
 
78
81
  $linked-button-color: rgba($linked-color, 0.75) !default;
@@ -105,9 +108,9 @@ $sitemap-highlight-color: rgba(#fffba5, 0.5) !default;
105
108
 
106
109
  $main-menu-width: 150px !default;
107
110
  $collapsed-main-menu-width: 48px !default;
108
- $main-menu-bg-color: $dark-blue !default;
111
+ $main-menu-bg-color: $dark-gray-blue !default;
109
112
  $main-menu-active-bg-color: $dark-orange !default;
110
- $main-menu-active-text-color: $very-dark-gray !default;
113
+ $main-menu-active-text-color: $dark-gray-blue !default;
111
114
  $main-menu-text-color: $white !default;
112
115
  $main-menu-icon-color: $white !default;
113
116
  $main-menu-entry-max-width: 100px !default;
@@ -117,7 +120,7 @@ $element-toolbar-height: 37px !default;
117
120
  $header-height: 29px !default;
118
121
  $header-background: #d8d8d8 !default;
119
122
  $text-shadow-light: rgba($white, 0.5) 0 0 4px !default;
120
- $transition-duration: 200ms !default;
123
+ $transition-duration: 250ms !default;
121
124
  $transition-easing: linear !default;
122
125
 
123
126
  $tooltip-background-color: lighten($dark-gray-blue, 15%) !default;
@@ -145,3 +148,5 @@ $datepicker_header_color: $text-color !default;
145
148
  $datepicker_day_bg: $light-gray !default;
146
149
  $datepicker_day_border: 1px solid $medium-gray !default;
147
150
  $datepicker_day_color: $text-color !default;
151
+
152
+ $thumbnail-background-color: opacify($default-border-color, 1) !default;
@@ -36,6 +36,7 @@
36
36
  @import "alchemy/sitemap";
37
37
  @import "alchemy/spinner";
38
38
  @import "alchemy/tables";
39
+ @import "alchemy/tags";
39
40
  @import "alchemy/trash";
40
41
  @import "alchemy/lists";
41
42
  @import "alchemy/upload";
@@ -14,16 +14,23 @@ div#image_assign_filter_and_image_sizing {
14
14
  }
15
15
  }
16
16
 
17
+ .thumbnail_background {
18
+ position: relative;
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ background-color: $thumbnail-background-color;
23
+ width: 100%;
24
+ height: 120px;
25
+ }
26
+
17
27
  .picture_thumbnail {
18
- padding: $default-padding;
19
- margin: 2px 1px 2px 2px;
28
+ margin: 2*$default-margin;
20
29
  background-color: #fff;
21
- float: none;
22
30
  display: inline-block;
23
- border: 1px solid #c0c0c0;
24
31
  position: relative;
25
- border-radius: $default-border-radius;
26
- width: 170px;
32
+ box-shadow: 0 0 0 1px $default-border-color;
33
+ width: 160px;
27
34
 
28
35
  img {
29
36
  width: auto;
@@ -32,12 +39,6 @@ div#image_assign_filter_and_image_sizing {
32
39
  max-height: 100%;
33
40
  }
34
41
 
35
- .thumbnail_background {
36
- @extend %thumbnail-background;
37
- width: 160px;
38
- height: 120px;
39
- }
40
-
41
42
  .picture_name {
42
43
  display: block;
43
44
  width: 100%;
@@ -46,33 +47,32 @@ div#image_assign_filter_and_image_sizing {
46
47
  overflow: hidden;
47
48
  bottom: 0;
48
49
  left: 0;
49
- font-family: "Courier New", Courier, mono;
50
- line-height: 16px;
51
- padding: $default-padding 0 0;
50
+ line-height: 2;
51
+ padding: 0 $default-padding;
52
+ text-overflow: ellipsis;
52
53
  }
53
54
 
54
55
  &.small {
55
- width: 90px;
56
+ width: 80px;
56
57
 
57
58
  .thumbnail_background {
58
- width: 80px;
59
59
  height: 60px;
60
60
  }
61
61
  }
62
62
 
63
63
  &.large {
64
- width: 250px;
64
+ width: 240px;
65
65
 
66
66
  .thumbnail_background {
67
- width: 240px;
68
67
  height: 180px;
69
68
  }
70
69
  }
71
70
 
72
71
  &:hover {
73
72
 
74
- .picture_tool {
75
- display: block;
73
+ .picture_tool, .picture_tags {
74
+ visibility: visible;
75
+ opacity: 1;
76
76
  }
77
77
  }
78
78
  }
@@ -82,13 +82,8 @@ div#image_assign_filter_and_image_sizing {
82
82
  padding-bottom: 60px;
83
83
  overflow: hidden;
84
84
 
85
- .picture_thumbnail {
86
- margin: 0 2*$default-margin 2*$default-margin 0;
87
- float: left;
88
-
89
- .thumbnail_background {
90
- @include zoom-in;
91
- }
85
+ .thumbnail_background {
86
+ @include zoom-in;
92
87
  }
93
88
  }
94
89
 
@@ -108,16 +103,20 @@ div.assign_image_list_image {
108
103
  position: absolute;
109
104
  background-color: white;
110
105
  top: $default-padding;
111
- padding: 2px 3px;
106
+ padding: $default-padding / 2;
112
107
  z-index: 10;
113
- display: none;
108
+ text-align: center;
109
+ border-radius: $default-border-radius;
110
+ box-shadow: 0 0 1px $dark-gray;
114
111
 
115
112
  &.visible {
116
- display: block;
113
+ visibility: visible;
114
+ opacity: 1;
117
115
  }
118
116
 
119
117
  &.hidden {
120
- display: none;
118
+ // Overwrite the `.hidden { display: none }` style
119
+ display: block;
121
120
  }
122
121
 
123
122
  &.select {
@@ -141,6 +140,23 @@ div.assign_image_list_image {
141
140
  }
142
141
  }
143
142
 
143
+ .picture_tags {
144
+ overflow: hidden;
145
+ position: absolute;
146
+ bottom: 22px;
147
+ left: 0;
148
+ width: 100%;
149
+ max-height: 80%;
150
+ padding: $default-padding;
151
+ pointer-events: none;
152
+ }
153
+
154
+ .picture_tags, .picture_tool {
155
+ visibility: hidden;
156
+ opacity: 0;
157
+ transition: opacity $transition-duration;
158
+ }
159
+
144
160
  div#library_sidebar {
145
161
  position: fixed;
146
162
  border-left: 1px solid $default-border-color;
@@ -169,79 +185,6 @@ div#filter_bar {
169
185
  }
170
186
  }
171
187
 
172
- .tag-list {
173
- height: 100%;
174
- padding-bottom: 138px;
175
-
176
- &.filtered {
177
- padding-bottom: 164px;
178
- }
179
-
180
- &.with_filter_bar {
181
- padding-bottom: 218px;
182
-
183
- &.filtered {
184
- padding-bottom: 244px;
185
- }
186
- }
187
-
188
- .js_filter_field_box {
189
- position: absolute;
190
- right: auto;
191
- top: auto;
192
- width: 200px;
193
- z-index: 1100;
194
- transition: background-color 200ms;
195
-
196
- input {
197
- width: 200px;
198
- background-color: transparentize($white, 0.25);
199
-
200
- &:focus {
201
- background-color: $white;
202
- }
203
- }
204
-
205
- label { display: none }
206
- }
207
-
208
- .js_filter_field_clear {
209
- right: 4px;
210
- }
211
-
212
- ul {
213
- list-style-type: none;
214
- padding: 0;
215
- margin: 40px 0 4px 0;
216
- height: 100%;
217
- width: 200px;
218
- overflow-x: hidden;
219
- overflow-y: auto;
220
-
221
- li {
222
- display: block;
223
-
224
- &:first-child { margin-top: 0 }
225
-
226
- a {
227
- @include tag-base;
228
- text-decoration: none;
229
- display: block;
230
- }
231
-
232
- &:hover { background-color: $very-light-blue }
233
-
234
- &.active {
235
-
236
- a {
237
- background-color: $dark-gray;
238
- color: $light-gray
239
- }
240
- }
241
- }
242
- }
243
- }
244
-
245
188
  .alchemy-dialog-body {
246
189
 
247
190
  #library_sidebar {
@@ -251,38 +194,14 @@ div#filter_bar {
251
194
 
252
195
  #assign_image_list, #assign_file_list {
253
196
  position: relative;
254
- height: 535px;
197
+ height: 548px;
255
198
  }
256
199
 
257
200
  #assign_image_list {
258
201
  padding-right: 244px;
259
-
260
- .tag-list ul {
261
- height: 316px;
262
- }
263
-
264
- &.filtered .tag-list ul {
265
- height: 292px;
266
- }
267
- }
268
-
269
- #assign_file_list {
270
-
271
- .tag-list ul {
272
- height: 396px;
273
- }
274
-
275
- &.filtered .tag-list ul {
276
- height: 372px;
277
- }
278
202
  }
279
203
 
280
204
  #overlay_file_list {
281
-
282
- &.with_tag_list {
283
- padding-right: 234px;
284
- }
285
-
286
205
  .assign_file_file {
287
206
  display: block;
288
207
  margin-bottom: 4px;
@@ -312,38 +231,6 @@ div#filter_bar {
312
231
  }
313
232
  }
314
233
 
315
- .picture_tags {
316
- overflow: hidden;
317
- position: absolute;
318
- top: 22px;
319
- left: $default-padding;
320
- width: 50%;
321
- max-height: 80%;
322
- padding: $default-padding;
323
- pointer-events: none;
324
- display: none;
325
- }
326
-
327
- .picture_thumbnail:hover .picture_tags {
328
- display: block;
329
- }
330
-
331
- .tag {
332
- @include tag-base(
333
- $margin: $default-margin/2 0,
334
- $padding: $default-padding 2*$default-padding $default-padding
335
- );
336
- display: inline-block;
337
- vertical-align: middle;
338
- color: $text-color;
339
- pointer-events: none;
340
- font-size: $small-font-size;
341
- }
342
-
343
- .tags .list .tag {
344
- padding: 0;
345
- }
346
-
347
234
  #all_files td.name a {
348
235
  @include zoom-in;
349
236
  }
@@ -96,15 +96,15 @@ a {
96
96
  text-decoration: underline;
97
97
  }
98
98
 
99
- &:focus {
100
- @extend %blue-focus-style;
101
- }
102
-
103
99
  img {
104
100
  border: none;
105
101
  }
106
102
  }
107
103
 
104
+ a:focus, [tabindex]:focus {
105
+ @include default-focus-style;
106
+ }
107
+
108
108
  form {
109
109
  margin-bottom: 0;
110
110
  }