arclight 1.2.0 → 1.4.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: cc33edce733f7fd511703a9d4b1b7fa7152dc7136a5c0ff06d6cb08891e7bdb4
4
- data.tar.gz: f698894daf2a17d75db46a8cbc8c8517aaee3168ae62caa6c21f4bb9b5b9e310
3
+ metadata.gz: '05920211714b612a9c15488e1943502f69f46cb546642b0e93b4e23c8a2837e8'
4
+ data.tar.gz: 2a81f4044f38d14d591db1cd38d6e8ba5b4703e3fd24e18539a9d1837c995873
5
5
  SHA512:
6
- metadata.gz: 16bbb85fa76bf4003cbc8dbcc38299ba6c7461c0fbc952ee02dbcfddc8ec19fa37f04b595de248a4bd6c39ce69a083f607a6a17a64aa043a94026b4a5249de36
7
- data.tar.gz: d176c37652331ad6b229412caaf5488cd84cb06a555bc48dd7c4184fabda4ff1f47e8927c8babe7eaeb6fc665c63faf6ec4ebfc5b16b6f89247aec9ac9b1830d
6
+ metadata.gz: 6c14920c31d58ba3315badb0b469a3227c5f0a0f4c6e98fbed5362e486698aa7eec251efb335bcceacb5e4c7e812dc4118cb59d9950ccb9d20416f4b3d0f8528
7
+ data.tar.gz: 69ef42b405988a76171b0d7cacf8d73180d3cdaf8557762b0492168760cb6ee0db678570e839fc0a73bbc029469c589ce5b1c5f1b74257ade6311a99689fb568
@@ -2,30 +2,30 @@ name: CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ main ]
5
+ branches: [main]
6
6
  pull_request:
7
- branches: [ main ]
7
+ branches: [main]
8
8
 
9
9
  jobs:
10
10
  test:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- rails_version: [7.0.4]
15
- ruby: ['3.0', '3.1', '3.2']
14
+ rails_version: [7.1.3.4]
15
+ ruby: ["3.1", "3.2", "3.3"]
16
16
  env:
17
17
  RAILS_VERSION: ${{ matrix.rails_version }}
18
18
  steps:
19
- - uses: actions/checkout@v4
20
- - name: Set up Ruby ${{ matrix.ruby }}
21
- uses: ruby/setup-ruby@v1
22
- with:
23
- bundler: latest
24
- ruby-version: ${{ matrix.ruby }}
25
- - name: Install dependencies with Rails ${{ matrix.rails_version }}
26
- run: bundle install
27
- - name: Run tests
28
- run: bundle exec rake ci
19
+ - uses: actions/checkout@v4
20
+ - name: Set up Ruby ${{ matrix.ruby }}
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ bundler: latest
24
+ ruby-version: ${{ matrix.ruby }}
25
+ - name: Install dependencies with Rails ${{ matrix.rails_version }}
26
+ run: bundle install
27
+ - name: Run tests
28
+ run: bundle exec rake ci
29
29
  lint:
30
30
  runs-on: ubuntu-latest
31
31
  steps:
@@ -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
 
@@ -1,3 +1,6 @@
1
+ :root {
2
+ --al-online-icon-color: #{$online-icon-color};
3
+ }
1
4
  .toggle-bookmark,
2
5
  .breadcrumb-item,
3
6
  .document,
@@ -9,7 +12,7 @@
9
12
  }
10
13
 
11
14
  .al-online-content-icon .blacklight-icons svg {
12
- fill: $online-icon-color;
15
+ fill: var(--al-online-icon-color);
13
16
  }
14
17
 
15
18
  .btn > .bi:first-child {
@@ -1,3 +1,7 @@
1
+ :root {
2
+ --al-content-icon-color: #{$secondary};
3
+ }
4
+
1
5
  .documents-list {
2
6
  margin-bottom: $spacer;
3
7
 
@@ -43,10 +47,7 @@
43
47
 
44
48
  article.document {
45
49
  .blacklight-icons svg {
46
- fill: $secondary;
47
- }
48
- .al-online-content-icon .blacklight-icons svg {
49
- fill: $online-icon-color;
50
+ fill: var(--al-content-icon-color);
50
51
  }
51
52
  div.breadcrumb-links,
52
53
  dd.al-document-abstract-or-scope,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Arclight
4
- VERSION = '1.2.0'
4
+ VERSION = '1.4.0'
5
5
  end
data/package.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "name": "arclight",
3
- "version": "1.2.0",
3
+ "version": "1.4.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",
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.2.0
4
+ version: 1.4.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-06-07 00:00:00.000000000 Z
14
+ date: 2024-06-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: blacklight