swedbank-pay-design-guide-jekyll-theme 2.7.3 → 2.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5aa19ace306f908cbb38d1701efc493587d27ee8de006bc486eef53fc94991d
4
- data.tar.gz: 15a052e61e4010a7d233693a1ab9d6753aea662b6b2e74e239dba91db5e61abf
3
+ metadata.gz: cc6e69e6004a9d693d313bab981ac5361b5d0548b51d18adf618cc94a445d8f5
4
+ data.tar.gz: e3bad7b5981919602ea7a367f836bd30e41a5191dceae999b4eb0ce41c6ae2de
5
5
  SHA512:
6
- metadata.gz: 5a5b385ec2c43e82271473fb3ae29e1f6582b5afec65b50fed41c74d492b7a71bc6b837e19c371f3e13a8df825b95c44fd87c61fa9e42cc24a51bf0363f1514b
7
- data.tar.gz: 7a339cab37f06569933b5a99b1be543830841aa46b17b94b73470f6f897e8805351a23e2cde4c9eb0206104e1885eb7fcd883f362c5bcfa81e3420a8538ef372
6
+ metadata.gz: 8212ee997917744acb70cf9b00fdfce27b67639328887238cba635ae6833c0308ee8327510552d72cb0d33f67245db870f2ae7aeb12b98f5ea5e4d6d143e73a4
7
+ data.tar.gz: d0f610741a4502b1a35612f80af92b1565a616b031a8e85eed08903bf9b084931f2083246ed7c8f826d97227ab391107625621cbd98679ec9ef4b76c182d2715
@@ -13,7 +13,6 @@
13
13
 
14
14
  $bg: #f5f2f0;
15
15
  $darkened-bg: darken($bg, 10%);
16
- $chev-scale: 1.6;
17
16
 
18
17
  img {
19
18
  max-width: 100%;
@@ -90,18 +89,16 @@ body {
90
89
 
91
90
  /** API object detailed table styles **/
92
91
  /* Container */
93
- .api-compact{border:1px solid #e5e7eb;border-radius:4px;overflow:hidden;background:#fff;font-size:.95rem;margin-bottom: 1rem;}
94
- .api-compact .header{display:grid;grid-template-columns:1fr 74px 68px;gap:12px;padding:10px 14px;font-weight:600;border-bottom:1px solid #e5e7eb}
92
+ .api-compact{border:1px solid #EBE7E2;border-radius:4px;overflow:hidden;background:#FFF;font-size:.95rem;margin-bottom: 1rem;margin-top: 2em;}
93
+ .api-compact .header{display:grid;grid-template-columns:1fr 74px 68px;gap:12px;padding:10px 14px;font-weight:600;background-color: #F9F8F6;border-bottom:2px solid #EBE7E2;}
95
94
 
96
95
  /* Item */
97
96
  .api-item{position:relative}
98
97
  .api-item>summary{list-style:none;display:grid;grid-template-columns:1fr 80px 70px;gap:12px;align-items:start;padding:10px 14px;cursor:pointer;border-left:3px solid transparent;}
99
98
  .api-item>summary::-webkit-details-marker{display:none}
100
- .api-item > summary:hover{background:#f8fafc;border-left-color:#fdc129;}
101
99
 
102
- /* Chevron (expanderingsikon) */
103
- .api-item>summary .chev{display:inline-block;width:1em;margin-right:6px;transform:scale($chev-scale);transform-origin:50% 50%;transition:transform .2s ease;}
104
- .api-item[open]>summary .chev{transform:scale($chev-scale) rotate(90deg);}
100
+ /* Expanderingsikon */
101
+ .api-item[open]>summary i.chev{transform:rotate(45deg);}
105
102
 
106
103
  /* Field/Type/Req */
107
104
  .api-item .field{font-weight:600;display:inline-flex;align-items:center;gap:8px;min-width:0;position:relative}
@@ -116,15 +113,15 @@ body {
116
113
  content: "";
117
114
  }
118
115
  .api-item .req{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
119
- .api-item .desc{padding:0 14px 16px 16px}
116
+ .api-item .desc{padding:0 14px 16px 16px;border-left:3px solid transparent;border-bottom: thin solid lightgray;}
120
117
 
121
- /* Indrag (summary) – inga vänsterkanter, endast spacing */
118
+ /* Indrag (summary) */
122
119
  .api-item[data-level="0"]>summary .field,.api-item[data-level="1"]>summary .field{padding-left:0}
123
120
  .api-item[data-level="2"]>summary .field{padding-left:22px}
124
121
  .api-item[data-level="3"]>summary .field{padding-left:44px}
125
122
  .api-item[data-level="4"]>summary .field{padding-left:70px;}
126
123
 
127
- /* Description – nivå (level+1) med kort lokal linje (valfritt: ta bort border-left om du vill noll linjer) */
124
+ /* Description – nivå (level+1) med kort lokal linje*/
128
125
  .indent-0{margin-left:4px;}
129
126
  .indent-1{margin-left:26px;}
130
127
  .indent-2{margin-left:48px;}
@@ -132,7 +129,33 @@ body {
132
129
  .indent-4{margin-left:92px;}
133
130
 
134
131
  /* Hover/fokus */
135
- .api-item:hover>summary,.api-item:hover .desc,.api-item:focus-within>summary,.api-item:focus-within .desc{background:#fafafa}
132
+
133
+ .api-item:has(> summary:hover) > summary,
134
+ .api-item:has(> .desc:hover) > summary {
135
+ background:#fafafa;
136
+ border-left-color:#fdc129;
137
+ }
138
+
139
+ /* Bakgrund på just DENNA desc vid hover/fokus på summary/desc */
140
+ .api-item:has(> summary:hover) > .desc,
141
+ .api-item:has(> .desc:hover) > .desc,
142
+ .api-item:has(> summary:focus-visible) > .desc,
143
+ .api-item:has(> .desc:focus-within) > .desc {
144
+ background:#fafafa;
145
+ }
146
+
147
+ /* Vänsterkantsaccent på just DENNA desc när summary ELLER desc hovras */
148
+ .api-item[open]:has(> summary:hover) > .desc,
149
+ .api-item[open]:has(> .desc:hover) > .desc {
150
+ border-left-color:#fdc129;
151
+ }
152
+
153
+ /* Tangentbordsstöd: accent på summary när dess egna desc får fokus */
154
+ .api-item:has(> .desc:focus-within) > summary,
155
+ .api-item:has(> summary:focus-visible) > summary {
156
+ background:#fafafa;
157
+ border-left-color:#fdc129;
158
+ }
136
159
 
137
160
  /* Children wrapper */
138
161
  .api-children{padding-left:0;margin:6px 0 10px 0}
data/lib/gem_version.rb CHANGED
@@ -4,7 +4,7 @@ module Gem
4
4
  # Gem Specification
5
5
  class Specification
6
6
  def self.gem_version
7
- '2.7.3'
7
+ '2.7.5'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swedbank-pay-design-guide-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.3
4
+ version: 2.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swedbank Pay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-16 00:00:00.000000000 Z
11
+ date: 2025-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday