blacklight-spotlight 3.0.0.alpha.3 → 3.0.0.alpha.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/blacklight/highlight_off.svg +1 -0
  3. data/app/assets/stylesheets/spotlight/_accessibility.scss +8 -0
  4. data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +3 -3
  5. data/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +19 -23
  6. data/app/assets/stylesheets/spotlight/_browse.scss +22 -13
  7. data/app/assets/stylesheets/spotlight/_catalog.scss +2 -2
  8. data/app/assets/stylesheets/spotlight/_curation.scss +8 -19
  9. data/app/assets/stylesheets/spotlight/_exhibits_index.scss +119 -80
  10. data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +5 -5
  11. data/app/assets/stylesheets/spotlight/_header.scss +14 -6
  12. data/app/assets/stylesheets/spotlight/_multi_image_selector.scss +1 -1
  13. data/app/assets/stylesheets/spotlight/_multi_up_item_grid.scss +3 -3
  14. data/app/assets/stylesheets/spotlight/_nestable.scss +4 -0
  15. data/app/assets/stylesheets/spotlight/_pages.scss +26 -17
  16. data/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +3 -4
  17. data/app/assets/stylesheets/spotlight/_slideshow_block.scss +1 -0
  18. data/app/assets/stylesheets/spotlight/_spotlight.scss +1 -1
  19. data/app/assets/stylesheets/spotlight/_translations.scss +6 -6
  20. data/app/assets/stylesheets/spotlight/_utilities.scss +4 -0
  21. data/app/controllers/concerns/spotlight/base.rb +8 -0
  22. data/app/controllers/spotlight/admin_users_controller.rb +4 -1
  23. data/app/controllers/spotlight/catalog_controller.rb +2 -2
  24. data/app/controllers/spotlight/exhibits_controller.rb +2 -0
  25. data/app/controllers/spotlight/pages_controller.rb +0 -4
  26. data/app/controllers/spotlight/sites_controller.rb +8 -2
  27. data/app/controllers/spotlight/translations_controller.rb +9 -1
  28. data/app/helpers/spotlight/pages_helper.rb +2 -1
  29. data/app/helpers/spotlight/title_helper.rb +12 -2
  30. data/app/models/spotlight/field_metadata.rb +1 -2
  31. data/app/models/spotlight/page.rb +2 -2
  32. data/app/views/layouts/spotlight/spotlight.html.erb +1 -1
  33. data/app/views/shared/_masthead.html.erb +25 -13
  34. data/app/views/shared/_site_navbar.html.erb +0 -0
  35. data/app/views/shared/_site_sidebar.html.erb +1 -1
  36. data/app/views/spotlight/about_pages/_contact.html.erb +15 -17
  37. data/app/views/spotlight/about_pages/_contact_properties.html.erb +1 -1
  38. data/app/views/spotlight/admin_users/index.html.erb +78 -72
  39. data/app/views/spotlight/appearances/edit.html.erb +1 -23
  40. data/app/views/spotlight/browse/_search_box.html.erb +3 -3
  41. data/app/views/spotlight/browse/show.html.erb +23 -26
  42. data/app/views/spotlight/catalog/_edit_default.html.erb +1 -1
  43. data/app/views/spotlight/catalog/_index_compact_default.html.erb +2 -2
  44. data/app/views/spotlight/contacts/_form.html.erb +1 -1
  45. data/app/views/spotlight/custom_fields/_form.html.erb +2 -2
  46. data/app/views/spotlight/custom_fields/form_group/_text.html.erb +2 -2
  47. data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +2 -2
  48. data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
  49. data/app/views/spotlight/dashboards/_page.html.erb +4 -4
  50. data/app/views/spotlight/exhibits/_exhibit_card.html.erb +35 -7
  51. data/app/views/spotlight/exhibits/_exhibits.html.erb +1 -1
  52. data/app/views/spotlight/exhibits/index.html.erb +4 -4
  53. data/app/views/spotlight/exhibits/new.html.erb +1 -1
  54. data/app/views/spotlight/feature_pages/_header.html.erb +2 -2
  55. data/app/views/spotlight/feature_pages/_sidebar.html.erb +9 -5
  56. data/app/views/spotlight/metadata_configurations/edit.html.erb +2 -2
  57. data/app/views/spotlight/pages/_form.html.erb +1 -1
  58. data/app/views/spotlight/pages/_page.html.erb +19 -35
  59. data/app/views/spotlight/roles/index.html.erb +2 -2
  60. data/app/views/spotlight/search_configurations/_facet_metadata.html.erb +0 -5
  61. data/app/views/spotlight/search_configurations/_facets.html.erb +15 -34
  62. data/app/views/spotlight/search_configurations/_search_fields.html.erb +6 -17
  63. data/app/views/spotlight/search_configurations/_sort.html.erb +8 -18
  64. data/app/views/spotlight/searches/_form.html.erb +2 -2
  65. data/app/views/spotlight/searches/_search.html.erb +30 -29
  66. data/app/views/spotlight/shared/_dd3_item.html.erb +56 -0
  67. data/app/views/spotlight/shared/_report_a_problem.html.erb +1 -1
  68. data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +1 -1
  69. data/app/views/spotlight/sir_trevor/blocks/_quote_block.html.erb +4 -4
  70. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
  71. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +1 -1
  72. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
  73. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
  74. data/app/views/spotlight/sites/edit.html.erb +1 -1
  75. data/app/views/spotlight/sites/edit_exhibits.html.erb +1 -1
  76. data/app/views/spotlight/translations/_search_fields.html.erb +1 -1
  77. data/app/views/spotlight/translations/edit.html.erb +1 -1
  78. data/config/locales/spotlight.en.yml +5 -11
  79. data/config/locales/spotlight.es.yml +26 -25
  80. data/lib/generators/spotlight/install_generator.rb +6 -2
  81. data/lib/generators/spotlight/templates/config/initializers/oembed.rb +4 -0
  82. data/lib/spotlight/engine.rb +3 -5
  83. data/lib/spotlight/version.rb +1 -1
  84. data/spec/controllers/spotlight/translations_controller_spec.rb +8 -0
  85. data/spec/examples.txt +1386 -1379
  86. data/spec/features/create_exhibit_spec.rb +1 -2
  87. data/spec/features/exhibits_index_spec.rb +1 -3
  88. data/spec/features/javascript/blocks/solr_documents_block_spec.rb +2 -2
  89. data/spec/features/javascript/search_config_admin_spec.rb +1 -1
  90. data/spec/helpers/spotlight/pages_helper_spec.rb +6 -0
  91. data/spec/helpers/spotlight/title_helper_spec.rb +13 -0
  92. data/spec/models/spotlight/feature_page_spec.rb +0 -5
  93. data/spec/models/spotlight/field_metadata_spec.rb +0 -7
  94. data/spec/test_app_templates/Gemfile.extra +0 -1
  95. data/spec/views/shared/_masthead.html.erb_spec.rb +12 -0
  96. data/spec/views/spotlight/exhibits/{_exhibit_card_front.html.erb_spec.rb → _exhibit_card.html.erb_spec.rb} +7 -3
  97. data/spec/views/spotlight/exhibits/index.html.erb_spec.rb +1 -1
  98. data/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +1 -0
  99. data/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb +0 -1
  100. data/spec/views/spotlight/search_configurations/_search_fields.html.erb_spec.rb +1 -1
  101. data/spec/views/spotlight/search_configurations/_sort.html.erb_spec.rb +2 -2
  102. data/vendor/assets/stylesheets/sir-trevor/_variables.scss +0 -8
  103. data/vendor/assets/stylesheets/sir-trevor/block-controls.scss +0 -4
  104. metadata +9 -10
  105. data/app/assets/images/blacklight/remove_circle_outline.svg +0 -1
  106. data/app/views/spotlight/browse/_sort_and_per_page.html.erb +0 -5
  107. data/app/views/spotlight/exhibits/_exhibit_card_back.html.erb +0 -25
  108. data/app/views/spotlight/exhibits/_exhibit_card_front.html.erb +0 -13
  109. data/spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fa9f3a7e1e9c57300b2fe7d8e6bd5b9a71060f67023d4af18d98e71a4ab403f
4
- data.tar.gz: 56ee1b33497e018c21b2715cb70ffe046cbb20c9b94d29bd8c190a0e6bf98861
3
+ metadata.gz: eee784e93eaeb64d3b581a84b8969f67ef1365fcb244845541cce3db8743a44d
4
+ data.tar.gz: 72cc1075f6bf87b3f0ec675d71484ea0f664181d36fe55978878890627d8f264
5
5
  SHA512:
6
- metadata.gz: d983db3c039418272a76203ae52763887394bc6f04100b0d5722142ce122e87a59c7e28eb1c7616a6cbb078c28d5df4f04d1b0a63e1e0b9780058e6b8c9b2ce0
7
- data.tar.gz: 1445e0928407f8e5510c0b86b7e2fbfb1ea62d7124ea131ae78fcafb0c183ec6dfab34434c41128d6031ef93a3b16c0d12ff3c371e56d8c7da0d0b15fdb8fefc
6
+ metadata.gz: 99dd649874596c8b56267f9757fd4c56a05768289c52545b698932dbd8756c498b280f969602b2578afb31e13c5a26856379a573ea4b4fb5dc7d938f18199b19
7
+ data.tar.gz: 2477bf2480ec591974433df8bb7a48c58c51ca2961ddfbee954fe3ca5a4a82244cfcd9efbd784a046d8c86b90df9c1078ebc77cef04422e1d77eb66c91f4871e
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>
@@ -0,0 +1,8 @@
1
+ // Global accessibility overrides
2
+
3
+ // Increase visibility of Firefox focus indicator
4
+ @-moz-document url-prefix() {
5
+ &:focus {
6
+ outline: $input-focus-border-color auto 5px;
7
+ }
8
+ }
@@ -31,8 +31,8 @@
31
31
  padding-bottom: 0;
32
32
 
33
33
  label {
34
- margin-left: $padding-base-horizontal;
35
- margin-right: $padding-base-horizontal;
34
+ margin-left: $spacer;
35
+ margin-right: $spacer;
36
36
  padding-left: 0px;
37
37
  padding-bottom: $table-cell-padding;
38
38
  padding-top: 1 + $table-cell-padding;
@@ -47,7 +47,7 @@
47
47
  }
48
48
 
49
49
  .dd-table {
50
- margin-top: 2 * $padding-large-vertical;
50
+ margin-top: 2 * $spacer;
51
51
 
52
52
  th {
53
53
  &:first-child {
@@ -15,8 +15,8 @@
15
15
 
16
16
  .navbar-sm {
17
17
  li > a {
18
- padding-top:$padding-base-vertical !important;
19
- padding-bottom:$padding-base-vertical !important;
18
+ padding-top:$spacer !important;
19
+ padding-bottom:$spacer !important;
20
20
  }
21
21
 
22
22
  margin-top: -10px;
@@ -32,14 +32,13 @@
32
32
 
33
33
  padding-bottom: 0.25rem;
34
34
  margin-bottom: 0.25rem;
35
- margin-left: 0.5rem;
36
35
  padding-left: 0;
37
36
  padding-top: 0;
38
37
  }
39
38
 
40
39
  .nav-link {
41
40
  padding: 0rem 1rem;
42
- padding-left: 0.5rem;
41
+ padding-left: 0px;
43
42
  }
44
43
 
45
44
  .nav-link.active {
@@ -81,21 +80,22 @@ h1,h2,h3,h4,h5,h6 {
81
80
  }
82
81
  }
83
82
 
84
- .tab-pane {
85
- fieldset {
86
- margin-bottom: $padding-large-vertical * 2;
87
- margin-top: $padding-large-vertical * 1;
88
- }
89
- legend {
90
- margin-bottom: $padding-large-vertical;
91
- }
92
- small.form-text {
93
- margin-bottom: $spacer;
94
- margin-top: $spacer * 0.3125;
95
- }
96
- div.form-check + input[type="file"] {
97
- margin-top: $padding-large-vertical;
98
- }
83
+ fieldset {
84
+ margin-bottom: $spacer * 2;
85
+ margin-top: $spacer * 1;
86
+ }
87
+
88
+ legend {
89
+ margin-bottom: $spacer;
90
+ }
91
+
92
+ small.form-text {
93
+ margin-bottom: $spacer;
94
+ margin-top: $spacer * 0.3125;
95
+ }
96
+
97
+ div.form-check + input[type="file"] {
98
+ margin-top: $spacer;
99
99
  }
100
100
 
101
101
  @media (max-width: breakpoint-max("md")) {
@@ -103,7 +103,3 @@ h1,h2,h3,h4,h5,h6 {
103
103
  padding-left: 0;
104
104
  }
105
105
  }
106
-
107
- .carousel-block .carousel-indicators li {
108
- opacity: 1;
109
- }
@@ -1,7 +1,7 @@
1
1
  $image-overlay-max-height: 300px;
2
2
 
3
3
  .long-description-text {
4
- margin: ($padding-base-vertical * 2) 0;
4
+ margin: ($spacer * 2) 0;
5
5
  width: 40em;
6
6
  }
7
7
 
@@ -14,6 +14,18 @@ $image-overlay-max-height: 300px;
14
14
  }
15
15
  }
16
16
 
17
+ .blacklight-browse {
18
+ .sort-pagination {
19
+ .page-links {
20
+ display: none;
21
+ }
22
+
23
+ .search-widgets {
24
+ margin-left: auto;
25
+ }
26
+ }
27
+ }
28
+
17
29
  .browse-landing {
18
30
  text-align: center;
19
31
  // Placeholder for vertically alignment - might already be available from use in another feature
@@ -24,7 +36,7 @@ $image-overlay-max-height: 300px;
24
36
  }
25
37
 
26
38
  .category {
27
- margin-bottom: $spacer * 2;
39
+ margin-bottom: $spacer;
28
40
  }
29
41
 
30
42
  .image-overlay {
@@ -61,7 +73,7 @@ $image-overlay-max-height: 300px;
61
73
  small {
62
74
  display: block;
63
75
  color: $white;
64
- margin-top: $padding-large-vertical;
76
+ margin-top: $spacer;
65
77
  text-transform: uppercase;
66
78
  }
67
79
  }
@@ -72,19 +84,16 @@ $image-overlay-max-height: 300px;
72
84
  }
73
85
 
74
86
  @media screen and (max-width: breakpoint-max("sm")) {
75
- $image-overlay-max-height: 180px;
76
- .category {
77
- margin: 10px auto;
78
- }
79
-
87
+ $image-overlay-max-height: 240px;
80
88
  .image-overlay {
89
+ margin: 10px auto;
81
90
  max-height: $image-overlay-max-height;
82
91
  max-width: 350px;
83
92
  }
84
93
  .text-overlay .browse-category-title {font-size: $h3-font-size;}
85
94
  }
86
95
  @media screen and (min-width: breakpoint-min("sm")) and (max-width: breakpoint-max("md")) {
87
- $image-overlay-max-height: 180px;
96
+ $image-overlay-max-height: 240px;
88
97
  .image-overlay {max-height: $image-overlay-max-height;}
89
98
  }
90
99
  @media screen and (min-width: breakpoint-min("md")) and (max-width: breakpoint-max("lg")) {
@@ -106,10 +115,6 @@ $image-overlay-max-height: 300px;
106
115
  }
107
116
 
108
117
  .browse-search-form {
109
- .browse-search-expand {
110
- text-align: center;
111
- }
112
-
113
118
  .btn-reset {
114
119
  background-color: transparent;
115
120
  display: none;
@@ -122,4 +127,8 @@ $image-overlay-max-height: 300px;
122
127
  z-index: 30;
123
128
  }
124
129
  }
130
+
131
+ .browse-search-expand {
132
+ text-align: center;
133
+ }
125
134
  }
