ably-ui 7.8.0.dev.4eda5fb → 7.8.0.dev.57f3505
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ably_ui/core/fonts/source-code-pro.css +3 -0
- data/lib/ably_ui/core/logo/logo.html.erb +5 -5
- data/lib/ably_ui/core/logo/logo.rb +3 -4
- data/lib/ably_ui/core/meganav/meganav.html.erb +1 -1
- data/lib/ably_ui/core/styles.css +17 -22
- data/lib/ably_ui/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7f809e3972682d9b37ea1ff1702d538e406d66c0d96d44781dc0a6ae2667e40
|
4
|
+
data.tar.gz: e5cc6cbdb8e17c1e71b77d3e326693b5a1dde2531cf7cafdfbc35400897809f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f5640cac25cb835d79daf43381cca440d0eed4cb28cb96ff178d6f77b88219ab397c87071dfd932aa1deceedc734a032bce7b36f697f88c6025e417fa0c64ee
|
7
|
+
data.tar.gz: 36b26298efb904d0eff74807e6b6bd7ca56d611202e713f4c2c62ac192fdb08717865da7a3146b779f151638c35aa81765ac31cedf0acb37ea4900c572fa8b86
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
<%= link_to logo_href, class: 'h-32' do %>
|
2
|
-
<%= tag.svg class: ["transition-colors",
|
2
|
+
<%= tag.svg class: ["transition-colors", theme(:logo_text_color)], data: { id: data_id }, width: "108", height: "32", viewBox: "0 0 108 32", xmlns: "http://www.w3.org/2000/svg" do %>
|
3
3
|
<path
|
4
4
|
d="M62.922 24.9786V4.08813H66.6933V11.6512C67.9709 10.435 69.6164 9.76044 71.3538 9.76044C75.4318 9.76044 79.0498 12.8674 79.0498 17.5484C79.0498 22.2293 75.4318 25.3465 71.3538 25.3465C69.5244 25.3465 67.7971 24.6209 66.5094 23.3024V24.9786H62.922ZM75.2785 17.5484C75.2785 14.932 73.4183 13.1025 70.9859 13.1025C68.6148 13.1025 66.7853 14.84 66.6933 17.3644V17.5484C66.6933 20.1648 68.5534 21.9942 70.9859 21.9942C73.4183 21.9942 75.2785 20.1648 75.2785 17.5484ZM80.7975 24.9786V4.08813H84.5688V24.9786H80.7975ZM89.8425 30.3954L92.0399 25.1523L86.0712 10.1284H90.1491L93.9511 20.6247L97.8144 10.1284H101.954L93.8591 30.4056H89.8425V30.3954ZM56.9329 10.1284V12.0191C55.6247 10.5883 53.7952 9.77066 51.9147 9.77066C47.8367 9.77066 44.2187 12.8777 44.2187 17.5586C44.2187 22.2497 47.8367 25.3465 51.9147 25.3465C53.8668 25.3465 55.7166 24.4982 57.0555 22.9754V24.9888H60.3465V10.1284H56.9329ZM56.5649 17.5484C56.5649 20.1341 54.7048 21.9942 52.2724 21.9942C49.8399 21.9942 47.9798 20.1341 47.9798 17.5484C47.9798 14.9626 49.8399 13.1025 52.2724 13.1025C54.6435 13.1025 56.473 14.8706 56.5649 17.3644V17.5484Z"
|
5
5
|
fill="currentColor"
|
6
6
|
/>
|
7
|
-
<path d="M19.2858 0L3.14788 29.5369L0 27.3293L14.932 0H19.2858ZM19.5107 0L35.6487 29.5369L38.7965 27.3293L23.8646 0H19.5107Z" fill="url(
|
8
|
-
<path d="M35.4238 29.7107L19.3983 17.16L3.37271 29.7107L6.64323 32L19.3983 22.0147L32.1533 32L35.4238 29.7107Z" fill="url(
|
7
|
+
<path d="M19.2858 0L3.14788 29.5369L0 27.3293L14.932 0H19.2858ZM19.5107 0L35.6487 29.5369L38.7965 27.3293L23.8646 0H19.5107Z" fill="url(#paint0_linear)" />
|
8
|
+
<path d="M35.4238 29.7107L19.3983 17.16L3.37271 29.7107L6.64323 32L19.3983 22.0147L32.1533 32L35.4238 29.7107Z" fill="url(#paint1_linear)" />
|
9
9
|
<defs>
|
10
|
-
<linearGradient id="
|
10
|
+
<linearGradient id="paint0_linear" x1="5.47361" y1="37.4219" x2="32.4603" y2="7.45023" gradientUnits="userSpaceOnUse">
|
11
11
|
<stop stop-color="#FF5416" />
|
12
12
|
<stop offset="0.2535" stop-color="#FF5115" />
|
13
13
|
<stop offset="0.461" stop-color="#FF4712" />
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<stop offset="0.8327" stop-color="#FF1E08" />
|
16
16
|
<stop offset="1" stop-color="#FF0000" />
|
17
17
|
</linearGradient>
|
18
|
-
<linearGradient id="
|
18
|
+
<linearGradient id="paint1_linear" x1="10.7084" y1="39.3593" x2="26.6583" y2="21.6452" gradientUnits="userSpaceOnUse">
|
19
19
|
<stop stop-color="#FF5416" />
|
20
20
|
<stop offset="0.2535" stop-color="#FF5115" />
|
21
21
|
<stop offset="0.461" stop-color="#FF4712" />
|
@@ -3,13 +3,12 @@ module AblyUi
|
|
3
3
|
class Logo < ViewComponent::Base
|
4
4
|
include AblyUi::Core::MeganavConfig
|
5
5
|
|
6
|
-
attr_reader :href, :data_id
|
6
|
+
attr_reader :href, :data_id
|
7
7
|
|
8
|
-
def initialize(data_id: '', href:)
|
8
|
+
def initialize(theme_name:, data_id: '', href:)
|
9
9
|
@data_id = data_id
|
10
10
|
@href = href
|
11
|
-
|
12
|
-
@gradient_id_1 = "paint_linear_#{Date.now}"
|
11
|
+
theme_setup(theme_name)
|
13
12
|
end
|
14
13
|
|
15
14
|
def logo_href
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= notice %>
|
3
3
|
|
4
4
|
<div class="ui-meganav ui-grid-px">
|
5
|
-
<%= render(AblyUi::Core::Logo.new(data_id: "meganav-logo", href: logo_link)) %>
|
5
|
+
<%= render(AblyUi::Core::Logo.new(theme_name: @theme_name, data_id: "meganav-logo", href: logo_link)) %>
|
6
6
|
<%= render(AblyUi::Core::MeganavItemsDesktop.new(theme_name: @theme_name, url_base: url_base)) %>
|
7
7
|
|
8
8
|
<% if @session_data[:signedIn] %>
|
data/lib/ably_ui/core/styles.css
CHANGED
@@ -15,9 +15,10 @@
|
|
15
15
|
--color-charcoal-grey: #292831;
|
16
16
|
--color-gui-default: #0073e6;
|
17
17
|
--color-gui-hover: #0867c4;
|
18
|
-
--color-gui-focus: #
|
18
|
+
--color-gui-focus: #0073e6;
|
19
|
+
--color-gui-focus-outline: #80b9f2;
|
19
20
|
--color-gui-active: #074095;
|
20
|
-
--color-gui-
|
21
|
+
--color-gui-visited: #4887c2;
|
21
22
|
--color-gui-unavailable: #a8a8a8;
|
22
23
|
--color-gui-error: #fb0c0c;
|
23
24
|
--color-gui-success: #11cb24;
|
@@ -155,7 +156,7 @@
|
|
155
156
|
/* In components, when looking at implementing viewport margin and spacing between elements,
|
156
157
|
the values in the comments can be used as guide as they represent the grid the elements (should) sit on.
|
157
158
|
alternatively, look for ui-grid-* helpers. */
|
158
|
-
--bp-xs:
|
159
|
+
--bp-xs: 428px; /* gutters 8px, side-margin 24px */
|
159
160
|
--bp-sm: 768px; /* gutters 16px, side-margin 32px */
|
160
161
|
--bp-md: 1040px; /* gutters 24px, side-margin 40px, meganav desktop */
|
161
162
|
--bp-lg: 1280px; /* gutters 24px, side-margin 64px */
|
@@ -343,17 +344,17 @@
|
|
343
344
|
}
|
344
345
|
|
345
346
|
.ui-text-p1 {
|
346
|
-
@apply font-sans font-light text-
|
347
|
+
@apply font-sans font-light text-charcoal-grey;
|
347
348
|
@apply text-p1;
|
348
349
|
}
|
349
350
|
|
350
351
|
.ui-text-p2 {
|
351
|
-
@apply font-sans font-light text-
|
352
|
+
@apply font-sans font-light text-charcoal-grey;
|
352
353
|
@apply text-p2;
|
353
354
|
}
|
354
355
|
|
355
356
|
.ui-text-p3 {
|
356
|
-
@apply font-sans font-light text-
|
357
|
+
@apply font-sans font-light text-charcoal-grey;
|
357
358
|
@apply text-p3;
|
358
359
|
}
|
359
360
|
|
@@ -459,24 +460,18 @@
|
|
459
460
|
@apply list-square;
|
460
461
|
}
|
461
462
|
|
462
|
-
|
463
|
-
|
464
|
-
@apply text-gui-
|
463
|
+
.ui-link {
|
464
|
+
@apply visited:text-gui-visited;
|
465
|
+
@apply hover:text-gui-hover active:text-gui-active disabled:text-gui-unavailable;
|
466
|
+
@apply focus:text-gui-focus focus:outline-gui-focus;
|
467
|
+
@apply underline;
|
465
468
|
}
|
466
469
|
|
467
|
-
.ui-link {
|
468
|
-
@apply
|
469
|
-
-
|
470
|
-
|
471
|
-
|
472
|
-
-webkit-text-decoration-line: underline;
|
473
|
-
text-decoration-line: underline;
|
474
|
-
text-decoration-thickness: 0.125rem;
|
475
|
-
}
|
476
|
-
|
477
|
-
.ui-link:focus {
|
478
|
-
@apply focus:text-white focus:bg-active-orange focus:outline-none;
|
479
|
-
text-decoration: none;
|
470
|
+
.ui-link-neutral {
|
471
|
+
@apply visited:text-dark-grey;
|
472
|
+
@apply hover:text-dark-grey active:text-cool-black disabled:text-gui-unavailable;
|
473
|
+
@apply focus:text-gui-focus focus:outline-gui-focus-neutral;
|
474
|
+
@apply underline;
|
480
475
|
}
|
481
476
|
}
|
482
477
|
@layer components {
|
data/lib/ably_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ably-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.8.0.dev.
|
4
|
+
version: 7.8.0.dev.57f3505
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Piatek
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-05-
|
13
|
+
date: 2022-05-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: view_component
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/ably_ui/core/fonts/NEXT-Book-Medium.woff
|
92
92
|
- lib/ably_ui/core/fonts/NEXT-Book-Medium.woff2
|
93
93
|
- lib/ably_ui/core/fonts/next.css
|
94
|
+
- lib/ably_ui/core/fonts/source-code-pro.css
|
94
95
|
- lib/ably_ui/core/footer/component.css
|
95
96
|
- lib/ably_ui/core/footer/component.js
|
96
97
|
- lib/ably_ui/core/footer/footer.html.erb
|