arclight 1.1.4 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdbe09a3fa39235bc0ad186308ec24b786c984e4abbcbabafb87e07ad2ebb8e3
4
- data.tar.gz: fca899fbe2740f3f1220b59129297991b1975aa10a24ed1033c0e4b59bd870da
3
+ metadata.gz: 1f1e6b3f42d3537e2cf578afdac114aa0bf9809f9f331716f4cf57f2b8af84a1
4
+ data.tar.gz: dd97429213dcdb6ce394627b1494b9f327ba338aedd7a3821e901e33bdd8b5d4
5
5
  SHA512:
6
- metadata.gz: 3a6c9812f1e88a5150e3bb645e00092633ff8d67ba4075dc6654bad4baebd21abea209ae917a9c6babaa01387beffaabc8a45e3b37ac2fd83da1142f25fc0650
7
- data.tar.gz: 6436d64454bd0ea806806265e333ca5c588875640f812773f4b41d7ae4495ff3baf5f4797bd86991e8ba262818756ea71f8f7851740c479be562638988fe9e2c
6
+ metadata.gz: c7c0794ebc3a16206ec9cd175a5ef465a8afc08a4d197149b2c4d978de37399310eb75e676f67637b612c2a5ba15383c037e8d3030392e8c51689f873b309cc9
7
+ data.tar.gz: 806b6e4c2c4e3ef9f051e9cf70592b474f9ce4bf051feffbd3b2111b472dce3e7f6bc76150e7f12a95bba6e4f50e8e86327c982217326c0c8e3001d2ce1f3e5c
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /pkg/
10
10
  /spec/reports/
11
11
  /tmp/
12
+ /app/assets/builds/
12
13
 
13
14
  # rspec failure tracking
14
15
  .rspec_status
data/README.md CHANGED
@@ -117,7 +117,7 @@ You can also run `bin/console` for an interactive prompt that will allow you to
117
117
  When any of the javascript components or SASS sources in the gem are changed, this package should be published to NPM with the following steps:
