vipassana-design-standards 0.0.23 → 0.0.24

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 CHANGED
@@ -21,7 +21,7 @@ If you are not using our `bootstrap5-theme` (see below), then you need to manual
21
21
  <!-- Load fonts -->
22
22
  <link rel="stylesheet" href="https://design-standards.dhamma.org/dist/css/fonts.css" />
23
23
 
24
- <!-- If you use vds_logo_html, load this specific file -->
24
+ <!-- If you use vds_logo, load this specific file -->
25
25
  <link rel="stylesheet" href="https://design-standards.dhamma.org/dist/css/logo.css" />
26
26
  ```
27
27
 
@@ -45,21 +45,13 @@ end
45
45
 
46
46
  Use the helpers
47
47
  ```html
48
- <!-- SVG logo -->
49
- <%= vds_logo_svg %>
50
- <%= vds_logo_svg(height: 80) %>
51
- <%= vds_logo_svg(width: 500) %>
52
- <%= vds_logo_svg(disposition: "mobile") %>
53
- <!-- All options -->
54
- <%= vds_logo_svg(locale: "fr", disposition: "default", tagline: true, height: 200) %>
55
-
56
- <!-- HTML Logo -->
48
+ <!-- Logo -->
57
49
  <!-- logo.css will need to be loaded, see above -->
58
- <%= vds_logo_html %>
59
- <%= vds_logo_html(size: 10) %>
60
- <%= vds_logo_html(dispositon: "mobile") %>
50
+ <%= vds_logo %>
51
+ <%= vds_logo(size: 10) %>
52
+ <%= vds_logo(dispositon: "mobile") %>
61
53
  <!-- All options -->
