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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
## Compile CSS
|
|
2
|
+
|
|
3
|
+
Install compilers
|
|
4
|
+
```
|
|
5
|
+
npm install -g sass clean-css-cli
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Install local dependecies
|
|
9
|
+
```
|
|
10
|
+
yarn
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Compile
|
|
14
|
+
```
|
|
15
|
+
sass --load-path=node_modules src/stylesheets/bootstrap5-theme.scss dist/css/bootstrap5-theme.css
|
|
16
|
+
sass src/stylesheets/fonts.scss dist/css/fonts.css
|
|
17
|
+
sass src/stylesheets/logo.scss dist/css/logo.css
|
|
18
|
+
|
|
19
|
+
cleancss -o dist/css/bootstrap5-theme.min.css dist/css/bootstrap5-theme.css
|
|
20
|
+
cleancss -o dist/css/fonts.min.css dist/css/fonts.css
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Deploy
|
|
24
|
+
|
|
25
|
+
Npm package: Bump version in `package.json` and run `npm publish`
|
|
26
|
+
|
|
27
|
+
Gem : Bum version in `vipassana-design-standards.gemspec` and run
|
|
28
|
+
```
|
|
29
|
+
gem build vipassana-design-standards.gemspec
|
|
30
|
+
gem push vipassana-design-standards-XXXX.gem
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Global replace `?ver=old_version` by `?ver=new_version`
|
|
34
|
+
|
|
35
|
+
Update https://design-standards.dhamma.org by pushing new files via FTP
|
package/README.md
CHANGED
|
@@ -1,32 +1,218 @@
|
|
|
1
|
-
# Vipassana Meditation as Taught By S.N. Goenka
|
|
2
|
-
## Design Standards
|
|
1
|
+
# Vipassana Meditation as Taught By S.N. Goenka - Design Standards
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
This repository contains the code for https://design-standards.dhamma.org/
|
|
5
4
|
|
|
5
|
+
It also provide files and packages to easily implement the design standards in your website
|
|
6
|
+
- [Ruby Gem Package](https://rubygems.org/gems/vipassana-design-standards)
|
|
7
|
+
- [NPM Package](https://www.npmjs.com/package/vipassana-design-standards)
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
In the following, VDS stands for Vipassana Design Standards
|
|
8
10
|
|
|
9
|
-
<body class="vds-body">
|
|
10
|
-
<div class="vds-header-and-content">
|
|
11
|
-
<header class="vds-header">
|
|
12
|
-
<!-- Logo vipassana_logo_svg -->
|
|
13
|
-
</header>
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
## Include the logo inside a website
|
|
13
|
+
|
|
14
|
+
The recommended way for using the logo is either with SVG format or directly with HTML, so it's always perfectly displayed
|
|
15
|
+
|
|
16
|
+
For this to work, you will need have the propper fonts loaded in your page, and specific css for the logo.
|
|
17
|
+
|
|
18
|
+
If you are not using our `bootstrap5-theme` (see below), then you need to manually import those files :
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<!-- Load fonts -->
|
|
22
|
+
<link rel="stylesheet" href="https://design-standards.dhamma.org/dist/css/fonts.css" />
|
|
23
|
+
|
|
24
|
+
<!-- If you use vipassana_logo_html, load this specific file -->
|
|
25
|
+
<link rel="stylesheet" href="https://design-standards.dhamma.org/dist/css/logo.css" />
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### With ruby
|
|
29
|
+
|
|
30
|
+
Install the gem
|
|
31
|
+
```
|
|
32
|
+
gem install vipassana-design-standard
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Adds helper to your application
|
|
36
|
+
```
|
|
37
|
+
class ApplicationController < ActionController::Base
|
|
38
|
+
# ...
|
|
39
|
+
|
|
40
|
+
helper Vipassana::LogoHelper
|
|
41
|
+
|
|
42
|
+
# ...
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Use the helpers
|
|
47
|
+
```html
|
|
48
|
+
<!-- SVG logo -->
|
|
49
|
+
<%= vipassana_logo_svg %>
|
|
50
|
+
<%= vipassana_logo_svg(height: 80) %>
|
|
51
|
+
<%= vipassana_logo_svg(width: 500) %>
|
|
52
|
+
<%= vipassana_logo_svg(disposition: "mobile") %>
|
|
53
|
+
<!-- All options -->
|
|
54
|
+
<%= vipassana_logo_svg(locale: "fr", disposition: "default", tagline: true, height: 200) %>
|
|
55
|
+
|
|
56
|
+
<!-- HTML Logo -->
|
|
57
|
+
<!-- logo.css will need to be loaded, see above -->
|
|
58
|
+
<%= vipassana_logo_html %>
|
|
59
|
+
<%= vipassana_logo_html(size: 10) %>
|
|
60
|
+
<%= vipassana_logo_html(dispositon: "mobile") %>
|
|
61
|
+
<!-- All options -->
|
|
62
|
+
<%= vipassana_logo_html(locale: "fr", disposition: "default", tagline: true, size: 18, dark: false) %>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Without ruby
|
|
66
|
+
|
|
67
|
+
Alls SVG codes are available at https://design-standards.dhamma.org/dist/logos-inline-svg.json
|
|
68
|
+
|
|
69
|
+
### Available dispositions
|
|
70
|
+
- default
|
|
71
|
+
- mobile
|
|
72
|
+
- left-one-line
|
|
73
|
+
- left-one-line-no-tagline
|
|
74
|
+
- left-two-lines
|
|
75
|
+
- left-two-lines-no-tagline
|
|
76
|
+
- centered
|
|
77
|
+
- centered-no-tagline
|
|
78
|
+
|
|
79
|
+
## Using our bootstrap5 theme
|
|
80
|
+
|
|
81
|
+
The best way to implement the whole design is to use our custom `bootstrap5-theme` containing :
|
|
82
|
+
- bootstrap 5 customized
|
|
83
|
+
- fonts styles
|
|
84
|
+
- logo styles
|
|
85
|
+
|
|
86
|
+
### Load with CDN
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<link rel="stylesheet" href="https://design-standards.dhamma.org/dist/css/bootstrap5-theme.min.css" />
|
|
90
|
+
<!-- Don't forget to also include bootstrap javascript -->
|
|
91
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Install locally
|
|
95
|
+
|
|
96
|
+
first Install npm package
|
|
97
|
+
```
|
|
98
|
+
npm install vipassana-design-standards
|
|
99
|
+
yarn add vipassana-design-standards
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Then include it
|
|
103
|
+
```
|
|
104
|
+
// application.scss
|
|
105
|
+
@import "vipassana-design-standards/scss/bootstrap5-theme";
|
|
106
|
+
```
|
|
23
107
|
|
|
24
|
-
|
|
25
|
-
|
|
108
|
+
```
|
|
109
|
+
// application.js
|
|
110
|
+
import 'bootstrap5';
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Layout structure
|
|
114
|
+
|
|
115
|
+
We have made a custom layout, with basic header and sidenav. In case you want to use it, you need to align with following page structure
|
|
116
|
+
```html
|
|
117
|
+
<html lang="xx">
|
|
118
|
+
<body class="vds-body">
|
|
119
|
+
<div class="vds-header-and-content">
|
|
120
|
+
<!-- Header -->
|
|
121
|
+
<header class="vds-header">
|
|
122
|
+
<div class="vds-container">
|
|
123
|
+
<a href class="vds-logo-link"><!-- Logo vipassana_logo_svg --></a>
|
|
124
|
+
</div>
|
|
125
|
+
</header>
|
|
126
|
+
|
|
127
|
+
<!-- Page -->
|
|
128
|
+
<div class="vds-page vds-container">
|
|
129
|
+
<div class="vds-sidenav">
|
|
130
|
+
<ul>
|
|
131
|
+
<li>
|
|
132
|
+
<a href="#" class="active">Test</a>
|
|
133
|
+
</li>
|
|
134
|
+
<li>
|
|
135
|
+
<a href="#">Other</a>
|
|
136
|
+
</li>
|
|
137
|
+
</ul>
|
|
138
|
+
</div>
|
|
139
|
+
<div class="vds-page-content">
|
|
140
|
+
<!-- Page content -->
|
|
141
|
+
</div>
|
|
26
142
|
</div>
|
|
27
143
|
</div>
|
|
28
|
-
</div>
|
|
29
144
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
145
|
+
<!-- Footer -->
|
|
146
|
+
<footer class="vds-footer">
|
|
147
|
+
<div class="vds-container">
|
|
148
|
+
</div>
|
|
149
|
+
</footer>
|
|
150
|
+
</body>
|
|
151
|
+
</html>
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Custom bootstrap utilities
|
|
155
|
+
|
|
156
|
+
Some class helpers have been added to complement the [bootstrap utilities](https://getbootstrap.com/docs/5.3/utilities/background/)
|
|
157
|
+
|
|
158
|
+
#### Font-family
|
|
159
|
+
|
|
160
|
+
```html
|
|
161
|
+
<div class="ff-normal">Normal font (Lato)</div>
|
|
162
|
+
<div class="ff-headings">Headings font (Footlight)</div>
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
#### Font-size
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
.fs-normal
|
|
169
|
+
|
|
170
|
+
.fs-05-rem // font-size: .5rem
|
|
171
|
+
.fs-085-rem // font-size: .85rem
|
|
172
|
+
.fs-11-rem // font-size: 1.1rem
|
|
173
|
+
.fs-135-rem // font-size: 1.35rem
|
|
174
|
+
|
|
175
|
+
.fs-0X-em // font-size: .Xem
|
|
176
|
+
.fs-0X5-em // font-size: .X5em
|
|
177
|
+
.fs-1X-em // font-size: 1.Xem
|
|
178
|
+
.fs-1X5-em // font-size: 1.X5em
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
#### Other
|
|
183
|
+
|
|
184
|
+
```html
|
|
185
|
+
<div class="full-width-sm">
|
|
186
|
+
this section will take full horizontal space in mobile screen, overriding default body padding
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
<button class="btn-floating-sm">
|
|
190
|
+
Floating button on the bottom of the page, only for mobile
|
|
191
|
+
</button>
|
|
192
|
+
|
|
193
|
+
<div class="full-page-print">
|
|
194
|
+
This section will take the whole screen when printing the page
|
|
195
|
+
</div>
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Importing only fonts in your website
|
|
199
|
+
|
|
200
|
+
If you don't want the whole design, but just the fonts, you can do the following
|
|
201
|
+
|
|
202
|
+
```html
|
|
203
|
+
<!-- Prodive 2-letters language code in html lang attribute -->
|
|
204
|
+
<html lang="fr">
|
|
205
|
+
|
|
206
|
+
<!-- Import fonts-->
|
|
207
|
+
<link rel="stylesheet" href="https://design-standards.dhamma.org/dist/css/fonts.css" />
|
|
208
|
+
|
|
209
|
+
<!-- Use the fonts where it's needed -->
|
|
210
|
+
<style>
|
|
211
|
+
body {
|
|
212
|
+
font-family: var(--vds-font-family);
|
|
213
|
+
}
|
|
214
|
+
h1, h2 {
|
|
215
|
+
font-family: var(--vds-headings-font-family);
|
|
216
|
+
}
|
|
217
|
+
</style>
|
|
218
|
+
```
|