118
118
  1. [Install npm](https://www.npmjs.com/get-npm)
119
119
  2. Bump the version number in `package.json`
120
- 3. run `npm publish` to push the javascript package to https://npmjs.org/package/arclight
120
+ 3. run `npm run build && npm publish` to push the javascript package to https://npmjs.org/package/arclight
121
121
 
122
122
  ## Contributing
123
123
 
@@ -0,0 +1,4 @@
1
+ @import "bootstrap/scss/functions";
2
+ @import "bootstrap/scss/mixins/breakpoints";
3
+ @import "bootstrap/scss/variables";
4
+ @import "application";
@@ -1,24 +1,23 @@
1
- //< !-- ! Font Awesome Pro 6.2.0 by @fontawesome - https: //fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
2
- $hierarchy-view-expand-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='#{$navbar-light-color}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM200 344V280H136c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H248v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z'/></svg>") !default;
3
- $hierarchy-view-collapse-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path fill='#{$navbar-light-color}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm88 200H296c13.3 0 24 10.7 24 24s-10.7 24-24 24H152c-13.3 0-24-10.7-24-24s10.7-24 24-24z'/></svg>") !default;
1
+ :root {
2
+ --al-toggle-icon-color: #{$navbar-light-color};
3
+ /* Font Awesome Free 6.5.2 by @fontawesome - https: //fontawesome.com License - https://fontawesome.com/license/free (CC BY 4.0 License) Copyright 2024 Fonticons, Inc. */
4
+ --al-hierarchy-view-expand-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 475 512'><path stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' stroke='rgb(0, 0, 0)' fill='rgb(0, 0, 0)' d='M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM200 344V280H136c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H248v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z'/></svg>");
5
+ --al-hierarchy-view-collapse-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 475 512'><path stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' stroke='rgb(0, 0, 0)' fill='rgb(0, 0, 0)' d='M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm88 200H296c13.3 0 24 10.7 24 24s-10.7 24-24 24H152c-13.3 0-24-10.7-24-24s10.7-24 24-24z'/></svg>");
6
+ }
4
7
 
5
8
  // Collapse +/- indicators
6
9
  .al-toggle-view-children {
7
- background-image: escape-svg($hierarchy-view-expand-icon);
8
- background-repeat: no-repeat;
9
- background-position: center;
10
- background-size: 100%;
11
- display: inline-block;
10
+ background-color: var(--al-toggle-icon-color);
12
11
  flex-shrink: 0;
13
12
  height: 1.25rem;
14
13
  margin-left: -1.25rem;
15
14
  margin-right: 0.25 * $spacer;
16
15
  margin-top: 0.1 * $spacer;
17
- vertical-align: middle;
18
- width: 1rem;
16
+ mask: var(--al-hierarchy-view-expand-icon);
17
+ width: 1.1rem;
19
18
 
20
19
  &:not(.collapsed) {
21
- background-image: escape-svg($hierarchy-view-collapse-icon);
20
+ mask: var(--al-hierarchy-view-collapse-icon);
22
21
  }
23
22
  }
24
23
 
@@ -48,9 +47,14 @@ $hierarchy-view-collapse-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3
48
47
 
49
48
  turbo-frame[busy] {
50
49
  &::before {
51
- @extend .placeholder !optional;
52
50
  animation: placeholder-glow 2s ease-in-out infinite;
53
- content: 'Loading...';
51
+ background-color: currentcolor;
52
+ content: "Loading...";
53
+ cursor: wait;
54
+ display: inline-block;
55
+ min-height: 1em;
56
+ opacity: 0.5;
57
+ vertical-align: middle;
54
58
  display: inline-block;
55
59
  margin-left: 1.5rem;
56
60
  }
@@ -101,8 +105,8 @@ $hierarchy-view-collapse-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3
101
105
 
102
106
  .title-container {
103
107
  border-bottom: $border-width solid $border-color;
104
- padding-bottom: $spacer * .5;
105
- margin-bottom: $spacer * .75;
108
+ padding-bottom: $spacer * 0.5;
109
+ margin-bottom: $spacer * 0.75;
106
110
  display: grid;
107
111
  gap: 0.5rem;
108
112
  grid-template-areas:
@@ -142,7 +146,7 @@ $hierarchy-view-collapse-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3
142
146
  .online-contents {
143
147
  grid-area: online-contents;
144
148
  margin-bottom: 1rem;
145
-
149
+
146
150
  h2 {
147
151
  font-size: 1rem;
148
152
  text-transform: uppercase;
@@ -1,5 +1,7 @@
1
-
2
- .toggle-bookmark, .breadcrumb-item, .document, .al-online-content-icon {
1
+ .toggle-bookmark,
2
+ .breadcrumb-item,
3
+ .document,
4
+ .al-online-content-icon {
3
5
  .blacklight-icons svg {
4
6
  height: 1rem;
5
7
  width: 1rem;
@@ -11,5 +13,5 @@
11
13
  }
12
14
 
13
15
  .btn > .bi:first-child {
14
- @extend .me-1
16
+ margin-inline-end: 0.25rem !important;
15
17
  }
@@ -7,7 +7,7 @@
7
7
  .al-show-breadcrumb {
8
8
  border-bottom: $border-width solid $border-color;
9
9
  padding-bottom: $spacer;
10
- margin-bottom: $spacer * .75;
10
+ margin-bottom: $spacer * 0.75;
11
11
  width: 100%;
12
12
 
13
13
  $bent-arrow: "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='15'><path fill-rule='evenodd' d='M1.5 1.5A.5.5 0 0 0 1 2v4.8a2.5 2.5 0 0 0 2.5 2.5h9.793l-3.347 3.346a.5.5 0 0 0 .708.708l4.2-4.2a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708.708L13.293 8.3H3.5A1.5 1.5 0 0 1 2 6.8V2a.5.5 0 0 0-.5-.5z'></path></svg>";
@@ -53,7 +53,9 @@
53
53
  }
54
54
  }
55
55
 
56
- .breadcrumb-item-1, .breadcrumb-item-4 { // breadcrumb-item-3 can have multiple on one line
56
+ .breadcrumb-item-1,
57
+ .breadcrumb-item-4 {
58
+ // breadcrumb-item-3 can have multiple on one line
57
59
  flex: 1 0 100%;
58
60
  color: $gray-600;
59
61
  }
@@ -100,14 +102,14 @@
100
102
  border: $default-border-styling;
101
103
  background-color: $gray-200;
102
104
  font-size: $font-size-sm;
103
- padding: ($spacer * .5) $spacer ($spacer * .75);
105
+ padding: ($spacer * 0.5) $spacer ($spacer * 0.75);
104
106
 
105
107
  @media (max-width: 767px) {
106
108
  margin-top: $spacer;
107
109
  }
108
110
 
109
111
  .al-collection-id {
110
- margin-bottom: $spacer * .75;
112
+ margin-bottom: $spacer * 0.75;
111
113
  }
112
114
 
113
115
  &-options {
@@ -153,12 +155,16 @@
153
155
  }
154
156
 
155
157
  .show-document {
156
- @extend .ps-lg-4;
157
-
158
158
  .title-container .bookmark-toggle {
159
- @extend .card;
160
- @extend .bg-light;
161
- @extend .p-2;
159
+ border: var(--bs-card-border-width) solid var(--bs-card-border-color);
160
+ background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity));
161
+ padding: 0.5rem;
162
+ }
163
+ }
164
+
165
+ @media (min-width: 992px) {
166
+ .show-document {
167
+ padding-left: 1.5rem !important;
162
168
  }
163
169
  }
164
170
 
@@ -177,7 +183,10 @@ dl.deflist dt {
177
183
  text-align: left;
178
184
  }
179
185
 
180
- .chronlist-head, .list-head, .index-head, .table-head {
186
+ .chronlist-head,
187
+ .list-head,
188
+ .index-head,
189
+ .table-head {
181
190
  caption-side: top;
182
191
  font-size: 1.25rem;
183
192
  font-weight: 500;
@@ -1,9 +1,13 @@
1
1
  .navbar-search {
2
+ border-bottom: $default-border-styling;
3
+ border-top: $default-border-styling;
4
+ margin-bottom: ($spacer * 0.5);
2
5
  z-index: 10;
6
+
3
7
  .search-query-form {
4
- max-width: 100% !important; // work around blacklight styles
8
+ max-width: 100% !important; // work around blacklight styles
5
9
  display: flex;
6
- gap: .5rem;
10
+ gap: 0.5rem;
7
11
 
8
12
  // wrap collection dropdown onto its own line on smaller screens
9
13
  @include media-breakpoint-down(md) {
@@ -22,9 +26,12 @@
22
26
  }
23
27
 
24
28
  .al-masthead {
25
- h1, .h1 {
29
+ --al-mastead-active-link-color: var(--bs-gray-700);
30
+ --al-masthead-title-size: #{$h2-font-size};
31
+
32
+ .h1 {
26
33
  display: block;
27
- font-size: $h2-font-size;
34
+ font-size: var(--al-masthead-title-size);
28
35
  margin: 0;
29
36
  padding: ($spacer * 1.5) ($spacer * 0.5);
30
37
  }
@@ -33,31 +40,8 @@
33
40
  flex-direction: row;
34
41
  font-weight: 700;
35
42
 
36
- .active a {
37
- color: $gray-700;
38
- }
39
- }
40
-
41
- + .navbar-search {
42
- border-bottom: $default-border-styling;
43
- border-top: $default-border-styling;
44
- margin-bottom: ($spacer * 0.5);
45
-
46
- a {
47
- font-weight: $font-weight-bold;
48
- }
49
-
50
43
  .active a {
51
- color: $gray-700;
52
- }
53
-
54
- .navbar-toggler {
55
- background-color: $white;
56
- border: $default-border-styling;
57
- }
58
-
59
- .navbar-toggler-icon {
60
- background-image: $navbar-light-toggler-icon-bg;
44
+ color: var(--al-mastead-active-link-color);
61
45
  }
62
46
  }
63
47
 
@@ -66,8 +50,7 @@
66
50
  justify-content: center !important;
67
51
  }
68
52
 
69
- h1,
70
- + .navbar-search {
53
+ h1 {
71
54
  text-align: center;
72
55
  }
73
56
  }
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  .al-document-abstract-or-scope {
38
- margin-bottom: $spacer * .5;
38
+ margin-bottom: $spacer * 0.5;
39
39
  max-width: 45em;
40
40
  }
41
41
  }
@@ -51,7 +51,7 @@ article.document {
51
51
  div.breadcrumb-links,
52
52
  dd.al-document-abstract-or-scope,
53
53
  dd.al-document-creator {
54
- margin-top: ($spacer * .5);
54
+ margin-top: ($spacer * 0.5);
55
55
  }
56
56
 
57
57
  form.bookmark-toggle.col-auto {
@@ -66,12 +66,12 @@ article.document {
66
66
 
67
67
  .al-document-abstract-or-scope {
68
68
  margin-bottom: 0;
69
- margin-top: $spacer * .75;
69
+ margin-top: $spacer * 0.75;
70
70
  max-width: 45em;
71
71
  }
72
72
  .al-grouped-repository {
73
73
  font-size: $font-size-sm;
74
- margin-bottom: $spacer * .75;
74
+ margin-bottom: $spacer * 0.75;
75
75
  }
76
76
  .al-grouped-title-bar {
77
77
  background-color: $gray-200;
@@ -91,7 +91,7 @@ article.document {
91
91
  .al-grouped-more {
92
92
  border-bottom: $default-border-styling;
93
93
  margin-bottom: $spacer;
94
- padding: ($spacer * .5) 0;
94
+ padding: ($spacer * 0.5) 0;
95
95
  }
96
96
 
97
97
  .document {
@@ -121,7 +121,6 @@ article.document {
121
121
  margin-bottom: ($spacer * 3) !important;
122
122
  }
123
123
 
124
-
125
124
  // Compact Search Results
126
125
  .documents-compact {
127
126
  margin-bottom: $spacer;
@@ -147,7 +146,7 @@ article.document {
147
146
 
148
147
  .index-document-functions {
149
148
  display: flex;
150
- @extend .justify-content-end;
149
+ justify-content: flex-end !important;
151
150
  }
152
151
 
153
152
  .al-document-container.text-muted {
@@ -176,13 +175,14 @@ article.document {
176
175
 
177
176
  .breadcrumb-links .col {
178
177
  flex-basis: auto;
179
- }
178
+ }
180
179
 
181
180
  .btn-outline-secondary svg {
182
181
  fill: $gray-600;
183
182
  }
184
183
 
185
- .btn-outline-secondary:not(:disabled):not(.disabled).active svg, .btn-outline-secondary:hover svg {
184
+ .btn-outline-secondary:not(:disabled):not(.disabled).active svg,
185
+ .btn-outline-secondary:hover svg {
186
186
  fill: $white;
187
187
  }
188
188
 
@@ -197,11 +197,10 @@ article.document {
197
197
  justify-content: flex-end;
198
198
  }
199
199
 
200
-
201
200
  .result-type-group {
202
201
  order: -1;
203
202
  flex-grow: 1;
204
- &.btn-group>.btn {
203
+ &.btn-group > .btn {
205
204
  flex-grow: 0;
206
205
  }
207
206
  }
@@ -246,6 +245,5 @@ article.document {
246
245
  .bookmark-toggle {
247
246
  display: none;
248
247
  }
249
-
250
248
  }
251
249
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Arclight
4
- VERSION = '1.1.4'
4
+ VERSION = '1.3.0'
5
5
  end
data/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "arclight",
3
- "version": "1.1.4",
3
+ "version": "1.3.0",
4
4
  "description": "The frontend for arclight",
5
5
  "main": "app/assets/javascript/arclight/arclight.js",
6
- "files": [
7
- "app/assets"
8
- ],
6
+ "files": ["app/assets"],
9
7
  "devDependencies": {
10
8
  "eslint": "^8.26.0",
11
9
  "eslint-config-airbnb-base": "^15.0.0",
12
- "eslint-plugin-import": "^2.2.0"
10
+ "eslint-plugin-import": "^2.2.0",
11
+ "sass": "^1.59.3",
12
+ "bootstrap": "^5.2.0"
13
13
  },
14
14
  "scripts": {
15
+ "build": "sass ./app/assets/stylesheets/arclight/build.scss:./app/assets/builds/arclight.css --no-source-map --load-path=node_modules",
15
16
  "lint": "eslint './app/assets/javascripts/**/*.{js,es6}'",
16
17
  "lint:fix": "eslint --fix './app/assets/javascripts/**/*.{js,es6}'",
17
18
  "test": "echo \"Error: no test specified\" && exit 1"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arclight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hardy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2024-05-13 00:00:00.000000000 Z
14
+ date: 2024-06-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: blacklight
@@ -314,6 +314,7 @@ files:
314
314
  - app/assets/javascripts/arclight/oembed_controller.js
315
315
  - app/assets/javascripts/arclight/truncate_controller.js
316
316
  - app/assets/stylesheets/arclight/application.scss
317
+ - app/assets/stylesheets/arclight/build.scss
317
318
  - app/assets/stylesheets/arclight/modules/collection_search.scss
318
319
  - app/assets/stylesheets/arclight/modules/hierarchy_and_online_contents.scss
319
320
  - app/assets/stylesheets/arclight/modules/highlights.scss