holygrail5 1.0.22 → 1.0.23

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/config.json CHANGED
@@ -36,6 +36,14 @@
36
36
  }
37
37
  ],
38
38
  "fonts": [
39
+ {
40
+ "source": "src/assets/fonts/suisse-intl-thin.woff2",
41
+ "dest": "dist/assets/fonts/suisse-intl-thin.woff2"
42
+ },
43
+ {
44
+ "source": "src/assets/fonts/suisse-intl-thin.woff",
45
+ "dest": "dist/assets/fonts/suisse-intl-thin.woff"
46
+ },
39
47
  {
40
48
  "source": "src/assets/fonts/suisse-intl-light.woff2",
41
49
  "dest": "dist/assets/fonts/suisse-intl-light.woff2"
@@ -133,12 +141,13 @@
133
141
  "bg-cream": "#f4f2ed"
134
142
  },
135
143
  "fontFamilyMap": {
144
+ "primary-thin": "\"suisse-thin\", Arial, Helvetica, sans-serif",
136
145
  "primary-light": "\"suisse-light\", Arial, Helvetica, sans-serif",
137
146
  "primary-regular": "\"suisse-regular\", Arial, Helvetica, sans-serif",
138
147
  "primary-bold": "\"suisse-semibold\", Arial, Helvetica, sans-serif",
139
148
  "secondary": "\"suisse-medium\", Arial, Helvetica, sans-serif",
140
- "mono-regular": "\"suisse-mono-regular\", Consolas, Menlo, Monaco, \"Courier New\", monospace",
141
- "mono-bold": "\"suisse-mono-bold\", Consolas, Menlo, Monaco, \"Courier New\", monospace"
149
+ "mono-regular": "\"suisse-mono-regular\", ui-monospace, monospace",
150
+ "mono-bold": "\"suisse-mono-bold\", ui-monospace, monospace"
142
151
  },
143
152
  "spacingMap": {
144
153
  "0": "0",
@@ -698,9 +707,21 @@
698
707
  }
699
708
  },
700
709
  "typo": {
710
+ "title-thin": {
711
+ "fontFamily": "\"suisse-thin\", Arial, Helvetica, sans-serif",
712
+ "fontWeight": "100",
713
+ "mobile": {
714
+ "fontSize": "24px",
715
+ "lineHeight": "1"
716
+ },
717
+ "desktop": {
718
+ "fontSize": "24px",
719
+ "lineHeight": "1"
720
+ }
721
+ },
701
722
  "title-xxl": {
702
723
  "fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
703
- "fontWeight": "300",
724
+ "fontWeight": "400",
704
725
  "mobile": {
705
726
  "fontSize": "24px",
706
727
  "lineHeight": "1"
@@ -726,7 +747,7 @@
726
747
  },
727
748
  "title-l-b": {
728
749
  "fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
729
- "fontWeight": "300",
750
+ "fontWeight": "400",
730
751
  "mobile": {
731
752
  "fontSize": "12px",
732
753
  "lineHeight": "1.4"
@@ -738,7 +759,7 @@
738
759
  },
739
760
  "title-l": {
740
761
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
741
- "fontWeight": "100",
762
+ "fontWeight": "300",
742
763
  "letterSpacing": "0.16em",
743
764
  "textTransform": "uppercase",
744
765
  "mobile": {
@@ -752,7 +773,7 @@
752
773
  },
753
774
  "title-m": {
754
775
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
755
- "fontWeight": "100",
776
+ "fontWeight": "300",
756
777
  "letterSpacing": "0.16em",
757
778
  "mobile": {
758
779
  "fontSize": "12px",
@@ -765,7 +786,7 @@
765
786
  },
766
787
  "title-s-b": {
767
788
  "fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
768
- "fontWeight": "300",
789
+ "fontWeight": "400",
769
790
  "letterSpacing": "0.16em",
770
791
  "mobile": {
771
792
  "fontSize": "10px",
@@ -778,7 +799,7 @@
778
799
  },
779
800
  "title-s": {
780
801
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
781
- "fontWeight": "100",
802
+ "fontWeight": "300",
782
803
  "letterSpacing": "0.16em",
783
804
  "textTransform": "uppercase",
784
805
  "mobile": {
@@ -792,7 +813,7 @@
792
813
  },
793
814
  "text-l": {
794
815
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
795
- "fontWeight": "100",
816
+ "fontWeight": "300",
796
817
  "letterSpacing": "0.04em",
797
818
  "mobile": {
798
819
  "fontSize": "13px",
@@ -805,7 +826,7 @@
805
826
  },
806
827
  "text-m": {
807
828
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
808
- "fontWeight": "100",
829
+ "fontWeight": "300",
809
830
  "letterSpacing": "0.04em",
810
831
  "mobile": {
811
832
  "fontSize": "12px",
@@ -818,7 +839,7 @@
818
839
  },
819
840
  "p-tag": {
820
841
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
821
- "fontWeight": "100",
842
+ "fontWeight": "300",
822
843
  "letterSpacing": "0.16em",
823
844
  "mobile": {
824
845
  "fontSize": "9px",
@@ -831,7 +852,7 @@
831
852
  },
832
853
  "hg-body-l": {
833
854
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
834
- "fontWeight": "100",
855
+ "fontWeight": "300",
835
856
  "letterSpacing": "0.04em",
836
857
  "mobile": {
837
858
  "fontSize": "12px",
@@ -844,7 +865,7 @@
844
865
  },
845
866
  "hg-body-l-b": {
846
867
  "fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
847
- "fontWeight": "300",
868
+ "fontWeight": "400",
848
869
  "letterSpacing": "0.04em",
849
870
  "mobile": {
850
871
  "fontSize": "12px",
@@ -857,7 +878,7 @@
857
878
  },
858
879
  "hg-body-m": {
859
880
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
860
- "fontWeight": "100",
881
+ "fontWeight": "300",
861
882
  "letterSpacing": "0.04em",
862
883
  "mobile": {
863
884
  "fontSize": "12px",
@@ -870,7 +891,7 @@
870
891
  },
871
892
  "hg-body-m-b": {
872
893
  "fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
873
- "fontWeight": "300",
894
+ "fontWeight": "400",
874
895
  "letterSpacing": "0.04em",
875
896
  "mobile": {
876
897
  "fontSize": "12px",
@@ -883,7 +904,7 @@
883
904
  },
884
905
  "label-m": {
885
906
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
886
- "fontWeight": "100",
907
+ "fontWeight": "300",
887
908
  "letterSpacing": "0.16em",
888
909
  "textTransform": "uppercase",
889
910
  "mobile": {
@@ -897,7 +918,7 @@
897
918
  },
898
919
  "label-m-b": {
899
920
  "fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
900
- "fontWeight": "300",
921
+ "fontWeight": "400",
901
922
  "letterSpacing": "0.16em",
902
923
  "textTransform": "uppercase",
903
924
  "mobile": {
@@ -911,7 +932,7 @@
911
932
  },
912
933
  "label-s": {
913
934
  "fontFamily": "\"suisse-light\", Arial, Helvetica, sans-serif",
914
- "fontWeight": "100",
935
+ "fontWeight": "300",
915
936
  "letterSpacing": "0.06em",
916
937
  "textTransform": "uppercase",
917
938
  "mobile": {
@@ -925,7 +946,7 @@
925
946
  },
926
947
  "label-s-b": {
927
948
  "fontFamily": "\"suisse-regular\", Arial, Helvetica, sans-serif",
928
- "fontWeight": "300",
949
+ "fontWeight": "400",
929
950
  "letterSpacing": "0.06em",
930
951
  "textTransform": "uppercase",
931
952
  "mobile": {
@@ -938,7 +959,7 @@
938
959
  }
939
960
  },
940
961
  "label-mono": {
941
- "fontFamily": "\"suisse-mono-regular\", Arial, Helvetica, sans-serif",
962
+ "fontFamily": "\"suisse-mono-regular\", ui-monospace, monospace",
942
963
  "fontWeight": "400",
943
964
  "letterSpacing": "0.06em",
944
965
  "textTransform": "uppercase",
@@ -952,7 +973,7 @@
952
973
  }
953
974
  },
954
975
  "label-mono-b": {
955
- "fontFamily": "\"suisse-mono-bold\", Arial, Helvetica, sans-serif",
976
+ "fontFamily": "\"suisse-mono-bold\", ui-monospace, monospace",
956
977
  "fontWeight": "700",
957
978
  "letterSpacing": "0.06em",
958
979
  "textTransform": "uppercase",
@@ -4,20 +4,13 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>HolyGrail5 — Componentes base</title>
7
- <link rel="preconnect" href="https://fonts.googleapis.com">
8
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Instrument+Sans:regular,100,500,600,700">
10
7
  <!-- Framework base -->
11
8
  <link rel="stylesheet" href="output.css">
12
9
  <!-- Tema base genérico: dutti (variables + componentes) -->
13
10
  <link rel="stylesheet" href="themes/dutti.css">
14
- <!-- Estilos compartidos de guía (header, sidebar, demo-*) -->
11
+ <!-- Estilos compartidos de guía (header, sidebar, demo-*; incluye @font-face Suisse y la regla body en Suisse) -->
15
12
  <link rel="stylesheet" href="guide-styles.css">
16
13
  <style>
17
- body {
18
- font-family: 'Instrument Sans', sans-serif !important;
19
- }
20
-
21
14
  /* Descripción de cada sección (debajo del título) */
22
15
  .cmp-desc {
23
16
  font-size: 14px;
@@ -10,16 +10,24 @@
10
10
  antiguos.
11
11
  ============================================ */
12
12
  @font-face {
13
- font-family: "suisse-light";
13
+ font-family: "suisse-thin";
14
14
  font-weight: 100;
15
15
  font-display: swap;
16
+ src: local("SuisseIntl-Thin"),
17
+ url('assets/fonts/suisse-intl-thin.woff2') format('woff2'),
18
+ url('assets/fonts/suisse-intl-thin.woff') format('woff');
19
+ }
20
+ @font-face {
21
+ font-family: "suisse-light";
22
+ font-weight: 300;
23
+ font-display: swap;
16
24
  src: local("SuisseIntl-Light"),
17
25
  url('assets/fonts/suisse-intl-light.woff2') format('woff2'),
18
26
  url('assets/fonts/suisse-intl-light.woff') format('woff');
19
27
  }
20
28
  @font-face {
21
29
  font-family: "suisse-regular";
22
- font-weight: 300;
30
+ font-weight: 400;
23
31
  font-display: swap;
24
32
  src: local("SuisseIntl-Regular"),
25
33
  url('assets/fonts/suisse-intl-regular.woff2') format('woff2'),
@@ -27,7 +35,7 @@
27
35
  }
28
36
  @font-face {
29
37
  font-family: "suisse-medium";
30
- font-weight: 400;
38
+ font-weight: 500;
31
39
  font-display: swap;
32
40
  src: local("SuisseIntl-Medium"),
33
41
  url('assets/fonts/suisse-intl-medium.woff2') format('woff2'),
@@ -35,7 +43,7 @@
35
43
  }
36
44
  @font-face {
37
45
  font-family: "suisse-semibold";
38
- font-weight: 500;
46
+ font-weight: 600;
39
47
  font-display: swap;
40
48
  src: local("SuisseIntl-SemiBold"),
41
49
  url('assets/fonts/suisse-intl-semibold.woff2') format('woff2'),
@@ -86,9 +94,7 @@
86
94
  /* ============================================
87
95
  RESET Y BASE
88
96
  ============================================ */
89
- * {
90
- scroll-behavior: smooth;
91
- }
97
+ /* Scroll nativo (sin suavizado): los saltos de ancla son instantáneos. */
92
98
 
93
99
  body {
94
100
  margin: 0;
@@ -112,14 +118,14 @@ h2 {
112
118
  margin-left: 0;
113
119
  flex: 1;
114
120
  padding: 0;
115
- padding-bottom: 10rem;
121
+ padding-bottom: 4rem;
116
122
  max-width: 100%;
117
123
  }
118
124
 
119
125
  .guide-main-content h2 {
120
- font-size: 50px;
121
- padding-bottom: 40px;
122
- margin-bottom: 40px;
126
+ font-size: 34px;
127
+ padding-bottom: 12px;
128
+ margin-bottom: 8px;
123
129
  font-weight: 500;
124
130
  color: #000;
125
131
  font-family: var(--hg-typo-font-family-primary-bold);
@@ -130,27 +136,27 @@ h2 {
130
136
  font-family: var(--hg-typo-font-family-primary-regular);
131
137
  color: #000;
132
138
  font-size: 16px;
133
- line-height: 28px;
134
- margin: 80px 0 12px;
139
+ line-height: 1.4;
140
+ margin: 2rem 0 0.75rem;
135
141
  }
136
142
 
137
143
  @media (min-width: 768px) {
138
144
  .guide-main-content h2 {
139
- font-size: 64px;
140
- padding-bottom: 40px;
141
- margin-bottom: 10px;
145
+ font-size: 44px;
146
+ padding-bottom: 12px;
147
+ margin-bottom: 8px;
142
148
  }
143
149
 
144
150
  .guide-main-content h3 {
145
151
  font-family: var(--hg-typo-font-family-primary-regular);
146
152
  color: #000;
147
- font-size: 20px;
148
- line-height: 28px;
149
- margin: 80px 0 12px;
153
+ font-size: 18px;
154
+ line-height: 1.4;
155
+ margin: 2rem 0 0.75rem;
150
156
  }
151
-
157
+
152
158
  .guide-section-description {
153
- font-size: 28px;
159
+ font-size: 18px;
154
160
  }
155
161
  }
156
162
 
@@ -163,20 +169,40 @@ h2 {
163
169
  border-radius: 8px;
164
170
  }
165
171
 
172
+ /* Compactación / unificación del ritmo vertical de la guía.
173
+ Las cabeceras de sección usan `.row.mb-120` (120px) como separador;
174
+ aquí lo reducimos a un valor coherente y mucho más pegado. También
175
+ homogeneizamos el espacio entre secciones y el del separador <hr>. */
176
+ .guide-section .row.mb-120,
177
+ .guide-section--highlighted .row.mb-120 {
178
+ margin-bottom: 1.5rem;
179
+ }
180
+ .guide-section + .guide-section,
181
+ .guide-section--highlighted + .guide-section,
182
+ .guide-section + .guide-section--highlighted {
183
+ margin-top: 2.5rem;
184
+ }
185
+ .guide-section .row.mb-120 hr,
186
+ .guide-section hr {
187
+ margin: 0.5rem 0 0;
188
+ border: 0;
189
+ border-top: 1px solid #e9e9e9;
190
+ }
191
+
166
192
  .guide-section.guide-section--highlighted {
167
193
  background: #fff;
168
- padding: 5rem 0 2rem 0;
194
+ padding: 2rem 0 1rem 0;
169
195
  }
170
196
  @media (min-width: 768px) {
171
197
  .guide-section.guide-section--highlighted {
172
- padding: 5rem 0;
198
+ padding: 2.5rem 0 1.5rem 0;
173
199
  }
174
200
  }
175
201
 
176
202
  .guide-section-title {
177
203
  font-size: 1.5rem;
178
204
  font-weight: 500;
179
- padding-bottom: 2rem;
205
+ padding-bottom: 1rem;
180
206
  line-height: 1.2;
181
207
  display: flex;
182
208
  justify-content: space-between;
@@ -186,34 +212,19 @@ h2 {
186
212
 
187
213
  @media (min-width: 768px) {
188
214
  .guide-section-title {
189
- margin-top: 3rem;
190
- flex-direction: row;
215
+ margin-top: 1.25rem;
216
+ /* Se mantiene en columna: el contenido (cajas explicativas) queda
217
+ debajo del titular y alineado a la izquierda, no en la mitad derecha. */
191
218
  }
192
219
  }
193
220
 
194
221
  .guide-section-description {
195
- margin-top: 1rem;
196
- font-size: 28px;
197
- color: #000000;
198
- font-family: var(--hg-typo-font-family-primary-light);
199
- margin-bottom: 20px;
200
-
201
- line-height: 1.2;
202
- width: 100%;
203
- margin-left: 0;
204
- display: flex;
205
- flex-direction: column;
206
- justify-content: flex-end;
207
- }
208
-
209
- .guide-section-description {
210
- margin-top: 1rem;
211
- font-size: 28px;
222
+ margin-top: 0.5rem;
223
+ font-size: 18px;
212
224
  color: #000000;
213
225
  font-family: var(--hg-typo-font-family-primary-light);
214
- margin-bottom: 20px;
215
-
216
- line-height: 1.2;
226
+ margin-bottom: 8px;
227
+ line-height: 1.35;
217
228
  width: 100%;
218
229
  margin-left: 0;
219
230
  display: flex;
@@ -559,14 +570,14 @@ h2 {
559
570
  color: #919191;
560
571
  letter-spacing: 0.05em;
561
572
  border-bottom: 1px solid #ddd;
562
- padding: 0.75rem;
573
+ padding: 0.5rem 0.75rem;
563
574
  padding-left: 0;
564
575
  text-align: left;
565
576
  z-index: 10;
566
577
  }
567
578
 
568
579
  .guide-table td {
569
- padding: 0.75rem;
580
+ padding: 0.38rem 0.75rem;
570
581
  padding-left: 0;
571
582
  border-bottom: 1px solid #efefef;
572
583
  vertical-align: middle;
@@ -594,9 +605,9 @@ h2 {
594
605
 
595
606
  .guide-table .guide-font-family-preview {
596
607
  min-width: 100px;
597
- padding: 0.75rem;
598
- min-height: 50px;
599
- font-size: 1.5rem;
608
+ padding: 0.4rem;
609
+ min-height: 34px;
610
+ font-size: 1.25rem;
600
611
  /* Dejamos que cada font-family muestre su peso natural. En
601
612
  esta convención (una familia por peso) cada @font-face
602
613
  declara un único font-weight, así que forzar un weight
@@ -693,7 +704,6 @@ h2 {
693
704
  .guide-text-bold,
694
705
  .guide-table .guide-table-name,
695
706
  .guide-layout-class-name {
696
- font-weight: 600;
697
707
  color: #000000;
698
708
  font-family: var(--hg-typo-font-family-primary-regular);
699
709
  }
@@ -1311,15 +1321,18 @@ h2 {
1311
1321
  gap: var(--hg-spacing-24);
1312
1322
  max-width: 100%;
1313
1323
  margin-left: 0;
1314
- margin-bottom: 10rem;
1324
+ margin-bottom: 2rem;
1315
1325
  }
1316
1326
 
1327
+ /* Las cajas explicativas van debajo del titular + línea, alineadas a la
1328
+ IZQUIERDA (antes: max-width 50% + margin-left 50% las empujaba a la
1329
+ mitad derecha de la página). */
1317
1330
  @media (min-width: 768px) {
1318
1331
  .demo-section-2 {
1319
1332
  grid-template-columns: repeat(2, 1fr);
1320
- max-width: 50%;
1321
- margin-left: 50%;
1322
- margin-bottom: 10rem;
1333
+ width: 100%;
1334
+ margin-left: 0;
1335
+ margin-bottom: 2rem;
1323
1336
  }
1324
1337
  }
1325
1338