62
- <%= vds_logo_html(locale: "fr", disposition: "default", tagline: true, size: 18, dark: false) %>
54
+ <%= vds_logo(locale: "fr", disposition: "default", tagline: true, size: 18, dark: false) %>
63
55
  ```
64
56
 
65
57
  ### Without ruby
@@ -55,7 +55,7 @@
55
55
  --bs-body-font-family: var(--bs-font-sans-serif);
56
56
  --bs-body-font-size: 1rem;
57
57
  --bs-body-font-weight: 400;
58
- --bs-body-line-height: 1.5;
58
+ --bs-body-line-height: 1.7;
59
59
  --bs-body-color: #212529;
60
60
  --bs-body-bg: #FCFAF7;
61
61
  --bs-border-width: 1px;
@@ -112,7 +112,7 @@ h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
112
112
  margin-bottom: 0.5rem;
113
113
  font-family: var(--vds-headings-font-family), "FootLight", 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";
114
114
  font-weight: 600;
115
- line-height: 1.7;
115
+ line-height: 1.5;
116
116
  color: #1E3461;
117
117
  }
118
118
 
@@ -489,7 +489,7 @@ progress {
489
489
  .display-1 {
490
490
  font-size: calc(1.625rem + 4.5vw);
491
491
  font-weight: 300;
492
- line-height: 1.7;
492
+ line-height: 1.5;
493
493
  }
494
494
  @media (min-width: 1200px) {
495
495
  .display-1 {
@@ -500,7 +500,7 @@ progress {
500
500
  .display-2 {
501
501
  font-size: calc(1.575rem + 3.9vw);
502
502
  font-weight: 300;
503
- line-height: 1.7;
503
+ line-height: 1.5;
504
504
  }
505
505
  @media (min-width: 1200px) {
506
506
  .display-2 {
@@ -511,7 +511,7 @@ progress {
511
511
  .display-3 {
512
512
  font-size: calc(1.525rem + 3.3vw);
513
513
  font-weight: 300;
514
- line-height: 1.7;
514
+ line-height: 1.5;
515
515
  }
516
516
  @media (min-width: 1200px) {
517
517
  .display-3 {
@@ -522,7 +522,7 @@ progress {
522
522
  .display-4 {
523
523
  font-size: calc(1.475rem + 2.7vw);
524
524
  font-weight: 300;
525
- line-height: 1.7;
525
+ line-height: 1.5;
526
526
  }
527
527
  @media (min-width: 1200px) {
528
528
  .display-4 {
@@ -533,7 +533,7 @@ progress {
533
533
  .display-5 {
534
534
  font-size: calc(1.425rem + 2.1vw);
535
535
  font-weight: 300;
536
- line-height: 1.7;
536
+ line-height: 1.5;
537
537
  }
538
538
  @media (min-width: 1200px) {
539
539
  .display-5 {
@@ -544,7 +544,7 @@ progress {
544
544
  .display-6 {
545
545
  font-size: calc(1.375rem + 1.5vw);
546
546
  font-weight: 300;
547
- line-height: 1.7;
547
+ line-height: 1.5;
548
548
  }
549
549
  @media (min-width: 1200px) {
550
550
  .display-6 {
@@ -1964,7 +1964,7 @@ progress {
1964
1964
  padding-bottom: calc(0.375rem + 1px);
1965
1965
  margin-bottom: 0;
1966
1966
  font-size: inherit;
1967
- line-height: 1.5;
1967
+ line-height: 1.7;
1968
1968
  }
1969
1969
 
1970
1970
  .col-form-label-lg {
@@ -1991,7 +1991,7 @@ progress {
1991
1991
  padding: 0.375rem 1rem;
1992
1992
  font-size: 1rem;
1993
1993
  font-weight: 400;
1994
- line-height: 1.5;
1994
+ line-height: 1.7;
1995
1995
  color: #212529;
1996
1996
  background-color: white;
1997
1997
  background-clip: padding-box;
@@ -2019,7 +2019,7 @@ progress {
2019
2019
  box-shadow: 0 0 0 0.25rem rgba(30, 52, 97, 0.25);
2020
2020
  }
2021
2021
  .form-control::-webkit-date-and-time-value {
2022
- height: 1.5em;
2022
+ height: 1.7em;
2023
2023
  }
2024
2024
  .form-control::placeholder {
2025
2025
  color: #6c757d;
@@ -2057,7 +2057,7 @@ progress {
2057
2057
  width: 100%;
2058
2058
  padding: 0.375rem 0;
2059
2059
  margin-bottom: 0;
2060
- line-height: 1.5;
2060
+ line-height: 1.7;
2061
2061
  color: #212529;
2062
2062
  background-color: transparent;
2063
2063
  border: solid transparent;
@@ -2072,7 +2072,7 @@ progress {
2072
2072
  }
2073
2073
 
2074
2074
  .form-control-sm {
2075
- min-height: calc(1.5em + 0.5rem + 2px);
2075
+ min-height: calc(1.7em + 0.5rem + 2px);
2076
2076
  padding: 0.25rem 0.75rem;
2077
2077
  font-size: 0.875rem;
2078
2078
  border-radius: 0.25rem;
@@ -2084,7 +2084,7 @@ progress {
2084
2084
  }
2085
2085
 
2086
2086
  .form-control-lg {
2087
- min-height: calc(1.5em + 1rem + 2px);
2087
+ min-height: calc(1.7em + 1rem + 2px);
2088
2088
  padding: 0.5rem 1rem;
2089
2089
  font-size: 1.25rem;
2090
2090
  border-radius: 0.5rem;
@@ -2096,18 +2096,18 @@ progress {
2096
2096
  }
2097
2097
 
2098
2098
  textarea.form-control {
2099
- min-height: calc(1.5em + 0.75rem + 2px);
2099
+ min-height: calc(1.7em + 0.75rem + 2px);
2100
2100
  }
2101
2101
  textarea.form-control-sm {
2102
- min-height: calc(1.5em + 0.5rem + 2px);
2102
+ min-height: calc(1.7em + 0.5rem + 2px);
2103
2103
  }
2104
2104
  textarea.form-control-lg {
2105
- min-height: calc(1.5em + 1rem + 2px);
2105
+ min-height: calc(1.7em + 1rem + 2px);
2106
2106
  }
2107
2107
 
2108
2108
  .form-control-color {
2109
2109
  width: 3rem;
2110
- height: calc(1.5em + 0.75rem + 2px);
2110
+ height: calc(1.7em + 0.75rem + 2px);
2111
2111
  padding: 0.375rem;
2112
2112
  }
2113
2113
  .form-control-color:not(:disabled):not([readonly]) {
@@ -2121,10 +2121,10 @@ textarea.form-control-lg {
2121
2121
  border-radius: 0.25rem;
2122
2122
  }
2123
2123
  .form-control-color.form-control-sm {
2124
- height: calc(1.5em + 0.5rem + 2px);
2124
+ height: calc(1.7em + 0.5rem + 2px);
2125
2125
  }
2126
2126
  .form-control-color.form-control-lg {
2127
- height: calc(1.5em + 1rem + 2px);
2127
+ height: calc(1.7em + 1rem + 2px);
2128
2128
  }
2129
2129
 
2130
2130
  .form-select {
@@ -2134,7 +2134,7 @@ textarea.form-control-lg {
2134
2134
  -moz-padding-start: calc(1rem - 3px);
2135
2135
  font-size: 1rem;
2136
2136
  font-weight: 400;
2137
- line-height: 1.5;
2137
+ line-height: 1.7;
2138
2138
  color: #212529;
2139
2139
  background-color: white;
2140
2140
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
@@ -2186,7 +2186,7 @@ textarea.form-control-lg {
2186
2186
 
2187
2187
  .form-check {
2188
2188
  display: block;
2189
- min-height: 1.5rem;
2189
+ min-height: 1.7rem;
2190
2190
  padding-left: 1.5em;
2191
2191
  margin-bottom: 0.125rem;
2192
2192
  }
@@ -2209,7 +2209,7 @@ textarea.form-control-lg {
2209
2209
  .form-check-input {
2210
2210
  width: 1em;
2211
2211
  height: 1em;
2212
- margin-top: 0.25em;
2212
+ margin-top: 0.35em;
2213
2213
  vertical-align: top;
2214
2214
  background-color: white;
2215
2215
  background-repeat: no-repeat;
@@ -2490,7 +2490,7 @@ textarea.form-control-lg {
2490
2490
  padding: 0.375rem 1rem;
2491
2491
  font-size: 1rem;
2492
2492
  font-weight: 400;
2493
- line-height: 1.5;
2493
+ line-height: 1.7;
2494
2494
  color: #212529;
2495
2495
  text-align: center;
2496
2496
  white-space: nowrap;
@@ -2578,11 +2578,11 @@ textarea.form-control-lg {
2578
2578
 
2579
2579
  .was-validated .form-control:valid, .form-control.is-valid {
2580
2580
  border-color: #3d6b00;
2581
- padding-right: calc(1.5em + 0.75rem);
2581
+ padding-right: calc(1.7em + 0.75rem);
2582
2582
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%233d6b00' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
2583
2583
  background-repeat: no-repeat;
2584
- background-position: right calc(0.375em + 0.1875rem) center;
2585
- background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
2584
+ background-position: right calc(0.425em + 0.1875rem) center;
2585
+ background-size: calc(0.85em + 0.375rem) calc(0.85em + 0.375rem);
2586
2586
  }
2587
2587
  .was-validated .form-control:valid:focus, .form-control.is-valid:focus {
2588
2588
  border-color: #3d6b00;
@@ -2590,8 +2590,8 @@ textarea.form-control-lg {
2590
2590
  }
2591
2591
 
2592
2592
  .was-validated textarea.form-control:valid, textarea.form-control.is-valid {
2593
- padding-right: calc(1.5em + 0.75rem);
2594
- background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
2593
+ padding-right: calc(1.7em + 0.75rem);
2594
+ background-position: top calc(0.425em + 0.1875rem) right calc(0.425em + 0.1875rem);
2595
2595
  }
2596
2596
 
2597
2597
  .was-validated .form-select:valid, .form-select.is-valid {
@@ -2601,7 +2601,7 @@ textarea.form-control-lg {
2601
2601
  padding-right: 5.5rem;
2602
2602
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%233d6b00' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
2603
2603
  background-position: right 1rem center, center right 3rem;
2604
- background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
2604
+ background-size: 16px 12px, calc(0.85em + 0.375rem) calc(0.85em + 0.375rem);
2605
2605
  }
2606
2606
  .was-validated .form-select:valid:focus, .form-select.is-valid:focus {
2607
2607
  border-color: #3d6b00;
@@ -2609,7 +2609,7 @@ textarea.form-control-lg {
2609
2609
  }
2610
2610
 
2611
2611
  .was-validated .form-control-color:valid, .form-control-color.is-valid {
2612
- width: calc(3rem + calc(1.5em + 0.75rem));
2612
+ width: calc(3rem + calc(1.7em + 0.75rem));
2613
2613
  }
2614
2614
 
2615
2615
  .was-validated .form-check-input:valid, .form-check-input.is-valid {
@@ -2668,11 +2668,11 @@ textarea.form-control-lg {
2668
2668
 
2669
2669
  .was-validated .form-control:invalid, .form-control.is-invalid {
2670
2670
  border-color: #8e3333;
2671
- padding-right: calc(1.5em + 0.75rem);
2671
+ padding-right: calc(1.7em + 0.75rem);
2672
2672
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%238e3333'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%238e3333' stroke='none'/%3e%3c/svg%3e");
2673
2673
  background-repeat: no-repeat;
2674
- background-position: right calc(0.375em + 0.1875rem) center;
2675
- background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
2674
+ background-position: right calc(0.425em + 0.1875rem) center;
2675
+ background-size: calc(0.85em + 0.375rem) calc(0.85em + 0.375rem);
2676
2676
  }
2677
2677
  .was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {
2678
2678
  border-color: #8e3333;
@@ -2680,8 +2680,8 @@ textarea.form-control-lg {
2680
2680
  }
2681
2681
 
2682
2682
  .was-validated textarea.form-control:invalid, textarea.form-control.is-invalid {
2683
- padding-right: calc(1.5em + 0.75rem);
2684
- background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
2683
+ padding-right: calc(1.7em + 0.75rem);
2684
+ background-position: top calc(0.425em + 0.1875rem) right calc(0.425em + 0.1875rem);
2685
2685
  }
2686
2686
 
2687
2687
  .was-validated .form-select:invalid, .form-select.is-invalid {
@@ -2691,7 +2691,7 @@ textarea.form-control-lg {
2691
2691
  padding-right: 5.5rem;
2692
2692
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%238e3333'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%238e3333' stroke='none'/%3e%3c/svg%3e");
2693
2693
  background-position: right 1rem center, center right 3rem;
2694
- background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
2694
+ background-size: 16px 12px, calc(0.85em + 0.375rem) calc(0.85em + 0.375rem);
2695
2695
  }
2696
2696
  .was-validated .form-select:invalid:focus, .form-select.is-invalid:focus {
2697
2697
  border-color: #8e3333;
@@ -2699,7 +2699,7 @@ textarea.form-control-lg {
2699
2699
  }
2700
2700
 
2701
2701
  .was-validated .form-control-color:invalid, .form-control-color.is-invalid {
2702
- width: calc(3rem + calc(1.5em + 0.75rem));
2702
+ width: calc(3rem + calc(1.7em + 0.75rem));
2703
2703
  }
2704
2704
 
2705
2705
  .was-validated .form-check-input:invalid, .form-check-input.is-invalid {
@@ -2733,7 +2733,7 @@ textarea.form-control-lg {
2733
2733
  --bs-btn-font-family: ;
2734
2734
  --bs-btn-font-size: 1rem;
2735
2735
  --bs-btn-font-weight: 400;
2736
- --bs-btn-line-height: 1.5;
2736
+ --bs-btn-line-height: 1.7;
2737
2737
  --bs-btn-color: #212529;
2738
2738
  --bs-btn-bg: transparent;
2739
2739
  --bs-btn-border-width: 1px;
@@ -3692,7 +3692,7 @@ textarea.form-control-lg {
3692
3692
  --bs-navbar-hover-color: rgba(0, 0, 0, 0.7);
3693
3693
  --bs-navbar-disabled-color: rgba(0, 0, 0, 0.3);
3694
3694
  --bs-navbar-active-color: rgba(0, 0, 0, 0.9);
3695
- --bs-navbar-brand-padding-y: 0.3125rem;
3695
+ --bs-navbar-brand-padding-y: 0.2875rem;
3696
3696
  --bs-navbar-brand-margin-end: 1rem;
3697
3697
  --bs-navbar-brand-font-size: 1.25rem;
3698
3698
  --bs-navbar-brand-color: rgba(0, 0, 0, 0.9);
@@ -5206,7 +5206,7 @@ textarea.form-control-lg {
5206
5206
  --bs-modal-header-padding: 1rem 1.5rem 0 1.5rem;
5207
5207
  --bs-modal-header-border-color: var(--bs-border-color);
5208
5208
  --bs-modal-header-border-width: 0;
5209
- --bs-modal-title-line-height: 1.5;
5209
+ --bs-modal-title-line-height: 1.7;
5210
5210
  --bs-modal-footer-gap: 0.5rem;
5211
5211
  --bs-modal-footer-bg: ;
5212
5212
  --bs-modal-footer-border-color: var(--bs-border-color);
@@ -5502,7 +5502,7 @@ textarea.form-control-lg {
5502
5502
  font-family: var(--bs-font-sans-serif);
5503
5503
  font-style: normal;
5504
5504
  font-weight: 400;
5505
- line-height: 1.5;
5505
+ line-height: 1.7;
5506
5506
  text-align: left;
5507
5507
  text-align: start;
5508
5508
  text-decoration: none;
@@ -5612,7 +5612,7 @@ textarea.form-control-lg {
5612
5612
  font-family: var(--bs-font-sans-serif);
5613
5613
  font-style: normal;
5614
5614
  font-weight: 400;
5615
- line-height: 1.5;
5615
+ line-height: 1.7;
5616
5616
  text-align: left;
5617
5617
  text-align: start;
5618
5618
  text-decoration: none;
@@ -6498,7 +6498,7 @@ textarea.form-control-lg {
6498
6498
 
6499
6499
  .offcanvas-title {
6500
6500
  margin-bottom: 0;
6501
- line-height: 1.5;
6501
+ line-height: 1.7;
6502
6502
  }
6503
6503
 
6504
6504
  .offcanvas-body {
@@ -8029,7 +8029,7 @@ textarea.form-control-lg {
8029
8029
  }
8030
8030
 
8031
8031
  .lh-base {
8032
- line-height: 1.5 !important;
8032
+ line-height: 1.7 !important;
8033
8033
  }
8034
8034
 
8035
8035
  .lh-lg {
@@ -12678,6 +12678,19 @@ html, body {
12678
12678
  justify-content: center;
12679
12679
  }
12680
12680
 
12681
+ .vipassana-logo .logo-title .vipassana-as-taught {
12682
+ display: none;
12683
+ }
12684
+
12685
+ [lang=zh-HANS] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=zh-HANT] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=zh-HANT-HK] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=gu] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=km] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=ja] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=mr] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=si] .vipassana-logo[data-disposition=left-one-line] .logo-title span,
12686
+ [lang=ta] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=te] .vipassana-logo[data-disposition=left-one-line] .logo-title span, [lang=hi] .vipassana-logo[data-disposition=left-one-line] .logo-title span {
12687
+ display: none;
12688
+ }
12689
+ [lang=zh-HANS] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=zh-HANT] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=zh-HANT-HK] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=gu] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=km] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=ja] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=mr] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=si] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught,
12690
+ [lang=ta] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=te] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught, [lang=hi] .vipassana-logo[data-disposition=left-one-line] .logo-title span.vipassana-as-taught {
12691
+ display: block;
12692
+ }
12693
+
12681
12694
  /* Tagline */
12682
12695
  .logo-subtitle {
12683
12696
  color: var(--vds-logo-tagline-color);