@digigov/css 0.34.0 → 0.35.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/defaultTheme/card.json +12 -0
- package/defaultTheme/index.js +5 -3
- package/defaultTheme/panel.json +43 -0
- 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 +2 -2
- package/src/components/card.css +3 -1
- package/src/components/form.css +7 -2
- package/src/components/nav.css +91 -87
- package/src/components/panel.css +10 -2
- package/src/pages/form.js +7 -7
- package/src/pages/index.js +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Digigov CSS - Tailwind CSS Components",
|
|
5
5
|
"author": "GRNET Devs <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@fontsource/roboto": "4.4.0",
|
|
77
|
-
"@digigov/cli-build-tailwind": "0.9.
|
|
77
|
+
"@digigov/cli-build-tailwind": "0.9.2",
|
|
78
78
|
"publint": "0.1.8"
|
|
79
79
|
}
|
|
80
80
|
}
|
package/src/components/card.css
CHANGED
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
}
|
|
17
17
|
.govgr-card__text {
|
|
18
18
|
word-break: break-word;
|
|
19
|
-
@apply text-base
|
|
19
|
+
@apply text-base;
|
|
20
|
+
font-size: var(--card__text-font-size);
|
|
21
|
+
line-height: var(--card__text-line-height);
|
|
20
22
|
}
|
|
21
23
|
.govgr-card__body {
|
|
22
24
|
@apply flex flex-col gap-3 md:gap-4 h-full;
|
package/src/components/form.css
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
.govgr-input, .govgr-select, .govgr-textarea{
|
|
50
50
|
@apply md:text-lg text-base w-full p-2 border-2 border-base-content bg-white;
|
|
51
|
+
text-indent: 2px;
|
|
51
52
|
&:focus {
|
|
52
53
|
outline: 4px solid var(--color-focus);
|
|
53
54
|
outline-offset: 0;
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
@apply h-fit text-lg;
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
.govgr-date-input {
|
|
71
|
+
.govgr-date-input, .govgr-single-character-input--container {
|
|
71
72
|
@apply flex;
|
|
72
73
|
.form-group {
|
|
73
74
|
@apply mr-4;
|
|
@@ -91,7 +92,11 @@
|
|
|
91
92
|
.govgr-input--width-2 {
|
|
92
93
|
max-width: 5.4ex;
|
|
93
94
|
}
|
|
94
|
-
.govgr-
|
|
95
|
+
.govgr-otp-input--width {
|
|
96
|
+
max-width: 3.1ex;
|
|
97
|
+
@apply text-center pl-0 pr-0;
|
|
98
|
+
}
|
|
99
|
+
.govgr-date-input__item, .govgr-otp-input__item {
|
|
95
100
|
@apply mr-4;
|
|
96
101
|
}
|
|
97
102
|
|
package/src/components/nav.css
CHANGED
|
@@ -9,21 +9,22 @@
|
|
|
9
9
|
fill: var(--color-link) !important;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
.govgr-
|
|
12
|
+
.govgr-nav {
|
|
13
13
|
@apply fixed;
|
|
14
14
|
}
|
|
15
|
-
.govgr-
|
|
15
|
+
.govgr-nav__list {
|
|
16
16
|
@apply sm:flex !important;
|
|
17
|
-
@apply sm:w-min xs:hidden
|
|
17
|
+
@apply sm:w-min xs:hidden m-0 max-w-5xl sm:mx-auto sm:gap-x-6 static sm:py-1 xs:px-3 sm:px-0
|
|
18
|
+
flex flex-wrap flex-col sm:flex-row;
|
|
18
19
|
}
|
|
19
|
-
.govgr-
|
|
20
|
-
@apply sm:mr-auto sm:ml-auto sm:text-center sm:underline mr-0 xs:px-2;
|
|
20
|
+
.govgr-nav__list-item {
|
|
21
|
+
@apply text-base-content sm:mr-auto sm:ml-auto sm:text-center sm:underline mr-0 xs:px-2 xs:py-1 sm:gap-x-6;
|
|
21
22
|
.govgr-svg-icon {
|
|
22
23
|
fill: var(--color-white) !important;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
.govgr-
|
|
26
|
-
.govgr-
|
|
26
|
+
.govgr-nav__list-item-link,
|
|
27
|
+
.govgr-nav__list-item-btn {
|
|
27
28
|
@apply underline xs:text-white text-lg sm:flex !important;
|
|
28
29
|
@apply xs:hidden items-center xs:gap-1;
|
|
29
30
|
&:focus {
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
.govgr-
|
|
37
|
+
.govgr-nav__list--active {
|
|
37
38
|
@apply sm:bg-secondary600 !important;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -76,25 +77,48 @@
|
|
|
76
77
|
transform-origin: 3px 16px;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
|
|
81
|
+
/* --- NAV --- */
|
|
82
|
+
.govgr-nav {
|
|
81
83
|
@apply sm:block !important;
|
|
82
|
-
@apply xs:hidden w-3/4 sm:w-full h-full bg-white
|
|
83
|
-
sm:h-auto sm:bg-white xs:text-content
|
|
84
|
-
z-30 sm:z-auto
|
|
84
|
+
@apply xs:hidden w-3/4 sm:w-full h-full bg-white sm:h-auto xs:text-content z-30 sm:z-auto
|
|
85
85
|
opacity-100 right-0 top-0 sm:top-auto overflow-x-scroll sm:overflow-visible;
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
}
|
|
87
|
+
.govgr-nav--fixed {
|
|
88
|
+
@apply fixed sm:relative;
|
|
89
|
+
}
|
|
90
|
+
.govgr-nav--border {
|
|
91
|
+
@apply sm:border-b sm:border-base150;
|
|
92
|
+
}
|
|
93
|
+
.govgr-nav--open {
|
|
94
|
+
@apply xs:block;
|
|
95
|
+
}
|
|
96
|
+
.govgr-nav--hidden {
|
|
97
|
+
@apply hidden !important;
|
|
98
|
+
}
|
|
99
|
+
.govgr-nav__list-item {
|
|
100
|
+
@apply text-base-content
|
|
101
|
+
xs:py-1;
|
|
102
|
+
}
|
|
103
|
+
.govgr-nav--horizontal {
|
|
104
|
+
.govgr-nav--horizontal {
|
|
105
|
+
@apply sm:mt-2 sm:border-b-0 static w-full z-1 sm:order-1;
|
|
88
106
|
@apply block overflow-x-visible;
|
|
89
|
-
.govgr-
|
|
90
|
-
@apply sm:border-b-0;
|
|
91
|
-
}
|
|
92
|
-
.govgr-horizontal-nav__list {
|
|
107
|
+
.govgr-nav__list {
|
|
93
108
|
@apply sm:px-0 sm:pb-0 sm:ml-6 !important;
|
|
94
109
|
}
|
|
95
110
|
}
|
|
96
|
-
.govgr-
|
|
97
|
-
@apply sm:
|
|
111
|
+
.govgr-nav__list {
|
|
112
|
+
@apply w-full m-0 max-w-5xl sm:mx-auto sm:gap-x-6 static sm:py-1 xs:px-3 sm:px-0
|
|
113
|
+
flex flex-wrap flex-col sm:flex-row;
|
|
114
|
+
.govgr-section-break {
|
|
115
|
+
margin-top: 41px !important;
|
|
116
|
+
@apply sm:flex !important;
|
|
117
|
+
@apply xs:hidden sm:p-0 absolute left-0 right-0;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.govgr-nav__list-item {
|
|
121
|
+
@apply sm:gap-x-6;
|
|
98
122
|
}
|
|
99
123
|
.govgr-drawer__close-icon {
|
|
100
124
|
@apply sm:hidden mt-3;
|
|
@@ -103,42 +127,30 @@
|
|
|
103
127
|
@apply mb-0;
|
|
104
128
|
}
|
|
105
129
|
}
|
|
106
|
-
.govgr-nav
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
.govgr-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
.govgr-
|
|
119
|
-
|
|
130
|
+
.govgr-nav--vertical {
|
|
131
|
+
.govgr-nav--vertical {
|
|
132
|
+
@apply sm:mt-2 sm:border-b-0 static w-full z-1;
|
|
133
|
+
@apply block overflow-x-visible;
|
|
134
|
+
}
|
|
135
|
+
.govgr-nav__list {
|
|
136
|
+
@apply w-full m-0 max-w-5xl static xs:px-3
|
|
137
|
+
flex flex-wrap flex-col;
|
|
138
|
+
}
|
|
139
|
+
.govgr-drawer__close-icon {
|
|
140
|
+
@apply sm:hidden mt-3;
|
|
141
|
+
}
|
|
142
|
+
.govgr-heading-m {
|
|
143
|
+
@apply mb-0;
|
|
144
|
+
}
|
|
120
145
|
}
|
|
121
|
-
|
|
122
|
-
.govgr-horizontal-nav__list,
|
|
146
|
+
.govgr-nav__list,
|
|
123
147
|
.govgr-main-wrapper {
|
|
124
148
|
.govgr-drawer__heading {
|
|
125
149
|
@apply flex-row-reverse;
|
|
126
150
|
}
|
|
127
151
|
}
|
|
128
|
-
.govgr-
|
|
129
|
-
|
|
130
|
-
flex flex-wrap flex-col sm:flex-row;
|
|
131
|
-
.govgr-section-break {
|
|
132
|
-
margin-top: 41px !important;
|
|
133
|
-
@apply sm:flex !important;
|
|
134
|
-
@apply xs:hidden sm:p-0 absolute left-0 right-0;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
.govgr-horizontal-nav__list-item {
|
|
138
|
-
@apply text-base-content xs:py-1 sm:gap-x-6;
|
|
139
|
-
}
|
|
140
|
-
.govgr-horizontal-nav__list-item-link,
|
|
141
|
-
.govgr-horizontal-nav__list-item-btn {
|
|
152
|
+
.govgr-nav__list-item-link,
|
|
153
|
+
.govgr-nav__list-item-btn {
|
|
142
154
|
@apply md:no-underline !important;
|
|
143
155
|
.govgr-svg-icon {
|
|
144
156
|
@apply ml-0.5;
|
|
@@ -151,8 +163,8 @@
|
|
|
151
163
|
@apply underline !important;
|
|
152
164
|
}
|
|
153
165
|
}
|
|
154
|
-
.govgr-
|
|
155
|
-
.govgr-
|
|
166
|
+
.govgr-nav__list-item-link--active,
|
|
167
|
+
.govgr-nav__list-item-btn--active {
|
|
156
168
|
@apply text-base-content !important;
|
|
157
169
|
@apply font-semibold;
|
|
158
170
|
> .govgr-svg-icon {
|
|
@@ -160,26 +172,36 @@
|
|
|
160
172
|
}
|
|
161
173
|
}
|
|
162
174
|
|
|
163
|
-
/* ---
|
|
164
|
-
.govgr-
|
|
165
|
-
@apply w-full m-0 max-w-5xl static xs:px-3
|
|
166
|
-
flex flex-wrap flex-col;
|
|
167
|
-
}
|
|
168
|
-
.govgr-vertical-nav__list-item {
|
|
169
|
-
@apply text-base-content
|
|
170
|
-
xs:py-1;
|
|
171
|
-
}
|
|
172
|
-
.govgr-vertical-nav-list__menu {
|
|
175
|
+
/* --- NAV-MENU --- */
|
|
176
|
+
.govgr-nav-menu {
|
|
173
177
|
@apply flex z-1 w-full;
|
|
174
178
|
}
|
|
175
|
-
.govgr-
|
|
176
|
-
@apply
|
|
179
|
+
.govgr-nav-menu--hidden {
|
|
180
|
+
@apply hidden;
|
|
177
181
|
}
|
|
178
|
-
.govgr-
|
|
179
|
-
@apply mt-3;
|
|
182
|
+
.govgr-nav-menu--horizontal {
|
|
183
|
+
@apply sm:order-2 sm:left-0 sm:right-0 sm:relative sm:mt-3 sm:bg-white;
|
|
184
|
+
.govgr-main-wrapper {
|
|
185
|
+
@apply xs:gap-y-2;
|
|
186
|
+
}
|
|
187
|
+
.govgr-nav-menu__content-list {
|
|
188
|
+
@apply sm:grid-cols-2 sm:grid-rows-1 !important;
|
|
189
|
+
@apply p-0 sm:grid grid-flow-row xs:grid-cols-1 xs:grid-rows-6;
|
|
190
|
+
}
|
|
180
191
|
}
|
|
181
|
-
.govgr-
|
|
182
|
-
|
|
192
|
+
.govgr-nav-menu--vertical {
|
|
193
|
+
.govgr-nav-menu__content-list {
|
|
194
|
+
@apply p-0 grid-flow-row xs:grid-cols-1 xs:grid-rows-6;
|
|
195
|
+
}
|
|
196
|
+
.govgr-nav-menu__container-title {
|
|
197
|
+
@apply mt-3;
|
|
198
|
+
}
|
|
199
|
+
.govgr-nav-menu__container-title-heading {
|
|
200
|
+
@apply hidden;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
.govgr-nav-menu__content-list-item {
|
|
204
|
+
@apply relative pt-0 pb-5 pr-3 pl-0 box-border;
|
|
183
205
|
}
|
|
184
206
|
|
|
185
207
|
/* --- VERTICAL LIST --- */
|
|
@@ -192,21 +214,3 @@
|
|
|
192
214
|
.govgr-vertical-nav__item--active {
|
|
193
215
|
@apply font-semibold !important;
|
|
194
216
|
}
|
|
195
|
-
/* ---------- --- */
|
|
196
|
-
|
|
197
|
-
.govgr-nav-list__menu {
|
|
198
|
-
@apply flex sm:order-2 sm:left-0 sm:right-0 sm:relative sm:mt-3 sm:bg-white z-1 w-full;
|
|
199
|
-
.govgr-main-wrapper {
|
|
200
|
-
@apply xs:gap-y-2;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
.govgr-nav-list__menu-hidden {
|
|
204
|
-
@apply hidden;
|
|
205
|
-
}
|
|
206
|
-
.govgr-nav-list__content-list {
|
|
207
|
-
@apply sm:grid-cols-2 sm:grid-rows-1 !important;
|
|
208
|
-
@apply p-0 sm:grid grid-flow-row xs:grid-cols-1 xs:grid-rows-6;
|
|
209
|
-
}
|
|
210
|
-
.govgr-nav-list__content-list-item {
|
|
211
|
-
@apply relative pt-0 pb-5 pr-3 pl-0 box-border;
|
|
212
|
-
}
|
package/src/components/panel.css
CHANGED
|
@@ -7,8 +7,16 @@
|
|
|
7
7
|
print:border-4 print:border-success print:text-base-content print:bg-white;
|
|
8
8
|
}
|
|
9
9
|
.govgr-panel__title {
|
|
10
|
-
@apply
|
|
10
|
+
@apply mx-auto mt-0;
|
|
11
|
+
font-size: var(--panel__title-font-size);
|
|
12
|
+
line-height:var(--panel__title-line-height);
|
|
13
|
+
margin-bottom:var(--panel__title-margin-bottom);
|
|
14
|
+
font-weight: var(--panel__title-font-weight);
|
|
15
|
+
letter-spacing: var(--panel__title-letter-spacing);
|
|
11
16
|
}
|
|
12
17
|
.govgr-panel__body {
|
|
13
|
-
|
|
18
|
+
font-size: var(--panel__body-font-size);
|
|
19
|
+
line-height:var(--panel__body-line-height);
|
|
20
|
+
margin:var(--panel__body-margin);
|
|
21
|
+
letter-spacing: var(--panel__body-letter-spacing);
|
|
14
22
|
}
|
package/src/pages/form.js
CHANGED
|
@@ -18,13 +18,13 @@ export default function Home() {
|
|
|
18
18
|
</div>
|
|
19
19
|
</header>
|
|
20
20
|
</div>
|
|
21
|
-
<nav className="govgr-
|
|
22
|
-
<
|
|
23
|
-
<a className="govgr-
|
|
24
|
-
<a className="govgr-
|
|
25
|
-
<a className="govgr-
|
|
26
|
-
<a className="govgr-
|
|
27
|
-
</
|
|
21
|
+
<nav className="govgr-nav govgr-nav--horizontal">
|
|
22
|
+
<ul className="govgr-nav__list">
|
|
23
|
+
<a className="govgr-nav__list-item-link govgr-nav__list-item-link--active" href="/"> Αρχική </a>
|
|
24
|
+
<a className="govgr-nav__list-item-link" href=""> Καταχώρηση φόρμας </a>
|
|
25
|
+
<a className="govgr-nav__list-item-link" href=""> Νέα</a>
|
|
26
|
+
<a className="govgr-nav__list-item-link" href=""> Επικοινωνία </a>
|
|
27
|
+
</ul>
|
|
28
28
|
</nav>
|
|
29
29
|
<div className="govgr-width-container">
|
|
30
30
|
<div className="govgr-main-wrapper">
|
package/src/pages/index.js
CHANGED
|
@@ -19,13 +19,13 @@ export default function Home() {
|
|
|
19
19
|
<svg className="govgr-burger-icon" focusable="true" viewBox="0 0 24 24" aria-hidden="true" > <rect id="govgr-burger-icon__line-1" width="20" height="3.3" /><rect id="govgr-burger-icon__line-2" width="20" height="3.3" /><rect id="govgr-burger-icon__line-3" width="20" height="3.3" /></svg>
|
|
20
20
|
</div>
|
|
21
21
|
</header>
|
|
22
|
-
<nav className="govgr-
|
|
23
|
-
<
|
|
24
|
-
<a href="" className="govgr-
|
|
25
|
-
<a href="#" className="govgr-
|
|
26
|
-
<a href="#" className="govgr-
|
|
27
|
-
<a href="#" className="govgr-
|
|
28
|
-
</
|
|
22
|
+
<nav className="govgr-nav govgr-nav--horizontal">
|
|
23
|
+
<ul className="govgr-nav__list">
|
|
24
|
+
<a href="" className="govgr-nav__list-item-link govgr-nav__list-item-link--active"> Home </a>
|
|
25
|
+
<a href="#" className="govgr-nav__list-item-link"> Form registration </a>
|
|
26
|
+
<a href="#" className="govgr-nav__list-item-link"> News </a>
|
|
27
|
+
<a href="#" className="govgr-nav__list-item-link"> Contact </a>
|
|
28
|
+
</ul>
|
|
29
29
|
</nav>
|
|
30
30
|
|
|
31
31
|
<svg className="govgr-burger-icon govgr-burger-icon--active" focusable="true" viewBox="0 0 24 24" aria-hidden="true" >
|