vipassana-design-standards 0.0.12 → 0.0.14
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.
- package/HOW_TO_PUBLISH.md +35 -0
- package/README.md +209 -23
- package/dist/css/bootstrap5-theme.css +16974 -0
- package/dist/css/bootstrap5-theme.css.map +1 -0
- package/dist/css/bootstrap5-theme.min.css +6 -0
- package/dist/css/fonts.css +4835 -0
- package/dist/css/fonts.css.map +1 -0
- package/dist/css/fonts.min.css +1 -0
- package/dist/css/logo.css +144 -0
- package/dist/css/logo.css.map +1 -0
- package/dist/logos-inline-svg.json +1 -1
- package/index.html +12 -12
- package/lib/vipassana/logo_helper.rb +11 -4
- package/lib/vipassana/logos_inline_svg.rb +1 -2
- package/lib/vipassana-design-standards.rb +0 -1
- package/package.json +5 -3
- package/{app/assets → src}/javascripts/index.js +5 -5
- package/src/stylesheets/bootstrap5-theme.scss +14 -0
- package/{app/assets → src}/stylesheets/custom-bootstrap-variables.scss +2 -2
- package/{app/assets/stylesheets/fonts.css → src/stylesheets/fonts.scss} +46 -46
- package/{app/assets/stylesheets → src/stylesheets/layout}/vds-header.scss +10 -5
- package/{app/assets/stylesheets → src/stylesheets/layout}/vds-layout.scss +4 -0
- package/{app/assets/stylesheets/logo.css → src/stylesheets/logo.scss} +4 -3
- package/vipassana-design-standards.gemspec +2 -2
- package/app/assets/stylesheets/vds.scss +0 -11
- package/dist/resolutions/logo-en.svg +0 -1
- package/dist/resolutions/logo-en@128px.png +0 -0
- package/dist/resolutions/logo-en@640px.png +0 -0
- package/dist/resolutions/logo-en@64px.png +0 -0
- package/lib/vipassana/engine.rb +0 -4
- package/resolution.html +0 -22
- package/vipassana-design-standards-0.0.11.gem +0 -0
- /package/{app/assets/images/wheels/wheel-2023.svg → dist/dhamma-wheel.svg} +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProBold.woff +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProBoldItalic.woff +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProExtraBold.woff +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProExtraBoldIt.woff +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProItalic.woff +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProLight.base64.js +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProLight.woff +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProLightItalic.woff +0 -0
- /package/{app/assets → dist}/fonts/FootlightMTProRegular.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-Black.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-BlackItalic.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-Bold.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-BoldItalic.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-Italic.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-Light.base64.js +0 -0
- /package/{app/assets → dist}/fonts/Lato-Light.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-LightItalic.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-Regular.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-Thin.woff +0 -0
- /package/{app/assets → dist}/fonts/Lato-ThinItalic.woff +0 -0
- /package/{app/assets → dist}/fonts/OFL.txt +0 -0
- /package/{app/assets → src}/images/wheels/favicon.png +0 -0
- /package/{app/assets → src}/images/wheels/favicon.svg +0 -0
- /package/{app/assets → src}/images/wheels/old versions/2.5D-wheel.png +0 -0
- /package/{app/assets → src}/images/wheels/old versions/2.5D-wheel.svg +0 -0
- /package/{app/assets → src}/images/wheels/old versions/2D-wheel.svg +0 -0
- /package/{app/assets → src}/images/wheels/old versions/3D-wheel.svg +0 -0
- /package/{app/assets → src}/images/wheels/old versions/dhamma wheel 3D.png +0 -0
- /package/{app/assets → src}/images/wheels/old versions/wheel-3d.ai +0 -0
- /package/{app/assets → src}/images/wheels/old versions/wheel-3d.png +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-1.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-2.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-3.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-4.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-5.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-6.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-7.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-8.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/2.5D-wheel-sebastian.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/3D-wheel-2.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/3D-wheel-sebastian.svg +0 -0
- /package/{app/assets → src}/images/wheels/tests/3D-wheel.svg +0 -0
- /package/{app/assets → src}/images/wheels/wheel-2023-duotone.png +0 -0
- /package/{app/assets → src}/images/wheels/wheel-2023-duotone.svg +0 -0
- /package/{app/assets → src}/images/wheels/wheel-2023-duotone.svg.js +0 -0
- /package/{app/assets → src}/images/wheels/wheel-2023-working-document-with-all-layers.svg +0 -0
- /package/{app/assets → src}/images/wheels/wheel-2023.png +0 -0
- /package/{dist/Dhamma-Wheel.svg → src/images/wheels/wheel-2023.svg} +0 -0
- /package/{app/assets → src}/images/wheels/wheel-2023.svg.js +0 -0
- /package/{app/assets → src}/javascripts/i18n.js +0 -0
- /package/{app/assets → src}/stylesheets/custom-bootstrap-utilities.scss +0 -0
- /package/{app/assets → src}/stylesheets/custom-bootstrap.scss +0 -0
- /package/{app/assets → src}/stylesheets/index.css +0 -0
- /package/{app/assets/stylesheets → src/stylesheets/layout}/vds-mixins.scss +0 -0
- /package/{app/assets/stylesheets → src/stylesheets/layout}/vds-sidenav.scss +0 -0
package/index.html
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8"/>
|
|
5
5
|
<title>Vipassana Meditation as Taught by S.N Goenka - Design Standards</title>
|
|
6
|
-
<link rel="stylesheet" href="./
|
|
7
|
-
<link rel="stylesheet" href="./
|
|
8
|
-
<link rel="stylesheet" href="./
|
|
6
|
+
<link rel="stylesheet" href="./src/stylesheets/index.css?ver=0.14">
|
|
7
|
+
<link rel="stylesheet" href="./src/stylesheets/fonts.css?ver=0.14">
|
|
8
|
+
<link rel="stylesheet" href="./src/stylesheets/logo.css?ver=0.14">
|
|
9
9
|
|
|
10
10
|
<link rel="icon" href="/dist/favicon.png">
|
|
11
11
|
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
</button>
|
|
30
30
|
</a>
|
|
31
31
|
|
|
32
|
-
<a href="dist/logos.zip?ver=0.
|
|
32
|
+
<a href="dist/logos.zip?ver=0.14">
|
|
33
33
|
<button type="button" class="btn-primary">
|
|
34
34
|
<i class="gg-software-download"></i>Recommended Logos <small>(2Mb)</small>
|
|
35
35
|
</button>
|
|
36
36
|
</a>
|
|
37
37
|
|
|
38
|
-
<a href="dist/fonts.zip?ver=0.
|
|
38
|
+
<a href="dist/fonts.zip?ver=0.14">
|
|
39
39
|
<button type="button" class="btn-primary">
|
|
40
40
|
<i class="gg-software-download"></i>Fonts <small>(600kb)</small>
|
|
41
41
|
</button>
|
|
42
42
|
</a>
|
|
43
43
|
|
|
44
44
|
<p>
|
|
45
|
-
<a href="dist/
|
|
45
|
+
<a href="dist/dhamma-wheel.svg?ver=0.14">
|
|
46
46
|
<button type="button" class="btn-outline-primary">
|
|
47
47
|
<i class="gg-software-download"></i>Dhamma Wheel <small>(SVG)</small>
|
|
48
48
|
</button>
|
|
49
49
|
</a>
|
|
50
50
|
|
|
51
|
-
<a href="dist/favicon.png?ver=0.
|
|
51
|
+
<a href="dist/favicon.png?ver=0.14">
|
|
52
52
|
<button type="button" class="btn-outline-primary">
|
|
53
53
|
<i class="gg-software-download"></i>Favicon
|
|
54
54
|
</button>
|
|
@@ -181,13 +181,13 @@
|
|
|
181
181
|
<!-- CSS code, to be copied inside fonts.css -->
|
|
182
182
|
<component is="pre" style="display:none;" id="css-variables">
|
|
183
183
|
:root {
|
|
184
|
-
--
|
|
185
|
-
--
|
|
184
|
+
--vds-font-family: '{{ taglineFontFamily }}';
|
|
185
|
+
--vds-headings-font-family: '{{ titleFontFamily }}';
|
|
186
186
|
}
|
|
187
187
|
<div v-for="(data, locale) in i18n">
|
|
188
188
|
html[lang="{{ locale }}"] {
|
|
189
|
-
--
|
|
190
|
-
--
|
|
189
|
+
--vds-font-family: '{{ getTaglineFontFamily(locale) }}';
|
|
190
|
+
--vds-headings-font-family: '{{ getTitleFontFamily(locale) }}';
|
|
191
191
|
}
|
|
192
192
|
</div>
|
|
193
193
|
</component>
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
|
|
224
224
|
<script type="module">
|
|
225
225
|
import { createApp } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
|
|
226
|
-
import App from './
|
|
226
|
+
import App from './src/javascripts/index.js?ver=0.14'
|
|
227
227
|
|
|
228
228
|
createApp(App).mount('#app')
|
|
229
229
|
</script>
|
|
@@ -3,10 +3,11 @@ module Vipassana
|
|
|
3
3
|
require "vipassana/logos_inline_svg.rb"
|
|
4
4
|
require "vipassana/translations.rb"
|
|
5
5
|
|
|
6
|
-
def vipassana_logo_svg(locale: I18n.locale, disposition: "
|
|
6
|
+
def vipassana_logo_svg(locale: I18n.locale, disposition: "default", tagline: true, height: nil, width: nil)
|
|
7
7
|
height = 70 if height.nil? && width.nil?
|
|
8
8
|
|
|
9
|
-
data = VIPASSANA_SVGS[locale.to_sym] ||
|
|
9
|
+
data = VIPASSANA_SVGS[locale.to_sym] || VIPASSANA_SVGS[:en]
|
|
10
|
+
disposition += '-no-tagline' if tagline == false
|
|
10
11
|
string = data[disposition.to_sym] || data[:normal]
|
|
11
12
|
|
|
12
13
|
string.gsub!("<svg", "<svg height=\"#{height}\"") if height.present?
|
|
@@ -15,8 +16,14 @@ module Vipassana
|
|
|
15
16
|
string.html_safe
|
|
16
17
|
end
|
|
17
18
|
|
|
18
|
-
def vipassana_logo_html(locale: I18n.locale, disposition: "
|
|
19
|
+
def vipassana_logo_html(locale: I18n.locale, disposition: "default", size: '18', tagline: true, dark: false)
|
|
19
20
|
trans = VIPASSANA_TRANSLATIONS[locale.to_sym]
|
|
21
|
+
|
|
22
|
+
if disposition == "mobile"
|
|
23
|
+
disposition = "left-two-lines"
|
|
24
|
+
tagline = false
|
|
25
|
+
end
|
|
26
|
+
|
|
20
27
|
result = <<-HTML
|
|
21
28
|
<div class="vipassana-logo"
|
|
22
29
|
data-disposition="#{disposition}"
|
|
@@ -24,7 +31,7 @@ module Vipassana
|
|
|
24
31
|
data-dark-mode="#{dark}"
|
|
25
32
|
data-reverse="#{trans[:reverse]}"
|
|
26
33
|
style="font-size: #{size}px">
|
|
27
|
-
<img class="logo-wheel" src="https://design-standards.dhamma.org/dist/
|
|
34
|
+
<img class="logo-wheel" src="https://design-standards.dhamma.org/dist/dhamma-wheel.svg" />
|
|
28
35
|
<div class="logo-text">
|
|
29
36
|
<h1 class="logo-title">
|
|
30
37
|
<span data-start-with="#{trans[:vipassana_meditation].at(0).downcase}">
|