@@ -61,7 +61,7 @@
61
61
 
62
62
  .blacklight-catalog-admin {
63
63
  .add-items-nav {
64
- margin-bottom: $padding-large-vertical;
64
+ margin-bottom: $spacer;
65
65
  }
66
66
 
67
67
  .sort-pagination {
@@ -119,7 +119,7 @@ form.edit_solr_document {
119
119
 
120
120
  #save-this-search {
121
121
  float:left;
122
- margin-right: $padding-xs-horizontal;
122
+ margin-right: $spacer * 0.1;
123
123
  }
124
124
 
125
125
  #document {
@@ -1,6 +1,8 @@
1
1
  .page-links a {
2
2
  padding-left: 0;
3
3
  padding-right: 0;
4
+ line-height: $btn-line-height;
5
+ @include font-size($btn-font-size);
4
6
  }
5
7
 
6
8
  .missing-description {
@@ -36,23 +38,10 @@
36
38
  display: inline-block;
37
39
  margin-bottom: 0;
38
40
  }
39
- .checkbox {
40
- width: 3%;
41
- vertical-align: top;
42
- display: inline-block;
43
- padding-top: 0;
44
- }
45
-
46
- .publish-control {
47
- display: inline;
48
41
 
49
- .checkbox {
50
- padding-top: 0;
51
- }
52
-
53
- .form-check-inline {
54
- vertical-align: middle;
55
- }
42
+ .form-check-inline {
43
+ margin-top: -3px;
44
+ vertical-align: middle;
56
45
  }
57
46
 
58
47
  .main {
@@ -125,13 +114,13 @@
125
114
  width: 65%;
126
115
  vertical-align: top;
127
116
  display: inline-block;
128
- margin-left: $padding-base-horizontal;
117
+ margin-left: $spacer;
129
118
  }
130
119
  .remove {
131
120
  width: 10%;
132
121
  vertical-align: top;
133
122
  display: inline-block;
134
- margin-left: $padding-base-horizontal;
123
+ margin-left: $spacer;
135
124
  }
136
125
  }
137
126
 
@@ -210,7 +199,7 @@ table#exhibit-specific-fields {
210
199
  }
211
200
 
212
201
  #nested-navigation {
213
- margin-bottom: 2 * $padding-large-vertical;
202
+ margin-bottom: 2 * $spacer;
214
203
  }
