vipassana-design-standards 0.0.6 → 0.0.7

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.
@@ -315,7 +315,7 @@ export default {
315
315
  # This file has been generated by design-standards.dhamma.org wesbite
316
316
  # index.js#generateAllInlineSVG
317
317
 
318
- SVGS = ${JSON.stringify(svgs)}
318
+ VIPASSANA_SVGS = ${JSON.stringify(svgs)}
319
319
  `
320
320
  var blob = new Blob([result], {type: "text/plain;charset=utf-8"})
321
321
  fileSaver.saveAs(blob, "logos_inline_svg.rb")
@@ -122,7 +122,7 @@ select, button {
122
122
  border-radius: 3px;
123
123
  }
124
124
 
125
- .vipassana-logo, canvas {
125
+ canvas {
126
126
  /* out of screen */
127
127
  visibility: hidden;
128
128
  position: absolute;
@@ -3,25 +3,26 @@
3
3
  align-items: center;
4
4
  transform: scale(1);
5
5
  transform-origin: left;
6
+ text-align: left;
6
7
 
7
8
  --vipassana-logo-title-color: #9C6B14;
8
9
  --vipassana-logo-tagline-color: #4F4D47;
9
10
 
10
11
  --vipassana-logo-title-line-height: 1.1;
11
12
  --vipassana-logo-tagline-line-height: 1.4;
12
- }
13
- .vipassana-logo[data-disposition="auto"] {
14
- max-width: 44em; /* the title will wrap if it's too long */
15
- }
16
- .vipassana-logo[data-disposition="left-two-lines"] {
17
- --vipassana-logo-tagline-line-height: 1.25;
13
+
14
+ --vipassana-logo-title-font-size: 1.8em;
15
+ --vipassana-logo-tagline-font-size: 1.1em;
18
16
  }
19
17
  .vipassana-logo[data-disposition="left-two-lines"][data-tagline="true"] {
20
- --vipassana-logo-title-line-height: 1.05;
18
+ --vipassana-logo-title-line-height: 1.1;
21
19
  --vipassana-logo-tagline-line-height: 1.25;
20
+ --vipassana-logo-title-font-size: 1.7em;
21
+ --vipassana-logo-tagline-font-size: 1em;
22
22
  }
23
23
  .vipassana-logo[data-disposition="left-two-lines"][data-tagline="false"] {
24
24
  --vipassana-logo-title-line-height: 1.15;
25
+ --vipassana-logo-title-font-size: 1.9em;
25
26
  }
26
27
  .vipassana-logo[data-reverse="true"] {
27
28
  --vipassana-logo-tagline-line-height: 1.8;
@@ -30,6 +31,9 @@
30
31
  --vipassana-logo-title-color: white;
31
32
  --vipassana-logo-tagline-color: #ffffff90;
32
33
  }
34
+ .vipassana-logo[data-disposition="auto"] {
35
+ max-width: 48em; /* the title will wrap if it's too long */
36
+ }
33
37
  .vipassana-logo[data-disposition="centered"] {
34
38
  flex-direction: column;
35
39
  text-align: center;
@@ -67,7 +71,7 @@
67
71
  color: var(--vipassana-logo-title-color);
68
72
  font-family: var(--vipassana-headings-font-family);
69
73
  line-height: var(--vipassana-logo-title-line-height);
70
- font-size: 1.8em;
74
+ font-size: var(--vipassana-logo-title-font-size);
71
75
  font-weight: normal;
72
76
  margin: 0;
73
77
  padding: 0;
@@ -115,7 +119,7 @@
115
119
  color: var(--vipassana-logo-tagline-color);
116
120
  font-family: var(--vipassana-font-family);
117
121
  font-weight: 300;
118
- font-size: 1em;
122
+ font-size: var(--vipassana-logo-tagline-font-size);
119
123
  line-height: var(--vipassana-logo-tagline-line-height);
120
124
  }
121
125
  .vipassana-logo[data-tagline="false"] .logo-subtitle {
@@ -1,12 +1,12 @@
1
1
  module Vipassana
2
2
  module LogoHelper
3
3
  require "vipassana/logos_inline_svg.rb"
4
- require "vipassana/tranlsations.rb"
4
+ require "vipassana/translations.rb"
5
5
 
6
6
  def vipassana_logo_svg(locale: I18n.locale, disposition: "normal", height: nil, width: nil)
7
7
  height = 70 if height.nil? && width.nil?
8
8
 
9
- data = SVGS[locale.to_sym] || SVGS[:en]
9
+ data = VIPASSANA_SVGS[locale.to_sym] || SVGS[:en]
10
10
  string = data[disposition.to_sym] || data[:normal]
11
11
 
12
12
  string.gsub!("<svg", "<svg height=\"#{height}\"") if height.present?
@@ -16,7 +16,7 @@ module Vipassana
16
16
  end
17
17
 
18
18
  def vipassana_logo_html(locale: I18n.locale, disposition: "auto", size: '18', tagline: true, dark: false)
19
- trans = TRANSATIONS[locale.to_sym]
19
+ trans = VIPASSANA_TRANSLATIONS[locale.to_sym]
20
20
  result = <<-HTML
21
21
  <div class="vipassana-logo"
22
22
  data-disposition="#{disposition}"
@@ -24,7 +24,7 @@ module Vipassana
24
24
  data-dark-mode="#{dark}"
25
25
  data-reverse="#{trans[:reverse]}"
26
26
  style="font-size: #{size}px">
27
- <img class="logo-wheel" :src="wheelPath"/>
27
+ <img class="logo-wheel" src="https://design-standards.dhamma.org/dist/Dhamma-Wheel.svg" />
28
28
  <div class="logo-text">
29
29
  <h1 class="logo-title">
30
30
  <span data-start-with="#{trans[:vipassana_meditation].at(0).downcase}">