@digigov/css 1.0.3 → 1.1.0
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/dist/base/index.css +3 -3
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +4 -4
- package/package.json +3 -3
- package/src/components/footer.css +1 -1
- package/src/components/misc.css +35 -16
- package/src/components/typography.css +56 -6
- package/tailwind.config.js +7 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/css",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Digigov CSS - Tailwind CSS Components",
|
|
5
5
|
"author": "GRNET Devs <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"tailwindcss": "3.3.5",
|
|
49
49
|
"nodemon": "2.0.7",
|
|
50
50
|
"next": "10.0.9",
|
|
51
|
-
"@digigov/postcss-banner": "1.0.
|
|
51
|
+
"@digigov/postcss-banner": "1.0.2",
|
|
52
52
|
"@digigov/cli-build-tailwind": "1.0.1",
|
|
53
53
|
"rimraf": "3.0.2",
|
|
54
54
|
"publint": "0.1.8",
|
|
55
|
-
"@digigov/cli": "1.0
|
|
55
|
+
"@digigov/cli": "1.1.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@fontsource/roboto": "4.4.0",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
print:py-2 print:bg-white print:border-t-2;
|
|
5
5
|
}
|
|
6
6
|
.govgr-footer__info {
|
|
7
|
-
@apply w-full flex flex-1 flex-wrap md:flex-nowrap items-end justify-between box-border;
|
|
7
|
+
@apply w-full flex flex-1 flex-wrap md:flex-nowrap items-end justify-center md:justify-between box-border ;
|
|
8
8
|
}
|
|
9
9
|
.govgr-footer__info-section {
|
|
10
10
|
@apply mx-2 md:mx-4 mb-6 print:mb-4;
|
package/src/components/misc.css
CHANGED
|
@@ -1,25 +1,41 @@
|
|
|
1
|
-
.tooltip {
|
|
2
|
-
@apply
|
|
1
|
+
.govgr-tooltip {
|
|
2
|
+
@apply
|
|
3
|
+
/* inline-block */
|
|
4
|
+
relative m-0 p-0 underline w-min cursor-pointer;
|
|
3
5
|
text-decoration-style: dotted;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
.govgr-tooltiptext {
|
|
8
|
+
@apply hidden opacity-0 transition-all text-left;
|
|
6
9
|
backdrop-filter: blur(2px);
|
|
7
10
|
}
|
|
11
|
+
|
|
8
12
|
&:hover {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@apply
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
&::after {
|
|
14
|
+
content: "";
|
|
15
|
+
@apply top-5 md:-mr-1 border-6 border-base-content opacity-85 absolute;
|
|
16
|
+
border-right-color: transparent;
|
|
17
|
+
border-left-color: transparent;
|
|
18
|
+
border-top-color: transparent;
|
|
19
|
+
left: calc(50% - 6px);
|
|
20
|
+
@apply md:left-1/2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.govgr-tooltiptext {
|
|
24
|
+
@apply block opacity-100 absolute md:w-64 md:-ml-32 top-8 md:left-1/2 px-4 py-2 z-1
|
|
25
|
+
text-base-100 rounded-sm bg-base-content bg-opacity-90 shadow;
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (max-width: 767.9px) {
|
|
32
|
+
.govgr-tooltip:hover {
|
|
33
|
+
.govgr-tooltiptext {
|
|
34
|
+
width: calc(100vw - 3.5rem);
|
|
20
35
|
}
|
|
21
36
|
}
|
|
22
37
|
}
|
|
38
|
+
|
|
23
39
|
.govgr-cookie-banner {
|
|
24
40
|
@apply bg-base-200;
|
|
25
41
|
}
|
|
@@ -31,12 +47,15 @@ div[class*="govgr-grid__col-span"] {
|
|
|
31
47
|
@apply mb-0;
|
|
32
48
|
}
|
|
33
49
|
}
|
|
50
|
+
|
|
34
51
|
.govgr-image-logo {
|
|
35
52
|
@apply h-10;
|
|
36
53
|
}
|
|
54
|
+
|
|
37
55
|
.govgr-image-logo--light {
|
|
38
56
|
@apply h-10;
|
|
39
57
|
}
|
|
58
|
+
|
|
40
59
|
.govgr-image-logo--dark {
|
|
41
60
|
@apply h-10 hidden;
|
|
42
|
-
}
|
|
61
|
+
}
|
|
@@ -68,6 +68,48 @@
|
|
|
68
68
|
font-weight: var(--caption-md-font-weight);
|
|
69
69
|
letter-spacing: var(--caption-md-letter-spacing);
|
|
70
70
|
}
|
|
71
|
+
.govgr-body {
|
|
72
|
+
font-size: var(--body-font-size);
|
|
73
|
+
line-height: var(--body-line-height);
|
|
74
|
+
margin-bottom: var(--body-margin-bottom);
|
|
75
|
+
color: var(--body-color);
|
|
76
|
+
letter-spacing: var(--body-letter-spacing);
|
|
77
|
+
}
|
|
78
|
+
.govgr-body-lg {
|
|
79
|
+
font-size: var(--body-lg-font-size);
|
|
80
|
+
line-height: var(--body-lg-line-height);
|
|
81
|
+
}
|
|
82
|
+
.govgr-body-sm {
|
|
83
|
+
font-size: var(--body-sm-font-size);
|
|
84
|
+
line-height: var(--body-sm-line-height);
|
|
85
|
+
}
|
|
86
|
+
.govgr-hint {
|
|
87
|
+
font-size: var(--hint-font-size);
|
|
88
|
+
line-height: var(--hint-line-height);
|
|
89
|
+
margin-bottom: var(--hint-margin-bottom);
|
|
90
|
+
color: var(--hint-color);
|
|
91
|
+
letter-spacing: var(--hint-letter-spacing);
|
|
92
|
+
}
|
|
93
|
+
.govgr-background-dark, .govgr-masthead--primary {
|
|
94
|
+
.govgr-hint {
|
|
95
|
+
@apply opacity-70 text-white print:text-base-content;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
.govgr-code {
|
|
99
|
+
@apply text-sm sm:text-base bg-base-100;
|
|
100
|
+
}
|
|
101
|
+
.govgr-code--attr {
|
|
102
|
+
@apply text-info;
|
|
103
|
+
}
|
|
104
|
+
.govgr-code--string {
|
|
105
|
+
@apply text-success;
|
|
106
|
+
}
|
|
107
|
+
.govgr-code--keyword {
|
|
108
|
+
@apply text-warning;
|
|
109
|
+
}
|
|
110
|
+
.govgr-code--name {
|
|
111
|
+
@apply text-tertiary;
|
|
112
|
+
}
|
|
71
113
|
.govgr-\!-font-size-14 {
|
|
72
114
|
@apply text-xs md:text-sm !important;
|
|
73
115
|
}
|
|
@@ -92,6 +134,12 @@
|
|
|
92
134
|
.govgr-\!-font-size-72 {
|
|
93
135
|
@apply text-6xl md:text-7xl !important;
|
|
94
136
|
}
|
|
137
|
+
.govgr-\!-font-weight-regular {
|
|
138
|
+
@apply font-normal !important;
|
|
139
|
+
}
|
|
140
|
+
.govgr-\!-font-weight-bold {
|
|
141
|
+
@apply font-bold !important;
|
|
142
|
+
}
|
|
95
143
|
.govgr-list {
|
|
96
144
|
@apply list-none list-outside mt-4;
|
|
97
145
|
font-size: var(--list-font-size);
|
|
@@ -187,12 +235,7 @@
|
|
|
187
235
|
@apply break-words;
|
|
188
236
|
}
|
|
189
237
|
|
|
190
|
-
|
|
191
|
-
@apply font-normal !important;
|
|
192
|
-
}
|
|
193
|
-
.govgr-\!-font-weight-bold {
|
|
194
|
-
@apply font-bold !important;
|
|
195
|
-
}
|
|
238
|
+
|
|
196
239
|
.govgr-link {
|
|
197
240
|
@apply focus:text-link-active underline cursor-pointer;
|
|
198
241
|
color: var(--link-color);
|
|
@@ -308,3 +351,10 @@ button.govgr-link {
|
|
|
308
351
|
@apply md:w-4 md:h-4 w-3 h-3 inline-block mr-2;
|
|
309
352
|
}
|
|
310
353
|
}
|
|
354
|
+
|
|
355
|
+
.govgr-code-block__container {
|
|
356
|
+
@apply p-4 bg-base-200 border border-base-300 w-full;
|
|
357
|
+
}
|
|
358
|
+
.govgr-code-block__content {
|
|
359
|
+
@apply text-sm sm:text-base;
|
|
360
|
+
}
|
package/tailwind.config.js
CHANGED
|
@@ -80,7 +80,11 @@ const colorVariables = allColors.reduce((colorVars, color) => {
|
|
|
80
80
|
}
|
|
81
81
|
return colorVars;
|
|
82
82
|
}, {});
|
|
83
|
-
|
|
83
|
+
const screens = require('./screens.json');
|
|
84
|
+
const screensWithPixels = Object.keys(screens).reduce((screenVars, screen) => {
|
|
85
|
+
screenVars[screen] = `${screens[screen]}px`;
|
|
86
|
+
return screenVars;
|
|
87
|
+
},{})
|
|
84
88
|
/** @type {import('tailwindcss').Config} */
|
|
85
89
|
module.exports = {
|
|
86
90
|
darkMode: "class",
|
|
@@ -102,11 +106,8 @@ module.exports = {
|
|
|
102
106
|
lg: "1.1875rem",
|
|
103
107
|
},
|
|
104
108
|
screens: {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
md: "768px",
|
|
108
|
-
lg: "1024px",
|
|
109
|
-
xl: "1280px",
|
|
109
|
+
...screensWithPixels,
|
|
110
|
+
|
|
110
111
|
"2xl": "1280px",
|
|
111
112
|
print: { raw: "print" },
|
|
112
113
|
xsOnly: { min: "0px", max: "639.98px" },
|