vipassana-design-standards 1.1.3 → 1.2.1
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/README.md +16 -7
- package/dist/css/bootstrap5-theme.css +69 -47
- package/dist/css/bootstrap5-theme.css.map +1 -1
- package/dist/css/bootstrap5-theme.min.css +1 -1
- package/dist/css/bootstrap5-theme.rtl.css +69 -47
- package/dist/css/bootstrap5-theme.rtl.min.css +1 -1
- package/dist/css/fonts.css +28 -28
- package/dist/css/fonts.css.map +1 -1
- package/dist/css/fonts.min.css +1 -1
- package/dist/css/logo.css +37 -8
- package/dist/css/logo.css.map +1 -1
- package/dist/css/logo.min.css +1 -1
- package/dist/css/logo.rtl.css +37 -8
- package/dist/css/logo.rtl.min.css +1 -1
- package/dist/js/bootstrap5-theme.min.js +3 -2
- package/dist/js/helpers.js +4 -4
- package/dist/js/react-helpers.js +3 -3
- package/dist/js/react-helpers.jsx +3 -3
- package/package.json +1 -1
- package/src/stylesheets/custom-bootstrap.scss +5 -0
- package/src/stylesheets/fonts.scss +93 -63
- package/src/stylesheets/layout/vds-layout.scss +1 -14
- package/src/stylesheets/logo.scss +76 -10
package/README.md
CHANGED
|
@@ -19,10 +19,16 @@ If you are not using our `bootstrap5-theme` (see below), then you need to manual
|
|
|
19
19
|
|
|
20
20
|
```html
|
|
21
21
|
<!-- Load fonts -->
|
|
22
|
-
<link
|
|
22
|
+
<link
|
|
23
|
+
rel="stylesheet"
|
|
24
|
+
href="https://cdn.jsdelivr.net/npm/vipassana-design-standards/dist/css/fonts.css"
|
|
25
|
+
/>
|
|
23
26
|
|
|
24
27
|
<!-- If you use vds_logo, load this specific file -->
|
|
25
|
-
<link
|
|
28
|
+
<link
|
|
29
|
+
rel="stylesheet"
|
|
30
|
+
href="https://cdn.jsdelivr.net/npm/vipassana-design-standards/dist/css/logo.css"
|
|
31
|
+
/>
|
|
26
32
|
```
|
|
27
33
|
|
|
28
34
|
### With ruby
|
|
@@ -58,7 +64,7 @@ use_english: true) %>
|
|
|
58
64
|
|
|
59
65
|
### Without ruby
|
|
60
66
|
|
|
61
|
-
Alls SVG codes are available at https://design-standards
|
|
67
|
+
Alls SVG codes are available at https://cdn.jsdelivr.net/npm/vipassana-design-standards/dist/logos-inline-svg.json
|
|
62
68
|
|
|
63
69
|
### Available dispositions
|
|
64
70
|
|
|
@@ -94,9 +100,9 @@ See a [complete example here](https://github.com/dhammaorg/design-standards/blob
|
|
|
94
100
|
```html
|
|
95
101
|
<link
|
|
96
102
|
rel="stylesheet"
|
|
97
|
-
href="https://design-standards
|
|
103
|
+
href="https://cdn.jsdelivr.net/npm/vipassana-design-standards/dist/css/bootstrap5-theme.min.css"
|
|
98
104
|
/>
|
|
99
|
-
<script src="https://design-standards
|
|
105
|
+
<script src="https://cdn.jsdelivr.net/npm/vipassana-design-standards/dist/js/bootstrap.bundle.min.js"></script>
|
|
100
106
|
```
|
|
101
107
|
|
|
102
108
|
### Install locally
|
|
@@ -169,7 +175,7 @@ Some class helpers have been added to complement the [bootstrap utilities](https
|
|
|
169
175
|
|
|
170
176
|
```html
|
|
171
177
|
<div class="ff-normal">Normal font (Noto Sans)</div>
|
|
172
|
-
<div class="ff-headings">Headings font (
|
|
178
|
+
<div class="ff-headings">Headings font (Amiri)</div>
|
|
173
179
|
```
|
|
174
180
|
|
|
175
181
|
#### Font-size
|
|
@@ -214,7 +220,10 @@ If you don't want the whole design, but just the fonts, you can do the following
|
|
|
214
220
|
<!-- Prodive 2-letters language code in html lang attribute -->
|
|
215
221
|
<html lang="fr">
|
|
216
222
|
<!-- Import fonts-->
|
|
217
|
-
<link
|
|
223
|
+
<link
|
|
224
|
+
rel="stylesheet"
|
|
225
|
+
href="https://cdn.jsdelivr.net/npm/vipassana-design-standards/dist/css/fonts.css"
|
|
226
|
+
/>
|
|
218
227
|
|
|
219
228
|
<!-- Use the fonts where it's needed -->
|
|
220
229
|
<style>
|
|
@@ -11881,6 +11881,10 @@ abbr[data-original-title] {
|
|
|
11881
11881
|
cursor: pointer;
|
|
11882
11882
|
}
|
|
11883
11883
|
|
|
11884
|
+
.table {
|
|
11885
|
+
font-size: 1rem;
|
|
11886
|
+
}
|
|
11887
|
+
|
|
11884
11888
|
html,
|
|
11885
11889
|
body {
|
|
11886
11890
|
height: 100%;
|
|
@@ -11918,17 +11922,6 @@ body {
|
|
|
11918
11922
|
margin-right: auto;
|
|
11919
11923
|
}
|
|
11920
11924
|
|
|
11921
|
-
.vue-container {
|
|
11922
|
-
--page-content-opacity: 0;
|
|
11923
|
-
}
|
|
11924
|
-
.vue-container.mounted {
|
|
11925
|
-
--page-content-opacity: 1;
|
|
11926
|
-
}
|
|
11927
|
-
.vue-container .vds-page-real-content {
|
|
11928
|
-
transition: opacity 0.3s;
|
|
11929
|
-
opacity: var(--page-content-opacity);
|
|
11930
|
-
}
|
|
11931
|
-
|
|
11932
11925
|
.vds-header-and-content {
|
|
11933
11926
|
position: relative;
|
|
11934
11927
|
display: flex;
|
|
@@ -12032,12 +12025,12 @@ body {
|
|
|
12032
12025
|
*/
|
|
12033
12026
|
:root {
|
|
12034
12027
|
--vds-font-family: "Noto Sans";
|
|
12035
|
-
--vds-headings-font-family: "
|
|
12028
|
+
--vds-headings-font-family: "Amiri";
|
|
12036
12029
|
}
|
|
12037
12030
|
|
|
12038
12031
|
[lang=en] {
|
|
12039
12032
|
--vds-font-family: "Noto Sans";
|
|
12040
|
-
--vds-headings-font-family: "
|
|
12033
|
+
--vds-headings-font-family: "Amiri";
|
|
12041
12034
|
}
|
|
12042
12035
|
|
|
12043
12036
|
[lang=bg] {
|
|
@@ -12047,22 +12040,22 @@ body {
|
|
|
12047
12040
|
|
|
12048
12041
|
[lang=ca] {
|
|
12049
12042
|
--vds-font-family: "Noto Sans";
|
|
12050
|
-
--vds-headings-font-family: "
|
|
12043
|
+
--vds-headings-font-family: "Amiri";
|
|
12051
12044
|
}
|
|
12052
12045
|
|
|
12053
12046
|
[lang=cs] {
|
|
12054
12047
|
--vds-font-family: "Noto Sans";
|
|
12055
|
-
--vds-headings-font-family: "
|
|
12048
|
+
--vds-headings-font-family: "Amiri";
|
|
12056
12049
|
}
|
|
12057
12050
|
|
|
12058
12051
|
[lang=da] {
|
|
12059
12052
|
--vds-font-family: "Noto Sans";
|
|
12060
|
-
--vds-headings-font-family: "
|
|
12053
|
+
--vds-headings-font-family: "Amiri";
|
|
12061
12054
|
}
|
|
12062
12055
|
|
|
12063
12056
|
[lang=de] {
|
|
12064
12057
|
--vds-font-family: "Noto Sans";
|
|
12065
|
-
--vds-headings-font-family: "
|
|
12058
|
+
--vds-headings-font-family: "Amiri";
|
|
12066
12059
|
}
|
|
12067
12060
|
|
|
12068
12061
|
[lang=el] {
|
|
@@ -12072,7 +12065,7 @@ body {
|
|
|
12072
12065
|
|
|
12073
12066
|
[lang=es] {
|
|
12074
12067
|
--vds-font-family: "Noto Sans";
|
|
12075
|
-
--vds-headings-font-family: "
|
|
12068
|
+
--vds-headings-font-family: "Amiri";
|
|
12076
12069
|
}
|
|
12077
12070
|
|
|
12078
12071
|
[lang=fa] {
|
|
@@ -12082,12 +12075,12 @@ body {
|
|
|
12082
12075
|
|
|
12083
12076
|
[lang=fi] {
|
|
12084
12077
|
--vds-font-family: "Noto Sans";
|
|
12085
|
-
--vds-headings-font-family: "
|
|
12078
|
+
--vds-headings-font-family: "Amiri";
|
|
12086
12079
|
}
|
|
12087
12080
|
|
|
12088
12081
|
[lang=fr] {
|
|
12089
12082
|
--vds-font-family: "Noto Sans";
|
|
12090
|
-
--vds-headings-font-family: "
|
|
12083
|
+
--vds-headings-font-family: "Amiri";
|
|
12091
12084
|
}
|
|
12092
12085
|
|
|
12093
12086
|
[lang=gu] {
|
|
@@ -12102,22 +12095,22 @@ body {
|
|
|
12102
12095
|
|
|
12103
12096
|
[lang=hi] {
|
|
12104
12097
|
--vds-font-family: "Noto Sans";
|
|
12105
|
-
--vds-headings-font-family: "
|
|
12098
|
+
--vds-headings-font-family: "Amiri";
|
|
12106
12099
|
}
|
|
12107
12100
|
|
|
12108
12101
|
[lang=hu] {
|
|
12109
12102
|
--vds-font-family: "Noto Sans";
|
|
12110
|
-
--vds-headings-font-family: "
|
|
12103
|
+
--vds-headings-font-family: "Amiri";
|
|
12111
12104
|
}
|
|
12112
12105
|
|
|
12113
12106
|
[lang=id] {
|
|
12114
12107
|
--vds-font-family: "Noto Sans";
|
|
12115
|
-
--vds-headings-font-family: "
|
|
12108
|
+
--vds-headings-font-family: "Amiri";
|
|
12116
12109
|
}
|
|
12117
12110
|
|
|
12118
12111
|
[lang=it] {
|
|
12119
12112
|
--vds-font-family: "Noto Sans";
|
|
12120
|
-
--vds-headings-font-family: "
|
|
12113
|
+
--vds-headings-font-family: "Amiri";
|
|
12121
12114
|
}
|
|
12122
12115
|
|
|
12123
12116
|
[lang=ja] {
|
|
@@ -12137,12 +12130,12 @@ body {
|
|
|
12137
12130
|
|
|
12138
12131
|
[lang=lt] {
|
|
12139
12132
|
--vds-font-family: "Noto Sans";
|
|
12140
|
-
--vds-headings-font-family: "
|
|
12133
|
+
--vds-headings-font-family: "Amiri";
|
|
12141
12134
|
}
|
|
12142
12135
|
|
|
12143
12136
|
[lang=lv] {
|
|
12144
12137
|
--vds-font-family: "Noto Sans";
|
|
12145
|
-
--vds-headings-font-family: "
|
|
12138
|
+
--vds-headings-font-family: "Amiri";
|
|
12146
12139
|
}
|
|
12147
12140
|
|
|
12148
12141
|
[lang=mk] {
|
|
@@ -12152,12 +12145,12 @@ body {
|
|
|
12152
12145
|
|
|
12153
12146
|
[lang=mr] {
|
|
12154
12147
|
--vds-font-family: "Noto Sans";
|
|
12155
|
-
--vds-headings-font-family: "
|
|
12148
|
+
--vds-headings-font-family: "Amiri";
|
|
12156
12149
|
}
|
|
12157
12150
|
|
|
12158
12151
|
[lang=nl] {
|
|
12159
12152
|
--vds-font-family: "Noto Sans";
|
|
12160
|
-
--vds-headings-font-family: "
|
|
12153
|
+
--vds-headings-font-family: "Amiri";
|
|
12161
12154
|
}
|
|
12162
12155
|
|
|
12163
12156
|
[lang=or] {
|
|
@@ -12167,17 +12160,17 @@ body {
|
|
|
12167
12160
|
|
|
12168
12161
|
[lang=pl] {
|
|
12169
12162
|
--vds-font-family: "Noto Sans";
|
|
12170
|
-
--vds-headings-font-family: "
|
|
12163
|
+
--vds-headings-font-family: "Amiri";
|
|
12171
12164
|
}
|
|
12172
12165
|
|
|
12173
12166
|
[lang=pt] {
|
|
12174
12167
|
--vds-font-family: "Noto Sans";
|
|
12175
|
-
--vds-headings-font-family: "
|
|
12168
|
+
--vds-headings-font-family: "Amiri";
|
|
12176
12169
|
}
|
|
12177
12170
|
|
|
12178
12171
|
[lang=ro] {
|
|
12179
12172
|
--vds-font-family: "Noto Sans";
|
|
12180
|
-
--vds-headings-font-family: "
|
|
12173
|
+
--vds-headings-font-family: "Amiri";
|
|
12181
12174
|
}
|
|
12182
12175
|
|
|
12183
12176
|
[lang=ru] {
|
|
@@ -12192,7 +12185,7 @@ body {
|
|
|
12192
12185
|
|
|
12193
12186
|
[lang=sl] {
|
|
12194
12187
|
--vds-font-family: "Noto Sans";
|
|
12195
|
-
--vds-headings-font-family: "
|
|
12188
|
+
--vds-headings-font-family: "Amiri";
|
|
12196
12189
|
}
|
|
12197
12190
|
|
|
12198
12191
|
[lang=sr] {
|
|
@@ -12202,7 +12195,7 @@ body {
|
|
|
12202
12195
|
|
|
12203
12196
|
[lang=sv] {
|
|
12204
12197
|
--vds-font-family: "Noto Sans";
|
|
12205
|
-
--vds-headings-font-family: "
|
|
12198
|
+
--vds-headings-font-family: "Amiri";
|
|
12206
12199
|
}
|
|
12207
12200
|
|
|
12208
12201
|
[lang=ta] {
|
|
@@ -12222,7 +12215,7 @@ body {
|
|
|
12222
12215
|
|
|
12223
12216
|
[lang=tr] {
|
|
12224
12217
|
--vds-font-family: "Noto Sans";
|
|
12225
|
-
--vds-headings-font-family: "
|
|
12218
|
+
--vds-headings-font-family: "Amiri";
|
|
12226
12219
|
}
|
|
12227
12220
|
|
|
12228
12221
|
[lang=uk] {
|
|
@@ -12261,15 +12254,15 @@ body {
|
|
|
12261
12254
|
}
|
|
12262
12255
|
|
|
12263
12256
|
@font-face {
|
|
12264
|
-
font-family: "
|
|
12265
|
-
src: url("
|
|
12257
|
+
font-family: "Amiri";
|
|
12258
|
+
src: url("http://127.0.0.1:5500/dist/fonts/amiri/Amiri-Regular.ttf");
|
|
12266
12259
|
font-weight: 400;
|
|
12267
12260
|
font-style: normal;
|
|
12268
12261
|
}
|
|
12269
12262
|
@font-face {
|
|
12270
|
-
font-family: "
|
|
12271
|
-
src: url("
|
|
12272
|
-
font-weight:
|
|
12263
|
+
font-family: "Amiri";
|
|
12264
|
+
src: url("http://127.0.0.1:5500/dist/fonts/amiri/Amiri-Regular.ttf");
|
|
12265
|
+
font-weight: 700;
|
|
12273
12266
|
font-style: normal;
|
|
12274
12267
|
}
|
|
12275
12268
|
/*
|
|
@@ -12428,11 +12421,11 @@ body {
|
|
|
12428
12421
|
text-decoration: none;
|
|
12429
12422
|
--vds-logo-title-color: #9c6b14;
|
|
12430
12423
|
--vds-logo-tagline-color: #4f4d47;
|
|
12431
|
-
--vds-logo-title-font-size: 1.
|
|
12432
|
-
--vds-logo-title-line-height: 1.
|
|
12424
|
+
--vds-logo-title-font-size: 1.8em;
|
|
12425
|
+
--vds-logo-title-line-height: 1.2;
|
|
12433
12426
|
--vds-logo-tagline-font-size: 1em;
|
|
12434
12427
|
--vds-logo-tagline-line-height: 1;
|
|
12435
|
-
--vds-logo-tagline-margin: 0.
|
|
12428
|
+
--vds-logo-tagline-margin: 0.2em;
|
|
12436
12429
|
}
|
|
12437
12430
|
|
|
12438
12431
|
.vipassana-logo[data-reverse=true] {
|
|
@@ -12455,13 +12448,41 @@ body {
|
|
|
12455
12448
|
margin-bottom: -0.5em;
|
|
12456
12449
|
}
|
|
12457
12450
|
|
|
12451
|
+
.vipassana-logo[data-lang=bg],
|
|
12452
|
+
.vipassana-logo[data-lang=el],
|
|
12453
|
+
.vipassana-logo[data-lang=mk],
|
|
12454
|
+
.vipassana-logo[data-lang=ru],
|
|
12455
|
+
.vipassana-logo[data-lang=sr],
|
|
12456
|
+
.vipassana-logo[data-lang=uk],
|
|
12457
|
+
.vipassana-logo[data-lang=vi],
|
|
12458
|
+
.vipassana-logo[data-lang=ar],
|
|
12459
|
+
.vipassana-logo[data-lang=fa],
|
|
12460
|
+
.vipassana-logo[data-lang=gu],
|
|
12461
|
+
.vipassana-logo[data-lang=he],
|
|
12462
|
+
.vipassana-logo[data-lang=ja],
|
|
12463
|
+
.vipassana-logo[data-lang=km],
|
|
12464
|
+
.vipassana-logo[data-lang=ko],
|
|
12465
|
+
.vipassana-logo[data-lang=or],
|
|
12466
|
+
.vipassana-logo[data-lang=si],
|
|
12467
|
+
.vipassana-logo[data-lang=ta],
|
|
12468
|
+
.vipassana-logo[data-lang=te],
|
|
12469
|
+
.vipassana-logo[data-lang=th],
|
|
12470
|
+
.vipassana-logo[data-lang=zh-HANS],
|
|
12471
|
+
.vipassana-logo[data-lang=zh-Hans],
|
|
12472
|
+
.vipassana-logo[data-lang=zh-HANT],
|
|
12473
|
+
.vipassana-logo[data-lang=zh-Hant],
|
|
12474
|
+
.vipassana-logo[data-lang=zh-HANT-HK] {
|
|
12475
|
+
--vds-logo-title-font-size: 1.5em;
|
|
12476
|
+
--vds-logo-title-line-height: 1.3;
|
|
12477
|
+
--vds-logo-tagline-margin: 0.4em;
|
|
12478
|
+
}
|
|
12479
|
+
|
|
12458
12480
|
.vipassana-logo[data-lang=he][data-reverse=true] {
|
|
12459
12481
|
--vds-logo-tagline-margin: 0.25em;
|
|
12460
12482
|
}
|
|
12461
12483
|
|
|
12462
12484
|
.vipassana-logo[data-lang=ja] {
|
|
12463
12485
|
--vds-logo-title-font-size: 1.5em;
|
|
12464
|
-
--vds-logo-tagline-margin: 0.3em;
|
|
12465
12486
|
}
|
|
12466
12487
|
|
|
12467
12488
|
.vipassana-logo[data-lang=ko] {
|
|
@@ -12545,7 +12566,8 @@ body {
|
|
|
12545
12566
|
}
|
|
12546
12567
|
|
|
12547
12568
|
.vipassana-logo[data-disposition=default] {
|
|
12548
|
-
max-width: 48em;
|
|
12569
|
+
max-width: 48em;
|
|
12570
|
+
/* the title will wrap if it's too long */
|
|
12549
12571
|
}
|
|
12550
12572
|
|
|
12551
12573
|
.vipassana-logo[data-disposition=centered] {
|
|
@@ -12585,7 +12607,7 @@ body {
|
|
|
12585
12607
|
/* Title */
|
|
12586
12608
|
.vipassana-logo .logo-title {
|
|
12587
12609
|
color: var(--vds-logo-title-color);
|
|
12588
|
-
font-family: var(--vds-headings-font-family),
|
|
12610
|
+
font-family: var(--vds-headings-font-family), Amiri, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
|
|
12589
12611
|
line-height: var(--vds-logo-title-line-height);
|
|
12590
12612
|
font-size: var(--vds-logo-title-font-size);
|
|
12591
12613
|
font-weight: normal;
|
|
@@ -12686,9 +12708,9 @@ body {
|
|
|
12686
12708
|
}
|
|
12687
12709
|
|
|
12688
12710
|
/* Force font-family for english Logo */
|
|
12689
|
-
/* If the page is displayed in Hindi, but the Logo in english, we want to use
|
|
12711
|
+
/* If the page is displayed in Hindi, but the Logo in english, we want to use amiri */
|
|
12690
12712
|
.vipassana-logo[data-lang=en] {
|
|
12691
|
-
--vds-headings-font-family: "
|
|
12713
|
+
--vds-headings-font-family: "Amiri";
|
|
12692
12714
|
}
|
|
12693
12715
|
|
|
12694
12716
|
html.vds-html {
|