@digigov/css 1.0.0-ab30975f → 1.0.0-b0737a96
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/defaultTheme/back-to-top.json +27 -0
- package/defaultTheme/index.js +1 -0
- package/dist/base/index.css +1 -1
- package/dist/base.js +1 -1
- package/dist/components.js +1 -1
- package/dist/digigov.css +2 -2
- package/package.json +7 -7
- package/src/components/accordion.css +1 -1
- package/src/components/back-to-top.css +29 -0
- package/src/components/button.css +2 -2
- package/src/components/dropdown.css +4 -4
- package/src/components/index.css +1 -0
- package/src/components/layout.css +33 -1
- package/src/pages/dropdown.js +2 -2
- package/tailwind.config.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/css",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-b0737a96",
|
|
4
4
|
"description": "Digigov CSS - Tailwind CSS Components",
|
|
5
5
|
"author": "GRNET Devs <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -48,13 +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.0-
|
|
52
|
-
"@digigov/cli-build-tailwind": "1.0.0-
|
|
51
|
+
"@digigov/postcss-banner": "1.0.0-b0737a96",
|
|
52
|
+
"@digigov/cli-build-tailwind": "1.0.0-b0737a96",
|
|
53
53
|
"rimraf": "3.0.2",
|
|
54
|
-
"postcss-js": "4.0.0",
|
|
55
|
-
"postcss-load-config": "3.1.4",
|
|
56
54
|
"publint": "0.1.8",
|
|
57
|
-
"@digigov/cli": "1.0.0-
|
|
55
|
+
"@digigov/cli": "1.0.0-b0737a96"
|
|
58
56
|
},
|
|
59
57
|
"scripts": {
|
|
60
58
|
"preutilities": "DIGIGOV_CSS_BUILD=TRUE postcss --config src/utilities src/utilities/index.css --base src --dir dist",
|
|
@@ -76,6 +74,8 @@
|
|
|
76
74
|
"@fontsource/roboto": "4.4.0",
|
|
77
75
|
"publint": "0.1.8",
|
|
78
76
|
"@adobe/leonardo-contrast-colors": "1.0.0-alpha.13",
|
|
79
|
-
"polished": "4.2.2"
|
|
77
|
+
"polished": "4.2.2",
|
|
78
|
+
"postcss-js": "4.0.0",
|
|
79
|
+
"postcss-load-config": "3.1.4"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@apply text-base-content focus:underline flex justify-between;
|
|
47
47
|
&::after {
|
|
48
48
|
content: "+";
|
|
49
|
-
@apply text-2xl text-base-content float-right relative -right-8;
|
|
49
|
+
@apply text-2xl text-base-content float-right relative -right-8 ml-2;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
.govgr-accordion__section[open] {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.govgr-back-to-top-content {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.govgr-back-to-top-link {
|
|
6
|
+
font-size: var(--back-to-top-link-font-size);
|
|
7
|
+
letter-spacing: var(--back-to-top-link-letter-spacing);
|
|
8
|
+
color: var(--back-to-top-link-color);
|
|
9
|
+
@apply w-fit underline flex mb-4 cursor-pointer items-baseline;
|
|
10
|
+
&:hover {
|
|
11
|
+
text-decoration-thickness: 2px;
|
|
12
|
+
}
|
|
13
|
+
&:focus {
|
|
14
|
+
background-color: var(--color-focus);
|
|
15
|
+
box-shadow:
|
|
16
|
+
0 -2px var(--color-focus),
|
|
17
|
+
0 4px var(--color-base-content);
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
outline: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* overrides */
|
|
24
|
+
|
|
25
|
+
.govgr-back-to-top-link {
|
|
26
|
+
.govgr-svg-icon {
|
|
27
|
+
fill: var(--back-to-top-link-color);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
.govgr-btn-cta {
|
|
122
|
-
.govgr-svg-icon--
|
|
122
|
+
.govgr-svg-icon--chevron {
|
|
123
123
|
@apply w-5 h-5 inline-block ml-2 mr-2 transition-all;
|
|
124
124
|
}
|
|
125
125
|
&:hover {
|
|
126
|
-
.govgr-svg-icon--
|
|
126
|
+
.govgr-svg-icon--chevron {
|
|
127
127
|
@apply ml-4 mr-0;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
|
|
65
65
|
.govgr-dropdown {
|
|
66
66
|
&[open] {
|
|
67
|
-
.govgr-dropdown__button--
|
|
68
|
-
.govgr-svg-icon--
|
|
67
|
+
.govgr-dropdown__button--chevron {
|
|
68
|
+
.govgr-svg-icon--chevron {
|
|
69
69
|
@apply transform -rotate-180;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
.govgr-dropdown__button--
|
|
88
|
-
.govgr-svg-icon--
|
|
87
|
+
.govgr-dropdown__button--chevron {
|
|
88
|
+
.govgr-svg-icon--chevron {
|
|
89
89
|
@apply transition duration-300;
|
|
90
90
|
}
|
|
91
91
|
}
|
package/src/components/index.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
.govgr-layout {
|
|
2
3
|
display: flex;
|
|
3
4
|
flex-direction: column;
|
|
@@ -17,7 +18,27 @@
|
|
|
17
18
|
@apply mb-4;
|
|
18
19
|
}
|
|
19
20
|
.govgr-aside {
|
|
20
|
-
@apply flex flex-wrap flex-col md:
|
|
21
|
+
@apply flex flex-wrap flex-col md:top-8 h-fit print:order-1;
|
|
22
|
+
.govgr-back-to-top {
|
|
23
|
+
@apply flex flex-1 content-end flex-wrap;
|
|
24
|
+
.govgr-back-to-top-link {
|
|
25
|
+
@apply md:mx-6 md:my-4;
|
|
26
|
+
}
|
|
27
|
+
&.govgr-back-to-top--persistent {
|
|
28
|
+
.govgr-back-to-top-content {
|
|
29
|
+
@apply sticky bottom-0 mb-4;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.govgr-aside--sticky {
|
|
35
|
+
@apply md:sticky;
|
|
36
|
+
&.govgr-aside--full-height {
|
|
37
|
+
max-height: calc(100vh - 2rem);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.govgr-aside--full-height {
|
|
41
|
+
@apply h-full;
|
|
21
42
|
}
|
|
22
43
|
.govgr-bottom {
|
|
23
44
|
@apply w-full flex flex-wrap box-border;
|
|
@@ -49,6 +70,17 @@
|
|
|
49
70
|
|
|
50
71
|
/* overrides */
|
|
51
72
|
|
|
73
|
+
.govgr-main {
|
|
74
|
+
>.govgr-back-to-top--persistent {
|
|
75
|
+
@apply fixed bottom-0 right-0 bg-base-200 w-full z-5;
|
|
76
|
+
.govgr-back-to-top-link {
|
|
77
|
+
@apply mx-6 my-4;
|
|
78
|
+
}
|
|
79
|
+
.govgr-back-to-top-content {
|
|
80
|
+
@apply max-w-5xl mx-auto my-0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
52
84
|
.govgr-container {
|
|
53
85
|
&.govgr-grid {
|
|
54
86
|
@apply py-4 print:gap-4 print:grid-cols-1;
|
package/src/pages/dropdown.js
CHANGED
|
@@ -75,7 +75,7 @@ export default function Dropdown() {
|
|
|
75
75
|
</p>
|
|
76
76
|
|
|
77
77
|
<details className="govgr-dropdown">
|
|
78
|
-
<summary className="govgr-dropdown__button govgr-btn govgr-btn-secondary govgr-dropdown__button--
|
|
78
|
+
<summary className="govgr-dropdown__button govgr-btn govgr-btn-secondary govgr-dropdown__button--chevron">
|
|
79
79
|
Ενέργειες
|
|
80
80
|
<svg aria-hidden="true" className="govgr-svg-icon govgr-svg-icon--arrow--down" focusable="false" viewBox="0 0 24 24">
|
|
81
81
|
<path d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z" />
|
|
@@ -143,7 +143,7 @@ export default function Dropdown() {
|
|
|
143
143
|
</details>
|
|
144
144
|
|
|
145
145
|
<details className="govgr-dropdown govgr-dropdown--left govgr-dropdown--up">
|
|
146
|
-
<summary className="govgr-dropdown__button govgr-link govgr-dropdown__button--
|
|
146
|
+
<summary className="govgr-dropdown__button govgr-link govgr-dropdown__button--chevron">
|
|
147
147
|
Ενέργειες
|
|
148
148
|
<svg aria-hidden="true" className="govgr-svg-icon govgr-svg-icon--arrow--down" focusable="false" viewBox="0 0 24 24">
|
|
149
149
|
<path d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z" />
|