215
204
 
216
205
  table.users {
@@ -1,108 +1,147 @@
1
- .exhibit-card {
2
- box-sizing: border-box;
3
- height: $exhibit-card-height;
4
- margin-bottom: 2rem;
5
- // image width + gutter + border (x2)
6
- max-width: $exhibit-card-image-size + $exhibit-card-gutter + 2px;
7
- padding-right: ($exhibit-card-gutter / 2) !important;
8
- perspective: 1000; // for flip animation
9
- position: relative;
10
-
11
- .flipper {
12
- position: relative;
13
- transform-style: preserve-3d;
14
- transition: 0.6s;
15
- }
16
-
17
- &.hover .flipper,
18
- &:hover .flipper {
19
- -ms-filter: "FlipH"; // autoprefixer doesn't handle this case.
20
- filter: FlipH;
21
- transform: rotateY(180deg);
22
- }
23
- }
24
-
25
- .card-face {
26
- backface-visibility: hidden;
27
- background-color: $exhibit-card-bg;
28
- border: 1px solid $exhibit-card-border;
29
- height: $exhibit-card-height;
30
- left: 0;
31
- position: absolute;
32
- top: 0;
33
- transform-style: preserve-3d;
34
- transition: 0.6s;
35
- width: 100%;
36
- }
1
+ $exhibit-card-overlay-padding: $card-img-overlay-padding / 2 !default;
2
+ $exhibit-card-overlay-opacity: 0.85 !default;
3
+ $exhibit-card-bg: $card-bg !default;
37
4
 
38
- .exhibit-card-title {
39
- @extend .h5;
40
- @extend .text-center;
41
- }
42
-
43
- .card-front {
44
- transform: rotateY(0deg);
45
- z-index: 2;
5
+ .exhibit-card {
6
+ background: $exhibit-card-bg;
7
+ overflow-y: hidden;
8
+ padding-bottom: 3rem;
46
9
 
47
10
  .unpublished {
48
11
  @extend .mx-auto;
49
12
  display: block;
50
- font-size: $font-size-base;
51
- margin-top: -1em;
52
- position: relative;
13
+ font-size: $font-size-sm;
14
+ margin-top: -1.5rem;
15
+ position: absolute;
16
+ left: 0;
17
+ right: 0;
53
18
  width: 15ch;
54
19
  }
55
- }
56
-
57
- .card-back {
58
- box-shadow: $exhibit-card-shadow;
59
- transform: rotateY(-180deg);
60
20
 
61
21
  .card-title {
62
- border-bottom: 1px dotted $exhibit-card-border;
63
- padding-bottom: $padding-base-vertical;
22
+ -webkit-box-orient: vertical;
23
+ display: -webkit-box;
24
+ -webkit-line-clamp: 3;
25
+ overflow: hidden;
26
+ }
27
+
28
+ .card-title .stretched-link {
29
+ outline: none;
30
+ }
31
+
32
+ .card-img {
33
+ margin-top: -1px;
34
+ border-bottom-left-radius: 0;
35
+ border-bottom-right-radius: 0;
36
+ }
37
+
38
+ .card-img-overlay {
39
+ background: rgba($exhibit-card-bg, $exhibit-card-overlay-opacity);
40
+ border-bottom-left-radius: calc(0.25rem - 1px);
41
+ border-bottom-right-radius: calc(0.25rem - 1px);
42
+ display: flex;
43
+ flex-direction: column;
44
+ padding: $exhibit-card-overlay-padding;
45
+ top: inherit;
46
+ max-height: 100%;
47
+ }
48
+
49
+ .exhibit-description {
50
+ display: flex;
51
+ flex-direction: column;
52
+ max-height: 0;
53
+ outline: none;
54
+ overflow-y: hidden;
55
+ transition: $transition-base;
64
56
  }
65
57
 
66
58
  .subtitle {
67
- @extend .h5;
68
- @extend .text-center;
69
- font-size: 0.875rem;
70
- line-height: $headings-line-height;
59
+ -webkit-box-orient: vertical;
60
+ display: -webkit-box;
61
+ -webkit-line-clamp: 3;
62
+ overflow: hidden;
63
+ text-align: center;
71
64
  }
72
65
 
73
66
  .description {
74
- font-size: 0.75rem;
67
+ -webkit-box-orient: vertical;
68
+ display: -webkit-box;
69
+ font-size: $font-size-sm;
70
+ -webkit-line-clamp: 15;
71
+ overflow: hidden;
75
72
  }
76
73
 
77
- .visit-exhibit {
78
- bottom: 1rem;
79
- position: absolute;
74
+ &:hover {
75
+ .exhibit-description {
76
+ max-height: 450px;
77
+ }
80
78
  }
81
- }
82
79
 
83
- // between the small and medium breakpoints, reduce the size of the image by a little bit
84
- @media (min-width: breakpoint-min("sm")) and (max-width: breakpoint-max("lg")) {
80
+ &:focus-within {
81
+ // Use Bootstrap focus style
82
+ outline: $input-focus-border-color auto 5px;
85
83
 
86
- // calculate the size of one full grid column
87
- $reduce-exhibit-card-image-size: (((map-get($container-max-widths, "md") - $grid-gutter-width) / $grid-columns) - ($grid-gutter-width / 2));
84
+ // Use WebKit focus styles if available
85
+ @supports (-webkit-appearance:none) {
86
+ outline-color: -webkit-focus-ring-color;
87
+ }
88
88
 
89
- .exhibit-card,
90
- .card-face {
91
- height: $exhibit-card-height - $reduce-exhibit-card-image-size;
89
+ .exhibit-description {
90
+ max-height: 450px;
91
+ }
92
92
  }
93
93
 
94
- // Cannot extend .btn-sm within a @media query
95
- .center-btn .btn {
96
- @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
94
+ @media (min-width: breakpoint-min("sm")) and (max-width: breakpoint-max("sm")) {
95
+ &:hover {
96
+ .exhibit-description {
97
+ max-height: 215px;
98
+ }
99
+ }
100
+
101
+ &:focus-within {
102
+ .exhibit-description {
103
+ max-height: 215px;
104
+ }
105
+ }
106
+
107
+ .description {
108
+ -webkit-line-clamp: 5;
109
+ }
110
+
111
+ .subtitle {
112
+ -webkit-line-clamp: 2;
113
+ }
97
114
  }
98
- }
99
115
 
100
- .center-btn {
101
- left: 50%;
102
- position: absolute;
116
+ @media (min-width: breakpoint-min("md")) and (max-width: breakpoint-max("lg")) {
117
+ .description {
118
+ -webkit-line-clamp: 4;
119
+ }
120
+
121
+ .subtitle {
122
+ -webkit-line-clamp: 2;
123
+ }
124
+ }
103
125
 
104
- .btn {
105
- left: -50%;
106
- position: relative;
126
+ @media (min-width: breakpoint-max("lg")) {
127
+ &:hover {
128
+ .exhibit-description {
129
+ max-height: 230px;
130
+ }
131
+ }
132
+
133
+ &:focus-within {
134
+ .exhibit-description {
135
+ max-height: 230px;
136
+ }
137
+ }
138
+
139
+ .description {
140
+ -webkit-line-clamp: 6;
141
+ }
142
+
143
+ .subtitle {
144
+ -webkit-line-clamp: 2;
145
+ }
107
146
  }
108
147
  }